/* シクミヤ LP — style.css */
/* カラートークン */
:root {
  --ink:    #17263F;
  --paper:  #E8E7E0;
  --card:   #F7F6F1;
  --brass:  #C0872B;       /* 装飾専用（歯車・罫線）テキスト使用禁止 */
  --brass-deep: #7A5316;   /* テキスト/フォーカス用 5.5:1 on paper */
  --brass-press: #97671C;
  --ink-soft: #46536B;     /* 補助テキスト用 6.25:1 on paper */
  --grid:   #C6CEDA;
  --go:     #2E7D5B;
  --go-press: #225e44;
  --radius: 6px;
  --max-w:  1080px;
  --gap:    2rem;
}

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
}

/* タイポ */
h1, h2, h3, h4 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.mono {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
}

/* レイアウト共通 */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 2.5rem;
}

/* カード */
.card {
  background: var(--card);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 2rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--brass-deep);
  outline-offset: 3px;
}

.btn-go {
  background: var(--go);
  color: #fff;
}
.btn-go:hover { background: var(--go-press); }
.btn-go:active { transform: scale(0.98); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--grid);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo span {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--brass-deep);
  margin-left: 0.5rem;
  letter-spacing: 0.08em;
}

.header-cta {
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
}

/* ============================================================
   ヒーロー
   ============================================================ */
#hero {
  padding: 5rem 0 4rem;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--brass-deep);
  margin-bottom: 1rem;
}

.hero-headline {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.nowrap-unit {
  display: inline-block;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero-trust {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  border-left: 2px solid var(--brass);
  padding-left: 0.75rem;
}

.hero-cta-area {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 歯車SVGラッパー */
.hero-blueprint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blueprint svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* 歯車アニメーション */
@media (prefers-reduced-motion: no-preference) {
  .gear-a { animation: spin-cw  8s linear infinite; transform-origin: 120px 140px; }
  .gear-b { animation: spin-ccw 5.33s linear infinite; transform-origin: 248px 108px; }
  .gear-c { animation: spin-cw  6.4s linear infinite; transform-origin: 376px 140px; }
  .gear-d { animation: spin-ccw 10.67s linear infinite; transform-origin: 248px 248px; }
}

@keyframes spin-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* ============================================================
   悩み
   ============================================================ */
#pain {
  background: transparent;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pain-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pain-icon {
  font-size: 2rem;
  line-height: 1;
}

.pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.pain-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* ============================================================
   解き方
   ============================================================ */
#solution {
  background: transparent;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.solution-card {
  position: relative;
  padding-top: 2.5rem;
}

.solution-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brass-deep);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.solution-card h3 {
  margin-bottom: 0.75rem;
}

.solution-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.85;
}

/* ============================================================
   料金
   ============================================================ */
#pricing {
  background: transparent;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-badge {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border: 1px solid var(--brass);
  border-radius: 2px;
  padding: 0.1em 0.5em;
  width: fit-content;
}

.plan-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
}

.plan-price {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.plan-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.plan-duration {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--grid);
  margin: 0.25rem 0;
}

.plan-scope {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.85;
}

.plan-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: auto;
}

.pricing-note {
  background: var(--card);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* お取引の前提テーブル */
.terms-block {
  margin-top: 2.5rem;
}

.terms-block h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grid);
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.terms-table th,
.terms-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--grid);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.terms-table th {
  font-weight: 700;
  width: 8em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.8;
}

.terms-table tr:last-child th,
.terms-table tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   進め方
   ============================================================ */
#steps {
  background: transparent;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
  display: block;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* ============================================================
   実績
   ============================================================ */
#works {
  background: transparent;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
  margin-bottom: 0.5rem;
}

.work-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.work-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  opacity: 0.8;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  background: transparent;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details.faq-item {
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

details.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  user-select: none;
}

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

details.faq-item summary::after {
  content: "+";
  font-family: 'Roboto Mono', monospace;
  font-size: 1.2rem;
  color: var(--brass-deep);
  flex-shrink: 0;
  transition: transform 0.2s;
}

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

details.faq-item summary:focus-visible {
  outline: 3px solid var(--brass-deep);
  outline-offset: -3px;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.85;
  border-top: 1px solid var(--grid);
  padding-top: 1rem;
}

/* ============================================================
   問い合わせフォーム
   ============================================================ */
#contact {
  background: transparent;
}

.contact-lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.contact-privacy-note {
  font-size: 0.8rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}

.contact-privacy-note a,
.privacy-block a,
#privacy a {
  color: var(--brass-deep);
  text-decoration: underline;
  /* タップ領域44px確保（レイアウト不変の当たり判定拡張） */
  padding: 12px 2px;
  margin: -12px -2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field label .req {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  color: #c0392b;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.field label .opt {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-left: 0.35rem;
}

.field input,
.field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--card);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px rgba(192, 135, 43, 0.15);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--brass-deep);
  outline-offset: 2px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  display: none;
}

.field-error.visible { display: block; }

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-submit-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-submit {
  min-width: 200px;
  min-height: 52px;
  align-self: flex-start;
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.form-status.success {
  display: block;
  background: #eaf5ee;
  border: 1px solid #2E7D5B;
  color: #1a4d35;
}

.form-status.error {
  display: block;
  background: #fdf0ef;
  border: 1px solid #c0392b;
  color: #7b1e1e;
}

.form-status a {
  color: inherit;
  font-weight: 700;
}

/* ============================================================
   プライバシーポリシー
   ============================================================ */
#privacy {
  background: transparent;
}

.privacy-content {
  font-size: 0.875rem;
  line-height: 1.85;
}

.privacy-content h3 {
  font-size: 0.95rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}

.privacy-content p {
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.privacy-content ul li {
  margin-bottom: 0.25rem;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-biz {
  font-size: 0.875rem;
  line-height: 1.9;
  opacity: 0.85;
}

.footer-biz strong {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  opacity: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  opacity: 0.78; /* 濃紺上 約7:1 */
  text-decoration: none;
}

.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-links a:focus-visible {
  outline: 2px solid var(--brass); /* 濃紺フッター上はbrassが4.86:1 */
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-contract {
  font-size: 0.8rem;
  opacity: 0.78;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
}

.footer-copy {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-blueprint {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .pain-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .works-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  /* ヘッダー1行維持（390px幅対策） */
  .logo span { display: none; }
  .header-cta { padding: 0 1rem; font-size: 0.8rem; }
  .steps-list { grid-template-columns: 1fr; }
  .terms-table th { width: auto; white-space: normal; }
  .terms-table th, .terms-table td { display: block; padding: 0.5rem 0.75rem; }
  .terms-table th { opacity: 1; font-weight: 700; padding-bottom: 0; }
}
