:root {
  /* Background colors - subtle warm gray tones */
  --bg: #e9ecef;
  --bg-gradient: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);

  /* Text colors - refined contrast */
  --fg: #2d3436;
  --muted: #636e72;
  --heading-color: #1a1a2e;

  /* Brand colors - elegant charcoal */
  --brand: #3d3d3d;
  --brand-strong: #1a1a1a;
  --brand-2: #6c757d;

  /* Surface colors - silver/gray depth */
  --accent: #e9ecef;
  --line: #dee2e6;
  --surface: #ffffff;
  --surface-strong: #f1f3f5;

  /* Utility colors */
  --navy: #dfe6ed;
  --black: #000000;
  --primary: #212529;

  /* Card shadows - subtle depth */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Layout variables */
  --header-height: 74px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100%;
  background-image: var(--bg-gradient);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  /* 横揺れ防止 */
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-padding-top: 80px
}

a {
  color: var(--brand);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px
}

/* サイトヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px
}

.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0
}

.site-nav a {
  color: var(--fg);
  font-weight: 600;
  font-size: 14px
}

.site-nav a:hover {
  color: var(--brand);
  text-decoration: none
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px
}

.brand {
  margin: 8px 0;
  font-weight: 700;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-icon {
  height: 40px;
  width: auto;
  margin-right: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-logo-text {
  font-family: 'Syncopate', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
}

.brand-main {
  font-family: 'Syncopate', sans-serif;
  font-weight: bold;
  color: #000000;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-short {
  font-family: 'Syncopate', sans-serif;
  font-weight: bold;
  color: #999999;
  margin-left: 16px;
  font-size: 14px;
}

.brand small {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 600
}

.menu-toggle {
  display: none;
}

/* ヒーロー（デフォルト + バリアント） */
.hero {
  padding: 36px 0 18px;
  border-bottom: 1px solid var(--line)
}

.hero--navy {
  background: linear-gradient(145deg, #f0e0d6, #f5ebe6);
  color: var(--fg);
  border-radius: 0;
  padding: 48px 0;
  margin: 0 0 16px;
  border-bottom: none
}

.hero--navy .lead {
  color: var(--muted)
}

.hero--navy .badge {
  border-color: var(--brand);
  color: var(--brand)
}

.hero--salmon {
  background: var(--surface);
  color: var(--fg);
  border-radius: 0;
  padding: 48px 0;
  margin: 0 0 16px;
  border: none;
  box-shadow: none
}

/* ヒーロー */
.hero {
  background-color: var(--bg-color);
  padding-top: var(--header-height);
}

.hero-inner {
  position: relative;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  margin-bottom: 64px;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  text-align: center;
  padding: 0 var(--space-md);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block
}

.hero-content {
  padding: 0 16px;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.hero--salmon .lead {
  color: var(--muted)
}

.hero--salmon .badge {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent
}

.badge {
  display: inline-block;
  font-size: 12px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 0;
  padding: 4px 10px;
  margin-right: 8px;
  background: transparent
}

h1 {
  font-size: clamp(1rem, 2.5vw, 2rem);
  margin: 0 0 24px;
  line-height: 1.3;
  color: var(--heading-color);
  white-space: nowrap;
}

.lead {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 6px 0 32px;
  white-space: nowrap;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn {
  display: inline-block;
  background: var(--brand-strong);
  color: #fff;
  border-radius: 0;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .15)
}

.btn.alt {
  background: #fff;
  color: var(--brand-strong);
  border: 1px solid var(--line)
}

.hero--navy .btn {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand)
}

.hero--navy .btn.alt {
  background: #fff;
  color: var(--fg);
  border-color: #fff
}

.hero--salmon .btn {
  background: var(--brand-strong);
  color: #fff;
  border-color: transparent
}

.hero--salmon .btn.alt {
  background: transparent;
  color: var(--brand-strong);
  border-color: var(--line)
}

.grid {
  display: grid;
  gap: 16px
}

.g-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.card {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1
}

/* サービスアイテム */
.service-item {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  background-color: #f9f9f9;
  border-radius: 0;
  padding: 32px;
  border: 1px solid var(--line);
}

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

.service-image {
  width: 50%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-content {
  flex: 1;
  padding: 0 24px;
}

.service-content h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.service-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
}

/* Service Link Styles */
a.service-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.service-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Quality Statement Box */
.quality-box {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-strong);
  padding: 32px;
  margin: 0 auto 48px;
  max-width: 960px;
  border-radius: 0;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.quality-box p.lead {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.quality-box p {
  margin: 0;
  line-height: 1.8;
}


h2 {
  font-size: 28px;
  margin: 48px 0 24px;
  line-height: 1.4;
  color: var(--heading-color);
  text-align: center;
}

.section-header-flex {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0 24px;
  width: 100%;
}
.section-header-flex h2 {
  margin: 0;
  text-align: center;
}
.section-header-flex .btn {
  position: absolute;
  right: 24px;
}
@media (max-width: 768px) {
  .section-header-flex {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 24px;
    position: static;
  }
  .section-header-flex h2 {
    text-align: center;
  }
  .section-header-flex .btn {
    position: static; /* relative/absolute cancel */
  }
}

h3 {
  font-size: 20px;
  margin: 0 0 12px;
  line-height: 1.5;
  color: var(--heading-color)
}

.note {
  font-size: 13px;
  color: var(--muted)
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface)
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top
}

thead th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600
}

