/* =============================================
   伊藤雄吉相談所 — 案C: ストーリー・ナラティブ（改修版）
   style.css
   ============================================= */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* カラー — 深緑・より引き締まったトーン */
  --green-dark:   #1e4020;
  --green-mid:    #2d5a27;
  --green-light:  #dff0d8;
  --green-pale:   #f2f8f0;
  --black:        #111111;
  --gray-dark:    #333333;
  --gray-mid:     #666666;
  --gray-light:   #aaaaaa;
  --gray-border:  #d8d8d8;
  --white:        #ffffff;

  /* ダークセクション用 */
  --dark-bg:      #0f1a0f;
  --dark-text:    #f0ede8;
  --dark-muted:   #999999;
  --dark-accent:  #7ec87a;
  --dark-border:  rgba(255,255,255,0.1);

  /* SNSカラー */
  --x-bg:         #000000;
  --ig-bg:        #e1306c;

  --max-w:        860px;
  --max-w-wide:   1080px;
  --header-h:     64px;
  --font-head:    'Noto Serif JP', Georgia, serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --ease:         cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 1.2em; color: var(--gray-dark); font-weight: 300; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-dark); text-decoration: underline; }
a:hover { color: var(--green-mid); }

strong { font-weight: 700; color: var(--black); }

/* ---------- Layout Helpers ---------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.container--wide {
  width: 90%;
  max-width: var(--max-w-wide);
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  padding-bottom: 4px;
  margin-bottom: 32px;
}

.section-title {
  margin-bottom: 48px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 0;
}

/* ---------- Header / Navigation ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-border);
  height: var(--header-h);
  transition: box-shadow .3s var(--ease);
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-logo {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.site-logo-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.site-logo-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.site-logo-ja {
  color: var(--black);
  font-size: .95rem;
  line-height: 1.1;
  letter-spacing: .06em;
  white-space: nowrap;
}
.site-logo-en {
  color: var(--green-dark);
  font-family: var(--font-body);
  font-size: .54rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.site-nav a {
  font-size: .8rem;
  color: var(--gray-dark);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s;
  font-weight: 400;
}
.site-nav a:hover,
.site-nav a.active { color: var(--green-dark); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all .3s var(--ease);
}

/* ---------- Hero ---------- */
#hero {
  padding: 120px 0 110px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-mid));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  min-width: 0;
}

.hero-brand {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 32px;
  padding: 12px 0 12px 42px;
  border-left: 1px solid var(--gray-border);
}

.hero-tag {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-logo {
  width: min(420px, 100%);
  margin: 0 auto;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: normal;
  color: var(--green-dark);
}

.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gray-mid);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-desc {
  font-size: .98rem;
  line-height: 1.9;
  color: var(--gray-dark);
  margin-bottom: 42px;
  max-width: 620px;
}

/* 実績サマリー */
.hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  border-right: 1px solid var(--gray-border);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  letter-spacing: -.02em;
}

.stat-desc {
  font-size: .78rem;
  color: var(--gray-mid);
  letter-spacing: .04em;
  font-weight: 400;
  line-height: 1.55;
}

/* CTA ボタン群 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 42px;
}

.btn-sns {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .06em;
  transition: opacity .2s, transform .15s var(--ease);
}
.btn-sns:hover {
  opacity: .85;
  transform: translateY(-1px);
  color: var(--white);
}

.btn-x {
  background: var(--x-bg);
  color: var(--white);
}
.btn-x:hover { color: var(--white); }

.btn-ig {
  background: var(--ig-bg);
  color: var(--white);
}
.btn-ig:hover { color: var(--white); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1.5px solid var(--gray-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  letter-spacing: .04em;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
  background: var(--green-pale);
}

.btn-text-link {
  font-size: .88rem;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.btn-text-link:hover {
  border-bottom-color: var(--green-dark);
}

.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}
.hero-title {
  font-size: .85rem;
  color: var(--gray-mid);
  letter-spacing: .06em;
  font-weight: 400;
}

/* ---------- Story (DARK SECTION) ---------- */
#story {
  background: var(--dark-bg);
}

/* Story 2カラムレイアウト（写真＋テキスト） */
.story-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.story-photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
}

.story-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  filter: grayscale(15%);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

