/*
 Theme Name: JIN:R Child - EIGHT
 Template:   jinr
 Description: EIGHT公式サイト用子テーマ。JIN:Rをベーステーマとして使用します。
 Version:     1.0.1
 Author:      EIGHT
*/

/* ==========================================================================
   1. Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;600&display=swap');

/* ==========================================================================
   2. CSS変数（カラーパレット）
   ========================================================================== */
:root {
  --eight-white:        #ffffff;
  --eight-bg:           #f5f5f7;   /* Apple風ライトグレー */
  --eight-text:         #1d1d1f;   /* Apple風ダークチャコール */
  --eight-muted:        #6e6e73;   /* グレー */
  --eight-border:       #d2d2d7;
  --eight-accent:       #0071e3;   /* Apple風ブルー */
  --eight-accent-hover: #0077ed;
  --eight-radius-sm:    12px;
  --eight-radius-md:    16px;
  --eight-radius-lg:    24px;
  --eight-font-sans:    'Inter', 'Noto Sans JP', 'Hiragino Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   3. ベースリセット（#eight-main 内のみ適用）
   ========================================================================== */
#eight-main {
  font-family: var(--eight-font-sans);
  color: var(--eight-text);
  background: var(--eight-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

#eight-main *,
#eight-main *::before,
#eight-main *::after {
  box-sizing: border-box;
}

#eight-main a {
  color: inherit;
  text-decoration: none;
}

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

/* JINのサイドバー・パンくず・アイキャッチを非表示（フロントページのみ） */
.home #main .breadcrumb,
.home #main .eyecatch,
.home #main .sidebar,
.home .l-sidebar,
.home .widget-area,
.home #sidebar,
.home .o--jinr-mainvisual,
.home #commonFooter {
  display: none !important;
}

/* JINのコンテンツ幅制限をTOPページで解除 */
.home #main .l-main,
.home #main .main-contents {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}

.home .l-wrap {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ==========================================================================
   4. ナビゲーション（カスタムヘッダー）
   ========================================================================== */
.eight-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--eight-border);
}

.eight-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .eight-nav__inner {
    padding: 0 48px;
    height: 64px;
  }
}

.eight-nav__logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--eight-text);
  text-decoration: none;
}

.eight-nav__links {
  display: none;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .eight-nav__links {
    display: flex;
  }
}

.eight-nav__links a {
  font-size: 13px;
  font-weight: 300;
  color: var(--eight-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eight-nav__links a:hover {
  color: var(--eight-text);
}

.eight-nav__cta {
  display: none;
  font-size: 13px;
  font-weight: 500;
  background: var(--eight-text);
  color: var(--eight-white);
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

@media (min-width: 768px) {
  .eight-nav__cta {
    display: inline-flex;
    align-items: center;
  }
}

.eight-nav__cta:hover {
  background: #333;
  color: var(--eight-white);
}

#eight-main .eight-nav__cta,
#eight-main .eight-nav__mobile-cta,
#eight-main .eight-btn--primary {
  color: var(--eight-white) !important;
}

/* ハンバーガー */
.eight-nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--eight-text);
}

@media (min-width: 768px) {
  .eight-nav__hamburger {
    display: none;
  }
}

.eight-nav__hamburger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* モバイルメニュー */
.eight-nav__mobile {
  display: none;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--eight-border);
}

.eight-nav__mobile.is-open {
  display: block;
}

.eight-nav__mobile-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.eight-nav__mobile-inner a {
  display: block;
  font-size: 15px;
  font-weight: 300;
  color: var(--eight-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--eight-border);
  text-decoration: none;
}

.eight-nav__mobile-cta {
  display: inline-flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  background: var(--eight-text);
  color: var(--eight-white) !important;
  padding: 14px 24px;
  border-radius: 999px;
  margin-top: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

/* ==========================================================================
   5. ヒーローセクション
   ========================================================================== */
.eight-hero {
  background: var(--eight-white);
}

.eight-hero__text {
  padding: 120px 24px 80px;
  text-align: center;
}

@media (min-width: 768px) {
  .eight-hero__text {
    padding: 176px 48px 128px;
  }
}

.eight-hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .eight-hero__eyebrow {
    margin-bottom: 32px;
  }
}

