/*
Theme Name: Cocoon Child Kokorolife LP v2
Theme URI: https://example.com/
Description: Googleガイドライン準拠・シンプルデザイン版 ココロライフ遺品整理LP
Author: Kokorolife
Template: cocoon-master
Version: 2.0.0
Text Domain: cocoon-child-kokorolife
*/

/* =============================================
   Google Core Web Vitals 対応設計
   LCP≤2.5s / INP≤200ms / CLS≤0.1 を目標
   - システムフォント優先（Noto Sans JP はオプション）
   - 画像に width/height 必須（CLS防止）
   - aspect-ratio で画像スペース確保
   - JS不使用 / 純CSS実装
   - モバイルファースト（375px基準）
   - セマンティックHTML / ARIA対応
============================================= */

/* === リセット & ベース === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
p, li { max-width: 66ch; }
h1, h2, h3, h4 { line-height: 1.25; }

/* === カラーパレット（シンプル・高コントラスト） === */
:root {
  --clr-bg:       #ffffff;
  --clr-bg-sub:   #f5f5f5;
  --clr-text:     #1a1a1a;
  --clr-muted:    #555555;
  --clr-border:   #dddddd;
  --clr-primary:  #1a5c48;   /* 緑系 */
  --clr-primary-dark: #133d30;
  --clr-accent:   #e8f2ee;   /* 薄緑 */
  --clr-white:    #ffffff;
  --max:          1100px;
  --gap:          24px;
  --radius:       8px;
}

/* === スキップリンク（アクセシビリティ） === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 16px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius);
}

/* === ユーティリティ === */
.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}
.section {
  padding: 64px 0;
}
.section--alt {
  background: var(--clr-bg-sub);
}
.label {
  display: inline-block;
  padding: 4px 10px;
  background: var(--clr-accent);
  color: var(--clr-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 10px 0 12px;
  font-weight: 800;
  color: var(--clr-text);
}
.lead {
  color: var(--clr-muted);
  font-size: 1rem;
  max-width: 56ch;
}
.note {
  font-size: 0.8125rem;
  color: var(--clr-muted);
  margin-top: 12px;
}

/* === ボタン === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-height: 48px; /* タッチターゲット */
}
.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--clr-accent);
}
.btn-tel {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
  font-size: 1.125rem;
}
.btn-tel:hover { background: #a93226; border-color: #a93226; }
:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
}

/* === ヘッダー === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.site-header__brand { line-height: 1.3; }
.site-header__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-text);
}
.site-header__sub {
  font-size: 0.75rem;
  color: var(--clr-muted);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tel-link {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === ヒーロー === */
.hero {
  padding: 56px 0 48px;
  background: var(--clr-bg-sub);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 900;
  margin: 10px 0 16px;
  max-width: 22ch;
}
.hero__copy p {
  color: var(--clr-muted);
  font-size: 1rem;
  max-width: 44ch;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  list-style: none;
  padding: 0;
}
.hero__badges li {
  padding: 6px 12px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  max-width: none;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--clr-muted);
}
/* CLS防止：ヒーロー画像のアスペクト比を確保 */
.hero__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-border);
}
.hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === グリッド === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* === カード === */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.card p, .card li {
  color: var(--clr-muted);
  font-size: 0.9375rem;
}
.card ul { padding-left: 18px; }
.card li { margin-bottom: 4px; }
.no-badge {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--clr-accent);
  color: var(--clr-primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* === スタッフカード === */
.staff-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px;
}
.staff-card__img-wrap {
  width: 100px; height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--clr-border);
}
.staff-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.staff-card__name { font-size: 1.125rem; font-weight: 800; margin-bottom: 4px; }
.staff-card__role { font-size: 0.8125rem; color: var(--clr-muted); margin-bottom: 12px; }
.staff-card__list { padding-left: 18px; color: var(--clr-muted); font-size: 0.9375rem; }
.staff-card__list li { margin-bottom: 6px; }

