/* =====================================================================
   design tokens（ブランドガイドライン v1.0 と同期）
   ===================================================================== */
:root {
  --color-primary: #1B998B;       /* 見出し・アイコン・ボーダー等の大きめ要素 */
  --color-primary-text: #0F6E63;  /* 本文リンク等の小さめテキスト（AA適合） */
  --color-secondary: #FFFFFF;
  --color-accent: #FFC857;        /* CTAボタン背景専用。テキスト色には使わない */
  --color-accent-text: #0D3B36;
  --color-neutral: #F7F9F9;
  --color-primary-tint: #EFF7F6;  /* ティールをごく薄くした背景用（最重要セクションの強調用） */
  --color-body-text: #333333;

  --font-heading: "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-number: "Inter", sans-serif;

  --container-width: 1080px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 2px 10px rgba(15, 110, 99, 0.07);
  --shadow-hover: 0 6px 20px rgba(15, 110, 99, 0.12);
}

/* =====================================================================
   reset / base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

html {
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-body-text);
  line-height: 1.7;
  background: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  text-align: center;
  margin-bottom: 1em;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 0.65em auto 0;
  background: var(--color-accent);
  border-radius: 2px;
}

/* 大きな区切り以外の見出しは左揃え・下線なしにして、中央揃え+黄色下線の"型"を単調にしない */
h2.h2-left {
  text-align: left;
}

h2.h2-left::after {
  display: none;
}

/* h3は大きな文字の基準(18.66px)未満のため、AA(4.5:1)を満たす濃色版を使う */
h3 {
  font-size: 1.15rem;
  color: var(--color-primary-text);
}

p { margin: 0 0 1em; }

a { color: var(--color-primary-text); }

img, .placeholder-image { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

/* セクションごとに意図的に背景を使い分け、重要な箇所(対応できること)を自然に強調する */
.problems,
.plans,
.faq {
  background: var(--color-neutral);
}

.works {
  background: var(--color-primary-tint);
}

/* =====================================================================
   buttons
   ===================================================================== */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  min-height: 44px;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(255, 200, 87, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #ffbd3d;
  box-shadow: 0 5px 14px rgba(255, 200, 87, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg { padding: 1.15rem 2.75rem; font-size: 1.05rem; }
.btn-small { padding: 0.6rem 1.35rem; font-size: 0.9rem; box-shadow: none; }

/* =====================================================================
   header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-neutral);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a:not(.btn-primary) {
  text-decoration: none;
  color: var(--color-body-text);
  transition: color 0.15s ease;
}

.primary-nav a:not(.btn-primary):hover,
.primary-nav a:not(.btn-primary):focus-visible {
  color: var(--color-primary-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
}

/* =====================================================================
   hero
   ===================================================================== */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary-tint);
  color: var(--color-primary-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-text h1 {
  margin-bottom: 0.5em;
}

.no-break {
  white-space: nowrap;
}

.hero .sub {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 2rem;
  color: var(--color-body-text);
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================================================================
   profile
   ===================================================================== */
.profile-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.25rem;
  align-items: center;
}

.profile-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.profile-text h2 {
  text-align: left;
}

.profile-text h2::after {
  margin-left: 0;
}

.profile-text .profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-text);
  margin-top: -0.5rem;
  margin-bottom: 0.25rem;
}

.profile-text .profile-title {
  font-size: 0.95rem;
  color: #6b7573;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.profile-text p {
  max-width: 34rem;
  line-height: 1.9;
  margin-bottom: 1.75em;
}

/* =====================================================================
   placeholder box（実データ未確定の箇所）
   ===================================================================== */
.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--color-neutral),
    var(--color-neutral) 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  border: 1px dashed #b9c2c1;
  border-radius: var(--radius);
  color: #6b7573;
  font-size: 0.9rem;
  min-height: 160px;
  text-align: center;
  padding: 1rem;
}

/* =====================================================================
   problems
   ===================================================================== */
