/* おうち健康診断（河野塗装） - style.css */

:root {
  --color-bg: #f5f4f2;
  --color-white: #ffffff;
  --color-ink: #2b2725;
  --color-ink-soft: #5c5652;
  --color-wine: #6e062d;
  --color-wine-dark: #52021f;
  --color-line: #9dd219;
  --color-line-dark: #83b414;
  --color-border: #e4e0dc;

  --font-heading: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;

  --container-width: 1080px;
  --header-height-pc: 104px;
  --header-height-sp: 60px;
  --mobile-cta-height: 56px;

  --shadow-soft: 0 10px 28px rgba(43, 39, 37, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height-sp);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--header-height-sp);
  padding-bottom: var(--mobile-cta-height);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- スクロールリビール ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ボタン共通 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

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

.btn--line:hover {
  background: var(--color-line-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--dark {
  background: var(--color-wine);
  color: var(--color-white);
  border-radius: 6px;
}

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

.btn--small {
  padding: 10px 22px;
  font-size: 13px;
}

.btn--block {
  display: flex;
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 244, 242, 0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-sp);
}

.header__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-wine);
}

.header__tel {
  display: none;
}

.nav {
  position: fixed;
  top: var(--header-height-sp);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 32px 24px;
}

.nav.is-open {
  transform: translateX(0);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 600;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
}

/* ---------- スマホ下部固定CTAバー ---------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-cta-height);
  display: flex;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-cta-bar__tel {
  flex: 0 0 64px;
  background: var(--color-wine);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-cta-bar__line {
  flex: 1;
  background: var(--color-line);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- セクション共通 ---------- */
.section {
  padding-block: 56px;
}

.section--soft {
  background: var(--color-white);
}

.section__title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}

.section-banner {
  background: var(--color-wine);
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  padding: 16px;
  margin-bottom: 32px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  outline: 1px solid var(--color-wine);
  outline-offset: -6px;
}

/* ---------- 1. ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__inner {
  position: relative;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- 2. 導入 ---------- */
.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.intro__photo img {
  border-radius: 8px;
}

.intro__lead {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.intro__cta {
  max-width: 480px;
  margin-bottom: 28px;
}

/* ---------- ノートカード ---------- */
.note-card {
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
}

.note-card__title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 20px;
}

.note-card__list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed var(--color-border);
  position: relative;
  font-size: 14px;
}

.note-card__list li:last-child {
  border-bottom: none;
}

.note-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f0a500;
  font-weight: 700;
}

/* ---------- インフォグラフィック ---------- */
.infographics__item {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ---------- 診断事例 ---------- */
.case {
  margin-bottom: 32px;
}

.case__photo {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 4 / 3;
}

.case__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.case__text {
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ---------- ビフォーアフター ---------- */
.before-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.before-after__card {
  width: 100%;
  border-radius: 8px;
  padding: 20px;
  border: 2px solid;
}

.before-after__card--before {
  border-color: #d9789a;
  background: #fdf3f6;
}

.before-after__card--after {
  border-color: #7fc7c9;
  background: #f1fbfb;
}

.before-after__card h3 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.before-after__card img {
  border-radius: 6px;
  margin-bottom: 14px;
}

.before-after__card ul {
  font-size: 13px;
  color: var(--color-ink-soft);
}

.before-after__card li {
  padding: 5px 0 5px 24px;
  position: relative;
}

.before-after__card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-ink-soft);
}

.before-after__arrow {
  font-size: 20px;
  color: var(--color-wine);
  margin: 12px 0;
}

/* ---------- お客様の声 ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.voice-card {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 28px 22px;
  position: relative;
  text-align: center;
}

.voice-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eceae7;
  color: var(--color-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.voice-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-wine);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.voice-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.voice-card__meta {
  font-size: 12px;
  color: var(--color-ink-soft);
  margin-bottom: 12px;
}

.voice-card__text {
  font-size: 13px;
  text-align: left;
  color: var(--color-ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  border: 2px solid var(--color-wine);
  border-radius: 6px;
  padding: 8px 22px;
}

.faq__item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--color-border);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__q {
  font-weight: 700;
  margin-bottom: 8px;
}

.faq__a {
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ---------- ご相談はこちら ---------- */
.contact {
  position: relative;
  padding-block: 64px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 12, 0.6);
}

.contact__inner {
  position: relative;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact__text {
  font-size: 14px;
  margin-bottom: 24px;
}

.contact .btn--line {
  max-width: 320px;
  margin-inline: auto;
}

/* ---------- 会社HP・Instagram導線 ---------- */
.links {
  display: flex;
  flex-direction: column;
}

.links__card {
  padding: 48px 24px;
  text-align: center;
}

.links__card h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.links__card p {
  font-size: 14px;
  color: var(--color-ink-soft);
  max-width: 480px;
  margin-inline: auto 24px auto;
  margin-bottom: 24px;
}

.links__card--hp {
  background: #f8e3c4;
}

.links__card--insta {
  background: #f3d3de;
}

/* ---------- フッター ---------- */
.footer {
  padding-block: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--color-ink-soft);
}

/* =========================================================
   タブレット・PC（900px〜）
   ========================================================= */
@media (min-width: 900px) {
  body {
    padding-top: var(--header-height-pc);
    padding-bottom: 0;
  }

  html {
    scroll-padding-top: var(--header-height-pc);
  }

  .mobile-cta-bar {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .header__inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .header__brand {
    font-size: 16px;
  }

  .header__tel {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    order: 2;
  }

  .header__tel-label {
    font-size: 12px;
    color: var(--color-ink-soft);
  }

  .header__tel a {
    font-size: 20px;
  }

  .nav {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
    order: 3;
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }

  .nav__list {
    flex-direction: row;
    gap: 32px;
    margin-bottom: 0;
    font-size: 15px;
  }

  .hero {
    min-height: 560px;
  }

  .hero__title {
    font-size: 44px;
  }

  .intro {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .intro__photo,
  .intro__text {
    flex: 1;
  }

  .infographics__item img {
    width: 100%;
  }

  .case {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: center;
  }

  .case__photo {
    margin-bottom: 0;
  }

  .before-after {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .before-after__card {
    flex: 1;
  }

  .before-after__arrow {
    display: flex;
    align-items: center;
    margin: 0;
    transform: rotate(-90deg);
  }

  .voice-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .links {
    flex-direction: row;
  }

  .links__card {
    flex: 1;
  }

  .section__title {
    font-size: 28px;
  }
}
