@charset "utf-8";
/* ==========================================================================
   layout.css — 全ページ共通の骨格
   WP化時：l-header / l-megamenu / l-drawer → header.php、l-footer → footer.php
   ========================================================================== */

   body{
    min-width: 1080px;
   }
   @media screen and (max-width: 767px) {
    body{
      min-width: 100%;
    }
   }

   #page-top{
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    max-width: 60px;
    width: 10%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity var(--dur-slow) var(--ease),
      visibility var(--dur-slow) var(--ease),
      transform var(--dur-slow) var(--ease);
   }

   #page-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
   }

   #page-top img {
    display: block;
    width: 100%;
    height: auto;
   }

/* ==========================================================================
   HEADER
   ========================================================================== */
.l-header {
  position: relative;
  z-index: var(--z-header);
  background: var(--c-white);
  border-bottom: 1px solid #eee;
}

.l-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding:2vw var(--header-pad-x);
}

/* --- ロゴ --- */
.l-header__logo {
  flex-shrink: 0;
  display: block;
  width: 285px;   /* PSD配置値。画像は2倍（570×102） */
}

.l-header__logo img { width: 100%; }

/* --- 右側（キャッチ＋ナビの2段） --- */
.l-header__right {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.l-header__tagline {
  color: var(--c-text-sub);
  font-size: var(--fz-xs);
  letter-spacing: .08em;
  line-height: 1;
}



/* ==========================================================================
   GLOBAL NAV
   ========================================================================== */
.l-gnav__list {
  display: flex;
  align-items: center;
  gap: 44px;
}

.l-gnav__item { position: relative; }

.l-gnav__link {
  display: block;
  font-family: var(--ff-maru);
  padding-block: 6px;
  font-size: var(--fz-md);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.l-gnav__item.is-open > .l-gnav__link,
.l-gnav__link:hover {
  color: var(--c-teal);
}

/* ==========================================================================
   MEGAMENU
   ========================================================================== */
.l-megamenu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  z-index: var(--z-megamenu);
  width: var(--mega-w);
  padding: 32px 40px 36px;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--shadow-float);
  transform: translateX(calc(-50% + var(--mega-shift, 0px))) translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.l-gnav__item.is-open .l-megamenu {
  transform: translateX(calc(-50% + var(--mega-shift, 0px))) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ホバーが途切れないよう、ナビとパネルの隙間を透明な板で埋める */
.l-megamenu::before {
  content: "";
  position: absolute;
  inset: -22px 0 100% 0;
}

.l-megamenu__title {
  margin-bottom: 22px;
  font-family: var(--ff-maru);
  font-size: var(--fz-xl);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}

.l-megamenu__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.l-megamenu .c-list-link {
  align-items: center;
  font-weight: 500;
}

.l-megamenu .c-list-link::before {
  margin-top: 0;
  transform: translateY(1px);
}

.l-gnav__item[data-cat="news"] .l-megamenu .c-list-link::before,
.l-gnav__item[data-cat="about"] .l-megamenu .c-list-link::before {
  background: var(--c-blue-light);
}

/* ==========================================================================
   MENU BUTTON（ハンバーガー＋虫めがね）
   ========================================================================== */
.l-menubtn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 36px;
  border-left: 1px solid #ECECEC;
  color: var(--c-teal);
  transition: opacity var(--dur) var(--ease);
}

.l-menubtn__icon {
  font-size: 36px;
  line-height: 1;
}

.l-menubtn__label {
  font-family: var(--ff-en);
  font-size: var(--fz-sm);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
}

.l-menubtn:hover { opacity: .7; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 1199px) {
  .l-header__inner {
    gap: 24px;
    padding-inline: 3.5vw;
  }
  .l-header__logo { width: 246px; }
  .l-gnav__list { gap: 26px; }
  .l-gnav__link { font-size: var(--fz-base); }
  .l-menubtn { padding-left: 22px; }
}

@media screen and (max-width: 767px) {
  .l-header__right {
    display: none;
  }
  .l-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    min-width: 100%;
  }
  .l-header__inner {
    justify-content: space-between;
    gap: 12px;
    height: 64px;
    padding-inline: 4vw;
  }
  .l-header__logo { max-width: 228px;width:74%; }
  .l-menubtn {
    flex-direction: column;
    gap: 2px;
    padding-left: 0;
    border-left: none;
  }
  .l-menubtn__icon { font-size: 30px; }
  .l-menubtn__label { font-size: 11px; }

  main{
    padding-top: 64px;
  }
}



/* ==========================================================================
   OVERLAY — ドロワーの背面
   実測：rgba(50,129,132,.5)
   ========================================================================== */
