/* ============================================================
   地域おこし協力隊インターン募集サイト — SHARED STYLES
   ============================================================ */

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CSS CUSTOM PROPERTIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --forest-900: #0F2409;
  --forest-800: #1A3310;
  --forest-700: #2D5A1E;
  --forest-600: #3D7A28;
  --forest-500: #4E9A32;
  --forest-100: #EEF4EA;
  --forest-accent: #8B6914;

  --sea-900: #051929;
  --sea-800: #0A2E52;
  --sea-700: #0E4378;
  --sea-600: #1456A0;
  --sea-500: #1976D2;
  --sea-100: #E3F2FD;
  --sea-accent: #00897B;

  --n900: #0F0F0F;
  --n800: #1A1A1A;
  --n600: #4A4A4A;
  --n400: #9A9A9A;
  --n200: #E8E8E8;
  --n100: #F5F5F3;
  --white: #FFFFFF;

  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans: 'Noto Sans JP', 'Helvetica Neue', sans-serif;

  --max-w: 1160px;
  --nav-h: 72px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg: 0 10px 48px rgba(0,0,0,0.16);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--n800);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9000;
  height: var(--nav-h);
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease);
}

.navbar--transparent {
  background: transparent;
}

.navbar--solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.navbar__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms;
}

.navbar__logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 400ms;
}

.navbar--transparent .navbar__logo { color: rgba(255,255,255,0.95); }
.navbar--transparent .navbar__logo-dot { background: rgba(255,255,255,0.55); }
.navbar--solid .navbar__logo { color: var(--n800); }
.navbar--solid .navbar__logo-dot { background: var(--forest-600); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 300ms var(--ease);
}

.navbar__link:hover::after,
.navbar__link--active::after { width: 100%; }

.navbar--transparent .navbar__link { color: rgba(255,255,255,0.85); }
.navbar--solid .navbar__link { color: var(--n600); }
.navbar--solid .navbar__link:hover { color: var(--n800); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 4px;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms, opacity 200ms;
}

.navbar--transparent .navbar__toggle { color: white; }
.navbar--solid .navbar__toggle { color: var(--n800); }

/* Mobile menu */
@media (max-width: 860px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .navbar__links.is-open { display: flex; }

  .navbar__link {
    padding: 15px 24px;
    color: var(--n600) !important;
    border-bottom: 1px solid var(--n200);
    font-size: 0.95rem;
  }

  .navbar__link::after { display: none; }
  .navbar__toggle { display: flex; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE HERO (sub-pages)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  transition: transform 8s linear;
}

.page-hero:is(:hover, :focus-within) .page-hero__bg {
  transform: scale(1);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.28) 55%,
    rgba(0,0,0,0.08) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 56px 32px;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  color: white;
}

.page-hero__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-hero__sub {
  font-size: 0.95rem;
  opacity: 0.78;
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT UTILITIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}

.section { padding-block: 96px; }
.section--sm { padding-block: 64px; }
.section--lg { padding-block: 128px; }
.section--gray { background: var(--n100); }
.section--dark { background: var(--n900); color: white; }

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

@media (max-width: 780px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .section { padding-block: 64px; }
  .section--sm { padding-block: 48px; }
  .section--lg { padding-block: 80px; }
  .container { padding-inline: 20px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TYPOGRAPHY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
}

.body-text {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 2;
  color: var(--n600);
}

.divider {
  width: 48px;
  height: 2px;
  margin-block: 20px;
  border-radius: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: all 200ms var(--ease);
  white-space: nowrap;
}

.btn--lg { padding: 18px 48px; font-size: 1rem; }

.btn--forest {
  background: var(--forest-700);
  color: white;
  border-color: var(--forest-700);
}
.btn--forest:hover {
  background: var(--forest-800);
  border-color: var(--forest-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 30, 0.35);
}

.btn--sea {
  background: var(--sea-700);
  color: white;
  border-color: var(--sea-700);
}
.btn--sea:hover {
  background: var(--sea-800);
  border-color: var(--sea-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 67, 120, 0.35);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.55);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TIMELINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline__line {
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--n200);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--n200);
}

.timeline__day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__entry {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--n600);
}

.timeline__time {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 52px;
  padding-top: 2px;
  opacity: 0.65;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INFO TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.info-table th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  width: 170px;
  vertical-align: top;
  white-space: nowrap;
}

.info-table td {
  padding: 14px 20px;
  vertical-align: top;
  line-height: 1.75;
  color: var(--n600);
}

.info-table tr { border-bottom: 1px solid var(--n200); }
.info-table tr:last-child { border-bottom: none; }

@media (max-width: 560px) {
  .info-table, .info-table thead, .info-table tbody, .info-table tr { display: block; }
  .info-table th { width: 100%; padding: 16px 16px 4px; background: transparent !important; }
  .info-table td { padding: 4px 16px 16px; }
  .info-table tr { border-bottom: 1px solid var(--n200) !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURE CARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.feature-card {
  padding: 36px 28px;
  border-radius: 8px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--n600);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TARGET / ELIGIBILITY CARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.target-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.target-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sea-100);
}

.target-card__body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.target-card__body p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--n600);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cta-section {
  padding-block: 96px;
  text-align: center;
  color: white;
}

.cta-section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cta-section__sub {
  font-size: 1rem;
  opacity: 0.82;
  margin-bottom: 40px;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.8;
}

.cta-section__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FADE ANIMATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
[data-fade].is-visible { opacity: 1; transform: none; }
[data-fade-d="1"] { transition-delay: 100ms; }
[data-fade-d="2"] { transition-delay: 200ms; }
[data-fade-d="3"] { transition-delay: 320ms; }
[data-fade-d="4"] { transition-delay: 440ms; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  background: #0D0D0D;
  color: rgba(255,255,255,0.55);
  padding: 72px 32px 40px;
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__nav-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer__nav-col a {
  display: block;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 150ms;
}
.footer__nav-col a:hover { color: white; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

@media (max-width: 780px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav-grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .footer__nav-grid { grid-template-columns: 1fr; }
  .footer { padding: 56px 20px 32px; }
}