/* === テーブル === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-white);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9375rem;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--clr-bg-sub);
  font-weight: 700;
  white-space: nowrap;
  width: 140px;
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }

/* === 価格テーブル === */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.price-table th, .price-table td {
  padding: 12px 16px;
  border: 1px solid var(--clr-border);
  text-align: left;
}
.price-table thead th {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 700;
}
.price-table tbody tr:nth-child(even) td { background: var(--clr-bg-sub); }

/* === CTAバナー === */
.cta-block {
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.cta-block h3 { font-size: 1.375rem; margin-bottom: 10px; }
.cta-block p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.cta-block .btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.cta-block .btn-outline:hover { background: rgba(255,255,255,.15); }

/* === フロー === */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-step { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 20px 16px; }
.flow-step__no { font-size: 0.75rem; font-weight: 800; color: var(--clr-primary); letter-spacing: .06em; margin-bottom: 8px; }
.flow-step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.flow-step p { font-size: 0.875rem; color: var(--clr-muted); }

/* === お客様の声 === */
.voice {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
}
.voice strong { display: block; margin-bottom: 8px; font-size: 0.875rem; }
.voice p { color: var(--clr-muted); font-size: 0.9375rem; }

/* === エリア === */
.area-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.area-list { columns: 2; gap: 24px; padding-left: 18px; color: var(--clr-muted); font-size: 0.9375rem; }
.area-list li { margin-bottom: 4px; max-width: none; }

/* === 事業一覧 === */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 24px; }
.biz-card { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 20px; }
.biz-card h3 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.biz-card ul { padding-left: 16px; }
.biz-card li { font-size: 0.875rem; color: var(--clr-muted); margin-bottom: 4px; max-width: none; }

/* === FAQ === */
.faq-list { display: grid; gap: 10px; }
details.faq-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--clr-primary); flex-shrink: 0; }
details.faq-item[open] summary::after { content: "−"; }
.faq-answer { margin-top: 12px; color: var(--clr-muted); font-size: 0.9375rem; }

/* === お問い合わせ === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card, .form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
}
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 6px; }
.form-label .req {
  display: inline-block;
  padding: 2px 6px;
  background: #c0392b;
  color: #fff;
  font-size: 0.6875rem;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clr-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,92,72,.15);
}
textarea { min-height: 140px; resize: vertical; }

/* === フッター === */
.site-footer {
  background: #1a1a1a;
  color: #cccccc;
  padding: 40px 0;
  font-size: 0.875rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 4px; max-width: none; }
.site-footer__copy { font-size: 0.75rem; color: #888; margin-top: 16px; }

/* === モバイル固定CTA === */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(26,26,26,.96);
  padding: 10px 12px;
  display: none;
}
.mobile-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-cta .btn { font-size: 0.875rem; padding: 13px 12px; }

/* === Cocoon上書き（LP固定ページ用） === */
.lp-tpl .main, .lp-tpl .content {
  margin: 0; padding: 0; width: 100%; max-width: none;
  background: transparent; box-shadow: none; border: none;
}
.lp-tpl .sidebar,
.lp-tpl .breadcrumb,
.lp-tpl .pager-post-navi,
.lp-tpl .comment-area,
.lp-tpl .article-footer,
.lp-tpl .under-entry-content,
.lp-tpl .sns-share,
.lp-tpl .sns-follow,
.lp-tpl .post-date,
.lp-tpl .post-update,
.lp-tpl .author-info,
.lp-tpl .toc,
.lp-tpl .entry-title { display: none !important; }

/* === レスポンシブ === */
@media (max-width: 960px) {
  .hero__inner, .grid-3, .flow, .area-wrap,
  .biz-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-header__actions .btn { padding: 10px 16px; }
  .hero__img-wrap { display: none; }
}
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 80px; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 36px 0; }
  .hero__copy h1 { font-size: 1.5rem; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .area-list { columns: 1; }
  .price-table { font-size: 0.8125rem; }
  .data-table th { width: auto; display: none; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
    margin-bottom: 4px;
  }
  .staff-card { flex-direction: column; align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
