/*==================
   ハンバーガーメニュー
========================== */
#sp-menu {
  position: fixed;
  top: 25px;
  right: 23px;
  z-index: 100000;
  width: 90px;
  height: 90px;
  cursor: pointer;
}

#sp-menu img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
  transform-origin: center bottom; /* ← 回転の起点を下に */
}

/* メニュー開いたときの傾き */
#sp-menu.active img {
  transform: rotate(-18deg) translateY(5px);
}

/* -------------------------------
   PC表示（1025px以上）
------------------------------- */
.header-image {
  position: relative;
  width: 100%;
  height: 600px; /* ←ここを大きく */
  overflow: hidden;
}

.video-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .header-image {
    height: 300px;  /* スマホ用 */
  }
}

/* ==============================
   横スクロール対応の完全スタイル
============================== */
/* TOPページ：スケジュールボタン横スクロール用 */

.top-today-scroll-outer {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-today-scroll-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 20px 12px;
  min-width: max-content;
  width: max-content;
  scroll-snap-type: x mandatory;
}

/* スマホ：3個表示用の調整 */
.top-today-scroll-inner .schedule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 80px;
  max-width: 140px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* アクティブ状態（本日） */
.top-today-scroll-inner .schedule-btn.active {
  background: #4296e4;
  color: #fff;
  border-color: #4296e4;
}

/* 本日ラベル */
.top-today-scroll-inner .schedule-btn .today-label {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #4296e4;
  padding: 1px 5px;
  border-radius: 6px;
  margin-right: 4px;
  display: inline-block;
  flex-shrink: 0;
}

/* PCレイアウト：中央寄せ＋均等幅 */
@media screen and (min-width: 769px) {
  .top-today-scroll-outer {
    display: flex;
    justify-content: center;
  }

  .top-today-scroll-inner {
    width: 100%;
    max-width: 960px;
    justify-content: space-between;
  }

  .top-today-scroll-inner .schedule-btn {
    width: auto;
    flex: 1 1 auto;
    max-width: none;
  }
}

/* スケジュールボタンと出勤一覧の間に余白を追加 */
.top-today-scroll-outer {
  margin-bottom: 24px; /* 必要に応じて16～32pxの間で調整 */
}

@media screen and (max-width: 768px) {
  .top-today-scroll-outer {
    margin-bottom: 20px;
  }
}


.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}



/* ホーム専用の料金テーブル補正 */
.price-home-wrapper .price-table th,
.price-home-wrapper .price-table td {
  width: auto !important;
  font-size: 13px;
  padding: 8px;
  word-break: break-word;
}

/* スマホで崩れないように */
@media (max-width: 768px) {
  .price-home-wrapper .price-table th,
  .price-home-wrapper .price-table td {
    font-size: 12px;
    padding: 6px 4px;
  }
}



/* -------------------------------
   ナビ（共通）
------------------------------- */
/*============================
  ヘッダー全体
============================*/
.site-header {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
 padding: 12px 0;
}

.header-wrapper {
  max-width: 1400px;
  height: 100px;
  margin: 0 auto;
  padding: 0 25px;
  position: relative;
}

/*============================
  ロゴ中央配置
============================*/
.site-logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  max-width: 90vw; /* ロゴの左右が突き出ないように制限 */
  width: auto;
}


.site-logo-title img {
  height: auto;
  max-height: 100px;
  max-width: 90vw; /* スマホ幅に対して90%以内 */
  width: auto;
  display: block;
}


/*============================
  メニュー（PC）
============================*/
.main-nav-left,
.main-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav-left {
  left: 75px;
}

.main-nav-right {
  right: 75px;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.main-menu li {
  position: relative;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.main-menu li a:hover {
  color: #4296e4;
}

.main-menu li.menu-item-has-children > a::after {
  content: "\25BC";
  font-size: 0.6em;
  margin-left: 5px;
}

.main-menu li ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}


.main-menu li:hover > ul {
  display: block;
}

.main-menu li ul li {
  padding: 5px 20px;
}

.main-menu li ul li a {
  display: block;
  color: #333;
  text-decoration: none;
}

.main-menu li ul li a:hover {
  background-color: #f2f2f2;
  color: #4296e4;
}

/*============================
  ハンバーガーメニュー（右上固定）
============================*/
.sp-menu-toggle {
  position: fixed;
  top: -32px;
  right: -42px;
  width: 170px;
  height: 170px;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hamburger-button {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/*============================
  モバイルメニュー（振り子 + スポットライト風）
============================*/
.sp-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: transparent;
  transform: translateX(100%) rotate(-45deg);
  transform-origin: top right;
  opacity: 0;
  z-index: 1100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;    /* ← 縦中央寄せ */
  align-items: flex-end;      /* ← 横は右寄せ */
  padding-right: 5vw;         /* ← 右の余白 */
}


.sp-menu-panel.open {
  animation: swingIn 0.6s ease-out forwards;
  pointer-events: auto;
}

.sp-menu-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(50,110,200,0.7), rgba(30,70,150,0.6));
  clip-path: polygon(100% 0%, 95% 0%, 48% 100%, 100% 100%);
  opacity: 0.95;
  z-index: 0;
  animation: spotlightFade 0.8s ease forwards;
}

.sp-menu-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90,160,255,0.5), rgba(50,110,200,0.4));
  clip-path: polygon(100% 0%, 95% 0%, 35% 100%, 100% 100%);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  animation: glowRightLight 2.5s ease-in-out infinite alternate;
}


.sp-menu-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 3rem;
  padding-right: 0;
}