#story .section-label {
  color: var(--dark-accent);
  border-bottom-color: var(--dark-accent);
}

#story .section-title {
  color: var(--dark-text);
}

.story-body {
  max-width: 720px;
}
.story-body p {
  font-size: 1.05rem;
  line-height: 2.05;
  margin-bottom: 1.6em;
  color: #c8c4be;
  font-weight: 300;
}

#story blockquote {
  border-left: 4px solid var(--dark-accent);
  padding: 24px 32px;
  margin: 44px 0;
  background: rgba(255,255,255,.04);
  border-radius: 0 8px 8px 0;
}
#story blockquote p {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--dark-accent);
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.7;
}
#story blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--dark-muted);
  font-style: normal;
}

/* Storyセクション内の動画リンク */
.story-media {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
}

/* ---------- Expertise ---------- */
#expertise {
  background: var(--white);
}

.expertise-intro {
  max-width: 640px;
  margin-bottom: 48px;
  font-size: 1rem;
  line-height: 1.85;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.expertise-card {
  padding: 36px 30px;
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--green-dark);
  border-radius: 0 0 8px 8px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.expertise-card:hover {
  box-shadow: 0 10px 36px rgba(30,64,32,.10);
  transform: translateY(-4px);
}

.expertise-number {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.expertise-card h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.expertise-card p {
  font-size: .92rem;
  margin-bottom: 0;
  line-height: 1.8;
}

.expertise-media {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}

/* ---------- Consulting ---------- */
#consulting {
  background: var(--green-pale);
}

.consulting-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.consulting-text p {
  font-size: 1.02rem;
  line-height: 1.95;
}

.consulting-text blockquote {
  border-left: 4px solid var(--green-dark);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--green-light);
  border-radius: 0 8px 8px 0;
}
.consulting-text blockquote p {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--green-dark);
  font-style: italic;
  line-height: 1.7;
}
.consulting-text blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  color: var(--gray-mid);
  font-style: normal;
}

.consulting-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 40px 34px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.price-tag {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.price-unit {
  font-size: .85rem;
  color: var(--gray-mid);
  margin-bottom: 28px;
  font-weight: 400;
}

.consulting-details {
  border-top: 1px solid var(--gray-border);
  padding-top: 16px;
}
.consulting-details dt {
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gray-mid);
  text-transform: uppercase;
  margin-top: 18px;
}
.consulting-details dd {
  font-size: .95rem;
  color: var(--black);
  font-weight: 600;
  margin: 4px 0 0;
}

.cta-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--green-pale);
  border-radius: 6px;
  font-size: .88rem;
  color: var(--green-dark);
  line-height: 1.7;
  border: 1px solid var(--green-light);
}

.btn-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: .08em;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn-contact:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-contact--sub {
  background: transparent;
  border: 1.5px solid var(--green-dark);
  color: var(--green-dark);
  margin-top: 10px;
}
.btn-contact--sub:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.ontology-cta {
  margin-top: 12px;
}

/* ---------- Portfolio ---------- */
#portfolio {
  background: var(--white);
}

/* 「現在進行中」の強調ノート */
.portfolio-active-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-left: 3px solid var(--green-dark);
  border-radius: 0 4px 4px 0;
  padding: 10px 16px;
  margin-bottom: 48px;
}
.portfolio-active-note::before {
  content: '●';
  font-size: .55rem;
  color: var(--green-mid);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.portfolio-lead {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.95;
  margin-bottom: 60px;
}

.portfolio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-border);
  align-items: start;
  transition: background .2s;
}
.portfolio-item:first-child { border-top: 1px solid var(--gray-border); }

.portfolio-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  padding-top: 4px;
  text-align: right;
  letter-spacing: -.04em;
}

.portfolio-info h3 {
  margin-bottom: 6px;
}
.portfolio-info .tag-line {
  font-size: .82rem;
  color: var(--gray-mid);
  margin-bottom: 10px;
  font-weight: 400;
}
.portfolio-info .badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: 30px;
  padding: 3px 12px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.portfolio-info p {
  margin-top: 12px;
  font-size: .93rem;
}

/* 会社名行（名前＋WEBリンク横並び） */
.portfolio-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}
.portfolio-name-row h3 {
  margin-bottom: 0;
}

