/************************************
** へやじまい トップページ「杜の緑」案（design_handoff_heyajimai_top の 3a / 3b を再現）
** スマホ（3a）を基準に書き、768px以上で PC（3b）に切り替える。
** 書体は全体をゴシック（Zen Kaku Gothic New）で統一する（明朝は使わない）。
************************************/

.heya-top {
  --hy-text: #3a3d38;
  --hy-head: #2f4a3a;
  --hy-sub: #5f6a5b;
  --hy-date: #6d7868;
  --hy-accent: #4a7359;
  --hy-link: #3d6a4f;
  --hy-bg: #fbfaf6;
  --hy-band: #eef2ea;
  --hy-hover: #f3f6f0;
  --hy-line: #d5ddcf;
  --hy-btn-line: #cdd8c7;
  --hy-soon: #efe8da;
  --hy-soon-text: #7a6a4c;
  --hy-footer: #3f6450;
  --hy-footer-text: #eef2ea;
  --hy-footer-weak: #b9cbbd;

  background: var(--hy-bg);
  color: var(--hy-text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 2.1;
  margin: 0;
}
.heya-top a { color: var(--hy-link); }
.heya-top img { display: block; max-width: 100%; height: auto; }
.heya-top h1,
.heya-top h2,
.heya-top h3 { font-weight: 700; margin: 0; }

/* PR表記（ファーストビューの最上部。アニメーションで隠さない） */
.hy-pr {
  background: var(--hy-band);
  font-size: 11px;
  line-height: 1.6;
  padding: 8px 16px;
  text-align: center;
}
.hy-pr p { margin: 0; }
.hy-pr__label {
  border: 1px solid var(--hy-sub);
  border-radius: 2px;
  font-weight: 700;
  margin-right: 6px;
  padding: 0 5px;
}
.hy-pr a { color: var(--hy-link); margin-left: 6px; }

/* ヘッダー */
.hy-header { background: var(--hy-bg); }
.hy-header__in {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  position: relative;
}
.hy-logo {
  color: var(--hy-head);
  flex: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
}
.hy-menu { position: static; }
.hy-menu__btn {
  align-items: center;
  background: var(--hy-bg);
  border: 1px solid var(--hy-btn-line);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  justify-content: center;
  list-style: none;
  position: relative;
  width: 44px;
}
.hy-menu__btn::-webkit-details-marker { display: none; }
.hy-menu__btn:focus-visible { outline: 2px solid var(--hy-accent); outline-offset: 2px; }
.hy-menu__bar { background: var(--hy-head); display: block; height: 2px; width: 18px; }
.hy-menu__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hy-nav { display: none; }
.hy-menu.is-open .hy-nav {
  display: block;
  background: var(--hy-bg);
  border: 1px solid var(--hy-line);
  border-radius: 20px;
  box-shadow: 0 12px 28px -14px rgba(47, 74, 58, 0.35);
  left: 16px;
  padding: 12px 18px;
  position: absolute;
  right: 16px;
  top: 64px;
  z-index: 10;
}
.hy-nav ul { list-style: none; margin: 0; padding: 0; }
.hy-nav li + li { border-top: 1px solid var(--hy-line); }
.hy-nav a {
  color: var(--hy-head);
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 10px 0;
  text-decoration: none;
}

/* 本文の枠（スマホは全幅、PCは最大1160px） */
.hy-main { overflow: hidden; }
.hy-section { padding: 56px 20px; }
.hy-band { background: var(--hy-band); border-radius: 40px 40px 0 0; }
.hy-eyebrow {
  color: var(--hy-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin: 0 0 8px;
}
.hy-h2 {
  color: var(--hy-head);
  font-size: 20px;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.hy-answer { color: var(--hy-sub); margin: 12px 0 24px; }

/* ヒーロー（スマホ：写真→ひとこと→H1→リード） */
.hy-hero { padding: 0 0 40px; }
.hy-hero__media img {
  aspect-ratio: 4 / 3;
  border-radius: 32px 32px 32px 120px;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.hy-hero__text { padding: 28px 20px 0; }
.hy-hero__lead-line {
  color: var(--hy-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.75;
}
.hy-hero__title {
  color: var(--hy-head);
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-top: 16px;
}
.hy-hero__desc { color: var(--hy-sub); font-size: 13px; line-height: 2.1; margin: 16px 0 0; }

/* カード（3人の立場） */
.hy-cards { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.hy-card {
  background: var(--hy-bg);
  border: 1px solid var(--hy-line);
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.hy-card__title { color: var(--hy-head); font-size: 16px; letter-spacing: 0.1em; line-height: 1.6; margin-bottom: 8px; }
.hy-card p { color: var(--hy-sub); font-size: 13px; margin: 0 0 12px; }
.hy-more {
  color: var(--hy-link);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* 何が分かるか（番号なし・罫線区切り） */
.hy-list { border-top: 1px solid var(--hy-line); list-style: none; margin: 0; padding: 0; }
.hy-list li { border-bottom: 1px solid var(--hy-line); padding: 18px 0; }
.hy-list__title { color: var(--hy-head); font-size: 16px; letter-spacing: 0.1em; margin-bottom: 4px; }
.hy-list p { color: var(--hy-sub); font-size: 13px; margin: 0; }

.hy-tools { display: grid; gap: 12px; margin-top: 28px; }
.hy-tools__label { color: var(--hy-soon-text); font-size: 12px; margin: 0; }
.hy-tool {
  background: var(--hy-soon);
  border-radius: 24px;
  padding: 22px;
}
.hy-badge {
  background: #fff;
  border-radius: 99px;
  color: var(--hy-soon-text);
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 10px;
}
.hy-tool__title { color: var(--hy-head); font-size: 15px; margin: 10px 0 6px; }
.hy-tool p { color: var(--hy-sub); font-size: 13px; margin: 0; }

/* 信頼（精度の説明） */
.hy-band p.hy-answer { margin-bottom: 0; }

/* カテゴリ（丸いボタン） */
.hy-pills { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.hy-pill {
  align-items: center;
  border: 1px solid var(--hy-btn-line);
  border-radius: 99px;
  color: var(--hy-head);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 14px 18px 14px 24px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.hy-pill:hover { background: var(--hy-band); border-color: var(--hy-accent); }
.hy-pill__arrow {
  align-items: center;
  background: var(--hy-accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: none;
  height: 28px;
  justify-content: center;
  width: 28px;
}

/* 最近の記事 */
.hy-news { list-style: none; margin: 0; padding: 0; }
.hy-news__row {
  align-items: center;
  border-bottom: 1px solid var(--hy-line);
  display: grid;
  gap: 8px;
  padding: 14px 0;
}
.hy-news__date { color: var(--hy-date); font-size: 11px; }
.hy-news__tag {
  border: 1px solid var(--hy-btn-line);
  border-radius: 99px;
  color: var(--hy-accent);
  font-size: 10px;
  justify-self: start;
  padding: 0 8px;
}
.hy-news__title { color: var(--hy-head); font-size: 14px; text-decoration: none; }
.hy-news__title:hover { color: var(--hy-accent); }

/* 運営者 */
.hy-policy {
  background: var(--hy-band);
  border-radius: 32px;
  padding: 24px;
}
.hy-policy p { font-size: 13px; margin: 0; }
.hy-policy p + p { margin-top: 12px; }
.hy-policy__owner { color: var(--hy-sub); }
.hy-updated { color: var(--hy-date); font-size: 11px; margin: 20px 0 0; text-align: center; }

/* フッター */
.hy-footer {
  background: var(--hy-footer);
  border-radius: 40px 40px 0 0;
  color: var(--hy-footer-text);
  padding: 40px 20px;
  text-align: center;
}
.hy-footer__logo { font-size: 16px; font-weight: 700; letter-spacing: 0.16em; margin: 0 0 16px; }
.hy-footer__links { list-style: none; margin: 0 0 16px; padding: 0; }
.hy-footer__links li { margin-bottom: 8px; }
.hy-footer__links a { color: var(--hy-footer-text); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.hy-footer__copy { color: var(--hy-footer-weak); font-size: 11px; margin: 0; }

/* 動き（読み込み時のヒーロー・スクロール時のフェードアップ）。動かすのは transform / opacity のみ */
.heya-top [data-hero] { opacity: 0; transform: translateY(24px); }
.heya-top.is-ready [data-hero] {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.heya-top.is-ready [data-hero]:nth-child(2) { transition-delay: 0.16s; }
.heya-top.is-ready [data-hero]:nth-child(3) { transition-delay: 0.32s; }
.heya-top [data-reveal] { opacity: 0; transform: translateY(16px); }
.heya-top [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
@media (prefers-reduced-motion: reduce) {
  .heya-top [data-hero],
  .heya-top [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* PC（3b）：768px以上 */
@media screen and (min-width: 768px) {
  .heya-top { font-size: 15px; }
  .hy-pr { font-size: 12px; padding: 10px 40px; }
  .hy-pr p { max-width: 1160px; margin: 0 auto; text-align: left; }

  .hy-header__in { margin: 0 auto; max-width: 1160px; padding: 24px 40px; }
  .hy-logo { font-size: 24px; letter-spacing: 0.18em; }
  .hy-menu__btn { display: none; }
  .hy-menu__text { display: none; }
  .hy-menu { flex: 1 1 auto; min-width: 0; margin-left: 40px; }
  .hy-nav { display: block; }
  .hy-menu .hy-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; }
  .hy-nav li + li { border-top: 0; }
  .hy-nav a { font-size: 13px; padding: 8px 0; }

  .hy-section { padding: 104px 40px; margin: 0 auto; max-width: 1160px; box-sizing: border-box; }
  .hy-band { border-radius: 64px 64px 0 0; max-width: none; padding-left: max(40px, calc((100% - 1160px) / 2 + 40px)); padding-right: max(40px, calc((100% - 1160px) / 2 + 40px)); }
  .hy-band > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
  .hy-eyebrow { font-size: 12px; letter-spacing: 0.3em; }
  .hy-h2 { font-size: 28px; letter-spacing: 0.14em; }
  .hy-answer { font-size: 15px; }

  .hy-hero {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: 5fr 7fr;
    margin: 0 auto;
    max-width: 1160px;
    padding: 80px 40px 96px;
  }
  .hy-hero__text { order: 1; padding: 0; }
  .hy-hero__media { order: 2; }
  .hy-hero__lead-line { font-size: 40px; letter-spacing: 0.16em; line-height: 1.6; }
  .hy-hero__title { font-size: 22px; letter-spacing: 0.12em; margin-top: 20px; }
  .hy-hero__desc { font-size: 15px; letter-spacing: 0.08em; }
  .hy-hero__media img {
    aspect-ratio: auto;
    border-radius: 48px 48px 48px 220px;
    height: 520px;
  }

  .hy-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .hy-card { border-radius: 32px; padding: 32px; }
  .hy-card__title { font-size: 18px; }
  .hy-card p { font-size: 15px; }

  .hy-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .hy-list li { padding: 24px 0; }
  .hy-list__title { font-size: 18px; }
  .hy-list p { font-size: 15px; }
  .hy-tools { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .hy-tools__label { grid-column: 1 / -1; }
  .hy-tool { border-radius: 32px; padding: 28px; }

  .hy-pills { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hy-pill { font-size: 15px; padding: 18px 22px 18px 28px; }
  .hy-pill__arrow { height: 30px; width: 30px; }

  .hy-band .hy-news { display: grid; gap: 0; }
  .hy-news__row { grid-template-columns: 100px 170px 1fr; }
  .hy-news__title { font-size: 15px; }

  .hy-policy { border-radius: 48px; display: grid; gap: 32px; grid-template-columns: 1fr 1fr; padding: 48px; }
  .hy-policy p + p { margin-top: 0; }
  .hy-updated { text-align: left; margin-top: 24px; }

  .hy-footer { border-radius: 64px 64px 0 0; padding: 64px 40px; text-align: left; }
  .hy-footer__in { align-items: center; display: grid; gap: 24px; grid-template-columns: auto 1fr; margin: 0 auto; max-width: 1160px; }
  .hy-footer__logo { font-size: 20px; margin: 0; }
  .hy-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-self: end; margin: 0; }
  .hy-footer__links li { margin: 0; }
  .hy-footer__copy { grid-column: 1 / -1; text-align: right; }
}

/* 記事がまだないカテゴリ（リンクなし・準備中） */
.heya-top .hy-pill--soon {
  background: #efe8da;
  border-color: transparent;
  color: #7a6a4c;
  cursor: default;
}
.heya-top .hy-pill--soon:hover { background: #efe8da; border-color: transparent; }
.heya-top .hy-pill--soon .hy-badge { background: #fff; }