.eight-hero__heading {
  font-size: 36px;
  font-weight: 600;
  color: var(--eight-text);
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 800px;
  margin: 0 auto 24px;
}

@media (min-width: 768px) {
  .eight-hero__heading {
    font-size: 56px;
    margin-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .eight-hero__heading {
    font-size: 72px;
  }
}

.eight-hero__sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 40px;
}

@media (min-width: 768px) {
  .eight-hero__sub {
    font-size: 19px;
    margin-bottom: 48px;
  }
}

.eight-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 480px) {
  .eight-hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.eight-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eight-font-sans);
  font-size: 14px;
  font-weight: 500;
  background: var(--eight-text);
  color: var(--eight-white);
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.eight-btn--primary:hover {
  background: #333;
  color: var(--eight-white);
}

.eight-btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eight-font-sans);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--eight-text);
  padding: 13px 31px;
  border: 1px solid var(--eight-border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.eight-btn--secondary:hover {
  background: var(--eight-bg);
  border-color: var(--eight-text);
  color: var(--eight-text);
}

.eight-btn--text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--eight-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--eight-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.eight-btn--text:hover {
  color: var(--eight-accent-hover);
}

.eight-floating-contact {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.eight-floating-contact__link {
  pointer-events: auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--eight-font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.eight-floating-contact__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.eight-floating-contact.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.eight-floating-contact__link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.eight-floating-contact__link--phone {
  background: var(--eight-white);
  color: var(--eight-text);
  border: 1px solid rgba(29, 29, 31, 0.12);
}

.eight-floating-contact__link--phone:hover {
  background: var(--eight-bg);
  color: var(--eight-text);
}

.eight-floating-contact__link--phone svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eight-floating-contact__link--line {
  background: #06c755;
  color: var(--eight-white);
  border: 1px solid rgba(6, 199, 85, 0.24);
}

.eight-floating-contact__link--line:hover {
  background: #05b84f;
  color: var(--eight-white);
}

.eight-floating-contact__link--line svg {
  fill: currentColor;
}

@media (min-width: 768px) {
  .eight-floating-contact {
    left: auto;
    right: 32px;
    bottom: 32px;
    grid-template-columns: 1fr;
    width: 176px;
  }

  .eight-floating-contact__link {
    min-height: 48px;
  }
}

.eight-hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

@media (min-width: 768px) {
  .eight-hero__image {
    aspect-ratio: 21 / 9;
  }
}

.eight-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   6. サービスセクション
   ========================================================================== */
.eight-services__header {
  padding: 96px 24px 80px;
  text-align: center;
  background: var(--eight-white);
}

@media (min-width: 768px) {
  .eight-services__header {
    padding: 144px 48px 128px;
  }
}

.eight-services__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 20px;
}

.eight-services__heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--eight-text);
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .eight-services__heading {
    font-size: 44px;
  }
}

/* サービスアイテム */
.eight-service-item {
  border-top: 1px solid var(--eight-border);
}

.eight-service-item__inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .eight-service-item__inner {
    flex-direction: row;
  }

  .eight-service-item--reverse .eight-service-item__inner {
    flex-direction: row-reverse;
  }
}

.eight-service-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px;
  background: var(--eight-white);
}

@media (min-width: 768px) {
  .eight-service-item__body {
    width: 50%;
    padding: 96px 64px;
  }
}

@media (min-width: 1024px) {
  .eight-service-item__body {
    padding: 96px 96px;
  }
}

.eight-service-item__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 20px;
}

.eight-service-item__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--eight-text);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 24px;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .eight-service-item__title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .eight-service-item__title {
    font-size: 44px;
  }
}

.eight-service-item__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .eight-service-item__desc {
    font-size: 15px;
  }
}

