/* ===== World Arc – Base + Hamburger + Responsive ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

a:focus-visible { outline: 2px solid #2ba45c; outline-offset: 2px; border-radius: 4px; }

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 60;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3d3a36;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ===== NAV DRAWER ===== */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(80vw, 300px);
  height: 100%;
  background: #fff;
  z-index: 200;
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
}
.nav-drawer.open { right: 0; }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0e9dd;
  flex-shrink: 0;
}
.nav-drawer-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  color: #6b665e;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.nav-drawer-close:hover { background: #f5f0e8; }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 4px 20px;
  flex: 1;
}
.nav-drawer-links a {
  font-size: 15px;
  font-weight: 500;
  color: #3d3a36;
  padding: 14px 0;
  border-bottom: 1px solid #f0e9dd;
  font-family: "Noto Sans JP", sans-serif;
  display: block;
  text-decoration: none;
}
.nav-drawer-links a:last-child { border-bottom: none; }
.nav-drawer-links a.drawer-active { color: #ef5f68; font-weight: 700; }

.nav-drawer-footer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f0e9dd;
  flex-shrink: 0;
}
.drawer-line-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #2ba45c; color: #fff;
  font-weight: 700; font-size: 14px; font-family: "Noto Sans JP", sans-serif;
  padding: 12px; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(43, 164, 92, .28);
}
.drawer-reserve-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #ef5f68;
  font-weight: 700; font-size: 14px; font-family: "Noto Sans JP", sans-serif;
  padding: 11px; border-radius: 999px;
  border: 2px solid #ef5f68;
  text-decoration: none;
}

