@charset "utf-8";

/* ============================================================
   components.css — Shared header, footer, sitemap styles
   Loaded dynamically by load-components.js for all pages
   ============================================================ */

:root {
  --c-teal: #30a1af;
  --c-dark-blue: #06617f;
  --c-light-bg: #f7fbfc;
  --c-white: #fff;
  --c-text: #1a1a1a;
  --c-max-width: 68.75rem;
  --c-nav-height: 3.75rem;
  --c-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-white);
  box-shadow: 0 0.0625rem 0.25rem rgba(0,0,0,0.06);
}

.site-nav {
  border-bottom: 0.125rem solid var(--c-teal);
}

.site-nav__inner {
  max-width: var(--c-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--c-nav-height);
  position: relative;
}

.site-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-nav__logo img { height: 1.375rem; width: auto; }

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu__item {
  position: relative;
  list-style: none;
}

.nav-menu__item > a {
  display: flex;
  align-items: center;
  height: var(--c-nav-height);
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-dark-blue);
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
  font-family: var(--c-font);
}
.nav-menu__item > a:hover,
.nav-menu__item:hover > a {
  background: var(--c-dark-blue);
  color: var(--c-white);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background: var(--c-dark-blue);
  margin: 0.3125rem 0;
  border-radius: 0.0625rem;
  transition: transform .3s, opacity .2s;
}

/* Overlay (hidden on desktop) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
.nav-overlay.is-visible {
  display: block;
}

/* Sub-menu dropdown */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12.5rem;
  background: var(--c-dark-blue);
  border-radius: 0 0 0.375rem 0.375rem;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 100;
  list-style: none;
  margin: 0;
}
.nav-menu__item--has-sub:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub li { list-style: none; }
.nav-sub li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: background .15s;
  font-family: var(--c-font);
}
.nav-sub li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--c-white);
}

.nav-sub-nested {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-sub-nested li a {
  padding-left: 2.5rem;
}

/* ============================================================
   BACK TO TOP BAR
   ============================================================ */

.back-to-top-bar {
  display: block;
  text-align: center;
  padding: 0.875rem;
  background: #30a1af;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--c-font);
}
.back-to-top-bar:hover {
  background: #2b8f9c;
  color: #ffffff;
}

/* ============================================================
   SITEMAP (dark background)
   ============================================================ */

#sitemap {
  width: 100%;
  background: #1a1a1a;
  color: #ffffff;
  line-height: 1.8;
  min-width: 0 !important;
}

#sitemap_inner {
  max-width: var(--c-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.25rem;
  width: 100%;
  min-width: 0 !important;
}

#sitemap_inner nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  border-bottom: none;
  height: auto;
  padding-bottom: 2.25rem;
}

#sitemap_inner .f_box1,
#sitemap_inner .f_box2,
#sitemap_inner .f_box3,
#sitemap_inner .f_box4,
#sitemap_inner .f_box5 {
  float: none;
  padding: 0;
}

/* Column headings */
#sitemap_inner .f_box1 > a,
#sitemap_inner .f_box2 > a,
#sitemap_inner .f_box3 > a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  text-decoration: none;
  margin-bottom: 0.875rem;
  font-family: var(--c-font);
}
#sitemap_inner .f_box1 > a:hover,
#sitemap_inner .f_box2 > a:hover,
#sitemap_inner .f_box3 > a:hover {
  text-decoration: underline;
  text-decoration-color: var(--c-white);
}

/* 4th column heading (non-link) */
.f_box_heading {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.875rem;
  font-family: var(--c-font);
}

/* Regular links */
#sitemap_inner a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--c-font);
  font-size: 0.875rem;
  line-height: 1.6;
}
#sitemap_inner a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

#sitemap_inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#sitemap_inner ul li {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}

/* Hide old fixed page-top button (replaced by back-to-top bar) */
#sitemap_inner .page-top { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */

#footer footer {
  width: 100%;
  background: #ffffff;
  min-width: 0 !important;
}