.sp-nav-list {
  list-style: none;
  margin: 0;
  padding: 3rem 0;
  max-width: 240px;
  text-align: center;
}

.sp-nav-list li {
  margin-bottom: 2rem;
}

.sp-nav-list li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
}

.sp-nav-list li a:hover {
  color: #cce5ff;
}

@keyframes swingIn {
  0% {
    transform: translateX(100%) rotate(-45deg);
    opacity: 0;
  }
  40% {
    transform: translateX(0%) rotate(5deg);
    opacity: 1;
  }
  70% {
    transform: translateX(0%) rotate(-3deg);
  }
  100% {
    transform: translateX(0%) rotate(0deg);
    opacity: 1;
  }
}

@keyframes spotlightFade {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 0.75;
    transform: scale(1);
  }
}

@keyframes glowRightLight {
  0% {
    opacity: 0.4;
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
    filter: brightness(1.2);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
    filter: brightness(1);
  }
}

@media screen and (max-width: 768px) {
  .sp-menu-panel {
    width: 100%;
  }
  .sp-nav-list {
    padding: 1.5rem 1rem;
  }
  .sp-nav-list li a {
    font-size: 1.3rem;
  }
  .sp-menu-panel::before {
    clip-path: polygon(100% 0%, 85% 0%, 20% 100%, 100% 100%);
    opacity: 0.95;
  }
  .sp-menu-panel::after {
    clip-path: polygon(100% 0%, 88% 0%, 5% 100%, 100% 100%);
    opacity: 0.9;
  }
}

.sp-menu-panel.open {
  animation: swingIn 0.6s ease-out forwards;
  pointer-events: auto;
}

.sp-menu-panel.closing {
  animation: swingOut 0.6s ease-in forwards;
  pointer-events: none;
}


@keyframes swingOut {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translateX(0) rotate(-3deg);
  }
  60% {
    transform: translateX(0) rotate(5deg);
  }
  100% {
    transform: translateX(100%) rotate(-45deg);
    opacity: 0;
  }
}


/* ▼ ハンバーガーアイコン動作 */
.hamburger-button img {
  transition: transform 0.6s ease;
  transform-origin: bottom right;
 /*  transform: rotate(-10deg) translateY(5px); 初期状態：下に傾ける */
}

.hamburger-button.active img {
 /*  transform: rotate(2deg) translateY(-5px);  メニュー開いた時：上に跳ねる */
}

@media screen and (max-width: 1030px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .site-logo-title img {
    max-height: 100px;
  }
}

@media screen and (max-width: 768px) {
  .site-logo-title img {
    max-height: 70px; /* 高さ少し下げてもOK */
    max-width: 85vw;  /* 横幅制限を強めに */
  }
}




@media screen and (max-width: 850px) {
  .sp-menu-panel {
    justify-content: center; /* 中央寄せベース */
    align-items: flex-end;   /* 横は右寄せ */
  }

  .sp-menu-inner {
    margin-top: -4rem;  /* ← 「少しだけ上にずらす」値。必要に応じて調整 */
    padding-top: 0;
    padding-right: 0;
  }

  .sp-nav-list {
    padding-top: 12rem;
    padding-bottom: 0.5rem;
  }
}



/* ▼ ハンバーガーアイコン動作追加 */
.hamburger-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.hamburger-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

/* ベース画像（下のやつ） */
.hamburger-base-img {
  z-index: 1;
}

/* 新しいオーバーレイ画像（上のやつ） */
.hamburger-overlay-img {
  z-index: 2;
  opacity: 1; /* 初期は見えてる */
}

/* メニュー開いた時：オーバーレイを透明にする */
.hamburger-button.active .hamburger-overlay-img {
  opacity: 0;
}


/*============================
  ハンバーガーメニュー（入れ子）
============================*/
.sp-nav-list li.menu-item-has-children > ul {
  display: none;
  padding-left: 1rem;
  margin-top: 1rem;
}

.sp-nav-list li.menu-item-has-children.open > ul {
  display: block;
}

/* トップ階層（最上位レベル）の親メニューだけに「▼」「▲」適用 */
.sp-nav-list > li.menu-item-has-children > a::after {
  content: "▼";
  margin-left: 8px;
  font-size: 0.8em;
  color: #fff;  /* 必要なら色も */
}

/* トップ階層が開いた時は「▲」に変化 */
.sp-nav-list > li.menu-item-has-children.open > a::after {
  content: "▲";
  margin: 0;
  padding: 0;
}

/* 子メニュー内のどの階層であってもアイコン完全消す */
.sp-nav-list li ul li.menu-item-has-children > a::after {
  content: none !important;
}


.sp-nav-list li ul li a {
  text-align: left;
  display: block;  /* 念のためブロック化 */
  padding-left: 1rem;  /* 必要なら左インデント調整 */
}

.sp-nav-list li.menu-item-has-children.open > ul {
  display: block;
  background: rgba(66, 150, 228, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  animation: submenuFade 0.3s ease-out;
}

@keyframes submenuFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-nav-list li.menu-item-has-children.open > ul li a {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(66, 150, 228, 0.8);
  font-weight: bold;
}

.sp-nav-list > li > a {
  border-bottom: 2px solid #fff;  /* 白のアンダーライン */
  padding-bottom: 4px;            /* 余白調整、好みで */
  display: inline-block;          /* インライン要素に下線つけたいとき必須 */
}


.sp-nav-list li ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav-list li ul li {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;  /* 必要なら行間だけ残す */
}