/* ============================================================
   株式会社ミライケア — Corporate Site Stylesheet
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; transition: opacity 0.2s; }
ul { list-style: none; }

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  --blue-main:  #0056b3;
  --blue-dark:  #003d82;
  --navy:       #001f3f;
  --navy-mid:   #002d5c;
  --blue-light: #F0F8FF;
  --blue-pale:  #e8f0fe;
  --gray-light: #f8f9fb;
  --gray-line:  #e0e6ef;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --white:      #ffffff;
  --transition: 0.3s ease;
  --shadow-sm:  0 2px 8px rgba(0,31,63,.08);
  --shadow-md:  0 6px 24px rgba(0,31,63,.13);
  --shadow-lg:  0 12px 40px rgba(0,31,63,.18);
  --radius:     12px;
  --section-pad: 130px 0;
}

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.pc-only { display: inline; }

.sp-only { display: none; }

/* Section common labels */
.section-en-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--blue-main);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-ja-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-main), #64b5f6);
  border-radius: 2px;
  margin-bottom: 32px;
}
.section-divider.center { margin-left: auto; margin-right: auto; }
.section-header-center { text-align: center; }
.section-header-center .section-en-label { display: block; }
.section-lead {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-top: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-white {
  background: var(--white);
  color: var(--blue-main);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,86,179,.25);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
/* Transparent state (over hero) */
.site-header.is-top {
  background: transparent;
  box-shadow: none;
  padding: 20px 0;
}
/* Scrolled state */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,31,63,.10);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  transition: color var(--transition);
}
.is-top .logo-main,
.is-top .logo-sub { color: var(--white); }
.is-scrolled .logo-main { color: var(--navy); }
.is-scrolled .logo-sub  { color: var(--text-mid); }

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.is-top .nav-link { color: rgba(255,255,255,0.9); }
.is-top .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.15); }
.is-scrolled .nav-link { color: var(--navy); }
.is-scrolled .nav-link:hover { color: var(--blue-main); background: var(--blue-pale); }

/* CTA nav button */
.nav-cta {
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 6px 18px !important;
}
.is-top .nav-cta {
  border-color: rgba(255,255,255,0.7);
  color: var(--white) !important;
}
.is-top .nav-cta:hover { background: rgba(255,255,255,0.2); }
.is-scrolled .nav-cta {
  background: var(--blue-main);
  color: var(--white) !important;
  border-color: var(--blue-main);
}
.is-scrolled .nav-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.is-top .nav-toggle span  { background: var(--white); }
.is-scrolled .nav-toggle span { background: var(--navy); }

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
background:#0056B3;
}
.hero-bg-img {
  max-width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,31,63,0.72) 0%,
    rgba(0,86,179,0.45) 60%,
    rgba(0,86,179,0.20) 100%
  );
}

.hero-content {
  position: absolute;
  z-index: 1;
  width: 100%;
text-align:center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.hero-text-box {
  max-width: 100%;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.hero-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-catch span{
color:#FFFF00;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
  margin-bottom: 40px;
text-align:center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
position: absolute;
bottom: 5%;
left: 50%;
transform: translateX(-50%);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  transition: opacity var(--transition);
}
.hero-scroll-indicator:hover { opacity: 0.85; }
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTION 2: MESSAGE
   ============================================================ */
.section { padding: var(--section-pad); }

.message-section { background: var(--white);
  background-image: url("../images/message_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.message-grid {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 60px;
  align-items: start;
}

.section-label-block { padding-top: 8px; }

.section-en-large {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--blue-pale);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  /* Gradient text */
  background: linear-gradient(135deg, #c8d9f0 0%, #a8c4e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-ja-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.message-ceo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-line);
}
.ceo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-pale);
}
.ceo-caption {
  display: flex;
  flex-direction: column;
}
.ceo-title {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.ceo-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.message-text {
  font-size: 0.97rem;
  line-height: 1.95;
  color: var(--text-mid);
  margin-bottom: 32px;
  border: none;
}

.message-text span{
background:#FFFF00;
}

.message-text p + p { margin-top: 1.4em; }

.message-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-line);
}
.sig-company {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.sig-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   SECTION 3: SERVICE
   ============================================================ */
.service-section {
  background: var(--blue-light);
  padding-top: 130px;
  padding-bottom: 80px;
}

.service-title-wrapper {
  margin-bottom: 60px;
}

/* Carousel Container */
.service-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.service-carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.service-carousel-track-wrap:active { cursor: grabbing; }

.service-carousel-track {
  display: flex;
  gap: 30px;
  padding: 20px 0 40px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  /* Leading space = container left padding */
  padding-left: 40px;
}

/* Service Card */
.service-card {
  flex: 0 0 320px;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .card-img { transform: scale(1.04); }

.card-body {
  padding: 24px 24px 28px;
  background: var(--white);
}
.card-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-main);
  letter-spacing: 0.15em;
  background: var(--blue-pale);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
.card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.card-text {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Carousel Buttons */
.carousel-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--blue-main);
  background: var(--white);
  color: var(--blue-main);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: var(--blue-main);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}
.carousel-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.carousel-btn-prev { margin-left: 40px; margin-right: 16px; }
.carousel-btn-next { margin-right: 40px; margin-left: 16px; }

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 50px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b0c4de;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.dot.active {
  background: var(--blue-main);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   SECTION 4: CONCEPT
   ============================================================ */
.concept-section { background: var(--white); }

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.concept-img-wrap {
  position: relative;
}
.concept-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.concept-img-deco {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--blue-pale);
  border-radius: 20px;
  z-index: 0;
}