#company table {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

#company tr {
  border-bottom: 1px solid var(--line);
}

#company th {
  padding: 16px;
  width: 25%;
  background: var(--surface-strong);
  font-weight: 600;
  vertical-align: middle;
}

#company td {
  padding: 16px;
  vertical-align: middle;
}

/* Qualifications Grid */
.qualifications-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  #company thead {
    display: none;
  }

  #company tr {
    display: block;
    padding: 12px 0;
  }

  #company th {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    padding: 0 0 4px;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    border-bottom: none;
  }

  #company td {
    display: block;
    width: 100%;
    padding: 0;
  }

  .qualifications-grid {
    display: block;
    margin-bottom: 0;
  }

  .qualifications-grid span {
    display: block;
  }

  .qualifications-grid span:nth-child(odd) {
    font-weight: bold;
    color: var(--brand-strong);
    margin-top: 12px;
    margin-bottom: 2px;
  }

  .qualifications-grid span:nth-child(even) {
    margin-left: 1em;
    margin-bottom: 0;
  }

  .qualifications-grid span:first-child {
    margin-top: 0;
  }

  .qualifications-cell {
    display: block;
  }
}

/* Qualifications card */
.qualifications-cell {
  display: flex;
  justify-content: center;
}

.qualifications-wrapper {
  text-align: left;
  max-width: 100%;
}

#company .qualifications-row {
  background-color: #f9f9f9;
  border-radius: 0;
  padding: 24px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#company .qualifications-row th {
  font-size: 0.9rem;
  color: var(--heading-color);
  margin-bottom: 16px;
}


.section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line)
}

.kpi {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.kpi .item {
  flex: 1 1 200px;
  border: 1px dashed var(--line);
  border-radius: 0;
  padding: 16px;
  background: var(--surface-strong);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .05)
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  margin: 10px 0;
  background: var(--surface)
}

footer {
  text-align: center;
  padding: 40px 0;
  background-color: var(--surface-strong);
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  /* Increased spacing */
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--fg);
  font-size: 14px;
  text-decoration: underline;
  /* Match Contact section style */
  border-bottom: none;
  padding-bottom: 0;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
  border-bottom: none;
}

.copyright {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
}

.small {
  font-size: 12px
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 0;
  background: var(--accent);
  color: var(--fg);
  margin-right: 6px
}

ul,
ol {
  padding-left: 1.25rem
}

li {
  margin: 4px 0
}

@media (max-width:960px) {
  .g-3 {
    grid-template-columns: 1fr
  }
}