.eight-service-item__lead {
  font-size: 17px;
  font-weight: 500;
  color: var(--eight-text);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 20px;
}

.eight-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
  max-width: 560px;
}

.eight-service-list li {
  font-size: 12px;
  font-weight: 400;
  color: var(--eight-text);
  background: var(--eight-bg);
  border: 1px solid var(--eight-border);
  border-radius: 999px;
  padding: 8px 12px;
}

.eight-service-list a {
  color: inherit;
  text-decoration: none;
}

.eight-service-list a:hover {
  color: var(--eight-accent);
}

.eight-service-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .eight-service-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.eight-service-list--grid li {
  border-radius: var(--eight-radius-sm);
}

.eight-service-item__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--eight-bg);
}

@media (min-width: 768px) {
  .eight-service-item__image {
    width: 50%;
    aspect-ratio: auto;
    min-height: 480px;
  }
}

.eight-service-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   7. 実績セクション
   ========================================================================== */
.eight-achievements {
  background: var(--eight-bg);
}

.eight-achievements__stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .eight-achievements__stats {
    padding: 144px 48px;
  }
}

.eight-achievements__header {
  text-align: center;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .eight-achievements__header {
    margin-bottom: 96px;
  }
}

.eight-achievements__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 20px;
}

.eight-achievements__heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--eight-text);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .eight-achievements__heading {
    font-size: 44px;
  }
}

.eight-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .eight-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .eight-stats-grid--impact {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eight-stats-grid__item {
  background: var(--eight-white);
  padding: 48px 16px 40px;
  text-align: center;
  border-radius: var(--eight-radius-md);
}

@media (min-width: 768px) {
  .eight-stats-grid__item {
    padding: 64px 24px 56px;
  }
}

.eight-stats-grid__value {
  font-size: 36px;
  font-weight: 600;
  color: var(--eight-text);
  letter-spacing: 0;
  margin: 0 0 12px;
}

@media (min-width: 768px) {
  .eight-stats-grid__value {
    font-size: 48px;
  }
}

.eight-stats-grid--impact .eight-stats-grid__value {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .eight-stats-grid--impact .eight-stats-grid__value {
    font-size: 28px;
  }
}

.eight-stats-grid__label {
  font-size: 11px;
  font-weight: 300;
  color: var(--eight-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .eight-stats-grid__label {
    font-size: 13px;
  }
}

/* 導入事例・カードレイアウト */
.eight-achievements__voices {
  border-top: 1px solid var(--eight-border);
}

.eight-voices {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .eight-voices {
    padding: 144px 48px;
  }
}

.eight-voices__header {
  text-align: center;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .eight-voices__header {
    margin-bottom: 96px;
  }
}

.eight-voices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .eight-voices__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eight-voice-card {
  background: var(--eight-white);
  border-radius: var(--eight-radius-md);
  padding: 32px;
}

@media (min-width: 768px) {
  .eight-voice-card {
    padding: 40px;
  }
}

.eight-voice-card__quote {
  font-size: 14px;
  font-weight: 300;
  color: var(--eight-text);
  line-height: 1.7;
  margin: 0 0 32px;
}

@media (min-width: 768px) {
  .eight-voice-card__quote {
    font-size: 15px;
  }
}

.eight-voice-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--eight-text);
  margin: 0 0 4px;
}

.eight-voice-card__role {
  font-size: 11px;
  font-weight: 300;
  color: var(--eight-muted);
  margin: 0;
}

/* 導入事例 */
.eight-achievements__cases {
  border-top: 1px solid var(--eight-border);
}

.eight-case {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .eight-case {
    padding: 144px 48px;
  }
}

.eight-case__header {
  text-align: center;
  margin-bottom: 64px;
}

.eight-case__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .eight-case__body {
    grid-template-columns: minmax(240px, 0.36fr) 1fr;
    gap: 96px;
  }
}

.eight-case__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--eight-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.eight-case__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--eight-text);
  line-height: 1.35;
  margin: 0;
}

