@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== リセット・変数 ===== */
:root {
  --primary: #0b6ef6;
  --primary-dark: #0956c8;
  --muted: #666;
  --border: #e5e7eb;
  --bg-light: #f8fafc;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --transition: .2s ease;
}
*, *::before, *::after { box-sizing: border-box; }
a, button, [role="button"] { touch-action: manipulation; }
body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  color: #222;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== ユーティリティ ===== */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.muted { color: var(--muted); font-size: .9rem; }
.mt-2 { margin-top: 2rem; }

/* ===== ヘッダー電話バー ===== */
.header-tel-bar {
  background: var(--primary);
  color: #fff;
  font-size: .82rem;
  padding: .3rem 0;
}
.header-tel-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-hours { opacity: .9; }
.header-tel {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
}
.header-tel:hover { text-decoration: underline; }

/* ===== ヘッダー ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  .site-header.header-hidden {
    transform: translateY(-100%);
  }
  body:not(.has-hero) { padding-top: 90px; }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo-mark {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.logo-text {
  line-height: 1.2;
}

/* ===== ナビゲーション ===== */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .25rem;
}
nav a {
  text-decoration: none;
  color: #444;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  transition: background var(--transition), color var(--transition);
}
nav a:hover {
  background: #e8f0fe;
  color: var(--primary);
}

.nav-sub { display: none; }
.nav-backdrop { display: none; }

/* ===== ハンバーガーボタン ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #444;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== ページヒーロー（内部ページ用） ===== */
.page-hero {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
}
.page-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 600px) {
  .page-hero, .page-hero-img { height: 200px; }
}

/* ===== ヒーロー ===== */
.hero {
  background: none;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
  padding: 2.5rem 0;
  text-align: center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  color: #1a1a2e;
  letter-spacing: .04em;
  font-weight: 700;
  line-height: 1.4;
}
.hero p {
  color: #444;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ===== ボタン ===== */
.btn, .btn-outline {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}
.btn {
  background: var(--primary);
  color: #fff;
}
.btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(11,110,246,.3);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: #e8f0fe;
}
.policy-page section > .btn-outline {
  display: block;
  width: fit-content;
  margin: 4rem auto 0;
}

/* ===== メインコンテナ ===== */
.container {
  padding: 2.5rem 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== トップページ 交互グレー背景（全幅ブリード）===== */
.services-overview,
.testimonials-section,
.about-cta {
  background: var(--bg-light);
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left:  calc(50vw - 50% + 1.25rem);
  padding-right: calc(50vw - 50% + 1.25rem);
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 0;
  border-bottom: none !important;
}
.intro,
.flow-section,
.blog-preview {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: none !important;
}

/* ===== 見出しアクセントボーダー ===== */
.intro h2,
.services-overview h3,
.flow-section h3,
.testimonials-section h3,
.blog-preview h3,
.about-cta h3 {
  padding-left: .75rem;
  border-left: 4px solid var(--primary);
}

/* ===== トップページ intro ロゴレイアウト ===== */
.intro-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.intro-text {
  flex: 1;
}
.intro-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-logo-img {
  width: 280px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.1));
}
@media (max-width: 768px) {
  .intro-inner {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .intro-logo-img {
    width: 200px;
  }
}

/* ===== セクション共通 ===== */
.intro, .about-cta, .services-overview {
  margin-bottom: 3rem;
}
.intro h2, .services-overview h3, .about-cta h3 {
  margin-top: 0;
}

/* ===== カード ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.card h4 {
  margin: 0 0 .5rem;
  color: var(--primary);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* ===== お問い合わせフォームセクション ===== */
.contact-section {
  background: var(--bg-light);
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-section .wrap {
  max-width: 640px;
}
.contact-section h2 {
  margin-top: 0;
}

/* ===== フォーム ===== */
form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  color: #333;
}
form input,
form textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,110,246,.12);
}
form textarea {
  resize: vertical;
  min-height: 120px;
}
form .btn {
  width: 100%;
  padding: .75rem;
  font-size: 1rem;
  margin-top: .25rem;
}
#formMessage {
  margin-top: .75rem;
  min-height: 1.2em;
}
#formMessage.success { color: #16a34a; }
#formMessage.error   { color: #dc2626; }

