/* ===== Hero Section ===== */
.hero {
  height: 90vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,18,64,0.50) 0%, rgba(13,18,64,0.35) 40%, rgba(13,18,64,0.20) 70%, rgba(0,0,0,0) 100%),
    url('ホーム背景.jpg') center/cover no-repeat;
}

/* Gold diagonal accent */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.08) 100%);
}

/* Decorative gold line */
.hero-line {
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  color: var(--white);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: bold;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.hero-title .gold { color: var(--gold); }

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 560px;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-cta br {
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 15px;
  font-weight: bold;
  padding: 16px 36px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 18, 64, 0.97);
  color: var(--white);
  font-size: 15px;
  padding: 16px 36px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
}

.btn-ghost:hover {
  color: var(--gold);
  background: rgba(13, 18, 64, 0.97);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,18,64,0.5);
}

.btn-arrow { font-size: 18px; }

/* ===== Stats Section ===== */
.stats {
  background: var(--navy-dark);
  border-top: none;
  border-bottom: none;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  color: var(--gold);
  border: 2px solid rgba(201,168,76,0.25);
}

.stat-number {
  display: block;
  font-size: 35px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  font-family: 'Noto Sans JP', sans-serif;
}

.stat-unit {
  font-size: 18px;
  color: var(--gold);
}

.stat-label {
  display: block;
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding-top: 20px;
  position: relative;
}

.stat-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gold);
}

/* ===== Section Common ===== */
section { padding: 96px 24px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-eyebrow {
  display: block;
  color: var(--navy);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

.section-title {
  font-size: 18px;
  color: var(--text-sub);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section-title-ja {
  font-size: 14px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-banner h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== News Section ===== */
.news { background: var(--white); }

.news-lead {
  text-align: center;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.news-tabs {
  display: block;
}

.tab {
  padding: 12px 28px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-sub);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

.tab:hover { color: var(--navy); }

.tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: bold;
}

.news-list { margin-bottom: 48px; }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-mid);
  transition: background 0.2s;
}

.news-item:last-child { border-bottom: none; }

.news-item:hover { background: var(--gray-bg); padding-left: 8px; padding-right: 8px; border-radius: 4px; }

.news-date {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
  min-width: 90px;
}

.news-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 2px;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.news-title {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.news-item:hover .news-title { color: var(--navy); }

.news-cta { text-align: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  padding: 14px 48px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  transition: all 0.25s;
  font-family: 'Noto Sans JP', sans-serif;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== Feature（Service）Section ===== */
.feature {
  background: var(--gray-bg);
}

/* ===== News Tabs（WordPress classes） ===== */
.p-news-tab-list__tabs-wrapper {
  border-bottom: 2px solid var(--gray-mid);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 3px;
}
.p-news-tab-list__tabs-wrapper::-webkit-scrollbar { display: none; }

.p-news-tab-list__tabs {
  display: flex;
  list-style: none;
  gap: 0;
  white-space: nowrap;
}

.p-news-tab-list__tabs-item a {
  display: block;
  padding: 12px 28px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-sub);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
}

.p-news-tab-list__tabs-item:hover a { color: var(--navy); }

.p-news-tab-list__tabs-item.is-active a {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: bold;
}

/* ===== News Panels（WordPress classes） ===== */
.p-news-tab-list__panel {
  display: none;
  list-style: none;
  margin-bottom: 48px;
  padding: 0;
}

.p-news-tab-list__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* WordPressが挿入する余分な<p>タグを非表示（全階層対応） */
.p-news-tab-list__panel > p,
.p-news-list__item > p,
.p-article04 a > p {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

/* ===== News List Items（WordPress classes） ===== */
.p-news-list__item {
  border-bottom: 1px solid var(--gray-mid);
  margin: 0;
  padding: 0;
}

.p-news-list__item:last-child {
  border-bottom: none;
}

.p-article04 a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  transition: background 0.2s;
  color: var(--text);
}

.p-article04 a:hover {
  background: var(--gray-bg);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

.p-article04__date {
  font-size: 16px;
  color: var(--text-sub) !important;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
  min-width: 90px;
  flex-shrink: 0;
}

.p-article04__cat {
  display: inline-block;
  width: 110px;
  text-align: center;
  background: transparent;
  color: #222222;
  border: 1.5px solid #222222;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
  flex-shrink: 0;
}

/* カテゴリカラー */
.p-cat--3 { color: #E84C8A; border-color: #E84C8A; } /* メンテナンス情報：ピンク */

.p-article04__title {
  font-size: 14px;
  color: var(--text) !important;
  flex: 1;
  font-weight: normal;
  margin: 0;
}

.p-article04 a:hover .p-article04__title {
  color: var(--navy) !important;
}

/* ===== Reasons Section ===== */
.reasons {
  background: var(--navy-dark);
  padding: 0 0px 96px;
}

.reasons::before {
  content: '';
  display: block;
  width: 100%;
  max-width: 1130px;
  height: 1px;
  background: var(--gray-mid);
  margin: 0 auto 64px;
}

.reasons-title {
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-align: center;
}

.reasons-sub {
  font-size: 14px;
  color: var(--white);
  text-align: center;
  margin-bottom: 0;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.reasons-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}

.reasons-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  color: var(--gold);
}

.reasons-card-title {
  font-size: 20px;
  color: var(--white);
  font-weight: bold;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.reasons-card-text {
  font-size: 14px;
  color: var(--white);
  line-height: 1.9;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {

  section {
    padding: 64px 20px;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding: 120px 0 80px;
    margin-top: 0;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.5;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost,
  .btn-outline {
    width: 70%;
    margin: 0 auto;
    justify-content: center;
    padding: 11px 20px;
    font-size: 13px;
    white-space: nowrap;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stat-item {
    border: none;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(201,168,76,0.15);
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .stat-item:nth-child(3) .stat-label {
    font-size: 16px;
  }

  .stat-label::before {
    display: none;
  }

  .section-eyebrow {
    font-size: 40px;
  }

  .p-news-tab-list__tabs-wrapper {
    overflow-x: auto;
  }

  .p-news-tab-list__tabs {
    white-space: nowrap;
  }

  .p-article04 a {
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
  }

  .p-article04__date {
    min-width: unset;
    flex-shrink: 0;
  }

  .p-article04__title {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 2px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .service-slider {
    position: relative;
    padding-left: 30px;
    padding-right: 30px;
  }

  .service-grid-all {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    padding-left: 4px;
    scroll-padding-left: 4px;
    scrollbar-width: none;
  }

  .service-grid-all::-webkit-scrollbar {
    display: none;
  }

  .service-grid-all .service-card {
    min-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .service-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 30px;
    color: rgba(0,22,122,0.72);
    cursor: pointer;
    z-index: 10;
  }

  .service-arrow.prev { left: -30px; }
  .service-arrow.next { right: -30px; }


  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reasons-title {
    font-size: 22px;
  }

  .reasons::before {
    width: 100%;
  }
}

@media screen and (min-width: 769px) {
  .service-slider {
    display: contents;
  }

  .service-grid-all {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .service-grid-all .service-card {
    min-width: unset;
    flex: unset;
  }

  .service-arrow {
    display: none;
  }
}