.footer-inner {
  max-width: var(--c-max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-certs {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-cert-img {
  height: 3.75rem;
  width: auto;
  display: block;
}

.footer-copy {
  font-size: 0.75rem;
  color: #646464;
  font-family: var(--c-font);
  text-align: center;
  flex: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-brand__logo {
  height: 1.25rem;
  width: auto;
}

/* ============================================================
   SHOKUDO RAKU LINK SECTION (loaded dynamically)
   ============================================================ */

#shokudo_raku_link {
  width: 100%;
  background: #f1f0e8;
}
#shokudo_raku_link_inner {
  max-width: var(--c-max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
#shokudo_raku_link .shokudo_raku_link_tit {
  text-align: center;
  margin-bottom: 4rem;
}
#shokudo_raku_link .shokudo_raku_link_tit img {
  margin: 0 auto;
}
#shokudo_raku_link .gnavi_area ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#shokudo_raku_link .gnavi_area li {
  text-align: center;
  flex: 1 1 0;
  min-width: 9.5rem;
  float: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#shokudo_raku_link .gnavi_area li img {
  margin: 0 auto;
  width: 6.625rem;
  height: 6.625rem;
  flex-shrink: 0;
}
#shokudo_raku_link .gnavi_area li h3 {
  color: var(--c-dark-blue);
  padding: 0.75rem 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}
#shokudo_raku_link .gnavi_area .gnav_txt {
  text-align: center;
  margin-top: auto;
}

/* Buttons — v2 pill style */
#shokudo_raku_link .gnav_button {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--c-dark-blue);
  border: 0.125rem solid var(--c-dark-blue);
  border-radius: 3.125rem;
  padding: 0.5rem 1.25rem;
  min-width: 9rem;
  transition: background .25s, color .25s, transform .15s;
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
#shokudo_raku_link .gnav_button:hover {
  background: #fff;
  color: var(--c-dark-blue);
  transform: translateY(-0.0625rem);
}
#shokudo_raku_link .gnav_button span {
  font-size: 0.8125rem;
  display: block;
}
#shokudo_raku_link .gnav_button br {
  display: none;
}

#shokudo_raku_link .clr,
#shokudo_raku_link .fill_space_button01 { display: none; }
#shokudo_raku_link .button04_03 {
  text-align: center;
  margin-top: 4rem;
}
#shokudo_raku_link .button04_03 .gnav_button {
  padding: 0.75rem 3rem;
  font-size: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 56.25rem) {
  #sitemap_inner nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 40rem) {
  #sitemap_inner nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  :root { --c-nav-height: 3.5rem; }

  /* Hamburger toggle visible */
  .nav-toggle { display: block; }

  /* Mobile drawer menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 22rem;
    height: 100vh;
    height: 100dvh;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--c-nav-height) + 1rem) 0 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1000;
    box-shadow: -0.25rem 0 1rem rgba(0,0,0,0.1);
  }
  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu__item { position: static; }

  .nav-menu__item > a {
    height: auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid #eee;
  }
  .nav-menu__item > a:hover,
  .nav-menu__item:hover > a {
    background: var(--c-light-bg);
    color: var(--c-dark-blue);
  }

  /* Sub-menus become accordion */
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--c-light-bg);
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-sub.nav-sub--expanded {
    max-height: 31.25rem;
  }
  .nav-sub li a {
    padding: 0.625rem 1.5rem 0.625rem 2.5rem;
    color: var(--c-dark-blue);
    font-size: 0.875rem;
    border-bottom: 1px solid #eee;
  }
  .nav-sub li a:hover {
    background: rgba(0,0,0,0.03);
    color: var(--c-dark-blue);
  }

  /* Chevron arrow for sub-menu parents */
  .nav-sub-arrow {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 0.125rem solid var(--c-dark-blue);
    border-bottom: 0.125rem solid var(--c-dark-blue);
    transform: rotate(45deg);
    transition: transform .2s;
    margin-left: auto;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
  .nav-sub-arrow.is-rotated {
    transform: rotate(-135deg);
  }

  /* Parent link becomes flex to hold arrow */
  .nav-menu__item--has-sub > a {
    display: flex;
    align-items: center;
  }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-copy { flex: none; }

  #shokudo_raku_link .gnavi_area li { flex: 0 1 7rem; }
}

@media (max-width: 30rem) {
  #sitemap_inner nav {
    grid-template-columns: 1fr;
  }
  .footer-cert-img { height: 3rem; }

  #shokudo_raku_link .gnavi_area li { flex: 0 1 45%; }
}
