:root {
  --brand-green: #7cb342;
  --brand-green-dark: #689f38;
  --brand-green-light: #aed581;
  --brand-orange: #f57c00;
  --brand-line: #06c755;
  --bg-gray: #f2f2f2;
  --text-dark: #333;
  --focus-ring: 0 0 0 3px rgba(124, 179, 66, 0.45);
}
html {
  overflow-x: clip;
}
body {
  background: var(--bg-gray);
  color: var(--text-dark);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}
.icon-inline { font-size: 18px; margin-right: 4px; }
.icon-md { font-size: 22px; }
.icon-lg { font-size: 32px; }
.icon-xl { font-size: 56px; }
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "chevron_right";
  font-family: "Material Symbols Outlined";
  font-size: 16px;
  vertical-align: middle;
  padding: 0 2px;
  color: #999;
}
.container-main { max-width: 1000px; }
.top-tagline {
  font-size: 12px;
  color: #666;
  text-align: center;
  padding: 8px 0;
  line-height: 1.5;
}
.site-header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 100%;
}
.tel-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
}
.tel-block a {
  color: #333;
  text-decoration: none;
}
.tel-block a:hover { color: var(--brand-green-dark); }
.tel-icon {
  width: 36px; height: 36px;
  background: var(--brand-green); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.mail-icon {
  width: 36px; height: 36px;
  background: var(--brand-green); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.mail-icon:hover { background: var(--brand-green-dark); color: #fff; }
.qr-placeholder {
  width: 60px; height: 60px;
  background: #fff;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.greeting-photo-placeholder {
  background: linear-gradient(135deg, #eceff1, #cfd8dc);
  border-radius: 4px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90a4ae;
  font-size: 12px;
  min-height: 200px;
  max-width: 100%;
  width: 100%;
}
.greeting-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.hamburger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: var(--brand-green);
}
.hamburger-btn .material-symbols-outlined { font-size: 32px; }
.global-nav {
  background: var(--brand-green);
  padding: 0;
}
.global-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.global-nav li {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.global-nav li:last-child { border-right: none; }
.global-nav a {
  display: block;
  padding: 16px 8px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.2s;
}
.global-nav a:hover, .global-nav a.active {
  background: var(--brand-green-dark);
}
.hero {
  background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green) 100%);
  padding: 80px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0, transparent 25%),
    radial-gradient(circle at 60% 20%, rgba(255,255,255,0.1) 0, transparent 15%);
}
.hero-title {
  font-size: 42px;
  font-weight: bold;
  line-height: 1.5;
  color: #2e5716;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.sub-nav-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #333;
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.sub-nav-btn:hover {
  background: #f5f5f5;
  border-color: var(--brand-green);
}
.side-info {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 0;
}
.side-info-title {
  background: var(--brand-green);
  color: #fff;
  padding: 12px;
  font-weight: bold;
  font-size: 15px;
  margin: 0;
}
.side-info-body {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
}
.side-info-body a { color: inherit; text-decoration: none; }
.side-info-body a:hover { color: var(--brand-green-dark); text-decoration: underline; }
.cta-btn {
  display: block;
  padding: 14px;
  text-align: center;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
  transition: filter 0.2s, transform 0.2s;
}
.cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.cta-btn:active { transform: translateY(0); }
.cta-btn.contact { background: var(--brand-green); }
.cta-btn.access { background: var(--brand-orange); }
.cta-btn.mbp { background: var(--brand-green-dark); }
.cta-btn.line { background: var(--brand-line); }
.service-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #f9fbe7 100%);
  padding: 20px;
  text-align: left;
  color: #333;
  text-decoration: none;
  display: block;
  height: 100%;
  border-left: 4px solid var(--brand-green);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 130px;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.service-card.blue { border-left-color: #1976d2; background: linear-gradient(135deg, #e3f2fd 0%, #f3f9ff 100%); }
.service-card.teal { border-left-color: #00897b; background: linear-gradient(135deg, #e0f2f1 0%, #f0fbf9 100%); }
.service-card.brown { border-left-color: #6d4c41; background: linear-gradient(135deg, #efebe9 0%, #f8f5f2 100%); }
.service-card.warm { border-left-color: #e65100; background: linear-gradient(135deg, #fff3e0 0%, #fef9f0 100%); }
.service-card.gray { border-left-color: #546e7a; background: linear-gradient(135deg, #eceff1 0%, #f5f8f9 100%); }
.service-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.service-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
  color: #555;
}
.section-title {
  background: var(--brand-green);
  color: #fff;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title .btn-index {
  background: var(--brand-orange);
  color: #fff;
  padding: 4px 14px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
  transition: filter 0.2s;
}
.section-title .btn-index:hover { filter: brightness(1.1); }
.content-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 24px;
}
.content-box p { margin-bottom: 12px; }
.news-list {
  background: #fff;
  padding: 20px 24px;
  border: 1px solid #e0e0e0;
  border-top: none;
}
.news-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 14px;
}
.news-item:last-child { border-bottom: none; }
.news-date { color: #555; min-width: 100px; }
.news-link { color: var(--brand-orange); text-decoration: underline; }
.info-table {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  font-size: 14px;
}
.info-table th, .info-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: #fafafa;
  width: 180px;
  font-weight: bold;
  text-align: center;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
/* テーブルセル内 Bootstrap .row の負マージンではみ出す問題対策 */
.info-table td > .row {
  --bs-gutter-x: 0.75rem;
  margin-left: 0;
  margin-right: 0;
}
.info-table td > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}
.info-table td > .row > [class*="col-"] + [class*="col-"] {
  padding-left: 12px;
}
.footer {
  background: #fff;
  padding: 30px 0 20px;
  margin-top: 40px;
  border-top: 2px solid var(--brand-green);
}
.footer-nav {
  text-align: center;
  padding-bottom: 16px;
}
.footer-nav a {
  color: #333;
  text-decoration: none;
  margin: 0 12px;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--brand-green-dark); text-decoration: underline; }
.copyright {
  text-align: center;
  color: #666;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 998;
}
.nav-scrim.is-open { display: block; }
@media (max-width: 768px) {
  body { line-height: 1.7; }
  .top-tagline { font-size: 11px; padding: 6px 12px; line-height: 1.5; }
  .hero { padding: 28px 20px; }
  .hero-title { font-size: 24px; line-height: 1.4; }
  .section-title { font-size: 16px; padding: 12px 14px; }
  .content-box { padding: 16px; }
  .content-box p { margin-bottom: 10px; }
  .side-info-body { padding: 12px 14px; font-size: 13px; line-height: 1.6; }
  .side-info-title { padding: 10px 14px; font-size: 14px; }
  .sub-nav-btn { padding: 12px 14px; }
  .cta-btn { padding: 12px; }
  .news-item { flex-direction: column; gap: 4px; padding: 12px 0; }
  .news-item .icon-inline { display: none; }
  .news-date { min-width: 0; font-size: 12px; color: #666; }
  .news-link { display: block; }
  /* テーブルSP最適化: 全テーブルをカード積み型に */
  .info-table,
  .fee-table,
  .heir-table,
  .price-table,
  .company-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: none;
    background: transparent;
    font-size: 13px;
  }
  .info-table thead,
  .fee-table thead,
  .heir-table thead,
  .price-table thead,
  .company-table thead {
    display: none;
  }
  .info-table tbody,
  .fee-table tbody,
  .heir-table tbody,
  .price-table tbody,
  .company-table tbody {
    display: block;
  }
  .info-table tr,
  .fee-table tr,
  .heir-table tr,
  .price-table tr,
  .company-table tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  /* 行タイトル(1列目 = th または最初のtd) */
  .info-table th,
  .fee-table tbody th,
  .price-table tbody th,
  .company-table tbody th,
  .heir-table tbody tr > td:first-child {
    display: block;
    width: auto !important;
    background: var(--brand-green) !important;
    color: #fff !important;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13px;
    text-align: left !important;
    border: none !important;
    line-height: 1.5;
  }
  /* 値セル: data-label + 値の flex 表示 */
  .heir-table tbody td:not(:first-child),
  .price-table tbody td,
  .company-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 12px;
    border: none !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fff !important;
    font-size: 13px;
    text-align: right;
    line-height: 1.6;
  }
  .heir-table tbody td:not(:first-child)::before,
  .price-table tbody td::before,
  .company-table tbody td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
    text-align: left;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* info-table / fee-table (2列): 値セルはブロック表示 */
  .info-table td,
  .fee-table tbody td {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    border: none;
    word-break: break-all;
  }
  .fee-table tbody td.right { text-align: right; font-weight: bold; }
  /* zebra 行の背景色はカード化により不要 */
  .price-table tr.zebra,
  .company-table tr.zebra { background: #fff; }
  /* table-responsive の水平スクロールは積み替えるので不要 */
  .table-responsive { overflow-x: visible; }
  .greeting-photo-placeholder {
    aspect-ratio: 16/9;
    min-height: 120px;
    max-height: 200px;
    margin-top: 12px;
  }
  .greeting-photo {
    aspect-ratio: 16/9;
    max-height: 200px;
    margin-top: 12px;
    object-position: center 20%;
  }
  .footer { padding: 20px 0 16px; margin-top: 24px; }
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 4px;
    padding: 0 12px 12px;
  }
  .footer-nav a {
    margin: 0;
    font-size: 12px;
    padding: 4px 0;
    text-align: center;
  }
  main.container-main, .container-main.mt-3, .container-main.mt-4 { margin-top: 12px !important; }
  .site-header { padding: 8px 0; }
  .site-header .col-md-6:first-child { flex: 1 1 auto; min-width: 0; }
  .site-header .col-md-6:last-child { gap: 8px !important; }
  .site-header .row { flex-wrap: nowrap; align-items: center; }
  .site-header .col-md-6 {
    width: auto;
    flex: 0 0 auto;
    max-width: none;
  }
  .site-header .col-md-6:first-child { flex: 1 1 auto; min-width: 0; }
  .site-header .col-md-6:last-child { gap: 8px !important; }
  .brand-logo { max-width: 100%; }
  .brand-logo img { height: 22px; }
  .tel-block { font-size: 16px; gap: 4px; }
  .tel-icon { width: 28px; height: 28px; }
  .tel-icon .material-symbols-outlined { font-size: 16px !important; }
  .hamburger-btn { display: inline-flex; width: 36px; height: 36px; }
  .hamburger-btn .material-symbols-outlined { font-size: 28px; }
  .mail-icon, .qr-placeholder { display: none; }
  .global-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; padding-top: 60px; }
  .global-nav li {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .global-nav li:last-child { border-bottom: none; }
  .global-nav a {
    padding: 14px 20px;
    font-size: 15px;
    text-align: left;
  }
}

/* Hero carousel (FV) */
.hero-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  min-height: 240px;
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 40px;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
}
.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hero-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.1) 70%, rgba(255,255,255,0) 100%);
}
.hero-carousel .hero-carousel__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 60%;
  text-shadow: 0 1px 3px rgba(255,255,255,0.7);
}
/* prefers-reduced-motion: フェード停止・1枚目固定 */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide {
    transition: none;
  }
}
@media (max-width: 768px) {
  .hero-carousel {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
  .hero-carousel__slide {
    padding: 0 20px;
  }
  .hero-carousel .hero-carousel__title {
    max-width: 80%;
  }
  .hero-carousel__overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0) 100%);
  }
}