@media (min-width: 768px) {
  .eight-case__title {
    font-size: 32px;
  }
}

.eight-case__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .eight-case__blocks {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }
}

.eight-case__block {
  border-top: 1px solid var(--eight-border);
  padding: 24px 0;
}

.eight-case__block h5 {
  font-size: 13px;
  font-weight: 500;
  color: var(--eight-text);
  margin: 0 0 12px;
}

.eight-case__block p {
  font-size: 14px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   8. 会社情報セクション
   ========================================================================== */
.eight-company {
  background: var(--eight-white);
}

.eight-mission {
  background: var(--eight-text);
  padding: 96px 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .eight-mission {
    padding: 160px 48px;
  }
}

.eight-mission__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 24px;
}

.eight-mission__text {
  font-size: 28px;
  font-weight: 600;
  color: var(--eight-white);
  line-height: 1.4;
  letter-spacing: 0;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .eight-mission__text {
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .eight-mission__text {
    font-size: 56px;
  }
}

.eight-about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

@media (min-width: 768px) {
  .eight-about {
    flex-direction: row;
    gap: 96px;
    padding: 144px 48px;
  }
}

.eight-about__text {
  flex: 1;
}

.eight-about__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 20px;
}

.eight-about__heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--eight-text);
  letter-spacing: 0;
  margin: 0 0 32px;
}

@media (min-width: 768px) {
  .eight-about__heading {
    font-size: 32px;
  }
}

.eight-about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .eight-about__body {
    font-size: 15px;
  }
}

.eight-about__body p {
  margin: 0;
}

.eight-about__overview {
  flex: 1;
}

.eight-overview__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--eight-text);
  margin: 0 0 24px;
  letter-spacing: 0.05em;
}

.eight-overview__table {
  width: 100%;
  border-collapse: collapse;
}

.eight-overview__row {
  display: flex;
  padding: 20px 0;
  gap: 32px;
  border-bottom: 1px solid var(--eight-border);
}

.eight-overview__row:last-child {
  border-bottom: none;
}

.eight-overview__key {
  width: 104px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--eight-muted);
  padding-top: 2px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .eight-overview__key {
    width: 132px;
  }
}

.eight-overview__val {
  font-size: 13px;
  color: var(--eight-text);
  line-height: 1.6;
}

.eight-overview__business {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eight-overview__business p {
  margin: 0;
}

.eight-overview__business strong,
.eight-overview__business span {
  display: block;
}

.eight-overview__business strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--eight-text);
  margin-bottom: 4px;
}

.eight-overview__business strong a {
  color: inherit;
  text-decoration: none;
}

.eight-overview__business strong a:hover {
  color: var(--eight-accent);
}

.eight-overview__business span {
  color: var(--eight-muted);
}

.eight-message {
  border-top: 1px solid var(--eight-border);
}

.eight-message__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .eight-message__inner {
    padding: 144px 48px;
  }
}

.eight-message__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .eight-message__body {
    font-size: 15px;
  }
}

.eight-message__body p {
  margin: 0;
}

/* ==========================================================================
   9. お問い合わせセクション
   ========================================================================== */
.eight-contact {
  background: var(--eight-bg);
}

.eight-contact__inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .eight-contact__inner {
    padding: 144px 48px;
  }
}

.eight-contact__header {
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .eight-contact__header {
    margin-bottom: 64px;
  }
}

.eight-contact__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 20px;
}

.eight-contact__heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--eight-text);
  letter-spacing: 0;
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .eight-contact__heading {
    font-size: 44px;
  }
}

.eight-contact__sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.7;
  margin: 0;
}

/* CF7フォームラッパー */
.eight-contact__form-wrap {
  background: var(--eight-white);
  border-radius: var(--eight-radius-lg);
  padding: 32px 24px;
}

@media (max-width: 767px) {
  .eight-contact__form-wrap {
    padding-bottom: 116px;
  }
}

@media (min-width: 768px) {
  .eight-contact__form-wrap {
    padding: 48px;
  }
}

