/* ==========================================================
   横浜くらしサポート - スタイルシート
   高齢の方にも読みやすいよう、文字は大きめ・コントラスト高めに設定
   ========================================================== */

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

:root {
  --color-primary: #c8784b;
  --color-primary-dark: #a35f38;
  --color-primary-light: #fbe4d2;
  --color-line: #06c755;
  --color-text: #4a3626;
  --color-text-sub: #8c7a6b;
  --color-bg: #fffaf3;
  --color-bg-alt: #f8ead9;
  --color-border: #ecdcc6;
  --color-footer: #3a2a1f;
  --radius: 18px;
  --max-width: 1080px;
  --shadow: 0 10px 26px -10px rgba(120, 72, 30, 0.22);
  --shadow-btn: 0 4px 0 var(--color-primary-dark);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 18px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  line-height: 1.5;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-only { display: none; }

/* 編集が必要な箇所を目立たせる */
.todo-placeholder {
  background: linear-gradient(transparent 60%, #f3cb84 60%);
  border-bottom: 2px dashed #c9963f;
  cursor: help;
}

/* セクション見出しの上に置く英字ラベル */
.eyebrow {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  margin: 0 0 0.6em;
}
.eyebrow-left {
  text-align: left;
}

/* ボタン共通（タクタイル・立体風） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn svg { flex: 0 0 auto; }
.btn:active {
  transform: translateY(2px);
  box-shadow: none !important;
}

.btn-large {
  padding: 1.05em 1.8em;
  font-size: 1.15rem;
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--color-primary-dark);
}
.btn-primary:hover { filter: brightness(1.04); }

.btn-line {
  background: var(--color-line);
  color: #fff;
  box-shadow: 0 4px 0 #049245;
}

.btn-outline {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  box-shadow: 0 4px 0 var(--color-border);
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}
.logo-icon {
  color: var(--color-primary);
  display: flex;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--color-primary-dark);
  margin-left: auto;
  border: 1.5px solid var(--color-primary-light);
  background: var(--color-primary-light);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}
.header-tel .tel-icon { color: var(--color-primary-dark); }
.header-tel small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-sub);
}
.header-tel strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  max-height: 0;
  overflow: hidden;
  background: #fffdf9;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}
.main-nav.open {
  max-height: 600px;
  border-top-color: var(--color-border);
}
.main-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5em 1em 1em;
}
.main-nav a {
  display: block;
  padding: 0.85em 0.5em;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.main-nav a.nav-cta {
  color: var(--color-primary-dark);
  font-weight: 800;
}

/* ==========================================================
   共通セクション
   ========================================================== */
.section {
  padding: 3.8em 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2em;
}
.section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  position: relative;
  margin-bottom: 1.4em;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 0.5em auto 0;
}
.section-title-left {
  text-align: left;
}
.section-title-left::after {
  margin: 0.5em 0 0;
}
.section-lead {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}
.section-note {
  color: var(--color-text-sub);
  font-size: 0.95rem;
}
.section-note-center {
  text-align: center;
}

/* ==========================================================
   ヒーロー
   ========================================================== */
.hero {
  background:
    linear-gradient(180deg, rgba(40, 26, 16, 0.6), rgba(40, 26, 16, 0.42) 55%, rgba(40, 26, 16, 0.72)),
    url("../images/hero-minatomirai.jpg") center 60% / cover no-repeat;
  padding: 3.2em 0 3em;
  position: relative;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2em;
  text-align: center;
}
.hero-credit {
  position: absolute;
  right: 1.2em;
  bottom: 0.6em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.hero-credit a {
  color: inherit;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  margin-bottom: 1em;
}
.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.7em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-lead {
  font-size: 1.05rem;
  margin-bottom: 1em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  max-width: 420px;
  margin: 0 auto;
}

/* ==========================================================
   選ばれる理由
   ========================================================== */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2em;
  max-width: 720px;
  margin: 0 auto;
}
.reason-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4em 1em;
  text-align: center;
  border-top: 3px solid var(--color-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.reason-card:hover {
  transform: translateY(-3px);
}
.reason-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.7em;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary-light), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.reason-icon img {
  width: 30px;
  height: 30px;
}
.reason-card h3 {
  font-size: 1rem;
}
.reason-card p {
  color: var(--color-text-sub);
  font-size: 0.98rem;
  margin: 0;
}

/* ==========================================================
   サービス・料金
   ========================================================== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4em;
  max-width: 640px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4em;
  overflow-x: auto;
}
.service-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.7em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid var(--color-primary-light);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.65em 0.4em;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}
.price-table th {
  width: 60%;
  font-weight: 600;
}
.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================
   ご利用の流れ
   ========================================================== */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}
.flow-step {
  display: flex;
  gap: 1.2em;
  position: relative;
  padding-bottom: 2em;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 3px 0 var(--color-primary-dark);
}
.flow-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}
.flow-body p {
  color: var(--color-text-sub);
  margin: 0;
}

/* ==========================================================
   よくある質問
   ========================================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1em 1.2em;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 1.6em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0.8em 0 0;
  color: var(--color-text-sub);
}

/* ==========================================================
   私について
   ========================================================== */
.about-inner {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.about-body {
  text-align: left;
}

/* ==========================================================
   お問い合わせ
   ========================================================== */
.section-contact {
  background: var(--color-bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2em;
  margin-bottom: 2.5em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6em;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease;
}
.contact-card:active { transform: scale(0.98); }
.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5em;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-qr {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.6em;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 6px;
  background: #fff;
}
.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}
.contact-note {
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8em;
  box-shadow: var(--shadow);
}
.form-row {
  margin-bottom: 1.2em;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.8em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* ==========================================================
   フッター
   ========================================================== */
.site-footer {
  background: var(--color-footer);
  color: #f4ece3;
  padding: 2.5em 0 5.5em;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2em;
  text-align: center;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.3em;
}
.footer-tel a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  font-weight: 700;
  color: #ffcda0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em 1.4em;
  margin: 1.4em 0;
}
.footer-nav a {
  text-decoration: none;
  color: #d9cfc5;
  font-size: 0.92rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: #a89c8f;
  margin: 0;
}

/* ==========================================================
   モバイル固定の電話ボタン
   ========================================================== */
.sticky-tel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1em;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

/* ==========================================================
   レスポンシブ（タブレット・PC）
   ========================================================== */
@media (max-width: 640px) {
  .sp-only { display: flex; }
  body { padding-bottom: 60px; } /* sticky-telと重ならないように */
}

@media (min-width: 641px) {
  .nav-toggle { display: none; }
  .main-nav {
    max-height: none;
    overflow: visible;
  }
  .main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.1em;
    padding: 0.4em 0.5em;
  }
  .main-nav a {
    border-bottom: none;
    padding: 0.5em 0.6em;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.92rem;
  }
  .main-nav a:hover {
    background: var(--color-bg-alt);
  }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-cta {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
  .btn-large { width: auto; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2rem; }
  .hero h1 { font-size: 2.7rem; }
  .main-nav ul { gap: 0.4em; }
  .main-nav a { font-size: 1rem; padding: 0.5em 0.8em; }
}
