/* Header Shadow */
.header-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

:root {
  --box-shadow-xs:
    0 1px 2px 0 rgba(10, 13, 18, 0.05);
  --box-shadow-sm:
    0 1px 3px 0 rgba(10, 13, 18, 0.1),
    0 1px 2px -1px rgba(10, 13, 18, 0.1);
  --box-shadow-md:
    0 4px 6px -1px rgba(10, 13, 18, 0.1),
    0 2px 4px -2px rgba(10, 13, 18, 0.06);
  --box-shadow-lg:
    0 12px 16px -4px rgba(10, 13, 18, 0.08),
    0 4px 6px -2px rgba(10, 13, 18, 0.03),
    0 2px 2px -1px rgba(10, 13, 18, 0.04);
  --box-shadow-xl:
    0 20px 24px -4px rgba(10, 13, 18, 0.08),
    0 8px 8px -4px rgba(10, 13, 18, 0.03),
    0 3px 3px -1.5px rgba(10, 13, 18, 0.04);
}

/* グローバルフォント設定：日本語と英語を自動判別 */
* {
  font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
  font-weight: 500 !important;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
  background-color: #fcfcfd;
}

/* 太字設定（標準500、太字700） */
strong,
b,
.font-bold,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

/* 英語部分にはInterを適用（lang属性がある場合） */
:lang(en),
[lang="en"] {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

:lang(en) strong,
:lang(en) b,
:lang(en) .font-bold,
:lang(en) h1,
:lang(en) h2,
:lang(en) h3,
:lang(en) h4,
:lang(en) h5,
:lang(en) h6,
[lang="en"] strong,
[lang="en"] b,
[lang="en"] .font-bold,
[lang="en"] h1,
[lang="en"] h2,
[lang="en"] h3,
[lang="en"] h4,
[lang="en"] h5,
[lang="en"] h6 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

.header-shadow {
  box-shadow: var(--box-shadow-sm);
}

.faq-list {
  margin-top: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: var(--box-shadow-xs);
}

@media (max-width: 767px) {
  .faq-list {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}


.mobile-toc--hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(100%);
  visibility: hidden;
}

.help-cta .faq-cta-button {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}


.breadcrumb-home {
  color: #6b7280;
  transition: color 0.2s ease, fill 0.2s ease;
}

.breadcrumb-home img {
  filter: brightness(0) saturate(100%) invert(44%) sepia(15%) saturate(238%)
    hue-rotate(175deg) brightness(86%) contrast(86%);
  transition: filter 0.2s ease;
}

.breadcrumb-home:hover {
  color: #0ba5ec;
}

.breadcrumb-home:hover img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(61%)
    saturate(521%) hue-rotate(152deg) brightness(95%) contrast(89%);
}

/* FAQ Item */
.faq-item {
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* FAQ Trigger */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-trigger .chevron-icon {
  margin-left: 1rem;
}

.faq-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

/* FAQ Panel */
.faq-panel {
  padding: 0 1.5rem 1.5rem;
  color: #4A5568;
  line-height: 1.75;
}

.faq-panel > * + * {
    margin-top: 1.5rem;
 }
  

@media (max-width: 767px) {
    .faq-panel > * + * {
    margin-top: 1rem;
    }
}

.faq-panel.hidden {
  display: none;
}

.faq-panel:not(.hidden) {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ CTA Button */
.faq-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 1.1rem;
  background-color: #0086C9;
  line-height: 1;
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.faq-cta-button:hover {
  background-color: #065986;
  box-shadow: var(--box-shadow-md);
}

.faq-cta-button:active {
  transform: translateY(0);
}

/* TOC Link */
.toc-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #4A5568;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.2s;
  font-weight: 500;
}

.toc-link:hover {
  color: #0BA5EC;
}

.toc-link[aria-current="page"] {
  background-color: white;
  color: #0BA5EC;
  font-weight: 700;
  box-shadow: var(--box-shadow-sm);
}

/* Mobile TOC */
.mobile-toc {
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-toc.mobile-toc--hidden {
  transform: translateY(100%);
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}

#mobile-toc {
  cursor: pointer;
}

#mobile-toc:focus {
  outline: 2px solid #0E62F4;
  outline-offset: 2px;
}

/* Help CTA */
.help-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e9f6ff, #f5fbff);
  box-shadow: var(--box-shadow-lg);
}

.help-cta > * {
  position: relative;
  z-index: 1;
}

.help-cta::before,
.help-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 40px solid rgba(11, 165, 236, 0.18);
  z-index: 0;
  opacity: 0.4;
  background: transparent;
}

.help-cta::before {
  width: clamp(280px, 45vw, 540px);
  height: clamp(280px, 45vw, 540px);
  top: -102%;
  left: -20%;
  border-width: 104px;
}

.help-cta::after {
  width: clamp(200px, 32vw, 360px);
  height: clamp(200px, 32vw, 360px);
  bottom: -72%;
  right: -4%;
  border-width: 80px;
}

@media (max-width: 767px) {
  .help-cta::before {
    top: -48%;
    left: -36%;
    border-width: 56px;
  }

  .help-cta::after {
    bottom: -32%;
    right: -32%;
    border-width: 40px;
  }
}

/* Footer Link Row */
.footer-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.footer-link-row:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #C3D2EA;
}

.footer-link-row:hover img {
  filter: brightness(0) saturate(100%) invert(73%) sepia(33%) saturate(713%)
    hue-rotate(166deg) brightness(104%) contrast(97%);
}

