/* =============================================
   伊藤雄吉相談所 — 協業型事業開発プログラム LP
   トップページ（../style.css）のブランドトークンに合わせた独立スタイル
   ============================================= */

*, *::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:   #a8b0a6;
  --dark-accent:  #7ec87a;
  --dark-border:  rgba(255,255,255,0.14);

  --max-w:        860px;
  --header-h:     60px;
  --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; scroll-padding-top: calc(var(--header-h) + 16px); }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; color: var(--black); }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.9rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
h4 { font-size: 1rem; }

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

a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-mid); }
strong { font-weight: 700; color: var(--black); }

:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-dark); color: #fff; padding: .7rem 1.2rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--black); text-decoration: none; letter-spacing: .04em;
}
.header-cta {
  font-size: .85rem; font-weight: 500;
  padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--green-dark); color: #fff; text-decoration: none;
  transition: background .2s var(--ease);
  white-space: nowrap;
}
.header-cta:hover { background: var(--green-mid); color: #fff; }

/* ---------- Sections ---------- */
main { display: block; }

.hero, .copy-section, .apply {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.15rem, 5vw, 2rem);
}

.divider {
  border: none; height: 1px; background: var(--gray-border);
  max-width: var(--max-w); margin: 0 auto;
}

.eyebrow, .section-eyebrow {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 1rem;
}
.section-eyebrow { color: var(--gray-light); letter-spacing: .18em; }

.section-heading { margin-bottom: 1.4rem; }
.sub-heading {
  margin-top: 2.8rem; margin-bottom: 1rem;
  padding-top: 1.4rem; border-top: 1px solid var(--gray-border);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
.hero h1 { margin-bottom: 1.6rem; }
.hero-summary { font-size: clamp(1rem, 2vw, 1.1rem); max-width: 44em; }

.hero-actions, .apply-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem;
}

.button {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 500; border-radius: 999px;
  padding: .8rem 1.8rem; font-size: .95rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.button.large { padding: .95rem 2.2rem; font-size: 1rem; }
.button.primary { background: var(--green-dark); color: #fff; border: 1px solid var(--green-dark); }
.button.primary:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.button.ghost { background: transparent; color: var(--green-dark); border: 1px solid var(--gray-border); }
.button.ghost:hover { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-dark); }

.facts {
  list-style: none;
  border-top: 1px solid var(--gray-border);
}
.facts li {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--gray-border);
  font-size: .95rem; color: var(--gray-dark);
}
.facts li span {
  flex: 0 0 5.5rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gray-mid);
}

/* ---------- Lists ---------- */
.check-list, .cross-list, .plain-list { list-style: none; margin: 1.4rem 0; }
.check-list li, .cross-list li {
  position: relative; padding-left: 1.9rem; margin-bottom: .7rem;
  color: var(--gray-dark);
}
.check-list li::before {
  content: ""; position: absolute; left: .35rem; top: .72em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--green-mid);
}
.cross-list li::before {
  content: "×"; position: absolute; left: .25rem; top: 0;
  color: var(--gray-light); font-weight: 700;
}
.plain-list li {
  padding: .5rem 0; border-bottom: 1px solid var(--dark-border);
  font-size: .95rem;
}
.lead-note {
  margin-top: 1.6rem; padding: 1.1rem 1.3rem;
  background: var(--green-pale); border-left: 3px solid var(--green-mid);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 1rem; margin: 1.8rem 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--gray-border); border-radius: 4px;
  background: var(--white);
}
.card h3 { margin-bottom: .6rem; font-size: 1.05rem; }
.card p { font-size: .92rem; }

/* ---------- Metrics ---------- */
.metric-list {
  display: grid; grid-template-columns: 7rem 1fr;
  border-top: 1px solid var(--gray-border);
}
.metric-list dt {
  padding: .8rem 0; border-bottom: 1px solid var(--gray-border);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--green-dark);
}
.metric-list dd {
  padding: .8rem 0; border-bottom: 1px solid var(--gray-border);
  font-size: .93rem; color: var(--gray-dark);
}

/* ---------- Phases ---------- */
.phase-list { list-style: none; counter-reset: phase; margin-top: 1.8rem; }
.phase-list > li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--gray-border);
}
.phase-list > li:last-child { border-bottom: 1px solid var(--gray-border); }
.phase-no {
  font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  color: var(--green-mid); padding-top: .35em;
}
.phase-list h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  margin-bottom: .5rem;
}
.phase-dur {
  font-family: var(--font-body); font-size: .78rem; font-weight: 400;
  color: var(--gray-mid); letter-spacing: .02em;
}
.phase-list p { font-size: .93rem; }