@media (max-width:1024px) {
  .wrap {
    padding: 0;
  }

  /* ハンバーガーメニュー */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--fg);
    border-radius: 0;
    transition: all 0.3s ease-in-out;
  }

  /* メニューオープン時のハンバーガーアニメーション */
  .site-nav.open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .site-nav.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .site-nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0;
  }

  .site-nav.open ul {
    display: flex;
  }

  .site-nav ul li {
    margin: 20px 0;
  }

  .site-nav ul li a {
    font-size: 18px;
    font-weight: bold;
  }

  /* お問い合わせボタンはメニュー内に入れるか、ヘッダーに残すか。
     現状のHTML構造ではnav内にあるため、一緒にメニュー内に入るか、
     別途調整が必要。ここではシンプルにメニュー外（ヘッダー右）に残すか、
     メニュー内に含めるか...
     HTML構造上、ulの外にあるので、別途スタイルが必要。
  */
  .site-nav .btn {
    display: none;
  }

  /* メニューオープン時にボタンも表示する場合 */
  .site-nav.open .btn {
    display: inline-block;
    margin-top: 20px;
    position: static;
    transform: none;
    z-index: 1001;
  }

  .header-inner {
    padding: 12px 20px
  }

  /* Hide Desktop elements on Mobile */
  .brand-short {
    display: none;
  }

  /* Adjust logo text size for mobile */
  .brand-logo-text {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .brand-logo-icon {
    height: 28px;
  }

  .hero-visual {
    width: 100%;
    margin: 0;
  }


  .tags {
    justify-content: center
  }

  .cta {
    justify-content: center
  }

  /* サービスアイテムをモバイルで縦並び */
  .service-item,
  .service-item--reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }

  .service-image {
    width: 100%;
    max-width: 100%;
  }

  .service-content {
    padding: 0;
  }

  .google-form-container iframe {
    min-height: 1400px;
  }

  /* --- Mobile Optimization --- */

  /* Global Padding & Font Sizes */
  .section {
    padding: 32px 16px;
    /* コンテンツが画面端に張り付かないように余白確保 */
  }

  h2 {
    font-size: 22px;
    margin: 32px 0 20px;
  }

  h3 {
    font-size: 18px;
  }

  /* Price Tables - Stack on Mobile */
  #price table,
  #price thead,
  #price tbody,
  #price th,
  #price td,
  #price tr {
    display: block;
  }

  #price thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  #price tr {
    border: 1px solid var(--line);
    margin-bottom: 16px;
    background: white;
  }

  #price td {
    border: none;
    border-bottom: 1px solid var(--line);
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  #price td:last-child {
    border-bottom: none;
  }

  #price td:before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: var(--muted);
    content: attr(data-label);
    /* Requires data-label attributes in HTML if we want perfect labels, otherwise generic */
  }

  /* Since we don't have data-labels in HTML yet, let's use a simpler approach or add them. 
     Simpler approach: Just stack them naturally or allow horizontal scroll if preferred. 
     Let's try Card-like row without data-labels (just clean stack) first. */

  #price td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 35%;
    /* Space for label */
    text-align: right;
    /* Value alignment */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 44px;
  }

  #price td:last-child {
    border-bottom: none;
  }

  #price td:before {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 30%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: var(--muted);
    font-size: 0.85rem;
    content: attr(data-label);
  }

  #price tr {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--line);
  }

  /* Company Table Optimization */
  #company table,
  #company tbody,
  #company tr,
  #company th,
  #company td {
    display: block;
    width: 100%;
  }

  #company tr {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  #company th {
    background-color: var(--surface-strong);
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: none;
  }

  #company td {
    padding: 12px;
  }

  /* Fix for Quality Box and Hero Content on Mobile */
  .quality-box {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent child content from overflowing */
  }

  .quality-box>div {
    /* Target the inner div with background */
    width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-content .lead {
    width: 100%;
    font-size: 15px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
  }

  .quality-box p,
  .quality-box strong,
  .hero-content p,
  .hero-content h1 {
    white-space: normal;
    /* Force normal wrapping */
    word-break: break-word;
    /* Better for Japanese text */
    overflow-wrap: break-word;
    /* Standard property */
    max-width: 100%;
  }

  /* Optimized Hero Tags for Mobile */
  .hero-content .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }

  .hero-content .badge {
    margin: 0;
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
  }
}

/* Google Form Container - Enhanced */
.google-form-container {
  width: 100%;
  max-width: 800px;
  margin: 32px auto;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 8px;
}

.google-form-container iframe {
  display: block;
  width: 100%;
  min-height: 1200px;
  border: none;
  border-radius: 0;
  background: white;
}

/* Privacy Policy Section */
#privacy {
  background-color: #f9f9f9;
  padding: 48px 0;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Mascot Section */
.mascot-intro {
  display: flex;
  flex-direction: column;
  /* 縦並び */
  gap: 32px;
  align-items: center;
  /* 中央揃え */
  max-width: 800px;
  /* 少し幅を狭めて読みやすく */
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  /* テキスト中央揃え */
}

.mascot-image {
  width: 280px;
  height: auto;
  flex-shrink: 0;
}

