/* =========================================================
   Matane 公式サイト共通スタイル
   配色: ロイヤルブルー #1D50A2(アクセントはこの一色) / 白 / #F7F8FA / 罫線 #E5E8EC
   フォント: Noto Sans JP のみ(見出しは700)
   ========================================================= */

:root {
  --primary: #1D50A2;
  --primary-dark: #153B7A;
  --white: #FFFFFF;
  --bg-alt: #F7F8FA;
  --line: #E5E8EC;
  --ink: #191C22;
  --muted: #6B7580;
  --num-tint: #E8ECF2;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 0.8em;
}

p {
  margin: 0 0 1.2em;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.btn-header {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--primary-dark);
}

/* ---------- Section base ---------- */

section {
  padding: 120px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.eyebrow {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 3em;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  color: var(--white);
  text-align: center;
  margin-bottom: 0.7em;
}

.hero-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.6em;
  color: rgba(255, 255, 255, 0.85);
}

.ai-mock {
  max-width: 560px;
  margin: 0 auto 2.2em;
  border: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(9, 26, 58, 0.25);
  padding: 24px;
  text-align: left;
}

.ai-mock .bubble {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 90%;
}

.ai-mock .bubble-q {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin-left: auto;
  color: var(--ink);
}

.ai-mock .bubble-a {
  background: var(--primary);
  color: var(--white);
  margin-right: auto;
}

.ai-mock .bubble-note {
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 0;
  font-size: 1rem;
}

.hero-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 0;
  margin: 0 0 2.4em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-checks li::before {
  content: "\2713";
  margin-right: 6px;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* ---------- Problem statement ---------- */

.problem .wrap {
  max-width: 720px;
}

.problem p {
  color: var(--ink);
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.card-title .bar {
  width: 4px;
  align-self: stretch;
  min-height: 1.3em;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.card-body p.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.card-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6em;
  min-height: 1.5em;
}

.service-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2.4em;
}

/* ---------- Flow (service steps) ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.flow-step {
  padding: 8px 32px;
  border-left: 1px solid var(--line);
}

.flow-step:first-child {
  border-left: none;
  padding-left: 8px;
}

.flow-num {
  font-size: 60px;
  font-weight: 700;
  color: var(--num-tint);
  line-height: 1;
  margin-bottom: 16px;
}

.flow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Promise ---------- */

.promise-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.promise-list li {
  position: relative;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 20px 24px 20px 32px;
  font-size: 0.95rem;
}

.promise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

/* ---------- Article list ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 24px;
  color: var(--ink);
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-card .article-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6em;
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.article-card .article-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.article-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- About ---------- */

.about .wrap {
  max-width: 720px;
}

.about-name {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8em;
}

.about-tagline {
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  margin: 1.6em 0;
}

.about-area {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
}

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

.faq-q-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
}

.chevron {
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
}

.faq-a {
  color: var(--muted);
  margin: 14px 0 0 44px;
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */

.contact .wrap {
  max-width: 640px;
  text-align: center;
}

.contact-box {
  border: none;
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-top: 1.6em;
}

.contact-box dl {
  margin: 0;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

.contact-box dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1em;
}

.contact-box dd {
  margin: 0.2em 0 0;
  font-size: 1rem;
}

.contact-box a {
  color: var(--primary);
}

/* ---------- Pre-footer CTA ---------- */

.precta {
  text-align: center;
}

.precta h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 0.6em;
}

.precta p {
  color: var(--muted);
  margin-bottom: 2em;
}

.btn-pill {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 15px 36px;
  border-radius: 999px;
}

.btn-pill:hover {
  background: var(--primary-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 32px 0;
}

.site-footer .wrap {
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Article page ---------- */

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2em;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
}

.article-header h1 {
  font-size: 1.7rem;
  margin-bottom: 0.3em;
}

.article-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8em;
}

.article-meta {
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-body h2 {
  font-size: 1.25rem;
  margin-top: 2em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--primary);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.9rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.article-body th {
  background: var(--bg-alt);
  font-weight: 700;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6em 0;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink);
}

.article-cta {
  margin-top: 3em;
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p {
  margin-bottom: 1em;
}

.article-signature {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }

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

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow-step {
    border-left: none;
    padding-left: 8px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .flow-step:first-child {
    border-top: none;
    padding-top: 8px;
  }

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

  .site-header .wrap {
    justify-content: center;
    text-align: center;
  }

  .header-right {
    justify-content: center;
    width: 100%;
  }

  .main-nav ul {
    justify-content: center;
  }
}