/* ---------- Dark section ---------- */
.copy-section.dark {
  max-width: none; background: var(--dark-bg); color: var(--dark-text);
}
.copy-section.dark > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.copy-section.dark h2, .copy-section.dark h3, .copy-section.dark h4 { color: var(--dark-text); }
.copy-section.dark p { color: var(--dark-muted); }
.copy-section.dark .section-eyebrow { color: var(--dark-accent); }
.check-list--dark li { color: var(--dark-muted); }
.check-list--dark li::before { background: var(--dark-accent); }
.sub-heading--dark { border-top-color: var(--dark-border); }
.note-dark {
  margin-top: 1.4rem; padding: 1rem 1.2rem;
  border-left: 3px solid var(--dark-accent);
  background: rgba(255,255,255,.04);
  font-size: .92rem;
}
.split { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.4rem; }
.split h4 { margin-bottom: .5rem; color: var(--dark-accent); font-size: .95rem; }
.split .plain-list li { color: var(--dark-muted); }

/* ---------- Cost ---------- */
.cost-grid {
  display: grid; gap: 1rem; margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.cost-card {
  padding: 1.5rem; border: 1px solid var(--gray-border); border-radius: 4px;
}
.cost-card--main { border-color: var(--green-mid); border-width: 2px; background: var(--green-pale); }
.cost-card h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; color: var(--gray-mid); margin-bottom: .6rem;
}
.cost-value {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; color: var(--black); margin-bottom: .7rem; line-height: 1.5;
}
.cost-card p:last-child { font-size: .9rem; }

.cost-list {
  list-style: none; margin: .9rem 0 0;
}
.cost-list li {
  position: relative; padding-left: 1.1rem; margin-bottom: .42rem;
  font-size: .86rem; line-height: 1.65; color: var(--gray-dark);
}
.cost-list li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: .34rem; height: .34rem; border-radius: 50%; background: var(--green-mid);
}

.cost-aside {
  margin-top: .7rem; padding-top: .6rem;
  border-top: 1px dashed var(--gray-border);
  font-size: .8rem !important; color: var(--gray-mid);
}
.expense-note {
  margin-top: 2rem; padding: 1.5rem 1.6rem;
  border: 1px solid var(--green-mid); border-radius: 3px;
  background: var(--green-pale);
}
.expense-note h3 { margin-bottom: .8rem; font-size: 1.05rem; }
.expense-note p { font-size: .93rem; }
.expense-terms {
  margin-top: 1rem; padding-top: .9rem;
  border-top: 1px solid rgba(45,90,39,.25);
  font-size: .88rem !important;
}

.callout {
  margin-top: 2.4rem; padding: 1.5rem 1.6rem;
  border: 1px solid var(--gray-border); border-left: 4px solid var(--green-dark);
  background: #fafaf8; border-radius: 3px;
}
.callout h3 { margin-bottom: .7rem; font-size: 1.05rem; }
.callout p { font-size: .93rem; margin-bottom: 0; }

/* ---------- QA ---------- */
.qa { padding: 1.3rem 0; border-bottom: 1px solid var(--gray-border); }
.qa:first-of-type { border-top: 1px solid var(--gray-border); }
.qa h3 { margin-bottom: .5rem; font-size: 1.02rem; }
.qa p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Apply ---------- */
.apply {
  text-align: center;
  border-top: 1px solid var(--gray-border);
}
.apply h2 { margin-bottom: 1.2rem; }
.apply > p { max-width: 40em; margin-left: auto; margin-right: auto; }
.apply-actions { justify-content: center; }
.contact-note { font-size: .87rem; color: var(--gray-mid); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg); color: var(--dark-muted);
  padding: 3rem clamp(1.15rem, 5vw, 2rem);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--dark-text); text-decoration: none; display: inline-block; margin-bottom: 1.2rem;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-bottom: 1.6rem; }
.footer-nav a { color: var(--dark-muted); font-size: .9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--dark-accent); }
.copyright { font-size: .8rem; color: #6f776d; margin: 0; }

/* ---------- Track record ---------- */
.track-list {
  list-style: none; display: grid; gap: 1rem; margin: 1.8rem 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.track {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--gray-border); border-top: 3px solid var(--green-mid);
  border-radius: 3px; background: var(--white);
}
.track-type {
  font-size: .74rem; font-weight: 500; letter-spacing: .06em;
  color: var(--green-mid); margin-bottom: .5rem; line-height: 1.6;
}
.track h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.track p:last-child { font-size: .9rem; margin-bottom: 0; }
.track-note {
  margin-top: 1.6rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--gray-border); border-radius: 3px;
  background: #fafaf8; font-size: .9rem;
}

/* ---------- Photos ---------- */
figure { margin: 0; }

