/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #1a4f8a;
  --blue-mid: #2268b2;
  --blue-light: #3b8fd4;
  --blue-pale: #e8f3fc;
  --blue-border: #bdd8f0;
  --white: #ffffff;
  --gray-bg: #f4f8fc;
  --gray-text: #555;
  --text-dark: #1a2d45;
  --green-line: #06c755;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30, 80, 150, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--blue-mid);
  box-shadow: 0 2px 8px rgba(30, 80, 150, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  align-self: stretch;
  padding: 4px 0; /* 上下の余白を最小限に */
}

.logo-img {
  height: 100%;
  width: auto;
  max-height: 62px; /* ヘッダー高さ70pxから上下4pxパディング分を引いた値 */
  object-fit: contain;
  object-position: center;
  display: block;
}
.logo-img-sm {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.03em;
  font-family: "Shippori Mincho", serif;
}

.logo-sub {
  font-size: 10px;
  color: var(--gray-text);
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  color: var(--text-dark);
  border-radius: 4px;
  transition:
    background 0.2s,
    color 0.2s;
}

.header-nav a:hover {
  background: var(--blue-pale);
  color: var(--blue-mid);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tel-icon {
  font-size: 20px;
}

.tel-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.tel-hours {
  display: block;
  font-size: 10px;
  color: var(--gray-text);
}

.btn-line-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--green-line);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-line-header:hover {
  opacity: 0.88;
}

.line-mark {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(
      to right,
      rgba(10, 30, 60, 0.38) 0%,
      rgba(10, 30, 60, 0.15) 60%,
      rgba(10, 30, 60, 0.05) 100%
    ),
    url("assets/hero.jpg") center center / cover no-repeat;
  padding: 60px 0 48px;
  overflow: hidden;
  filter: brightness(1.15);
}

.hero-inner {
  filter: brightness(calc(1 / 1.15)); /* hero全体にかけたbrightnessを打ち消す */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-accent {
  color: #7dd4fc;
}

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

.badge-icon {
  font-size: 20px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--blue-mid);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--green-line);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn-line:hover {
  opacity: 0.88;
}

.line-mark-sm {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.hero-image {
  position: relative;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #b0ceea;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #5a80a0;
  letter-spacing: 0.06em;
}

.hero-stamp {
  position: absolute;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 8px;
}

.hero-stamp--area {
  bottom: -16px;
  left: -16px;
}
.hero-stamp--insurance {
  top: -16px;
  right: -16px;
  background: var(--blue-mid);
}

.stamp-main {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.stamp-sub {
  font-size: 10px;
  opacity: 0.85;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 72px 0;
}

.section--gray {
  background: var(--gray-bg);
}
.section--blue {
  background: var(--blue-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue-mid);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

.section-title--white {
  color: var(--white);
}

.section-note {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 8px;
}

.section-note--white {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== SERVICE ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-icon-wrap {
  font-size: 36px;
  margin-bottom: 14px;
}

.service-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ===== PRICE ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.price-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.price-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-mid);
}

.price-amount span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-text);
  margin-left: 2px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--blue-mid);
  border: 1.5px solid var(--blue-border);
}

.about-body {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 12px;
  line-height: 1.85;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}

.about-table tr {
  border-bottom: 1px solid var(--blue-border);
}

.about-table th {
  text-align: left;
  padding: 10px 8px 10px 0;
  color: var(--blue-dark);
  font-weight: 700;
  width: 90px;
  white-space: nowrap;
}

.about-table td {
  padding: 10px 0;
  color: var(--gray-text);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.contact-card--line {
  background: #f0fff4;
  border: 2px solid var(--green-line);
}

.contact-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.contact-tel {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-mid);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.contact-hours {
  font-size: 12px;
  color: var(--gray-text);
}

.contact-line-note {
  font-size: 13px;
  color: var(--green-line);
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-line-contact {
  display: inline-block;
  padding: 12px 28px;
  background: var(--green-line);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn-line-contact:hover {
  opacity: 0.88;
}

/* ===== FEATURES ===== */
.features {
  padding: 40px 0;
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  background: var(--blue-pale);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  font-size: 22px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  padding: 28px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
  margin-bottom: 8px;
}

.logo-img-sm {
  width: auto;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== RESPONSIVE ===== */

/* タブレット（768px〜1024px） */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }
  .header-nav a {
    padding: 6px 10px;
    font-size: 12px;
  }
  .tel-number {
    font-size: 15px;
  }
  .hero-title {
    font-size: 30px;
  }
  .about-grid {
    gap: 32px;
  }
}

/* スマホ（767px以下） */
@media (max-width: 767px) {
  /* ヘッダー：縦積みに */
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 16px;
    gap: 8px;
  }
  .header-logo {
    align-self: auto; /* スマホではstretchを解除 */
    padding: 0;
  }
  .logo-img {
    height: 44px;
    max-height: 44px;
  }
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
  }
  .header-contact {
    order: 2;
    gap: 8px;
  }
  .header-tel {
    display: none; /* スマホでは電話番号はヒーローのCTAに任せる */
  }

  /* ヒーロー：1カラムに */
  .hero {
    padding: 40px 0 32px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-image {
    display: none; /* スマホでは右側の画像エリアは非表示（背景で見せる） */
  }
  .hero-badges {
    flex-direction: column;
    gap: 8px;
  }

  /* セクション余白を縮小 */
  .section {
    padding: 48px 0;
  }
  .section-inner {
    padding: 0 16px;
  }

  /* サービス：2カラム */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 料金：2カラム */
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 会社概要：1カラムに */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* お問い合わせ：1カラムに */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-tel {
    font-size: 22px;
  }

  /* フィーチャー */
  .features-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
  }

  /* セクションタイトル */
  .section-title {
    font-size: 20px;
  }
}