/* ===== services.html ===== */
.tab-visual {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: block;
}
.container section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.container section:last-of-type {
  border-bottom: none;
}

/* ===== 外観写真 ===== */
.building-photo { border-radius: var(--radius); overflow: hidden; margin: 1rem 0 1.5rem; }
.building-photo-img { width: 100%; max-height: 260px; object-fit: cover; object-position: center 75%; display: block; }
@media (max-width: 600px) { .building-photo-img { object-position: bottom; } }

/* ===== Google マップリンクカード ===== */
.map-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  max-width: 480px;
}
.map-link-card:hover {
  box-shadow: 0 4px 16px rgba(26,86,219,.12);
  transform: translateY(-2px);
}
.map-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: #e8f0fe;
  border-radius: 50%;
  color: var(--primary);
  flex-shrink: 0;
}
.map-link-icon svg { width: 1.2rem; height: 1.2rem; }
.map-link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.map-link-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.map-link-address {
  font-size: .9rem;
  color: #333;
}
.map-link-cta {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.map-link-cta svg { width: .9rem; height: .9rem; }

/* ===== about.html ===== */
address {
  font-style: normal;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: table;
  margin-bottom: 1.5rem;
  line-height: 2;
}

/* ===== フッター ===== */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-left {
  line-height: 1.6;
  font-size: .8rem;
  color: #444;
}
.footer-left a { color: var(--primary); text-decoration: none; }
.footer-left a:hover { text-decoration: underline; }
.footer-right {
  font-size: .8rem;
  color: var(--muted);
  text-align: right;
}

/* ===== 実績カウンター ===== */
.stats-section {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin-bottom: 3rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
}
.stat-item {
  text-align: center;
  color: #fff;
}
.stat-item dt {
  font-size: .82rem;
  opacity: .85;
  margin-bottom: .4rem;
  letter-spacing: .03em;
}
.stat-item dd {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-unit {
  font-size: 1rem;
  font-weight: 400;
  margin-left: .1rem;
}
/* カウント前は透明でわずかに下にずらし、開始時にフェードイン */
.stat-item.counting dd {
  animation: statPop .3s ease forwards;
}
@keyframes statPop {
  from { transform: scale(.9); opacity: .5; }
  to   { transform: scale(1);  opacity: 1; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ===== お客様の声（カルーセル）===== */
.testimonials-section {
  margin-bottom: 3rem;
}
.testimonials-carousel {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.testimonial {
  min-width: 100%;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.testimonial p {
  margin: 0 0 .75rem;
  color: #333;
  font-style: italic;
  line-height: 1.8;
}
.testimonial footer { font-style: normal; }
.testimonial cite {
  font-size: .85rem;
  color: var(--muted);
  font-style: normal;
}
/* ドットインジケーター */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.testimonials-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.testimonials-dots button.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ===== ブログページ ヒーロー画像 ===== */
.blog-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}
.blog-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .blog-hero-img { max-height: 180px; }
}

/* ===== ブログ一覧（blog.html）===== */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
  font-size: .85rem;
  color: var(--muted);
}
.blog-cat {
  display: inline-block;
  background: #e8f0fe;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 99px;
}
.blog-card-title {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.blog-card-title a {
  text-decoration: none;
  color: #1a1a2e;
}
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}
.blog-read-more {
  font-size: .9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.blog-read-more:hover { text-decoration: underline; }
.blog-cta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.blog-cta p { margin: 0 0 1rem; color: var(--muted); }

/* ===== ブログ記事ページ ===== */
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.blog-post { max-width: 720px; }
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
.blog-post h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  line-height: 1.4;
}
.blog-post h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
}
.blog-post ul { padding-left: 1.4rem; line-height: 1.9; color: #333; }
.blog-post-cta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.blog-post-cta p { margin: 0; flex: 1 1 100%; color: var(--muted); }

/* ===== トップページ ブログプレビュー ===== */
.blog-preview { margin-bottom: 3rem; }
.blog-preview-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}
.blog-preview-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.blog-preview-item:last-child { border-bottom: none; }
.blog-preview-item:hover { background: var(--bg-light); }
.blog-preview-title {
  font-size: .95rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-preview-item time {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== サービスタブ ===== */
.service-tabs {
  display: flex;
  gap: .5rem;
  margin: 1.5rem 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: .6rem 1.4rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--muted);
  margin-bottom: -2px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tab-panel { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== フッターナビ ===== */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: .25rem .75rem;
  margin-bottom: .4rem;
  justify-items: center;
  justify-content: end;
}
.footer-nav a {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

/* ===== レスポンシブ ===== */
@media (max-width: 700px) {
  .hero h1 { font-size: 1.6rem; }
  .cards { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  #site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 72vw;
    max-width: 280px;
    height: 100dvh;
    background: #fff;
    box-shadow: -6px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 200;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }
  #site-nav.open { transform: translateX(0); }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav a {
    display: block;
    padding: 1rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  #site-nav li:last-child a { border-bottom: none; }

  /* メニュー項目アニメーション */
  #site-nav li {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .25s ease, transform .25s ease;
  }
  #site-nav li.nav-item-visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* 背景オーバーレイ */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-sub {
    display: flex;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
  }
  .nav-sub a {
    font-size: .85rem;
    color: var(--muted);
  }


  .site-footer .wrap { flex-direction: column; text-align: center; }
  .footer-nav {
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .footer-nav a {
    font-size: .72rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blog-preview-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .blog-preview-item time { grid-column: 2; }
  .blog-preview-title { white-space: normal; }
}

/* ===== スクロールフェードイン ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp .55s ease forwards; }

/* ===== カードホバーエフェクト ===== */
.card, .blog-card, .contact-method-card, .flow-step {
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover, .blog-card:hover, .contact-method-card:hover, .flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.11);
}

/* ===== トップへ戻るボタン ===== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 997;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(.75rem);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(11,110,246,.35);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: var(--primary-dark); }
#back-to-top svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 768px) { #back-to-top { display: none; } }

/* ===== スムーススクロール ===== */
html { scroll-behavior: smooth; }

/* ===== お問い合わせページ ===== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
.contact-method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.contact-method-card h2 {
  font-size: 1.05rem;
  margin: 0;
}
.contact-method-card p {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.contact-method-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-method-icon svg { width: 1.5rem; height: 1.5rem; }
.contact-method-icon--line { background: #e8f0fe; color: var(--primary); }
.contact-method-card--line { border-color: var(--primary); }
.line-note {
  margin: .75rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}
.line-note a { color: var(--muted); text-decoration: underline; }
.line-note a:hover { color: var(--primary); }

.line-policy-note {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin: 1.2rem 0;
  font-size: .9rem;
  color: #78350f;
  line-height: 1.7;
}

.line-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin-top: 1.2rem;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.line-guide-head {
  font-size: .78rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}
.line-guide-head--ok { color: #06c755; }
.line-guide-head--tel { color: var(--muted); }
.line-guide ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.9;
}
.line-guide li::before {
  content: '・';
}
@media (max-width: 600px) {
  .line-guide { grid-template-columns: 1fr; }
}

.btn-line {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: .6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition);
}
.btn-line:hover { background: #1648c0; }
.contact-tel-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.contact-tel-label { color: var(--muted); font-size: .9rem; }
.contact-tel-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .03em;
}
.contact-tel-num:hover { text-decoration: underline; }
.contact-tel-hours { font-size: .85rem; color: var(--muted); }
.contact-form-section h2 { margin-bottom: .25rem; }
/* LINEFABをcontact-pageでは非表示 */
.contact-page .line-fab,
.accident-page .line-fab,
.policy-page .line-fab { display: none !important; }
@media (max-width: 768px) {
  .contact-methods { grid-template-columns: 1fr; }
  .contact-tel-bar { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ===== LINE 友達追加 FAB ===== */
@keyframes fabPulse {
  0%   { box-shadow: 0 6px 20px rgba(26,86,219,.5), 0 0 0 0 rgba(26,86,219,.35); }
  70%  { box-shadow: 0 6px 20px rgba(26,86,219,.5), 0 0 0 12px rgba(26,86,219,0); }
  100% { box-shadow: 0 6px 20px rgba(26,86,219,.5), 0 0 0 0 rgba(26,86,219,0); }
}
.line-fab {
  display: none;
}
@media (max-width: 768px) {
  .line-fab {
    display: flex;
    align-items: center;
    gap: .6rem;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    background: linear-gradient(135deg, #1a56db 0%, #1648c0 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 2rem;
    padding: .75rem 1.25rem .75rem .9rem;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 6px 20px rgba(26,86,219,.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, background .2s;
  }
  .line-fab.fab-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: fabPulse 2.4s ease-out infinite;
  }
  .line-fab:active {
    transform: scale(.95);
  }
  .line-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .line-fab svg {
    width: 1.15rem;
    height: 1.15rem;
  }
}

/* ===== Calendly 予約ボタン ===== */
.calendly-fab {
  display: none;
}
@media (max-width: 768px) {
  .btn-calendly {
    display: none;
  }
  .calendly-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: .85rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(11,110,246,.45);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
  }
  .calendly-fab:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
}
.booking-section {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
}
.booking-section h2 { margin-top: 0; }
.btn-calendly { margin-top: .5rem; }
.contact-alt { margin: 1.5rem 0 .5rem; }
.contact-alt h2 { margin-top: 0; }

/* ===== ヒーローオーバーレイヘッダー（PC専用） ===== */
@media (min-width: 769px) {
  .has-hero .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
  }
}
.has-hero .site-header.past-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.has-hero .site-header.past-hero .header-tel-bar { background: var(--primary); }
.has-hero .site-header.past-hero .logo,
.has-hero .site-header.past-hero .logo-text { color: var(--primary); text-shadow: none; }
.has-hero .site-header.past-hero .header-tel,
.has-hero .site-header.past-hero .header-hours { color: #fff; text-shadow: none; }
.has-hero .site-header.past-hero nav a { color: #444; text-shadow: none; }
.has-hero .site-header.past-hero nav a:hover { background: #e8f0fe; color: var(--primary); }
.has-hero .site-header.past-hero .nav-toggle span { background: #444; }
.has-hero .header-tel-bar {
  background: transparent;
}
.has-hero .logo {
  color: #1a1a1a;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}
.has-hero .logo-text {
  color: #1a1a1a;
}
.has-hero .header-tel,
.has-hero .header-hours {
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.has-hero .site-header nav a {
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.has-hero .site-header nav a:hover {
  background: rgba(255,255,255,0.25);
  color: #1a1a1a;
}
.has-hero .nav-toggle span {
  background: #fff;
}


/* 会社情報・お問い合わせページ: ヒーロー上部にグラデーションオーバーレイ */
.about-page .page-hero,
.contact-page .page-hero {
  position: relative;
}
.about-page .page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0%, transparent 100%);
  pointer-events: none;
}
.contact-page .page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, transparent 100%);
  pointer-events: none;
}

/* 会社情報・お問い合わせページ: ヘッダー文字を白に（PC用・ヒーロー上のみ） */
@media (min-width: 769px) {
  .about-page.has-hero .logo,
  .about-page.has-hero .logo-text,
  .contact-page.has-hero .logo,
  .contact-page.has-hero .logo-text {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }
  .about-page.has-hero .header-tel,
  .about-page.has-hero .header-hours,
  .contact-page.has-hero .header-tel,
  .contact-page.has-hero .header-hours {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .about-page.has-hero .site-header nav a,
  .contact-page.has-hero .site-header nav a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .about-page.has-hero .site-header nav a:hover,
  .contact-page.has-hero .site-header nav a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }

  /* past-hero（スクロール後）は通常の黒文字に戻す */
  .about-page.has-hero .site-header.past-hero .logo,
  .about-page.has-hero .site-header.past-hero .logo-text,
  .contact-page.has-hero .site-header.past-hero .logo,
  .contact-page.has-hero .site-header.past-hero .logo-text {
    color: var(--primary);
    text-shadow: none;
  }
  .about-page.has-hero .site-header.past-hero nav a,
  .contact-page.has-hero .site-header.past-hero nav a {
    color: #444;
    text-shadow: none;
  }
  .about-page.has-hero .site-header.past-hero nav a:hover,
  .contact-page.has-hero .site-header.past-hero nav a:hover {
    background: #e8f0fe;
    color: var(--primary);
  }
}

/* ページヒーロー: ヘッダー分（約90px）高さを追加 */
.has-hero .page-hero {
  max-height: none;
}
.has-hero .page-hero-img {
  height: 450px;
}

/* スマホ: オーバーレイ効果を無効にして通常ヘッダーに戻す */
@media (max-width: 768px) {
  .has-hero .site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .has-hero .header-tel-bar {
    background: var(--primary);
  }
  .has-hero .logo {
    color: var(--primary);
    text-shadow: none;
  }
  .has-hero .logo-text {
    color: var(--primary);
  }
  .has-hero .header-tel,
  .has-hero .header-hours {
    color: #fff;
    text-shadow: none;
  }
  .has-hero nav a {
    color: #444;
    text-shadow: none;
  }
  .has-hero nav a:hover {
    background: #e8f0fe;
    color: var(--primary);
  }
  .has-hero .nav-toggle span {
    background: #444;
  }
  .has-hero .page-hero-img { height: 290px; }
}

/* ===== 地図 ===== */
.map-container {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-container iframe { display: block; }
.map-iframe { border: 0; }

/* ===== ご相談の流れ ===== */
.flow-section {
  padding: 3rem 0;
  text-align: center;
}
.flow-section h3 { margin-bottom: 2rem; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  counter-reset: none;
}
.flow-step {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  position: relative;
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .75rem;
}
.flow-step h4 { margin: .5rem 0 .4rem; font-size: 1rem; }
.flow-step p  { font-size: .88rem; color: var(--muted); margin: 0; }

/* ===== イントロ写真 ===== */
.intro-photo {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.intro-photo-img {
  width: 340px;
  height: 255px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .intro-photo-img {
    width: 100%;
    height: 200px;
  }
}

/* ===== トップ 当社についてセクション ===== */
.about-cta-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.about-cta-logo {
  flex-shrink: 0;
}
.about-cta-logo-img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.1));
}
.about-cta-body { flex: 1; }
.about-cta-body h3 {
  margin-top: 0;
}
@media (max-width: 768px) {
  .about-cta-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .about-cta-logo-img { width: 160px; }
  .about-cta-body h3 { padding-left: 0; border-left: none; }
}

/* ===== 会社情報 ロゴ併記レイアウト ===== */
.company-info-row {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.company-info-main { flex: 1; min-width: 0; }
.company-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.5rem;
}
.company-logo-img {
  width: 200px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.1));
}
@media (max-width: 768px) {
  .company-info-row { flex-direction: column; gap: 1.5rem; }
  .company-logo-wrap { padding-top: 0; }
  .company-logo-img { width: 160px; }
}

/* ===== タイポグラフィ・余白の改善 ===== */

/* ページタイトル（h1）— 左側に短い青ラインを添える */
.container h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
  padding-bottom: .8rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* トップページ intro 見出し */
.intro h2 {
  font-size: 1.4rem;
  letter-spacing: .04em;
  line-height: 1.55;
}

/* トップページ各セクション h3 */
.services-overview h3,
.flow-section h3,
.testimonials-section h3,
.blog-preview h3,
.about-cta h3 {
  font-size: 1.2rem;
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
}

/* 取扱保険・内部ページセクション h2 */
.service-heading h2 {
  font-size: 1.15rem;
  letter-spacing: .02em;
}

/* セクション間の余白を広げて区切りを明確に */
.container section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* トップページ大セクションに余裕を追加 */
.services-overview,
.testimonials-section,
.about-cta {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.flow-section,
.blog-preview {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}
.intro {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ご相談の流れ: ステップごとに進行するアクセントカラー */
.flow-step:nth-child(1) { border-top: 5px solid #7dd3fc; background: #f0f9ff; }
.flow-step:nth-child(2) { border-top: 5px solid #3b82f6; background: #eff6ff; }
.flow-step:nth-child(3) { border-top: 5px solid #0b6ef6; background: #eef2ff; }
.flow-step:nth-child(4) { border-top: 5px solid #1e3a8a; background: #eef0fb; }
.flow-step:nth-child(1) .flow-num { background: #7dd3fc; color: #0c4a6e; }
.flow-step:nth-child(2) .flow-num { background: #3b82f6; }
.flow-step:nth-child(3) .flow-num { background: #0b6ef6; }
.flow-step:nth-child(4) .flow-num { background: #1e3a8a; }
@media (max-width: 700px) {
  .flow-steps { grid-template-columns: 1fr; }
}

/* ===== 会社情報テーブル ===== */
.info-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
  margin: 1rem 0 2rem;
  font-size: .95rem;
}
.info-table th, .info-table td {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.info-table th {
  background: var(--bg-light);
  white-space: nowrap;
  width: 9rem;
  color: #555;
}
.info-table a { color: var(--primary); }

/* ===== 事故時の連絡先 ===== */
.btn-emergency {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-emergency:hover { background: var(--primary); color: #fff; }
.accident-agency-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.accident-section {
  margin-bottom: 3rem;
}
.accident-section h2 {
  padding-left: .75rem;
  border-left: 4px solid var(--primary);
  margin-bottom: .5rem;
}
.accident-section-note {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.accident-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.accident-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}
.accident-card--emergency {
  border-top: 3px solid var(--primary);
}
.accident-card-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2em .6em;
  border-radius: 2em;
  margin-bottom: .6rem;
  letter-spacing: .04em;
}
.accident-card h3 {
  font-size: 1rem;
  margin: 0 0 .4rem;
}
.accident-card p {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 .75rem;
}
.accident-tel {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .02em;
}
.accident-tel svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.accident-tel-free {
  display: inline-block;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}
.accident-hours {
  font-size: .8rem;
  color: var(--muted);
  margin: .5rem 0 0;
}
@media (max-width: 600px) {
  .accident-cards { grid-template-columns: 1fr; }
  .accident-agency-bar { flex-direction: column; align-items: flex-start; }
}

/* ===== FAQ ===== */
.faq-section { margin-bottom: 2.5rem; }
.faq-section h2 { font-size: 1.1rem; border-left: 4px solid var(--primary); padding-left: .75rem; margin-bottom: 1rem; }
.faq-list { margin: 0; padding: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item dt {
  background: var(--bg-light);
  padding: .85rem 1rem;
  font-weight: 700;
  font-size: .95rem;
  position: relative;
  padding-left: 2.5rem;
}
.faq-item dt::before {
  content: 'Q';
  position: absolute;
  left: .85rem;
  color: var(--primary);
  font-weight: 900;
}
.faq-item dd {
  margin: 0;
  padding: .85rem 1rem .85rem 2.5rem;
  font-size: .92rem;
  line-height: 1.7;
  position: relative;
}
.faq-item dd::before {
  content: 'A';
  position: absolute;
  left: .85rem;
  color: #e05a00;
  font-weight: 900;
}

/* ===== サービスセクション見出しアイコン ===== */
.service-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.service-heading h2 { margin: 0; }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--primary);
  flex-shrink: 0;
}
.service-icon svg { width: 1.6rem; height: 1.6rem; }

/* ===== ホームカードアイコン ===== */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #e8f0fe;
  color: var(--primary);
  margin-bottom: .5rem;
}
.card-icon svg { width: 1.3rem; height: 1.3rem; }

/* ===== 会社情報テーブル アクセント ===== */
.info-table th {
  border-left: 3px solid var(--primary);
}
