/* ============================================================
   Gakkika-House デザインシステム v1.0
   暖かい紙の質感 × 深い緑 × 弁柄色 — 「住まい」と「音楽」の両立
   ============================================================ */
:root {
  --paper: #faf6ee;
  --paper-deep: #f3ecdd;
  --card: #fffdf8;
  --ink: #2a251d;
  --dim: #75695a;
  --terra: #b4502a;
  --terra-deep: #93401f;
  --moss: #42604b;
  --moss-deep: #32493a;
  --line-green: #06c755;
  --border: #e5dbc8;
  --shadow: 0 2px 14px rgba(74, 60, 38, .08);
  --radius: 14px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: break-word;
  word-break: auto-phrase;
  line-break: auto;
  text-wrap: pretty;
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .serif {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.3; }
.brand a { color: var(--ink); text-decoration: none; }
.brand .brand-name { font-family: "Shippori Mincho", serif; font-size: 1.25rem; font-weight: 700; }
.brand .brand-sub { font-size: .68rem; color: var(--dim); letter-spacing: .12em; }
.gnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gnav a {
  color: var(--ink); font-size: .82rem; padding: 6px 9px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
}
.gnav a:hover { background: var(--paper-deep); }
.gnav a.nav-cta {
  background: var(--line-green); color: #fff; font-weight: 700; padding: 8px 14px;
  border-radius: 999px;
}
.gnav a.nav-cta:hover { background: #05b34c; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 1rem; cursor: pointer; color: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .gnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .gnav.open { display: flex; }
  .gnav a { padding: 11px 10px; font-size: .95rem; border-bottom: 1px dashed var(--border); border-radius: 0; }
  .gnav a.nav-cta { border: none; border-radius: 999px; text-align: center; margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--moss-deep); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(35,52,42,.82), rgba(35,52,42,.35)); }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 84px 20px 72px; color: #fdfaf2; }
.hero-kicker { display: inline-block; font-size: .82rem; letter-spacing: .22em; border: 1px solid rgba(253,250,242,.5); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.9rem); font-weight: 700; color: #fdfaf2; margin-bottom: 14px; }
.hero .hero-lead { font-size: clamp(.95rem, 2vw, 1.1rem); max-width: 38em; opacity: .95; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42,37,29,.18); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-ghost { background: transparent; color: #fdfaf2; border: 1.5px solid rgba(253,250,242,.7); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-outline { background: transparent; color: var(--terra-deep); border: 1.5px solid var(--terra); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--paper-deep); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .en { display: block; font-size: .75rem; letter-spacing: .28em; color: var(--terra); margin-bottom: 8px; font-weight: 700; }
.sec-head h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.sec-head .sec-lead { color: var(--dim); margin-top: 12px; max-width: 42em; margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .card-img { aspect-ratio: 16/10; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card .card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card .card-meta { font-size: .8rem; color: var(--dim); margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--ink); }
.card .card-link { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .92rem; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.badge-full { background: #ddd4c4; color: #6d614e; }
.badge-open { background: var(--terra); color: #fff; }

/* ---------- feature (pattern) blocks ---------- */
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pattern {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.pattern .p-num { font-family: "Shippori Mincho", serif; color: var(--terra); font-size: .8rem; letter-spacing: .18em; font-weight: 700; }
.pattern h3 { font-size: 1.08rem; margin: 6px 0 10px; }
.pattern p { font-size: .9rem; color: var(--dim); }

/* ---------- tables ---------- */
.t-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .93rem;
}
table.data th, table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data th { background: var(--paper-deep); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
.price { font-weight: 700; color: var(--terra-deep); white-space: nowrap; }

/* ---------- fact list ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.fact .f-label { font-size: .74rem; color: var(--dim); letter-spacing: .08em; }
.fact .f-value { font-weight: 700; font-size: 1.02rem; margin-top: 2px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--paper-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery-caption { font-size: .8rem; color: var(--dim); margin-top: 8px; }

/* ---------- timeline (内見の流れ) ---------- */
.timeline { list-style: none; counter-reset: step; max-width: 760px; margin: 0 auto; }
.timeline li { position: relative; padding: 0 0 34px 64px; counter-increment: step; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--moss); color: #fdfaf2;
  font-family: "Shippori Mincho", serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--border);
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline p { font-size: .92rem; color: var(--ink); }
.timeline .note { font-size: .82rem; color: var(--dim); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 18px 20px; list-style: none; position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--terra); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--ink); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--moss-deep); color: #fdfaf2; text-align: center; padding: 56px 20px; }
.cta-band h2 { color: #fdfaf2; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 10px; }
.cta-band p { opacity: .9; max-width: 36em; margin: 0 auto 24px; font-size: .95rem; }
.cta-band .hero-cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: #241f18; color: #cfc6b8; font-size: .85rem; padding: 48px 0 32px; }
.site-footer a { color: #e8e0d2; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-footer h3 { color: #f5efe3; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { text-align: center; margin-top: 36px; padding: 18px 20px 0; border-top: 1px solid #3a342a; color: #9a907f; font-size: .78rem; }

/* ---------- article (blog) ---------- */
.article-head { max-width: 760px; margin: 0 auto; padding: 48px 20px 8px; }
.article-head h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 10px 0 14px; }
.article-head .a-date { color: var(--dim); font-size: .85rem; }
.article-cover { max-width: 760px; margin: 18px auto 0; padding: 0 20px; }
.article-cover img { border-radius: var(--radius); }
.article-body { max-width: 760px; margin: 0 auto; padding: 28px 20px 56px; }
.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-size: 1.35rem; margin: 2em 0 .8em; padding-left: 14px; border-left: 4px solid var(--terra); }
.article-body h3 { font-size: 1.15rem; margin: 1.6em 0 .7em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.4em; }
.article-body img { border-radius: 10px; margin: 1.6em auto; }
.article-body blockquote { border-left: 4px solid var(--border); padding: 4px 0 4px 18px; color: var(--dim); margin-bottom: 1.4em; }
.post-nav { max-width: 760px; margin: 0 auto; padding: 0 20px 56px; display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; }
.post-nav a { max-width: 46%; }

/* blog index */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ---------- vacancy ---------- */
.vacancy-band { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.vacancy-band .v-date { font-size: .78rem; color: var(--dim); }
.vacancy-list { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 10px; }
.vacancy-list .v-item { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* ---------- YouTube facade ---------- */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.yt-embed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; border: 1px solid var(--border); }
.yt-embed img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(180,80,42,.92); }
.yt-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }

/* ---------- misc ---------- */
.note-box { background: var(--paper-deep); border-left: 4px solid var(--moss); border-radius: 8px; padding: 16px 20px; font-size: .9rem; margin: 22px 0; }
.center { text-align: center; }
.mt-l { margin-top: 36px; }
.breadcrumb { font-size: .78rem; color: var(--dim); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--border); }
.br-sp { display: none; }
@media (max-width: 560px) {
  .br-sp { display: inline; }
  section { padding: 48px 0; }
  .hero-inner { padding: 60px 20px 52px; }
}
