/* Base styling for APN 2026 static export */
:root {
  --color-navy: #1a2238;
  --color-primary: #007bff;
  --color-accent: #3abf8e;
  --color-light: #f8f9fa;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-body: #111827;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 15px 45px rgba(17, 24, 39, 0.14);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-light);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #005ecb;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding-top: 0; /* 5remから0に変更 */
}

main p {
  font-size: 1.125rem; /* text-lg (18px) - submission.cssと統一 */
  line-height: 1.7;
}

.section-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
  margin: 0 0 2rem; /* submission.cssと統一 */
  color: var(--color-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading h1 {
  font-size: 2.25rem; /* text-4xl (36px) - submission.cssと統一 */
  line-height: 1.2;
}

.section-heading h2 {
  font-size: 1.5rem; /* text-2xl (24px) - submission.cssと統一 */
  line-height: 1.3;
}

.section-heading h3 {
  font-size: 1.5rem; /* text-2xl (24px) - submission.cssと統一 */
  line-height: 1.4;
}

.section-heading__divider {
  height: 0.25rem; /* submission.cssと統一 */
  width: 6rem;
  background: var(--color-primary);
  border-radius: 9999px; /* rounded-full - submission.cssと統一 */
  margin-bottom: 2rem; /* submission.cssと統一 */
}

.section-heading--center {
  text-align: center;
}

.section-heading--center .section-heading__divider {
  margin-left: auto;
  margin-right: auto;
}

.site-nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.75rem;
  padding: 0.5rem 0.8rem;
  color: #fff;
  font-weight: 600;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.site-nav__toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-nav__toggle .icon-close {
  display: none;
}

.site-nav__toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.site-nav__toggle[aria-expanded="true"] .icon-close {
  display: inline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus {
  outline: 3px solid rgba(0, 123, 255, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 123, 255, 0.3);
}

.btn--primary:hover {
  background: #0069d9;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 非公開ページのボタンスタイル（Register Nowボタン用） */
.btn--outline[href="#"] {
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  position: relative;
}

.btn--outline[href="#"]:hover {
  background: transparent;
  transform: none;
}

.btn--outline[href="#"]::after {
  content: 'To be updated';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.btn--outline[href="#"]:hover::after {
  opacity: 1;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background: #2da57a;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge--accent {
  background: var(--color-accent);
  color: #fff;
}

.card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table thead th {
  text-align: left;
  font-weight: 600;
  padding: 1rem 1.5rem;
  background: #f3f4f6;
  color: var(--color-navy);
}

.table tbody td {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
  color: #374151;
}

.table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 14, 32, 0.12); /* Changed from 0 10px 24px rgba(10, 14, 32, 0.22) */
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 5rem; /* Fixed height matching Figma h-20 */
  padding: 0 1.5rem; /* Remove vertical padding, use height instead */
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.site-brand__logo {
  height: 2.75rem;
  width: auto;
}

.site-footer .site-brand__logo {
  height: 4.75rem;
}

.site-brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.site-brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.site-brand__subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list.is-open {
  display: flex;
}

.site-nav__link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-primary);
}

.site-nav__link--active {
  color: #fff;
}

/* 非公開ページのリンクスタイル（ヘッダー用） */
.site-nav__link[href="#"] {
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  cursor: not-allowed;
}

.site-nav__link[href="#"]:hover {
  color: rgba(255, 255, 255, 0.35);
}

.site-nav__link[href="#"]::after {
  content: 'To be updated';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.site-nav__link[href="#"]:hover::after {
  opacity: 1;
}

.nav-group {
  position: relative;
}

/* デフォルトでデスクトップ専用要素を非表示 */
.nav-group--desktop-only {
  display: none;
}

.nav-group__trigger {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
  user-select: none;
}

.nav-group__trigger:hover {
  color: var(--color-primary);
}

.nav-group__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 12rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
}

/* PC版: Hoverでドロップダウンを表示 */
@media (min-width: 961px) {
  .nav-group:hover .nav-group__menu {
    display: flex;
  }
}

.nav-group__menu a {
  padding: 0.625rem 1rem;
  color: var(--color-body);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: background 0.2s ease;
}

.nav-group__menu a:hover {
  background: rgba(0, 123, 255, 0.08);
  color: var(--color-primary);
}

/* PC表示時: ドロップダウンを表示、フラット項目を非表示 */
@media (min-width: 961px) {
  .nav-group--desktop-only {
    display: block;
  }
  
  .nav-item--mobile-only {
    display: none;
  }
}

/* モバイル・タブレット表示時: Aboutドロップダウンを非表示 */
@media (max-width: 960px) {
  .nav-group--desktop-only {
    display: none !important;
  }
  
  .site-header__inner {
    height: auto;
    min-height: 4rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .site-nav__toggle {
    display: inline-flex;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
  }

  .site-nav {
    display: none;
  }

  .site-nav__toggle[aria-expanded="true"] ~ .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
    max-width: 90%;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    gap: 0.25rem;
  }

  .site-nav__list li {
    display: block;
    text-align: left;
  }

  .site-nav__list.is-open {
    padding: 1rem 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    background: transparent;
    border-radius: 0;
  }
  
  .site-nav__link:hover {
    color: var(--color-primary);
    background: transparent;
  }
  
  .site-nav__link--active {
    color: #fff;
    background: transparent;
  }

  .nav-item--mobile-only {
    display: block;
    text-align: left;
  }

  .nav-group summary {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border-radius: 0;
    text-align: left;
    display: block;
  }

  .nav-group__menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.4rem 0 0 2rem;
    background: transparent;
  }
  
  .nav-group__menu a {
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    display: block;
  }
  
  .nav-group__menu a:hover {
    background: transparent;
    color: var(--color-primary);
  }
}

@media (min-width: 768px) {
  .section-heading h1 {
    font-size: 3rem; /* md:text-5xl (48px) - submission.cssと統一 */
  }
}

@media (max-width: 768px) {
  .section-heading h1 {
    font-size: 2rem; /* 32px on mobile */
  }
  
  .section-heading h2 {
    font-size: 1.5rem; /* 24px on mobile */
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .site-header__inner {
    padding: 1rem;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--color-navy);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 0; /* マージンを削除 */
}

.site-footer__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer ul li {
  font-size: 0.9375rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* 非公開ページのリンクスタイル（フッター用） */
.site-footer a[href="#"] {
  color: rgba(255, 255, 255, 0.35);
  position: relative;
  cursor: not-allowed;
}

.site-footer a[href="#"]:hover {
  color: rgba(255, 255, 255, 0.35);
}

.site-footer a[href="#"]::after {
  content: 'To be updated';
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.375rem 0.625rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.site-footer a[href="#"]:hover::after {
  opacity: 1;
}

.site-footer__meta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .site-footer {
    padding: 2rem 0 1rem;
    margin-top: 3rem;
  }
}