.mascot-content {
  width: 100%;
  /* グリッドを広げるために幅確保 */
}

.mascot-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--heading-color);
}

.mascot-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mascot-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
}

.mascot-feature h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--heading-color);
}

.mascot-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.mascot-closing {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
  margin: 0;
  padding: 16px;
  background: var(--accent);
  /* border-left: 3px solid var(--brand-strong); 削除: 中央揃えデザインと合わないため */
  border-top: 3px solid var(--brand-strong);
  /* 代わりに上にアクセント */
  width: 100%;
  /* 幅を合わせる */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mascot-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mascot-image {
    width: 150px;
  }

  .mascot-features {
    grid-template-columns: 1fr;
  }

  /* Optimize text size for mobile readability */
  .mascot-lead,
  .quality-box .lead {
    font-size: 16px !important;
    /* Slightly smaller to ensure fit */
    line-height: 1.6 !important;
  }
}

/* Accordion (FAQ, Privacy) */
.accordion-container {
  max-width: 700px;
  margin: 0 auto;
}

.accordion-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: #f5f5f5;
}

.accordion-header[aria-expanded="true"] {
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.accordion-title {
  flex: 1;
  color: var(--primary);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.accordion-content p {
  margin-bottom: 12px;
}

.accordion-content ul {
  margin: 12px 0 12px 24px;
  line-height: 1.8;
}

.accordion-content li {
  margin-bottom: 8px;
}

.privacy-content .contact-info {
  background-color: #f9f9f9;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0;
}

.privacy-content .note {
  background-color: white;
  padding: 16px;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}

/* Large CTA Button */
.btn-large {
  padding: 16px 48px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.modal-content-scrollable {
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer,
.site-footer {
  background-color: var(--bg);
  color: var(--fg);
  padding: 32px 0;
  margin-top: 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-contact {
  background-color: #1a1a1a;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 0;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  z-index: 10000;
  box-sizing: border-box;
  /* 基本スタイルにも追加 */
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.modal-form-container {
  margin-top: 32px;
}

/* Quality Box - Skills Info */
.quality-box {
  background-color: #f5f5f5;
  border: 1px solid var(--line);
  padding: 32px;
  margin-bottom: 40px;
}

.modal-form-container iframe {
  border: none;
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    max-width: 100%;
    /* フルスクリーン化 */
    height: 100%;
    /* 高さも画面一杯に */
    max-height: 100%;
    border-radius: 0;
    /* 角丸削除 */
    padding: 24px 16px;
    margin: 0;
    /* マージン削除 */
    box-sizing: border-box;
    overflow-y: auto;
    /* コンテンツスクロール */
    overflow-x: hidden;
    /* 横揺れ防止 */
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* Mobile Line Break Utility */
.sp-br {
  display: none;
}

@media (max-width: 768px) {
  .sp-br {
    display: inline;
  }
}

/* =========================================
   Paper Driver Course Hub & Modal Styles
   ========================================= */

/* Hub Card Hover Effects */
.hub-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  /* Buttons inside are clickable */
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Modal Content Styles - Timeline */
.flow-timeline .step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 10px;
  bottom: -40px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}

.flow-timeline .step:last-child::before {
  display: none;
}

.flow-timeline h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--heading-color);
}

.flow-timeline p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.6;
}

/* Check List in Modal */
.check-list li {
  margin-bottom: 8px;
  position: relative;
}

.check-list li::before {
  content: '✔';
  color: var(--brand);
  position: absolute;
  left: -1.5em;
  font-weight: bold;
}

/* Responsive adjustments for Hub */
@media (max-width: 600px) {
  .hub-card .card-body {
    padding: 20px 16px;
  }
}

/* =========================================
   Background Music Player
   ========================================= */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-credit {
  font-size: 10px;
  line-height: 1.2;
  text-align: right;
  color: var(--muted);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  font-family: sans-serif;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.music-player:hover .music-credit {
  opacity: 1;
}

.music-credit strong {
  font-size: 11px;
  color: var(--brand-strong);
}

.music-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--brand);
}

.music-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.music-btn.playing {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(7, 33, 62, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(7, 33, 62, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(7, 33, 62, 0);
  }
}

@media (max-width: 600px) {
  .music-player {
    bottom: 80px;
    /* Avoid overlap with potentially fixed bottom navs */
    right: 16px;
  }
}