.footer-link-row span {
  flex: 1;
}

/* Footer Text Link */
.footer-text-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-text-link:hover {
  color: #C3D2EA;
}

.footer-text-link:hover img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(8%) saturate(1000%)
    hue-rotate(180deg) brightness(92%) contrast(92%);
}

.footer-text-link--icon {
  gap: 0.375rem;
}

/* Chevron Icon */
.chevron-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-trigger {
    padding: 1rem 1.5rem;
  }

  .faq-panel {
    padding: 0 1.5rem 1.5rem;
  }
}

/* Listing Item with Dot */
.listing-item {
  position: relative;
  padding-left: 1rem;
  text-align: left !important;
  line-height: 1.6;
}

.listing-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background-color: #4A5568;
  border-radius: 2px;
}

/* Listing Item with Blue Dot (for emphasis) */
.listing-item-blue {
  position: relative;
  padding-left: 1rem;
  text-align: left !important;
  line-height: 1.6;
}

.listing-item-blue::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background-color: #0086C9;
  border-radius: 50%;
}

/* Listing Label Container */
.listing-label-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
  gap: 8px;
}

/* Listing Label */
.listing-label {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background-color: #F7F8FA;
  color: #4A5568;
  border: 1px solid #E2E8F0;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Listing Image Caption */
.listing-image-caption {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #F97316;
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.listing-image-caption-blue {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #3B82F6;
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Listing Menu Table */
#listing-menu table {
  table-layout: auto;
}

#listing-menu table thead th:first-child,
#listing-menu table tbody th {
  width: 1%;
  white-space: nowrap;
}

#listing-menu table thead th:nth-child(2),
#listing-menu table thead th:nth-child(3) {
  width: 49.5%;
}

#listing-menu table tbody td {
  width: 49.5%;
}

/* Listing Title with Number */
.listing-title {
  position: relative;
  display: inline-block;
  padding-left: 7rem;
  z-index: 2;
}

.listing-title-orange::before {
  content: '01';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 5rem;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: #F97316;
  line-height: 1;
  z-index: 1;
}

.listing-title-blue::before {
  content: '02';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 5rem;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: #3B82F6;
  line-height: 1;
  z-index: 1;
}

.listing-title-blue-03::before {
  content: '03';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 5rem;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: #3B82F6;
  line-height: 1;
  z-index: 1;
}

.listing-title-blue-04::before {
  content: '04';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 5rem;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: #3B82F6;
  line-height: 1;
  z-index: 1;
}

/* Listing Caption with same padding as title */
.listing-caption {
  padding-left: 7rem;
}

/* Listing Title Number for SP */
.listing-title-number {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 3.8rem;
  font-weight: 700 !important;
  line-height: 1;
  flex-shrink: 0;
}

.listing-title-number-orange {
  color: #F97316;
}

.listing-title-number-blue {
  color: #3B82F6;
}

/* Schedule scroll container with shadow */
.schedule-scroll-container {
  position: relative;
}

/* thの左borderを確実に表示（sticky要素のborderが消えないように） */
.schedule-scroll-container th[scope="row"] {
  border-left: 1px solid #E2E8F0 !important;
  box-shadow: -1px 0 0 0 #E2E8F0; /* 左borderをbox-shadowで補強 */
}

/* すべてのテーブルのtbody thの背景色を統一（濃いグレー） */
table tbody th[scope="row"] {
  background-color: #EEF2F6 !important;
}

/* 掲載詳細のテーブルのtbody thの調整 */
#listing-images table tbody th[scope="row"] {
  /* SP: width 30%, padding p-2 */
  width: 30% !important;
  padding: 0.5rem !important;
}

/* PC: width 20%, padding px-6 py-4 */
@media (min-width: 768px) {
  #listing-images table tbody th[scope="row"] {
    width: 20% !important;
    padding: 1rem 1.5rem !important;
  }
}

/* PC表示時のtbody tdの調整 */
@media (min-width: 768px) {
  .schedule-scroll-container .schedule-table tbody td {
    min-width: 88px;
  }

  /* PC表示時のtbody tdの偶数列に背景色を追加（薄いグレー） */
  .schedule-scroll-container .schedule-table tbody td:nth-child(odd) {
    background-color: #F9FAFB;
  }
}

/* SP表示時のtbody trの偶数行に背景色を追加（薄いグレー） */
@media (max-width: 767px) {
  .schedule-table tbody tr:nth-child(even) td {
    background-color: #F9FAFB;
  }
}

.schedule-scroll-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.schedule-scroll-shadow-left {
  left: 128px; /* thの幅（min-w-[128px]）に合わせる */
  background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
}

.schedule-scroll-shadow-right {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.08), transparent);
}

.schedule-scroll-wrapper.scrollable-left .schedule-scroll-shadow-left {
  opacity: 1;
}

.schedule-scroll-wrapper.scrollable-right .schedule-scroll-shadow-right {
  opacity: 1;
}

.schedule-scroll-wrapper.scrolled-to-start .schedule-scroll-shadow-left {
  opacity: 0;
}

.schedule-scroll-wrapper.scrolled-to-end .schedule-scroll-shadow-right {
  opacity: 0;
}

/* SP用タイトルのフォントウェイトを確実に適用 */
.md\:hidden h3 {
  font-weight: 700 !important;
}

