/* ========================================
   ポテコのLINE設計 - 全体設定
   色や文字サイズを変更する場合は、ここを編集します。
======================================== */
:root {
  --color-ink: #263238;
  --color-text: #4c585b;
  --color-muted: #718084;
  --color-line: #dbe2e1;
  --color-soft: #f2f6f4;
  --color-accent: #2c8b78;
  --color-accent-dark: #226c5e;
  --color-white: #fff;
  --color-cream: #fbfcfa;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max-width: 1120px;
  --shadow-soft: 0 16px 40px rgba(33, 55, 55, .08);
}

/* リセットと基本設定 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-text); background: var(--color-cream); font-family: var(--font-base); font-size: 16px; line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #9bd9cb; outline-offset: 4px; }

.container { width: min(100% - 48px, var(--max-width)); margin-inline: auto; }
.narrow-container { max-width: 860px; }
.section { padding: 112px 0; }
.section--soft { background: var(--color-soft); }
.eyebrow { margin: 0 0 14px; color: var(--color-accent-dark); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--color-ink); line-height: 1.45; letter-spacing: .02em; }
h1 { margin-bottom: 24px; font-size: clamp(2.15rem, 4.4vw, 4rem); font-weight: 700; }
h1 span { color: var(--color-accent-dark); }
h2 { margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }
h3 { margin-bottom: 10px; font-size: 1.2rem; }
.lead { max-width: 560px; margin-bottom: 28px; font-size: 1.05rem; }

/* ヘッダー */
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(219, 226, 225, .8); background: rgba(251, 252, 250, .94); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { color: var(--color-ink); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.logo span { color: var(--color-accent-dark); }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .86rem; font-weight: 700; }
.site-nav a:not(.button):hover, .footer-links a:hover, .text-link:hover { color: var(--color-accent-dark); }
.menu-button { display: none; border: 0; background: transparent; color: var(--color-ink); cursor: pointer; }
.menu-button__text { margin-right: 8px; font-size: .75rem; }
.menu-button__icon { display: inline-grid; gap: 4px; width: 22px; vertical-align: middle; }
.menu-button__icon span { display: block; height: 2px; background: currentColor; }