.l-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(50, 129, 132, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.l-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   DRAWER
   画面右に浮く角丸パネル。上部の半円タブと close は固定、本文だけスクロール。
   ========================================================================== */
.l-drawer {
  position: fixed;
  top: var(--drawer-inset);
  right: var(--drawer-inset);
  bottom: var(--drawer-inset);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: min(var(--drawer-w), calc(100% - var(--drawer-inset) * 2));
  border-radius: var(--r-md);
  background: var(--c-page);
  box-shadow: var(--shadow-float);
  transform: translateX(calc(100% + var(--drawer-inset)));
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
}

.l-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* --- 上部（半円タブ＋close） --- */
.l-drawer__head {
  position: relative;
  flex-shrink: 0;
  height: var(--drawer-tab-h);
  overflow: hidden;
}

.l-drawer__tab {
  padding:2vw 2.5vw;
  font-family: var(--ff-en);
  font-size: var(--fz-variable-lg);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
}

.l-drawer__close {
  position: absolute;
  top: 50%;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-teal);
  transform: translateY(-50%);
  transition: opacity var(--dur) var(--ease);
}

.l-drawer__close i { font-size: 30px; line-height: 1; }

.l-drawer__close span {
  font-family: var(--ff-en);
  font-size: var(--fz-sm);
  letter-spacing: .1em;
  line-height: 1;
}

.l-drawer__close:hover { opacity: .6; }

/* --- 本文（スクロール領域） --- */
.l-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 56px 56px;
  scrollbar-width: thin;
}

.l-drawer__body::-webkit-scrollbar { width: 6px; }
.l-drawer__body::-webkit-scrollbar-thumb {
  border-radius: var(--r-pill);
  background: #D8DEE0;
}

/* --- カテゴリのかたまり --- */
.l-drawer__group + .l-drawer__group { margin-top: 52px; }

.l-drawer__grouphead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.l-drawer__icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--r-pill);
  background: var(--cat-current, var(--c-teal));
  overflow: hidden;
}

.l-drawer__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l-drawer__grouptitle {
  font-family: var(--ff-maru);
  font-size: var(--fz-2xl);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.l-drawer__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  padding-left: 20px;
}

/* --- 下部のその他リンク --- */
.l-drawer__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}

.l-drawer__extra a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fz-base);
  transition: color var(--dur) var(--ease);
}

.l-drawer__extra a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-blue-light);
}

.l-drawer__extra a:hover { color: var(--c-teal); }

@media screen and (max-width: 767px) {
  .l-drawer__tab {padding:36px 24px;}
  .l-drawer__body { padding: 8px 24px 40px; }
  .l-drawer__close { right: 20px; }
  .l-drawer__close i { font-size: 24px; }
  .l-drawer__icon { width: 56px; height: 56px; }
  .l-drawer__grouphead { gap: 14px; margin-bottom: 18px; }
  .l-drawer__list {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 0;
  }
  .l-drawer__group + .l-drawer__group { margin-top: 36px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.l-footer {
  padding: 80px 5vw 100px;
  background: var(--c-page);
  border-top: 1px solid var(--c-border-dot);
}

.l-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}


/* --- 左 --- */
.l-footer__logo { display: block; width: 286px; }

.l-footer__org {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 26px;
}

.l-footer__sublogo { flex-shrink: 0; width: 170px; }

.l-footer__address {
  font-size: var(--fz-variable-sm);
  line-height: 1.86;
}

/* --- 右 --- */
.l-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding-top: 8px;
}

.l-footer__nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.l-footer__sns {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 24px !important;
  line-height: 1;
  transition: opacity var(--dur) var(--ease);
}

.l-footer__sns:hover { opacity: .6; }

.l-footer__nav a {
  font-size: var(--fz-variable-sm);
  transition: color var(--dur) var(--ease);
}

.l-footer__nav a:hover { color: var(--c-teal); }

.l-footer__copy {
  color: var(--c-text-sub);
  font-family: var(--ff-en);
  font-size: var(--fz-xs);
  letter-spacing: .04em;
}

@media screen and (max-width: 1199px) {
  .l-footer__inner { padding-left: 0; gap: 40px; }
  .l-footer__left {
    width: 100%;
    margin-bottom: 60px;
  }
  .l-footer__right {
    width: 100%;
    align-items: center;
    gap: 20px;
    padding-top: 0;
  }
}

@media screen and (max-width: 767px) {

  .l-footer { padding: 90px 0 100px; }

  .l-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 34px;
    text-align: center;
  }

  .l-footer__left {
    width: 100%;
    margin-bottom: 60px;
  }
  .l-footer__right {
    width: 100%;
    align-items: center;
    gap: 20px;
    padding-top: 0;
  }

  .l-footer__nav {
    flex-direction: column;
    gap: 14px;
  }

  .l-footer__logo { width: 220px; margin-inline: auto; margin-bottom: 40px; }

  .l-footer__org {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
  }

  .l-footer__copy { order: 1; }
}

/* ==========================================================================
   だし分け表示用
   ========================================================================== */
@media screen and (min-width: 768px) {
  .sp-only{
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .pc-only{
    display: none !important;
  }
}