.photo-band { margin: 0; }
.photo-band img {
  display: block; width: 100%; height: clamp(220px, 42vw, 460px);
  object-fit: cover; object-position: center 42%;
}
.photo-band figcaption {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1rem clamp(1.15rem, 5vw, 2rem) 0;
  font-size: .92rem; color: var(--gray-dark);
}
.photo-disclaimer {
  display: block; margin-top: .4rem;
  font-size: .78rem; color: var(--gray-mid);
}

.photo-inline { margin: 2rem 0; }
.photo-inline img {
  display: block; width: 100%; height: auto; border-radius: 4px;
}
.photo-inline figcaption {
  margin-top: .7rem; font-size: .87rem; color: var(--gray-mid);
}
.photo-inline--dark figcaption { color: var(--dark-muted); }

/* ---------- Diagrams ---------- */
.diagram { margin: 2rem 0 2.4rem; }
.diagram-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-border); border-radius: 4px;
  background: #fcfcfa; padding: 1rem;
}
.diagram-scroll svg { display: block; width: 100%; min-width: 660px; height: auto; }
.diagram figcaption {
  margin-top: .7rem; font-size: .87rem; color: var(--gray-mid);
}

.diagram svg text {
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  fill: var(--gray-dark);
}

/* fig1 — 情報の状態 */
.d-cap { font-size: 12px !important; letter-spacing: .12em; fill: var(--gray-mid) !important; }
.d-cap-on { fill: var(--green-mid) !important; }
.d-loose rect { fill: #fff; stroke: var(--gray-border); stroke-width: 1.5; }
.d-loose text { fill: var(--gray-mid) !important; font-size: 13px !important; }
.d-arrow line { stroke: var(--gray-light); stroke-width: 1.5; }
.d-arrow polygon { fill: var(--gray-light); }
.d-arrow text { font-size: 12px !important; fill: var(--gray-mid) !important; }
.d-link line { stroke: var(--green-mid); stroke-width: 1.5; opacity: .55; }
.d-node rect { fill: var(--green-pale); stroke: var(--green-mid); stroke-width: 1.5; }
.d-node text { fill: var(--green-dark) !important; font-size: 13px !important; }
.d-hub rect { fill: var(--green-dark); }
.d-hub text { fill: #fff !important; font-size: 13px !important; font-weight: 500; }

/* fig2 — タイムライン */
.t-track rect { fill: var(--green-pale); stroke: var(--green-mid); stroke-width: 1.5; }
.t-track rect.t-after { fill: #fff; stroke: var(--gray-border); stroke-dasharray: 4 3; }
.t-label text { fill: var(--green-dark); font-size: 13px; font-weight: 500; }
.t-label .t-sub, .t-brace .t-sub { font-size: 11px !important; font-weight: 400; fill: var(--gray-mid) !important; }
.t-label .t-after-tx { fill: var(--gray-mid); }
.t-gate polygon { fill: var(--green-dark); }
.t-gate text { font-size: 12px; fill: var(--gray-mid); }
.t-gate .t-gate-tx, .t-gate .c-gate-tx { fill: #fff !important; font-size: 15px !important; font-weight: 700; }
.t-gate .c-gate-tx { font-size: 12px !important; font-weight: 500; }
.t-brace line { stroke: var(--green-mid); stroke-width: 1.5; }
.t-brace text { font-size: 12.5px; fill: var(--green-dark); font-weight: 500; }
.t-brace-after line { stroke: var(--gray-light); }
.t-brace-after text { fill: var(--gray-mid); }
.t-foot { font-size: 11px !important; fill: var(--gray-light) !important; }

/* fig3 — 費用の分岐 */
.c-box rect { fill: #fff; stroke: var(--gray-border); stroke-width: 1.5; }
.c-box text { font-size: 13.5px; fill: var(--gray-dark); }
.c-box .c-sub { font-size: 11.5px !important; fill: var(--gray-mid) !important; }
.c-box-main rect { fill: var(--green-pale); stroke: var(--green-mid); stroke-width: 2; }
.c-box-main .c-h { fill: var(--green-dark); font-weight: 700; font-size: 15px; }
.c-box-stop .c-h { fill: var(--gray-dark); font-weight: 700; font-size: 15px; }
.c-yn { font-size: 11.5px !important; fill: var(--gray-mid) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { line-height: 1.8; }
  .hero h1 br { display: none; }
  .facts li span { flex-basis: 100%; }
  .metric-list { grid-template-columns: 1fr; }
  .metric-list dt { padding-bottom: 0; border-bottom: none; }
  .metric-list dd { padding-top: .2rem; }
  .phase-list > li { grid-template-columns: 1fr; gap: .3rem; }
  .phase-no { padding-top: 0; }
  .hero-actions .button, .apply-actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