/* ボタン */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border: 1px solid var(--color-accent); border-radius: 999px; color: var(--color-white); background: var(--color-accent); box-shadow: 0 8px 18px rgba(44, 139, 120, .2); font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.button--small { min-height: 40px; padding: 8px 17px; font-size: .8rem; }
.button--light { border-color: var(--color-white); color: var(--color-accent-dark); background: var(--color-white); box-shadow: none; }
.button--light:hover { color: var(--color-white); background: var(--color-accent-dark); }
.button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.text-link { color: var(--color-accent-dark); font-weight: 700; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* ファーストビュー */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(560px, 82vh, 820px); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(35, 130, 110, .88) 0%, rgba(44, 139, 120, .68) 38%, rgba(44, 139, 120, .18) 68%, rgba(44, 139, 120, 0) 85%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 96px 0; }
.hero-copy { max-width: 620px; margin-left: clamp(4px, 5vw, 72px); }
.hero-copy .eyebrow { color: #bfe9db; }
.hero-copy h1 { color: var(--color-white); }
.hero-copy h1 span { color: #9be0cb; }
.hero-copy .lead { color: rgba(255, 255, 255, .92); }
.hero-copy .text-link { color: #bfe9db; }
.hero-copy .text-link:hover { color: var(--color-white); }
.hero-note { margin: 18px 0 0; color: rgba(255, 255, 255, .72); font-size: .82rem; }
.image-frame { overflow: hidden; border-radius: 20px; background: var(--color-white); }

/* 悩み */
.section-heading { max-width: 650px; margin-bottom: 52px; }
.section-heading > p:last-child { margin-bottom: 0; }
.section-heading--center { margin-inline: auto; text-align: center; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.problem-item { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-white); }
.problem-item span { color: var(--color-accent); font-size: .78rem; font-weight: 700; }
.problem-item p { margin: 0; color: var(--color-ink); font-weight: 700; }

/* サービス */
.service-feature { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; margin-bottom: 56px; }
.service-feature__image { box-shadow: var(--shadow-soft); }
.service-feature__image img { width: 100%; aspect-ratio: 1.82; object-fit: cover; }
.number-label, .case-card__tag { margin-bottom: 12px; color: var(--color-accent-dark); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.service-feature__copy p:last-child { margin-bottom: 0; }
.service-list, .reason-grid, .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .reason-card { padding: 28px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-white); }
.service-card__number { display: inline-block; margin-bottom: 30px; color: var(--color-accent); font-size: .85rem; font-weight: 700; }
.service-card p, .reason-card p { margin-bottom: 0; font-size: .92rem; }

/* 強み */
.reason-card { border: 0; box-shadow: var(--shadow-soft); }
.reason-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; color: var(--color-white); background: var(--color-accent); font-size: .85rem; font-weight: 700; }

/* ご利用の流れ */
.flow-list { margin: 0; padding: 0; list-style: none; }
.flow-list li { display: grid; grid-template-columns: 72px 1fr; gap: 24px; position: relative; padding: 0 0 28px; }
.flow-list li:not(:last-child)::after { position: absolute; top: 52px; bottom: 0; left: 35px; width: 1px; background: var(--color-line); content: ""; }
.flow-number { z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--color-accent); border-radius: 50%; color: var(--color-accent-dark); background: var(--color-cream); font-weight: 700; }
.flow-list h3 { margin: 10px 0 4px; }
.flow-list p { margin: 0; font-size: .92rem; }

/* 事例 */
.case-card { overflow: hidden; }
.case-card__image { margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.case-card__image img { width: 100%; aspect-ratio: 1.75; object-fit: cover; }
.case-card__tag { margin-bottom: 4px; }
.case-card h3 { font-size: 1.05rem; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-layout .section-heading { margin-bottom: 0; }
.faq-list details { border-top: 1px solid var(--color-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--color-line); }
.faq-list summary { position: relative; padding: 20px 38px 20px 0; color: var(--color-ink); cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 21px; right: 4px; color: var(--color-accent); content: "+"; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 38px 20px 0; color: var(--color-muted); font-size: .9rem; }

/* 問い合わせ */
.contact { color: rgba(255, 255, 255, .86); background: var(--color-accent-dark); text-align: center; }
.contact-inner { max-width: 760px; }
.contact h2 { color: var(--color-white); }
.contact .eyebrow { color: #b9e5da; }
.contact .button { margin-top: 14px; }
.contact-note { margin: 18px 0 0; color: rgba(255, 255, 255, .65); font-size: .75rem; }

/* フッター */
.site-footer { padding: 42px 0 20px; color: var(--color-muted); background: #eaf1ee; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.logo--footer { color: var(--color-ink); }
.footer-inner p { margin: 10px 0 0; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: start; font-size: .82rem; }
.copyright { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.copyright small { font-size: .72rem; }
.mobile-cta { display: none; }
.skip-link { position: absolute; top: -50px; left: 16px; z-index: 20; padding: 8px 12px; color: var(--color-white); background: var(--color-ink); }
.skip-link:focus { top: 10px; }

/* タブレット・スマホ対応 */
@media (max-width: 840px) {
  .section { padding: 80px 0; }
  .service-feature, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .service-feature__copy { max-width: 620px; }
  .faq-layout { gap: 36px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .container { width: min(100% - 36px, var(--max-width)); }
  .section { padding: 68px 0; }
  .site-header { min-height: 64px; }
  .header-inner { min-height: 64px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; right: 18px; left: 18px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-white); box-shadow: var(--shadow-soft); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .site-nav .button { margin-top: 6px; }
  .hero { align-items: flex-end; min-height: clamp(480px, 92vh, 680px); }
  .hero-scrim { background: linear-gradient(180deg, rgba(44, 139, 120, .3) 0%, rgba(35, 130, 110, .82) 62%, rgba(30, 110, 93, .9) 100%); }
  .hero-inner { padding: 56px 0 48px; }
  .hero-copy { max-width: none; }
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .lead { font-size: .98rem; }
  .button-group { align-items: stretch; flex-direction: column; }
  .button-group .button { width: 100%; }
  .button-group .text-link { padding: 6px 0; text-align: center; }
  .problem-grid, .service-list, .reason-grid, .case-grid { grid-template-columns: 1fr; }
  .problem-grid { gap: 10px; }
  .problem-item { padding: 16px; }
  .service-card, .reason-card { padding: 24px; }
  .service-card__number { margin-bottom: 20px; }
  .flow-list li { grid-template-columns: 54px 1fr; gap: 16px; }
  .flow-list li:not(:last-child)::after { left: 26px; }
  .flow-number { width: 54px; height: 54px; font-size: .78rem; }
  .flow-list h3 { margin-top: 3px; font-size: 1.05rem; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 8px 16px; }
  .mobile-cta { position: fixed; z-index: 9; right: 14px; bottom: 14px; left: 14px; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; color: var(--color-white); background: var(--color-accent); box-shadow: 0 8px 24px rgba(31, 67, 60, .3); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
