/* ============================================================
   Umigame サイト style.css
   mite-hp.jp と同じデザイン言語（配色・ボタン・カード・ヘッダー）に
   合わせつつ、CSP対応のためインラインstyle・外部画像ホットリンクは
   使わず、すべて外部CSS＋インラインSVG／CSSのみで表現する。
   ============================================================ */

:root {
  --c-primary:       #0d9488;
  --c-primary-dark:  #0f766e;
  --c-primary-light: #ccfbf1;
  --c-accent:        #f59e0b;
  --c-text:          #0f172a;
  --c-text-mid:      #475569;
  --c-text-light:    #94a3b8;
  --c-bg:            #ffffff;
  --c-bg-light:      #f8fafc;
  --c-bg-teal:       #f0fdfa;
  --c-border:        #e2e8f0;
  --radius:          12px;
  --shadow:          0 4px 24px rgba(0, 0, 0, .08);
  --shadow-sm:       0 2px 8px rgba(0, 0, 0, .06);
  --font:            "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h:        64px;
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
ul, ol { list-style: none; }

/* ---------- アクセシビリティ ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 200;
  background: var(--c-primary); color: #fff;
  padding: .6em 1.2em; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 5%;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .45rem; color: var(--c-primary); font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; }
.brand svg { width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
.global-nav ul { display: flex; gap: 1.6rem; align-items: center; }
.global-nav a { color: var(--c-text-mid); font-size: .88rem; font-weight: 500; transition: color .2s; }
.global-nav a:hover { color: var(--c-primary); opacity: 1; }
.nav-cta {
  background: var(--c-primary); color: #fff !important;
  padding: .5em 1.2em; border-radius: 999px; font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--c-primary-dark); opacity: 1; }
.nav-toggle { display: none; }

/* ---------- ボタン ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .9em 1.9em; border-radius: 999px;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 20px rgba(13, 148, 136, .3); }
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); opacity: 1; }
.btn-secondary { background: transparent; color: var(--c-text-mid); border: 2px solid var(--c-border); }
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); opacity: 1; }
.btn-block { width: 100%; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-bg-teal) 0%, #ffffff 60%);
  padding: 4.5rem 5%;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.4;
  letter-spacing: -.02em; margin-bottom: 1.2rem;
}
.hero-title em { font-style: normal; color: var(--c-primary); }
.hero-sub { font-size: 1.02rem; color: var(--c-text-mid); line-height: 1.85; margin-bottom: 2.2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* BEFORE/AFTER 比較ビジュアル */
.compare-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; }
.compare-card { border-radius: var(--radius); overflow: hidden; }
.compare-before { border: 2px solid var(--c-border); background: var(--c-bg-light); opacity: .9; }
.compare-after { border: 2px solid var(--c-primary); background: #fff; box-shadow: 0 8px 32px rgba(13, 148, 136, .18); }
.compare-head { padding: .5rem .75rem; display: flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.compare-before .compare-head { background: #eef2f7; color: var(--c-text-light); }
.compare-after .compare-head { background: var(--c-primary); color: #fff; }
.compare-body { padding: .9rem .8rem 1.1rem; }
.compare-biz { font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.compare-note { font-size: .68rem; margin-bottom: .7rem; }
.compare-note-before { color: var(--c-text-light); }
.compare-note-after { color: var(--c-primary-dark); font-weight: 700; }
.compare-list { margin-bottom: .7rem; }
.compare-list li { font-size: .72rem; padding-left: 1.1em; position: relative; margin-bottom: .3rem; }
.compare-list-bad::before { content: "×"; position: absolute; left: 0; color: #ef4444; font-weight: 900; }
.compare-list-bad { color: var(--c-text-light); }
.compare-list-good::before { content: "✓"; position: absolute; left: 0; color: var(--c-primary); font-weight: 900; }
.compare-list-good { color: var(--c-text-mid); }
.compare-chip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .65rem; font-weight: 700; }
.compare-chip-bad { background: #fee2e2; color: #dc2626; }
.compare-chip-good { background: var(--c-primary-light); color: var(--c-primary-dark); }
.compare-arrow { font-size: 1.4rem; color: var(--c-primary); font-weight: 900; text-align: center; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .compare-wrap { display: none; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 5.5rem 5%; }
.section-alt { background: var(--c-bg-light); }
.section-points { background: var(--c-bg-teal); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-narrow { max-width: 720px; }
.section-label {
  display: inline-block; background: var(--c-primary-light); color: var(--c-primary-dark);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: .3em .9em; border-radius: 999px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; line-height: 1.5; margin-bottom: .8rem; }
.section-sub { color: var(--c-text-mid); margin-bottom: 2.5rem; max-width: 560px; }
.section-body { color: var(--c-text-mid); font-size: .95rem; line-height: 1.85; margin-bottom: 1.2rem; }
.section-body:last-child { margin-bottom: 0; }
.section-note { margin-top: 1.4rem; font-size: .78rem; color: var(--c-text-light); }

/* ---------- 統計カード（なぜ今MEOなのか） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.stat-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-size: 2.1rem; font-weight: 900; color: var(--c-primary); letter-spacing: -.02em; margin-bottom: .6rem; }
.stat-label { font-size: .85rem; color: var(--c-text-mid); line-height: 1.65; }
.stat-source { margin-top: .9rem; font-size: .7rem; color: var(--c-text-light); }
.stat-source a { color: var(--c-text-light); text-decoration: underline; }

/* ---------- レポート例 ---------- */
.report-subhead { font-size: 1rem; font-weight: 700; margin: 2.2rem 0 1rem; }
.report-subhead:first-of-type { margin-top: 2.5rem; }
.report-table { width: 100%; max-width: 720px; border-collapse: collapse; margin-bottom: 1rem; font-size: .88rem; background: var(--c-bg); }
.report-table th, .report-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--c-border); }
.report-table th { color: var(--c-primary-dark); font-weight: 700; font-size: .8rem; background: var(--c-primary-light); }
.report-ok { color: var(--c-primary); font-weight: 900; }
.report-warn { color: var(--c-accent); font-weight: 900; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- アイコンバッジ ---------- */
.icon-badge {
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--c-bg-teal); color: var(--c-primary);
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* ---------- カード（お悩み・サービス・診断） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card { background: var(--c-bg); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.card-body { font-size: .9rem; color: var(--c-text-mid); line-height: 1.7; }

/* ---------- ご相談の流れ ---------- */
.service-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; position: relative; }
.service-flow::before {
  content: ""; position: absolute; top: 1.5rem; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary), var(--c-primary-light));
}
.step-card { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-num {
  width: 3rem; height: 3rem; background: var(--c-primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
  margin: 0 auto 1rem; box-shadow: 0 4px 16px rgba(13, 148, 136, .3);
}
.step-title { font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.step-desc { font-size: .85rem; color: var(--c-text-mid); line-height: 1.7; }
@media (max-width: 900px) { .service-flow { grid-template-columns: repeat(2, 1fr); } .service-flow::before { display: none; } }
@media (max-width: 480px) { .service-flow { grid-template-columns: 1fr; } }

/* ---------- 選ばれる理由 ---------- */
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.point-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--c-border); }
.point-num { font-size: .8rem; font-weight: 700; color: var(--c-primary); letter-spacing: .08em; margin-bottom: .5rem; }
.point-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.point-desc { font-size: .875rem; color: var(--c-text-mid); line-height: 1.7; }

/* ---------- 診断チェックリスト ---------- */
.check-list { margin-top: 2.5rem; max-width: 720px; }
.check-list li { position: relative; padding: 1.1rem 0 1.1rem 2rem; border-bottom: 1px solid var(--c-border); display: flex; flex-direction: column; gap: .25rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1.1rem; color: var(--c-primary); font-weight: 900; font-size: 1.05rem; }
.check-list li strong { font-size: .95rem; font-weight: 700; }
.check-list li span { font-size: .85rem; color: var(--c-text-mid); }

/* ---------- 診断の補足 ---------- */
.diagnosis-note { margin-top: 2.2rem; padding: 1.2rem 1.4rem; background: var(--c-bg-teal); border-left: 4px solid var(--c-primary); border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; color: var(--c-text-mid); }

/* ---------- 対応業種タグ ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.tag { background: #fff; border: 1px solid var(--c-border); border-radius: 999px; padding: .6em 1.2em; font-size: .86rem; font-weight: 700; color: var(--c-text-mid); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.5rem; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: .95rem; font-weight: 700; color: var(--c-text);
}
.faq-q:hover { color: var(--c-primary); }
.faq-q-text { flex: 1; line-height: 1.6; }
.faq-q-arrow { flex-shrink: 0; font-size: .7rem; color: var(--c-text-light); transition: transform .25s; margin-top: .3rem; }
.faq-item.is-open .faq-q-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 1.4rem; font-size: .9rem; color: var(--c-text-mid); line-height: 1.85; max-width: 640px; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- お問い合わせ ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; margin-top: 2.5rem; }
.contact-info-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info-text { font-size: .9rem; color: var(--c-text-mid); line-height: 1.85; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

#contact-form { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row-item, .form-group { margin-bottom: 1.3rem; }
.form-group label, .form-row-item label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; }
.req { background: #dc2626; color: #fff; font-size: .65rem; font-weight: 700; padding: .15em .6em; border-radius: 4px; margin-left: .5em; vertical-align: middle; }
.form-row-item input[type="text"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%; padding: .75em 1em;
  border: 1px solid var(--c-border); border-radius: 8px;
  font-family: var(--font); font-size: .95rem; background: var(--c-bg); color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-row-item input:focus, .form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-consent label { font-weight: 400; font-size: .88rem; display: flex; align-items: flex-start; gap: .5em; flex-wrap: wrap; }
.form-error { color: #dc2626; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-text); color: rgba(255, 255, 255, .7); padding: 3rem 5%; font-size: .85rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.footer-brand { color: #fff; font-size: 1.1rem; font-weight: 900; margin-bottom: .3rem; }
.footer-copy { color: rgba(255, 255, 255, .4); font-size: .8rem; margin-top: .5rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .65); font-size: .85rem; transition: color .2s; }
.footer-nav a:hover { color: #fff; opacity: 1; }

/* ---------- サブページ（privacy / thanks / 404） ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 3rem 5% 5rem; }
.legal h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 2rem; }
.legal h2 { font-size: 1.1rem; font-weight: 700; margin: 2.2rem 0 .8rem; }
.legal p, .legal li { font-size: .95rem; color: var(--c-text-mid); }
.legal ul { padding-left: 1.4em; }
.legal ul li { list-style: disc; margin-bottom: .3em; }
.legal-date { margin-top: 3rem; font-size: .85rem; }
.legal-back { margin-top: 2.5rem; }

.center-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 5% 4rem; }
.center-page h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 1rem; }
.center-page p { color: var(--c-text-mid); margin-bottom: 2rem; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .card-grid, .points-grid { grid-template-columns: 1fr; }

  /* SPメニュー */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: ""; display: block; width: 22px; height: 2px;
    background: var(--c-text); position: relative; transition: transform .25s, opacity .25s;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after  { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    padding: 1rem 5% 1.6rem;
    transform: translateY(-110%); transition: transform .25s ease;
    visibility: hidden;
  }
  .global-nav.is-open { transform: none; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .global-nav li { border-bottom: 1px solid var(--c-border); }
  .global-nav a { display: block; padding: .9em 0; font-size: 1rem; }
  .nav-cta { border-radius: var(--radius); text-align: center; margin-top: 1rem; }
}