/* Contact Form 7 スタイル上書き */
.eight-contact__form-wrap .wpcf7 {
  margin: 0;
  padding: 0;
}

.eight-contact__form-wrap .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eight-contact__form-wrap .wpcf7 label,
.eight-contact__form-wrap .wpcf7 .eight-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--eight-text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.eight-contact__form-wrap .wpcf7 input[type="text"],
.eight-contact__form-wrap .wpcf7 input[type="email"],
.eight-contact__form-wrap .wpcf7 input[type="tel"],
.eight-contact__form-wrap .wpcf7 select,
.eight-contact__form-wrap .wpcf7 textarea {
  width: 100%;
  background: var(--eight-bg);
  border: none;
  border-radius: var(--eight-radius-sm);
  padding: 14px 16px;
  font-family: var(--eight-font-sans);
  font-size: 14px;
  color: var(--eight-text);
  outline: none;
  transition: box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.eight-contact__form-wrap .wpcf7 input[type="text"]:focus,
.eight-contact__form-wrap .wpcf7 input[type="email"]:focus,
.eight-contact__form-wrap .wpcf7 input[type="tel"]:focus,
.eight-contact__form-wrap .wpcf7 select:focus,
.eight-contact__form-wrap .wpcf7 textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.eight-contact__form-wrap .wpcf7 textarea {
  resize: vertical;
  min-height: 140px;
}

.eight-contact__form-wrap .wpcf7 input[type="submit"],
.eight-contact__form-wrap .wpcf7 [type="submit"] {
  width: 100%;
  background: var(--eight-text);
  color: var(--eight-white);
  font-family: var(--eight-font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 32px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .eight-contact__form-wrap .wpcf7 input[type="submit"],
  .eight-contact__form-wrap .wpcf7 [type="submit"] {
    margin-bottom: 96px;
  }
}

.eight-contact__form-wrap .wpcf7 input[type="submit"]:hover {
  background: #333;
}

.eight-contact__form-wrap .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: var(--eight-radius-sm);
  border: none !important;
}

.eight-contact__form-wrap .wpcf7 .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #ff3b30;
  margin-top: 4px;
}

/* グリッドレイアウト（2列） */
.eight-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .eight-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.eight-form-field {
  display: flex;
  flex-direction: column;
}

.eight-contact__note {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 300;
  color: var(--eight-muted);
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   10. フッター
   ========================================================================== */
.eight-footer {
  background: var(--eight-bg);
  border-top: 1px solid var(--eight-border);
  padding-bottom: 92px;
}

@media (min-width: 768px) {
  .eight-footer {
    padding-bottom: 104px;
  }
}

.eight-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

@media (min-width: 768px) {
  .eight-footer__inner {
    padding: 64px 48px;
  }
}

.eight-footer__top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--eight-border);
}

@media (min-width: 768px) {
  .eight-footer__top {
    flex-direction: row;
    justify-content: space-between;
    gap: 64px;
  }
}

.eight-footer__brand {
  max-width: 280px;
}

.eight-footer__logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--eight-text);
  margin: 0 0 12px;
}

.eight-footer__tagline {
  font-size: 12px;
  font-weight: 300;
  color: var(--eight-muted);
  line-height: 1.7;
  margin: 0;
}

.eight-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .eight-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eight-footer__nav-group {}

.eight-footer__nav-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eight-muted);
  margin: 0 0 16px;
}

.eight-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eight-footer__nav-list a {
  font-size: 12px;
  font-weight: 300;
  color: var(--eight-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eight-footer__nav-list a:hover {
  color: var(--eight-text);
}

.eight-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
}

@media (min-width: 768px) {
  .eight-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.eight-footer__copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--eight-muted);
  margin: 0;
}

.eight-footer__legal {
  display: flex;
  gap: 24px;
}

.eight-footer__legal a {
  font-size: 11px;
  font-weight: 300;
  color: var(--eight-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eight-footer__legal a:hover {
  color: var(--eight-text);
}