.concept-text-inner {
  padding: 40px 0 40px 20px;
}
.concept-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--blue-main);
  line-height: 1.55;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.concept-body {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.95;
  margin-bottom: 1.3em;
}

.concept-values {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-line);
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.value-icon {
  font-size: 1.4rem;
  color: var(--blue-main);
  background: var(--blue-pale);
  padding: 12px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SECTION 5: COMPANY
   ============================================================ */
.company-section { background: var(--gray-light); }

.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table th,
.company-table td {
  padding: 22px 28px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--gray-line);
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }
.company-table th {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--blue-pale);
  width: 200px;
  white-space: nowrap;
  vertical-align: top;
}
.company-table td { color: var(--text-mid); }
.td-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
}
.table-link {
  color: var(--blue-main);
  font-weight: 500;
  transition: color var(--transition);
}
.table-link:hover { color: var(--blue-dark); text-decoration: underline; }

/* ============================================================
   SECTION 6: CONTACT
   ============================================================ */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, var(--blue-main) 100%);
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,86,179,0.35) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(100,181,246,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-label {
  color: rgba(255,255,255,0.65);
}
.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.contact-divider {
  width: 48px;
  height: 3px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
  margin: 0 auto 32px;
}
.contact-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin-bottom: 48px;
}

/* Contact Button */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 360px;
  height: 64px;
  padding: 0 40px;
  background: var(--white);
  color: var(--blue-main);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: 2px solid var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: all var(--transition);
}
.contact-btn:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.contact-btn i { font-size: 1.05rem; }

/* Contact Info Strip */
.contact-info-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.contact-info-item i { color: rgba(255,255,255,0.55); }
.contact-info-sep {
  color: rgba(255,255,255,0.2);
  font-size: 1.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 64px;
}
.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.footer-logo-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 2;
}
.footer-address a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-address a:hover { color: var(--white); }

.footer-nav-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav-list a::before {
  content: '—';
  font-size: 0.7rem;
  color: var(--blue-main);
}
.footer-nav-list a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 20px;
}
.copyright {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,86,179,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Active nav link highlight */
.is-scrolled .nav-link.is-active-nav {
  color: var(--blue-main);
  background: var(--blue-pale);
  border-radius: 4px;
}
.is-top .nav-link.is-active-nav {
  color: var(--white);
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 100px 0; }
  .container { padding: 0 32px; }

  .message-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-en-large { font-size: 3rem; }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .concept-img-deco { display: none; }
  .concept-text-inner { padding: 0; }

  .footer-main { grid-template-columns: 1fr; gap: 40px; }

  .service-carousel-track { padding-left: 32px; }
  .carousel-btn-prev { margin-left: 32px; }
  .carousel-btn-next { margin-right: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 80px 0; }
  .container { padding: 0 20px; }
  .pc-only { display: none; }

  /* Header */
  .site-header.is-top  { padding: 14px 0; }
  .site-header.is-scrolled { padding: 8px 0; }

  .nav-toggle { display: flex; }

  .global-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,31,63,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }
  .global-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  .nav-list li { width: 100%; }
  .nav-link {
    display: block;
    font-size: 1.1rem;
    padding: 18px 40px;
    color: var(--white) !important;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-link:hover { background: rgba(255,255,255,0.08) !important; }
  .nav-cta {
    border: none !important;
    background: var(--blue-main) !important;
    color: var(--white) !important;
    margin: 20px 40px 0 !important;
    border-radius: 4px !important;
  }

  /* Hamburger X animation */
  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero */
  .hero-content { padding-bottom: 80px; }
  .hero-text-box { max-width: 100%; }
  .hero-catch { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 0.85rem; }
  .hero-scroll-indicator { right: 24px; bottom: 24px; }

  /* Message */
  .section-en-large { font-size: 2.4rem; }
  .message-ceo { flex-direction: column; text-align: center; }

  /* Service Carousel */
  .service-carousel-outer { flex-direction: column; align-items: stretch; }
  .carousel-btn { display: none; }
  .service-carousel-track-wrap { overflow-x: auto; scrollbar-width: none; }
  .service-carousel-track-wrap::-webkit-scrollbar { display: none; }
  .service-carousel-track {
    transform: none !important;
    transition: none !important;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }
  .service-carousel-track::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 280px; width: 280px; }

  /* Concept */
  .concept-text-inner { padding: 0; }
  .concept-values { flex-wrap: wrap; gap: 16px; }

  /* Company */
  .company-table th { width: 120px; font-size: 0.82rem; padding: 16px 14px; }
  .company-table td { font-size: 0.88rem; padding: 16px 14px; }

  /* Contact */
  .contact-btn { min-width: unset; width: 100%; max-width: 400px; font-size: 0.88rem; height: 56px; }
  .contact-info-strip { flex-direction: column; gap: 12px; }
  .contact-info-sep { display: none; }

  /* Footer */
  .footer-main { padding-top: 52px; padding-bottom: 48px; }
  .footer-logo { font-size: 1rem; }

  /* Back to Top */
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

  .sp-only { display: block; }
}

@media (max-width: 480px) {
  .hero-catch { font-size: 1.5rem; }
  .section-en-large { font-size: 2rem; }
  .concept-catch { font-size: 1.4rem; }
  .service-title-wrapper .section-en-label { font-size: 0.72rem; }
}
