@charset "utf-8";

/* ============================================================
   components.css — Shared header, sitemap footer nav, and footer 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: 80rem;
  --c-nav-height: 3.75rem;
  --c-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--c-white);
  box-shadow: 0 0.0625rem 0.25rem rgba(0,0,0,0.06);
  transition: transform 0.4s ease;
}
#header.is-hide {
  transform: translateY(-100%);
}

.site-nav {
  border-bottom: 0.125rem solid var(--c-teal);
}

.site-nav__inner {
  /* ヘッダーは全幅表示：ロゴを左端寄り、ナビ・ボタンを右端寄りに配置 */
  max-width: none;
  margin: 0;
  padding: 0 clamp(1.5rem, 3vw, 3.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: 2.25rem; width: auto; }
.site-nav__logo-text { margin-left: 0.5rem; height: 1.6rem !important; position: relative; top: 0.2rem; }

/* 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: #1a1a1a;
  color: var(--c-white);
}

/* CTA nav item — 資料ダウンロード button */
.nav-menu__item--cta {
  margin-left: 0.5rem;
}
.nav-menu__item--cta > a {
  background: #e87d1e;
  color: var(--c-white);
  margin: 0.625rem 0.5rem;
  height: auto;
  padding: 0.5rem 1.125rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background .2s, opacity .2s;
}
.nav-menu__item--cta > a:hover {
  background: #1a1a1a;
  color: var(--c-white);
}

/*
 * 「素敵な社員食堂」コーナーへの導線ボタン。
 * 資料ダウンロード（オレンジ）と区別するためにテラコッタ色を使用。
 * このコーナーが別ブランドであることをメインナビ上でも示す。
 */
.nav-menu__item--sutekina {
  margin-left: 0.25rem;
}

.nav-menu__item--sutekina > a {
  background: #C45C2E;
  color: #fff;
  margin: 0.625rem 0.5rem;
  height: auto;
  padding: 0.5rem 1.125rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s, opacity 0.2s;
}

.nav-menu__item--sutekina > a:hover {
  background: #9C3D18;
  color: #fff;
}

/* 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: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.25);
  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.12);
  color: var(--c-white);
}
/* 入れ子サブメニューの見出しリンク（「ご利用者様向け」など）はリンク先が無い
   見出しなので、ホバー時のハイライトとリンクカーソルを無効化する。 */
.nav-sub li:has(> .nav-sub-nested) > a {
  cursor: default;
}
.nav-sub li:has(> .nav-sub-nested) > a:hover {
  background: transparent;
  color: rgba(255,255,255,0.9);
}

.nav-sub-nested {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-sub-nested li a {
  padding-left: 2.5rem;
}

/* Non-clickable group label inside a dropdown / クリックできない見出し */

/* ============================================================
   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(6, 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,
#sitemap_inner .f_box6 {
  float: none;
  padding: 0;
}

/* Column headings */
#sitemap_inner .f_box1 > a,
#sitemap_inner .f_box2 > a,
#sitemap_inner .f_box3 > a,
#sitemap_inner .f_box6 > 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,
#sitemap_inner .f_box6 > 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: none;
  margin: 0;
  padding: 1.5rem clamp(1.5rem, 3vw, 3.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: var(--c-light-bg);
}
#shokudo_raku_link_inner {
  max-width: var(--c-max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
#shokudo_raku_link .shokudo_raku_link_tit {
  text-align: center;
  margin-bottom: 3rem;
}
#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 {
  flex: 1 1 0;
  min-width: 9.5rem;
  float: none !important;
  display: flex;
  background: #fff;
  border-top: 0.25rem solid var(--c-teal);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow .25s, transform .15s;
}
#shokudo_raku_link .gnavi_area li:hover {
  box-shadow: 0 4px 24px rgba(6, 97, 127, 0.12);
  transform: translateY(-0.25rem);
}

/* Whole card is a single clickable link */
#shokudo_raku_link .gnav_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 2rem 1.25rem 1.75rem;
}
#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.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}
#shokudo_raku_link .gnavi_area .gnav_txt {
  text-align: center;
  margin-top: auto;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #555;
}
#shokudo_raku_link .gnavi_area .gnav_txt span {
  display: block;
}
#shokudo_raku_link .gnav_card:hover h3 {
  color: var(--c-teal);
}

#shokudo_raku_link .clr { display: none; }

/* ============================================================
   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; }
  .site-nav__logo img { height: 1.6rem; }
  .site-nav__logo-text { height: 1.1rem !important; }

  /* スマホではパンくずリストを非表示にする（全ページ共通） */
  .breadcrumb { display: none; }

  /* 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; }

  /* 製品カードはスマホでも 2 列で表示する */
  #shokudo_raku_link .gnavi_area ul { gap: 1rem; }
  #shokudo_raku_link .gnavi_area li {
    flex: 0 1 calc(50% - 0.5rem);
    min-width: 0;
  }
  #shokudo_raku_link .gnav_card { padding: 1.5rem 0.75rem 1.25rem; }
  #shokudo_raku_link .gnavi_area li img { width: 5rem; height: 5rem; }
  #shokudo_raku_link .gnavi_area li h3 { font-size: 1.125rem; }
}

@media (max-width: 30rem) {
  /* スマホでもサイトマップは 2 列で表示する */
  #sitemap_inner nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .footer-cert-img { height: 3rem; }
}

/* ============================================================
   PAGE HERO (下層ページ共通の紺色バナー)
   ============================================================ */

.page-hero {
  background: var(--c-teal);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }

/* ワイドレイアウト: <body class="page-wide"> を付けたページで
   コンテンツの最大幅を広げる（製品・ソフトウェア・会社情報・採用情報・
   ポリシー・お問い合わせ系ページで使用）。中央揃えのため左右に広がる。 */
.page-wide .container { max-width: 85rem; }

.page-hero__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.page-hero__label::before {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.page-hero__title {
  font-size: clamp(1.25rem, 3.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 40rem;
}

.page-hero__deco {
  position: absolute;
  border-radius: 50%;
  border: 2.5rem solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.page-hero__deco--br {
  width: 24rem;
  height: 24rem;
  bottom: -5rem;
  right: -5rem;
}

@media (max-width: 48rem) {
        .page-hero { padding: 3rem 0; }
  }

