/* 合同会社グググ — 落ち着いたナチュラルトーン＋「育っていく」表現 */
:root {
  --ink: #2a2622;
  --ink-soft: #66605a;
  --paper: #f7f5f0;
  --paper-2: #eeebe3;
  --line: #ddd8cd;
  --sage: #8fa39a;
  --sage-pale: #dfe6e2;
  --mist: #c9d3d3;
  --kraft: #b8946a;
  --radius: 4px;
  --max: 1120px;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-latin: "Jost", "Futura", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.6; margin: 0; letter-spacing: .08em; }
p { margin: 0 0 1.2em; }
em { font-family: var(--font-latin); font-style: normal; letter-spacing: .08em; }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- ロゴ ---------- */
.logo { display: inline-block; line-height: 0; flex-shrink: 0; }
.logo img { height: 60px; width: auto; }
.logo--footer img { height: 72px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: min(100% - 32px, var(--max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.nav-toggle {
  display: none;
  font: 400 14px var(--font-latin); letter-spacing: .15em;
  background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: 6px 18px; cursor: pointer; white-space: nowrap;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.nav a { text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--sage); }
.nav__cta { border: 1px solid var(--ink); padding: 6px 20px; border-radius: 999px; }
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 16px; text-align: center; border: 1px solid var(--ink) !important; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 15px var(--font-body); letter-spacing: .1em;
  padding: 14px 36px; border-radius: 999px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--sage); border-color: var(--sage); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn--sm { padding: 6px 20px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- ヒーロー ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); }
.hero__inner {
  width: min(100% - 32px, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.hero__eyebrow { font-family: var(--font-latin); font-weight: 300; letter-spacing: .25em; color: var(--sage); font-size: 14px; }

/* 見出しは一段ずつ上がっていく階段状＋文字が大きくなる */
.hero__title { font-size: clamp(28px, 4.4vw, 52px); white-space: nowrap; line-height: 1.5; margin: 8px 0 32px; }
.step { display: block; opacity: 0; transform: translateY(16px); animation: rise .9s ease forwards; }
.step--1 { font-size: .62em; padding-left: 0;    animation-delay: .1s; }
.step--2 { font-size: .8em;  padding-left: 1.2em; animation-delay: .45s; }
.step--3 { font-size: 1em;   padding-left: 2.2em; animation-delay: .8s; }
@media (max-width: 480px) { .step--2 { padding-left: .8em; } .step--3 { padding-left: 1.2em; } }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__lead { color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 16px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__art { margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.sprouts { display: block; width: 100%; overflow: visible; }
.sprouts .ground { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.sprouts .stem { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.sprouts .leaf { fill: var(--sage-pale); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.sprouts .sprout--2 .leaf { fill: var(--mist); }
.sprouts .sprout--3 .leaf { fill: var(--sage); }
.sprouts .lbl { font-family: var(--font-latin); font-weight: 300; font-size: 14px; letter-spacing: .2em; text-anchor: middle; fill: var(--ink-soft); }
/* 芽が順番に伸びる */
.sprout { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: grow 1.2s cubic-bezier(.3,.8,.3,1) forwards; }
.sprout--1 { animation-delay: .3s; }
.sprout--2 { animation-delay: .8s; }
.sprout--3 { animation-delay: 1.3s; }
@keyframes grow { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .step, .sprout { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- セクション共通 ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__label {
  font-family: var(--font-latin); font-weight: 300; letter-spacing: .3em;
  font-size: 13px; color: var(--sage); margin-bottom: 10px;
}
.section__title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 40px; }

/* ---------- グググについて ---------- */
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 80px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.about__body { font-size: 15px; }
.about__body strong { font-weight: 500; background: linear-gradient(transparent 65%, var(--sage-pale) 65%); }

/* ---------- 事業内容（カードが一段ずつ上がる） ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; padding-top: 80px; }
  .card:nth-child(2) { transform: translateY(-40px); }
  .card:nth-child(3) { transform: translateY(-80px); }
  .business { padding-bottom: calc(clamp(80px, 11vw, 140px) - 80px); }
}
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px 32px;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px;
  background: var(--sage-pale);
}
.card:nth-child(2)::before { background: var(--mist); }
.card:nth-child(3)::before { background: var(--sage); }
.card__num { font-family: var(--font-latin); font-weight: 300; font-size: 32px; letter-spacing: .1em; color: var(--sage); margin: 0 0 8px; line-height: 1.2; }
.card__title { font-size: 20px; margin-bottom: 16px; }
.card__text { color: var(--ink-soft); font-size: 14px; }
.card__tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags li {
  font-size: 12px; white-space: nowrap;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
.card__link { margin-top: 20px; font-size: 14px; text-underline-offset: 4px; align-self: flex-start; }
.card__link::after { content: " ↗"; }
.card__link:hover { color: var(--sage); }

/* ---------- よくある質問 ---------- */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 80px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.faq__list { border-top: 1px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 4px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before {
  content: "Q"; font-family: var(--font-latin); font-weight: 300; color: var(--sage);
  font-size: 18px; line-height: 1.6; flex-shrink: 0;
}
.faq__list summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-latin); font-weight: 300;
  font-size: 22px; line-height: 1.2; flex-shrink: 0; transition: transform .2s ease;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary h3 { font-size: 16px; font-weight: 500; letter-spacing: .06em; min-width: 0; }
.faq__list details p { color: var(--ink-soft); padding: 0 4px 20px 34px; margin: 0; }

/* ---------- 会社概要 ---------- */
.company__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 80px; }
@media (min-width: 900px) { .company__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.company__list { margin: 0; border-top: 1px solid var(--ink); }
.company__list > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) { .company__list > div { grid-template-columns: 10em minmax(0, 1fr); } }
.company__list dt { font-weight: 500; white-space: nowrap; }
.company__list dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.company__list a { text-underline-offset: 4px; }
.plain { margin: 0; padding-left: 1.2em; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 80px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.contact__lead { color: var(--ink-soft); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 44px); min-width: 0;
}
.form__row { margin-bottom: 20px; }
.form__row label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.req {
  display: inline-block; font-size: 11px; color: #fff; background: var(--sage);
  padding: 0 8px; border-radius: 2px; margin-left: 4px; vertical-align: 2px; line-height: 1.7;
}
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  font: 16px var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sage); background: #fff; }
.form [aria-invalid="true"] { border-color: #c0544a !important; }
.form__agree { display: flex; align-items: center; gap: 10px; margin: 8px 0 24px; font-size: 14px; cursor: pointer; }
.form__agree input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.form__status { margin: 14px 0 0; font-size: 14px; min-height: 1.5em; }
.form__status.is-ok { color: #4f7a68; }
.form__status.is-error { color: #c0544a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: #cfc9bf; padding: 48px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.footer__nav a { text-decoration: none; white-space: nowrap; }
.footer__nav a:hover { color: #fff; }

/* ---------- 下層ページ（プライバシーポリシー） ---------- */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .container { max-width: 760px; }
.doc h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 32px; }
.doc h2 { font-size: 18px; margin: 40px 0 10px; padding-left: 12px; border-left: 3px solid var(--sage); }
.doc ul { padding-left: 1.4em; }
.doc__ext { margin: 0 0 1.2em; border-top: 1px solid var(--ink); }
.doc__ext > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) { .doc__ext > div { grid-template-columns: 9em minmax(0, 1fr); } }
.doc__ext dt { font-weight: 500; white-space: nowrap; }
.doc__ext dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.doc__ext a { text-underline-offset: 4px; }
.doc .doc__meta { color: var(--ink-soft); font-size: 14px; margin-top: 40px; }