/* WEBバッジ */
.portfolio-web-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 30px;
  padding: 3px 12px;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.portfolio-web-badge:hover {
  background: var(--green-light);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

/* メディア（動画・記事）エリア */
.portfolio-media {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}

.portfolio-media-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.portfolio-media-item:hover { opacity: .72; }

.portfolio-media-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--gray-border);
}

.portfolio-media-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.media-title {
  font-size: .82rem;
  color: var(--gray-dark);
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 400;
}

.media-source {
  font-size: .72rem;
  color: var(--gray-light);
  font-weight: 400;
}

/* テキストのみのメディアアイテム（記事リンク） */
.portfolio-media-item--text {
  padding: 8px 12px;
  background: var(--green-pale);
  border-radius: 4px;
  border: 1px solid var(--gray-border);
}
.portfolio-media-item--text:hover {
  border-color: var(--green-dark);
  opacity: 1;
  background: var(--green-light);
}

/* ---------- Ontology (DARK SECTION) ---------- */
#ontology {
  background: var(--dark-bg);
}

#ontology .section-label {
  color: var(--dark-accent);
  border-bottom-color: var(--dark-accent);
}

#ontology .section-title {
  color: var(--dark-text);
}

.ontology-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ontology-text h3 {
  color: var(--dark-text);
  margin-bottom: 20px;
}
.ontology-text p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #c8c4be;
  font-weight: 300;
}

#ontology blockquote {
  border-left: 4px solid var(--dark-accent);
  padding: 24px 32px;
  margin: 36px 0;
  background: rgba(255,255,255,.04);
  border-radius: 0 8px 8px 0;
}
#ontology blockquote p {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--dark-accent);
  font-style: italic;
  line-height: 1.7;
}
#ontology blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  color: var(--dark-muted);
  font-style: normal;
}

.ontology-box {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 40px 34px;
}

.ontology-box h3 {
  color: var(--dark-text);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.ontology-box-desc {
  font-size: .93rem;
  color: #aaaaaa;
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 1.7;
}

.ontology-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-border);
}
.meta-row {
  display: flex;
  gap: 12px;
}
.meta-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--dark-muted);
  min-width: 80px;
  padding-top: 1px;
}
.meta-value {
  font-size: .93rem;
  font-weight: 600;
  color: var(--dark-text);
}

.theme-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-border);
}
.theme-list li {
  font-size: .9rem;
  color: #c8c4be;
  padding-left: 20px;
  position: relative;
  font-weight: 300;
}
.theme-list li::before {
  content: '▸';
  color: var(--dark-accent);
  position: absolute;
  left: 0;
  top: 0;
}

/* Ontology section の btn-contact を反転 */
#ontology .btn-contact {
  background: var(--dark-accent);
  color: var(--dark-bg);
}
#ontology .btn-contact:hover {
  background: #6db86a;
  color: var(--dark-bg);
}
#ontology .btn-contact--sub {
  background: transparent;
  border-color: var(--dark-accent);
  color: var(--dark-accent);
}
#ontology .btn-contact--sub:hover {
  background: rgba(126,200,122,.1);
  color: var(--dark-accent);
}

/* ---------- FAQ ---------- */
#faq {
  background: var(--white);
}

.faq-list {
  list-style: none;
  margin-top: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-border);
}
.faq-item:first-child { border-top: 1px solid var(--gray-border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s;
}

.faq-question .q-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .3s var(--ease);
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  display: block;
  background: var(--green-dark);
  border-radius: 2px;
  position: absolute;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; transition: transform .3s var(--ease); }

.faq-item.open .faq-icon { background: var(--green-dark); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--white); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 28px;
}
.faq-answer-inner p {
  font-size: .95rem;
  line-height: 1.85;
}

/* ---------- Reports ---------- */
#reports {
  background: var(--green-pale);
}

.reports-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-mid);
  margin-bottom: 48px;
  font-weight: 400;
}