.problems ul {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.problems li {
  background: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

/* =====================================================================
   card grid（選ばれる理由・サービス）
   ===================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--color-secondary);
  border: 1px solid rgba(15, 110, 99, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 110, 99, 0.18);
}

.card h3 {
  margin-bottom: 0.6em;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* ---- 選ばれる理由：静かな価値観カード。上部に細いアクセントラインを添える ---- */
.reasons .card {
  border-top: 3px solid var(--color-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---- こんな形でご依頼いただけます：手順ではなく選択肢なので番号は付けない。AI/Webの2グループで見せる ---- */
.plans .card {
  border: 1px solid rgba(15, 110, 99, 0.15);
  border-radius: var(--radius-lg);
}

/* =====================================================================
   plans（ご依頼の形）
   ===================================================================== */
.plans-intro {
  max-width: 560px;
  margin: 0 0 1rem;
}

.plans-note {
  color: #6b7573;
  max-width: 560px;
  margin: 0 0 2.5rem;
}

.plans-group {
  margin-bottom: 2.5rem;
}

.plans-group:last-child {
  margin-bottom: 0;
}

.plans-group-label {
  display: inline-block;
  background: var(--color-primary-tint);
  color: var(--color-primary-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* =====================================================================
   pillars（2本柱：AI活用支援 / HP・LP制作）
   ===================================================================== */
.pillars .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillars .card {
  border-top: 3px solid var(--color-primary);
  padding: 2.75rem 2rem;
}

.pillars .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.pillars .card h3 {
  font-size: 1.35rem;
}

/* =====================================================================
   what-web（HP・LP制作でできること：アイコン＋テキスト6項目）
   ===================================================================== */
.what-web .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.what-web .card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

/* カード+枠+影の"型"が続くと単調になるため、ここだけ枠なし・アイコン+テキストの軽い表現にする */
.what-web .card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0.5rem;
}

/* =====================================================================
   works（対応できること：AIエージェント紹介）
   ===================================================================== */
.works-intro {
  max-width: 560px;
  margin: 0 0 2.5rem;
}

.agent-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.agent-banner {
  margin: 0;
  background: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agent-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.agent-banner--more {
  display: none;
}

.agent-banner-grid.is-expanded .agent-banner--more {
  display: block;
}

.works-more-note {
  text-align: center;
  color: #6b7573;
  max-width: 560px;
  margin: 2rem auto 0;
}

.works-more-toggle {
  display: block;
  margin: 1.25rem auto 0;
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-text);
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.works-more-toggle:hover {
  background-color: var(--color-primary-tint);
}

/* PCでは3列にして一覧性を高め、カタログのように縦長にならないようにする */
@media (min-width: 861px) {
  .agent-banner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.agent-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================================================================
   pricing flow
   ===================================================================== */
.flow-steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-steps li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-secondary);
  border: 1px solid rgba(15, 110, 99, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.flow-step-number {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-number);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-text h3 {
  margin: 0 0 0.4rem;
}

.flow-step-text p {
  margin: 0;
}

/* =====================================================================
   faq
   ===================================================================== */
.faq details {
  max-width: 720px;
  margin: 0 auto 0.85rem;
  background: var(--color-secondary);
  border: 1px solid rgba(15, 110, 99, 0.1);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.faq details:hover {
  border-color: rgba(15, 110, 99, 0.25);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  font-weight: 700;
  color: var(--color-primary-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-neutral);
}

/* =====================================================================
   final CTA
   ===================================================================== */
.final-cta {
  background: var(--color-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ---- ロゴのリングをモチーフにした控えめな背景装飾。"大きな区切り"のセクションだけに絞って使う ---- */
.section-ring-decor {
  position: absolute;
  width: clamp(280px, 34vw, 460px);
  height: clamp(280px, 34vw, 460px);
  pointer-events: none;
  z-index: 0;
}

.section-ring-decor--right {
  top: -12%;
  right: -8%;
  color: var(--color-primary);
  opacity: 0.22;
}

.section-ring-decor--left {
  bottom: -14%;
  left: -8%;
  color: var(--color-secondary);
  opacity: 0.3;
}

.pillars {
  position: relative;
  overflow: hidden;
}

.pillars .container,
.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--color-secondary);
}

/* 白文字は18.66px以上の太字にすることで、WCAGの「大きな文字」基準(コントラスト比3:1)を満たす */
.final-cta p {
  color: var(--color-secondary);
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* 白文字だと背景(--color-primary)とのコントラスト比が3.51:1までしか出せずAA未達のため、
   白背景の小さなバッジにして濃色テキストで表示する */
.cta-note {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary-text);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* =====================================================================
   contact
   ===================================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  text-align: left;
}

.contact-info h2::after,
.contact-form h2::after {
  margin-left: 0;
}

.contact-info dl {
  margin: 0;
}

.contact-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-neutral);
}

.contact-row dt {
  font-weight: 700;
  color: var(--color-primary-text);
  font-size: 0.9rem;
}

.contact-row dd {
  margin: 0.25rem 0 0;
}

.sns-links {
  display: flex;
  gap: 1rem;
}

.contact-form {
  background: var(--color-secondary);
  border: 1px solid rgba(15, 110, 99, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-text);
}

.form-field input,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 0.95rem;
  border: 1px solid #c7d1cf;
  border-radius: 10px;
  background: var(--color-secondary);
  color: var(--color-body-text);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.contact-form .btn-primary {
  border: none;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: #6b7573;
}

/* =====================================================================
   mobile sticky CTA（スマホ表示のみ、画面下部に常時表示）
   ===================================================================== */
.mobile-sticky-cta {
  display: none;
}

/* =====================================================================
   footer
   ===================================================================== */
.site-footer {
  background: var(--color-neutral);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0; }

.footer-inner nav a {
  color: var(--color-body-text);
  text-decoration: none;
  margin-left: 1rem;
}

/* =====================================================================
   responsive（モバイルファースト方針のブレークポイント）
   ===================================================================== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .profile-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .profile-text h2 {
    text-align: center;
  }

  .profile-text h2::after {
    margin-left: auto;
  }

  .profile-text p {
    max-width: none;
  }

  .card-grid,
  .pillars .card-grid,
  .what-web .card-grid {
    grid-template-columns: 1fr;
  }

  .agent-banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* 狭い画面では見出しの文字と重なってしまうため非表示にする */
  .section-ring-decor {
    display: none;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-info h2,
  .contact-form h2 {
    text-align: center;
  }

  .contact-info h2::after,
  .contact-form h2::after {
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-neutral);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--color-secondary);
    border-top: 1px solid var(--color-neutral);
    padding: 0.75rem 1.25rem;
    text-align: center;
  }

  .mobile-sticky-cta .btn-primary {
    width: 100%;
  }

  main {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 480px) {
  section { padding: 3.5rem 0; }

  .agent-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
