/* =========================================================
   topo 3rd Anniversary special site
   -----------------------------------------------------------
   目次 (Table of contents)
     1. Reset / base styles
     2. Buttons / badges / tags
     3. Header
     4. Hero
     5. NOW / NEXT cards
     6. Section headings
     7. Contents grid
     8. Timeline
     9. CTA
    10. Footer
    11. Responsive — Tablet   (max-width: 1024px / 860px)
    12. Responsive — Mobile   (max-width: 720px / 420px)
   ========================================================= */

/* ---------------------------------------------------------
   1. Reset / base styles
   --------------------------------------------------------- */
:root{
  --navy: #16233f;
  --navy-2: #1b2a4a;
  --ink: #223046;
  --teal: #22b6c4;
  --green: #6dc84a;
  --blue: #1aa5ee;
  --blue-deep: #0671d8;
  --pink: #fd2670;
  --pink-bg: #fdedf4;
  --blue-bg: #eaf0f6;
  --orange: #f0803d;
  --teal-tag: #16a099;
  --tan: #d9b98c;
  --tan-text: #5c4423;
  --gray-bg: #f5f6f8;
  --gray-border: #e6e8ec;
  --text-sub: #5c6577;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-h: 76px;
  font-size: 16px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body{
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }

.section-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   2. Buttons / badges / tags
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn-primary{
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,35,63,.28); }
.btn-small{ padding: 10px 20px; font-size: 0.85rem; }

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins","Noto Sans JP",sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  padding: 6px 22px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.02em;
  transform: rotate(-3deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.badge-pink{ background: var(--pink); }
.badge-blue{ background: var(--blue-deep); }

.tag{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 10px;
}
.tag-1{ background: var(--blue); }
.tag-2{ background: var(--teal-tag); }
.tag-3{ background: var(--orange); }
.tag-4{ background: var(--green); }
.tag-5{ background: var(--pink); }
.tag-6{ background: var(--tan); color: var(--tan-text); }

/* =========================================================
   3. Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
  height: var(--header-h);
}
.site-header.is-scrolled{
  box-shadow: 0 4px 16px rgba(16,24,40,.08);
  border-color: var(--gray-border);
}
.header-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Logo is an <img> (images/logo.png); height is fixed, width scales to match its ratio */
.logo-image{
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.footer-logo .logo-image{ height: 28px; }
.logo-tagline{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 1px solid var(--gray-border);
  padding-left: 12px;
  margin-left: 2px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a:not(.btn){
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.main-nav a:not(.btn)::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav a:not(.btn):hover::after{ transform: scaleX(1); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span{
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   4. Hero
   ========================================================= */
.hero{
  line-height: 0;
}
.hero-image{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   5. NOW / NEXT cards
   ========================================================= */
.now-next{
  padding: 0 24px;
  margin-top: -1px;
}
.now-next-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  transform: translateY(-34px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.promo-card{
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
}
.promo-now{ background: var(--pink-bg); }
.promo-next{ background: var(--blue-bg); }

.promo-eyebrow{
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 18px 6px;
  font-size: 0.95rem;
}
.promo-body{
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 22px;
  align-items: center;
}
.promo-thumb{
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  aspect-ratio: 16/9;
}
.promo-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.promo-thumb-blur{
  background: linear-gradient(135deg,#c9d8e8,#9fb7cf);
  filter: blur(0.3px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.question-mark{
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  opacity: .9;
}
.promo-text h2{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
}
.promo-sub{
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
  font-size: 0.95rem;
}
.promo-desc{
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-sub);
}
.promo-dates{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
}
.promo-dates svg{ color: var(--pink); }

/* =========================================================
   6. Section headings
   ========================================================= */
.section-heading{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 30px;
}
.section-heading h2{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.heading-icon{ display: inline-flex; transform: translateY(1px); }
.section-heading p{
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* =========================================================
   7. Contents grid
   ========================================================= */
.contents{
  background: var(--gray-bg);
  padding: 64px 24px 70px;
  margin-top: 40px;
}
.content-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.content-card{
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.content-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(16,24,40,.12);
}
.content-thumb{ aspect-ratio: 16/9; overflow: hidden; }
.content-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.content-card > .tag,
.content-card > h3,
.content-card > p{ margin-left: 16px; margin-right: 16px; }
.content-card > .tag{ margin-top: 16px; }
.content-card h3{
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.content-card > p{
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 18px;
}

/* =========================================================
   8. Timeline
   ========================================================= */
.timeline{ padding: 70px 24px 80px; }
.timeline-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.timeline-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-card{
  background: var(--blue-bg);
  border-radius: var(--radius-md);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
}
.timeline-year{
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--green);
  margin-bottom: 12px;
  width: fit-content;
}
.year-2023{ color: var(--blue); }
.year-2024{ color: var(--teal-tag); }
.year-2025{ color: var(--teal-tag); }
.year-2026{ color: var(--blue); }
.timeline-card h3{
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  min-height: 2.8em;
}
.timeline-desc{
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 10px;
  flex-grow: 1;
}
.timeline-media{
  margin-top: 16px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-media img{
  border-radius: var(--radius-sm);
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =========================================================
   9. CTA
   ========================================================= */
.cta{
  position: relative;
  overflow: hidden;
  padding: 70px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2)),
  url("../images/bg.jpg") center/cover no-repeat;
  isolation: isolate;
}
.cta-decor{ display: none; }
.cta-sun{ position: absolute; top: 8%; right: 22%; }
.cta-hills{ position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(80px, 18vw, 170px); }
.cta-inner{
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}
.cta-brush{
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.cta-thanks{
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}
.cta-text h2{
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  margin-top: 6px;
}
.cta-desc{
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--navy-2);
  font-weight: 500;
}

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer{
  background: #fff;
  border-top: 1px solid var(--gray-border);
  padding: 34px 24px 20px;
}
.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: space-between;
}
.footer-logo .logo-tagline{ display: inline-block; }
.footer-nav{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-2);
}
.footer-copy{
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 26px;
}

/* =========================================================
   11. Responsive — Tablet (max-width: 1024px)
   ========================================================= */
@media (max-width: 1024px){
  .content-grid{ grid-template-columns: repeat(3, 1fr); }
  .timeline-grid{
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }
  .timeline-arrow{ display: none; }
  .now-next-inner{ transform: translateY(-24px); }
}

/* Narrower tablets: stack the NOW/NEXT promo cards and CTA text/image */
@media (max-width: 860px){
  .promo-body{ grid-template-columns: 1fr; }
  .promo-thumb{ aspect-ratio: 16/9; }
  .cta-inner{ grid-template-columns: 1fr; text-align: center; gap: 28px; }
}

/* =========================================================
   12. Responsive — Mobile (max-width: 720px)
   ========================================================= */
@media (max-width: 720px){
  :root{ --header-h: 64px; }

  .logo-tagline{
    display: inline-block;
    font-size: 0.66rem;
    padding-left: 10px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: 0 12px 20px rgba(16,24,40,.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open{
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  .main-nav a:not(.btn){
    padding: 14px 4px;
    border-bottom: 1px solid var(--gray-border);
  }
  .main-nav .btn{ margin-top: 14px; justify-content: center; }
  .nav-toggle{ display: flex; }

  .now-next{ padding: 0 16px; }
  .now-next-inner{
    grid-template-columns: 1fr;
    transform: translateY(-20px);
    gap: 16px;
  }
  .promo-card{ padding: 22px 18px 24px; }

  .contents{ padding: 46px 16px 50px; }
  .content-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-heading h2{ font-size: 1.25rem; }

  .timeline{ padding: 50px 16px 56px; }
  .timeline-grid{ grid-template-columns: 1fr; }
  .timeline-card h3{ min-height: 0; }
  .timeline-arrow{
    display: flex;
    transform: rotate(90deg);
    margin: -4px auto;
  }

  .cta{ padding: 50px 20px; }

  .footer-inner{ flex-direction: column; align-items: flex-start; }
}

/* Small phones: tighten grid gaps a bit further */
@media (max-width: 420px){
  .content-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .badge{ font-size: 0.95rem; padding: 5px 16px; }
}