.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.report-article {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 40px 34px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.report-article:hover {
  box-shadow: 0 8px 28px rgba(30,64,32,.08);
  transform: translateY(-3px);
}

.report-article--feature {
  grid-column: 1 / -1;
}

.report-logo-figure {
  width: min(360px, 100%);
  margin: 6px auto 30px;
  padding: 18px 18px 8px;
}
.report-logo-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.report-meta {
  font-size: .75rem;
  color: var(--gray-mid);
  letter-spacing: .08em;
  margin-bottom: 16px;
  font-weight: 400;
}

.report-article h3 {
  margin-bottom: 18px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.report-article p {
  font-size: .93rem;
  line-height: 1.85;
}

.report-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
}

.report-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.report-link:hover {
  border-bottom-color: var(--green-dark);
  color: var(--green-mid);
}

/* 外部リンクは少し強調 */
.report-link--external {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 4px;
  padding: 6px 14px 6px 12px;
  border-bottom: 1px solid var(--green-light);
}
.report-link--external:hover {
  background: var(--green-light);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

/* ---------- Contact ---------- */
#contact {
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text p {
  font-size: 1.02rem;
  line-height: 1.95;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SNS プライマリ */
.contact-sns-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-sns-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s, transform .15s var(--ease);
}
.contact-sns-btn:hover {
  opacity: .88;
  transform: translateX(3px);
}

.contact-sns-x {
  background: var(--x-bg);
  color: var(--white);
}
.contact-sns-ig {
  background: var(--ig-bg);
  color: var(--white);
}

.sns-platform {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  opacity: .8;
}
.sns-handle {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}
.sns-cta {
  font-size: .82rem;
  font-weight: 500;
  opacity: .85;
  letter-spacing: .04em;
}

/* セカンダリ / Info */
.contact-row {
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
}

.contact-detail .label {
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--gray-mid);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-detail .value {
  font-size: .98rem;
  font-weight: 600;
  color: var(--black);
  word-break: break-all;
  margin-bottom: 0;
}
.contact-detail a {
  color: var(--green-dark);
  text-decoration: none;
}
.contact-detail a:hover { text-decoration: underline; }
.contact-note {
  font-size: .82rem;
  color: var(--gray-mid);
  margin-top: 6px;
  line-height: 1.6;
  font-weight: 300;
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--black);
  color: var(--gray-light);
  padding: 48px 0;
  font-size: .82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .04em;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color .2s;
  font-weight: 300;
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
  color: var(--gray-mid);
  font-size: .78rem;
  font-weight: 300;
}

/* ---------- Scroll Progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--green-dark);
  z-index: 2000;
  transition: width .1s linear;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .site-logo-mark {
    width: 34px;
    height: 34px;
  }
  .site-logo-ja {
    font-size: .88rem;
  }
  .site-logo-en {
    display: none;
  }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 24px 5%;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 999;
  }

  #hero { padding: 80px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-brand {
    order: -1;
    gap: 26px;
    padding: 0;
    border-left: none;
  }
  .hero-logo {
    width: min(360px, 84vw);
    margin: 0 auto;
    margin-bottom: 24px;
  }
  .hero-stats {
    max-width: 620px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-sns, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-photo {
    position: static;
    max-width: 240px;
  }

  .consulting-inner,
  .ontology-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
  }

  .contact-sns-btn {
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .site-logo {
    gap: 8px;
  }
  .site-logo-mark {
    width: 30px;
    height: 30px;
  }
  .hero-headline { letter-spacing: -.01em; }
  .hero-logo {
    width: min(320px, 90vw);
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }
  .stat-item {
    padding: 14px 0;
    border-right: none;
    border-bottom: 1px solid var(--gray-border);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .price-tag { font-size: 2.1rem; }
  .stat-num { font-size: 1.5rem; }
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  #scroll-progress,
  .nav-toggle,
  .btn-contact,
  .btn-sns,
  .btn-secondary,
  .hero-actions,
  .contact-sns-group { display: none; }

  section { padding: 24pt 0; page-break-inside: avoid; }
  body { font-size: 10pt; color: #000; }
  a { color: #000; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }

  #story, #ontology {
    background: #f8f8f8;
  }
  #story .section-title,
  #story .section-label,
  #story .story-body p,
  #ontology .section-title,
  #ontology .section-label,
  .ontology-text h3,
  .ontology-text p,
  .ontology-box h3,
  .ontology-box-desc,
  .meta-value,
  .theme-list li { color: #000; }

  .expertise-grid,
  .reports-grid { grid-template-columns: 1fr 1fr; }
  #site-footer { background: none; color: #000; }
  .footer-logo { color: #000; }
}

