/* ============================================
   Common Styles - Variables, Header, Footer
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --color-primary: #006E66;     /* 旧 #00B4A2。白背景比 6.1:1 で AA 適合 */
  --color-primary-dark: #004F48; /* 旧 #008F80。白背景比 9.5:1 */
  --color-primary-light: #E8F5F3;
  --color-accent: #F5A623;
  --color-accent-hover: #E0941A;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #FFFFFF;
  --color-bg-gray: #F5F5F5;
  --color-border: #E0E0E0;
  --color-white: #FFFFFF;
  --font-main: 'Noto Sans JP', sans-serif;
  --max-width: 1100px;
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
}

@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
}

/* --- Skip Navigation --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
}

.skip-nav:focus {
  top: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

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

/* 全インタラクティブ要素の統一フォーカス指示子（キーボード操作時のみ表示） */
*:focus-visible {
  outline: 3px solid #005C52;
  outline-offset: 2px;
}

/* スキップナビ: primary 背景上のため白アウトライン */
.skip-nav:focus-visible {
  outline-color: var(--color-white);
}

/* フッター: #333 背景上のリンクは白アウトライン */
.footer :focus-visible {
  outline-color: var(--color-white);
}

/* --- Headings --- */
h1 { font-size: 28px; font-weight: 700; line-height: 1.4; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.4; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }

@media (min-width: 1024px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

/* --- Section --- */
.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section__title {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 16px;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s, transform 0.2s;
  min-height: 44px;
  min-width: 44px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--accent {
  background-color: var(--color-accent);
  color: #1A1A1A; /* 白→暗色に変更。オレンジ背景比 9.6:1 */
}

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

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background-color: var(--color-primary-light);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* --- Placeholder Image --- */
.placeholder-img {
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
  border-radius: 8px;
  min-height: 200px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: var(--color-primary-dark);
}

.breadcrumb__separator {
  margin: 0 8px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.header--shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
}

.header__logo {
  margin-right: auto;
}

.header__logo a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.header__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.header__logo-sub {
  display: block;
  font-size: 10px;
  color: var(--color-text-light);
  font-weight: 400;
}

/* ヘッダー内 福岡県ロゴ */
.header__pref {
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.header__pref a {
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  background-color: var(--color-white);
  border-radius: 4px;
  transition: opacity 0.3s;
}

.header__pref img {
  height: 22px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (min-width: 768px) {
  .header__pref img {
    height: 32px;
  }
}

.header__pref a:hover {
  opacity: 0.8;
}

/* PC Nav */
.header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

.header__nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s;
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-cta {
  background-color: var(--color-accent);
  color: #1A1A1A; /* 白→暗色に変更。オレンジ背景比 9.6:1 */
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.header__nav-cta:hover {
  background-color: var(--color-accent-hover);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background-color: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 16px 120px;
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

/* SP Fixed CTA Bar */
.sp-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px;
  gap: 8px;
}

@media (min-width: 1024px) {
  .sp-cta-bar {
    display: none;
  }
}

.sp-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  min-height: 44px;
}

.sp-cta-bar__btn--student {
  background-color: var(--color-primary);
}

.sp-cta-bar__btn--company {
  background-color: var(--color-accent);
  color: #1A1A1A; /* 白→暗色に変更。オレンジ背景比 9.6:1 */
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: #333;
  color: var(--color-white);
  padding: 48px 0 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer__logo {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-white);
}

.footer__logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.footer__logo-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 16px;
}

.footer__nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 24px;
  font-size: 13px;
}

.footer__sub-nav a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer__sub-nav a:hover {
  color: var(--color-white);
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer__sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s;
}

.footer__sns-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer__sns-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer__fukuoka {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.footer__fukuoka a {
  display: inline-flex;
  background-color: var(--color-white);
  padding: 8px 16px;
  border-radius: 6px;
  transition: opacity 0.3s;
}

.footer__fukuoka img {
  height: 40px;
  width: auto;
  display: block;
}

.footer__fukuoka a:hover {
  opacity: 0.85;
}

.footer__org {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer__org-host {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Body padding for SP CTA bar --- */
body {
  padding-bottom: 72px;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* --- Category Label --- */
.label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-white);
}

.label--student { background-color: #7B3F9E; }  /* 受講生向け */
.label--company { background-color: #3D5298; }  /* 企業向け */
.label--info    { background-color: #666666; }  /* お知らせ */
.label--event   { background-color: #8B5A00; }  /* イベント */

/* --- Concept (スパイラル図) --- */
.concept {
  background-color: var(--color-bg-gray);
}

.concept__text {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--color-text-light);
}

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

@media (min-width: 768px) {
  .concept__steps {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
}

.concept__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.concept__step-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
  gap: 2px;
}

.concept__step-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.concept__step-label {
  font-size: 13px;
  font-weight: 700;
  max-width: 120px;
}

.concept__arrow {
  font-size: 24px;
  color: var(--color-primary);
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .concept__arrow {
    transform: rotate(0deg);
  }
}

/* ============================================
   Coming Soon Modal
   ============================================ */
.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-modal[hidden] {
  display: none;
}

.coming-soon-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.coming-soon-modal__box {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  width: min(320px, calc(100vw - 32px));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.coming-soon-modal__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.coming-soon-modal__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
}

.coming-soon-modal__close {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.coming-soon-modal__close:hover {
  background-color: var(--color-primary-dark);
}

/* ============================================
   参加無料バッジ
   ============================================ */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

.free-badge--concept {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  margin: 24px auto 32px;
  display: flex;
  width: fit-content;
}

a .accent-color {
    color: #006e66 !important;
}