/* ===== NEWS ROW (shared across index.html & news.html) ===== */
.news-row {
  display: flex; align-items: center; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid #ede8e0;
  transition: background .15s;
}
.news-row:hover { background: #faf7f2; border-radius: 8px; }
.news-row:first-child { border-top: 1px solid #ede8e0; }

/* ===== COMPANY INFO TABLE ===== */
.company-info-table-wrap {
  border: 1px solid #9fd4b4;
  border-radius: 8px;
  overflow: hidden;
}
.company-info-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.company-info-table th,
.company-info-table td {
  padding: 20px 28px;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #9fd4b4;
}
.company-info-table th {
  width: 160px;
  background: #eef7f2;
  color: #2c3a4a;
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid #9fd4b4;
}
.company-info-table td {
  background: #fff;
  color: #2c3a4a;
  font-weight: 400;
}
.company-info-table tr:last-child th,
.company-info-table tr:last-child td { border-bottom: none; }
.company-info-table td a { color: #3f80d6; }

/* ===== SNS SECTION ===== */
.sns-row {
  display: flex;
  gap: 34px;
  align-items: flex-start;
}
.sns-left-col {
  flex: 0 0 380px;
}
.sns-video-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* 1100px: reasons 2-col, voices 3-col */
@media (max-width: 1100px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .voices-grid  { grid-template-columns: repeat(3, 1fr) !important; }
}

/* 900px: flow/SNS/about/service stacks */
@media (max-width: 900px) {
  .flow-row      { flex-direction: column !important; gap: 12px !important; }
  .flow-arrow    { transform: rotate(90deg); align-self: center; }
  .sns-row       { flex-direction: column !important; }
  .sns-left-col  { flex: none !important; width: 100% !important; max-width: 100% !important; }
  .sns-video-grid { flex: none !important; width: 100% !important; min-width: 0 !important; }
  .about-card        { flex-direction: column !important; }
  .about-card-image  { flex: none !important; width: 100% !important; height: 260px !important; }
  .about-card-image img { height: 260px !important; }
  .about-card-content { flex: none !important; width: 100% !important; padding: 28px 24px !important; }
  .about-card-medal  { flex: none !important; width: 140px !important; padding: 0 0 28px !important; justify-content: center !important; margin: 0 auto !important; }
  .about-card-content .about-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .service-card-row { flex-direction: column !important; gap: 28px !important; }
  .service-card-img { flex: none !important; width: 100% !important; }
  .mission-card-inner { flex-direction: column !important; gap: 24px !important; }
  .mission-card-img { flex: none !important; width: 100% !important; max-width: 100% !important; }
  .access-inner   { flex-direction: column !important; }
  .access-map     { min-height: 260px !important; }
  .cta-person     { display: none !important; }
  .sns-cta-bar    { flex-wrap: wrap !important; gap: 12px !important; }
  .sns-cta-btns   { flex-wrap: wrap !important; }
}

/* 768px: hamburger activates */
@media (max-width: 768px) {
  /* Hamburger */
  .hamburger-btn  { display: flex !important; }
  .header-nav     { display: none !important; }
  .header-actions { display: none !important; }

  /* Hero */
  .hero-section   { min-height: 440px !important; }
  .hero-bg-img    { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 65% center !important; }
  .hero-overlay   { background: rgba(253, 246, 234, .82) !important; padding: 28px 20px 24px !important; }
  .hero-inner     { max-width: 100% !important; }
  .hero-h1        { font-size: 30px !important; margin-bottom: 14px !important; }
  .hero-btns      { flex-direction: column !important; align-items: flex-start !important; }
  .hero-btns img  { height: 52px !important; }
  .hero-badge     { font-size: 13px !important; padding: 6px 14px !important; }
  .hero-feature-bar { flex-direction: column !important; gap: 10px !important; max-width: 100% !important; }
  .hero-feature-sep { display: none !important; }

  /* Page hero headings (COMPANY/SOLUTION/NEWS) */
  .page-hero h1   { font-size: clamp(40px, 10vw, 72px) !important; }

  /* Page hero breadcrumb row */
  .page-hero-meta        { flex-wrap: nowrap !important; gap: 10px !important; }
  .page-hero-breadcrumb  { gap: 8px !important; font-size: 11.5px !important; }
  .page-hero-sep         { flex: 1 1 auto !important; min-width: 14px !important; max-width: 44px !important; }

  /* About */
  .about-section  { padding: 36px 16px !important; }
  .about-card-content .about-grid { grid-template-columns: 1fr !important; }

  /* Reasons */
  .reasons-grid   { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }

  /* Voices */
  .voices-grid    { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* SNS */
  .sns-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .sns-left-col {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .sns-video-grid {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
  }

  /* CTA */
  .cta-person     { display: none !important; }
  .cta-btns       { flex-direction: column !important; align-items: center !important; }
  .cta-btns img   { height: 52px !important; }
  .cta-inner      { padding: 20px 16px !important; gap: 0 !important; }

  /* Footer */
  .footer-inner   { flex-direction: column !important; gap: 24px !important; }
  .footer-brand   { flex: none !important; width: 100% !important; }
  .footer-nav-row { flex-direction: column !important; gap: 20px !important; }
  .footer-follow  { flex: none !important; width: 100% !important; }

  /* Company info table */
  .company-info-table th,
  .company-info-table td {
    display: block;
    width: 100%;
    border-right: none;
  }
  .company-info-table th {
    border-bottom: none;
    padding-bottom: 8px;
  }
  .company-info-table td { padding-top: 0; }

  /* News filter bar */
  .news-filter-bar { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; border-bottom: none !important; }
  .cat-tabs        { border-bottom: 2px solid #ede8e0; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .yr-btns-wrap    { padding-bottom: 0 !important; }

  /* News row */
  .news-row             { flex-wrap: wrap !important; gap: 6px 14px !important; padding: 16px 0 !important; }
  .news-row-date        { flex: 0 0 100% !important; font-size: 12px !important; padding-bottom: 2px; }
  .news-row-highlight   { background: none !important; }

  /* News section header (title + "see all" link) */
  .news-all-link   { position: static !important; display: block !important; margin-top: 10px !important; }
  /* Inner card padding so rows don't touch card edge on mobile */
  .news-list-card  { padding-left: 16px !important; padding-right: 16px !important; }

  /* Service section padding */
  .service-section { padding: 40px 16px 48px !important; }
}

/* 480px: single column */
@media (max-width: 480px) {
  .reasons-grid   { grid-template-columns: 1fr !important; }
  .voices-grid    { grid-template-columns: 1fr !important; }
  .hero-h1        { font-size: 24px !important; }
  .sns-cta-btns   { flex-direction: column !important; width: 100%; }
  .sns-cta-btns a { justify-content: center; }
  .cat-tab        { font-size: 12px !important; padding: 10px 10px 12px !important; }
}
