@charset "UTF-8";

/* =========================================
   1. Base & Layout
========================================= */
html {
  font-size: 62.5%; /* 16px * 62.5% = 10px */
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  color: #333; 
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  font-weight: 500;
  font-size: 1.6em;
  line-height: 2.4rem;
  text-align: center;
  background-color: #f3f3f2;
  margin: 0;
}

/* 全体を囲むラッパー（左ヘッダーと右コンテンツを並べる） */
.main-wrapper {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* 右側のメインコンテンツ枠 */
.right-content {
  flex: 1;
  width: calc(100% - 260px); /* 左ヘッダー幅を引く */
  min-width: 0;
}

/* =========================================
   2. Header (左サイドバー固定)
========================================= */
.header {
  background-color: #fff;
  border-right: 1px solid #ccc;
  width: 260px; 
  height: 100vh; 
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  z-index: 999;
  box-sizing: border-box;
  overflow-y: auto; 
  flex-shrink: 0; 
}

.header img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 40px;
  display: block;
}

.global-nav {
  display: flex;
  flex-direction: column; 
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.global-nav li {
  border-bottom: 1px dashed #ccc; 
}

.global-nav a {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 15px 10px;
  text-align: left; 
  transition: background-color 0.3s, color 0.3s;
}

.global-nav a:hover {
  color: #ffffff;
  background-color: #0056b3;
}

.hamburger {
  display: none;
}

/* =========================================
   ヘッダー内のサブメニュー
========================================= */
.local-sub-nav {
  list-style: none;
  padding: 0 0 15px 20px; /* 少し右にずらして段組みを表現 */
  margin: 0;
}

.local-sub-nav li {
  border-bottom: none; /* 下線を消す */
}

.local-sub-nav a {
  padding: 8px 10px;
  font-size: 1.3rem; /* 少し小さく */
  color: #666; /* メインメニューと差をつけるため少し薄い色に */
  font-weight: normal;
}

.local-sub-nav a:hover {
  color: #0056b3;
  background-color: transparent;
}

/* =========================================================
   4. スマホ専用下部固定メニュー
========================================================= */
/* デフォルト（PC）では非表示 */
.mobile-bottom-nav {
  display: none;
}

@media screen and (max-width: 1000px) {
  /* スマホ・タブレット（1000px以下）で表示 */
  .mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 10px 0;
  }
  
  .mobile-bottom-nav ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* 横スクロール可能にする */
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 0;
    padding: 0 10px;
    gap: 10px;
  }
  
  /* スクロールバーを非表示に */
  .mobile-bottom-nav ul::-webkit-scrollbar {
    display: none;
  }

  .mobile-bottom-nav li {
    flex: 0 0 auto; /* 文字数に合わせて幅を自動調整・縮小しない */
  }

  .mobile-bottom-nav a {
    display: block;
    text-decoration: none;
    color: #4a7bd1;
    border: 1px solid #4a7bd1;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px; /* 角丸ボタン風 */
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
  }
  
  /* メインコンテンツが下部メニューに隠れないように余白を追加 */
  .content-wrapper {
    padding-bottom: 80px; 
  }
}
/* スマホ幅ではヘッダー内のサブメニューを非表示にする */
@media screen and (max-width: 1000px) {
  .local-sub-nav {
    display: none;
  }
}
/* =========================================
   3. TOPに戻るボタン
========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2c3e50; 
  color: #fff;
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top:hover {
  background-color: #4a90e2;
  transform: translateY(-3px);
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   4. Contact & Recruit (全ページ共通下部)
========================================= */
.contact {
  background-color: #6495ed;
  margin: 0;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  font-family: "Hiragino Maru Gothic ProN", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO", sans-serif;
  font-weight: bold;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.contact-section {
  display: flex;
  align-items: center;
}

.contact-title-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #ffffff;
  margin-right: 30px;
  letter-spacing: 0.2em;
}

.contact-title-en {
  font-size: 1.2rem;
  line-height: 0.5rem;
  margin-bottom: 10px;
}

.contact-title-ja {
  font-size: 2rem;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-intro-text {
  color: #ffffff;
  font-size: 2rem;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-tel-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding: 15px 0;
  width: 100%;
}

.contact-tel-icon {
  width: 35px;
  height: 35px;
  fill: #ffffff;
  margin-right: 15px;
}

.contact-tel-number {
  color: #ffffff;
  font-size: 3.5rem;
  letter-spacing: 0.05em;
}

.contact-web-group {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s;
}

.contact-web-group:hover {
  opacity: 0.8;
}

.contact-web-icon {
  width: 30px;
  height: 30px;
  fill: #333333;
  margin-top: 2px;
  margin-right: 15px;
}

.contact-web-text {
  color: #ffffff;
  font-size: 1.4rem;
}

.recruit-section {
  position: relative;
  width: 30%;
  max-width: 500px;
  max-height: 400px;
}

.recruit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: 80%;
  z-index: 2;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recruit-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recruit-title-group {
  margin-bottom: 20px;
  position: relative;
}

.recruit-title-en {
  color: #4a7bd1;
  font-size: 2rem;
}

.recruit-title-ja {
  color: #4a7bd1;
  font-size: 2.4rem;
  margin-top: 5px;
}

.recruit-title-ja::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #4a7bd1;
  margin: 10px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

.recruit-intro-text {
  color: #333333;
  font-size: 1.5rem;
  line-height: 2;
  margin-bottom: 30px;
}

.recruit-btn {
  display: flex;
  align-items: center;
  color: #4a7bd1;
  font-size: 1.4rem;
  position: relative;
}

.recruit-btn-icon-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #4a7bd1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.recruit-content:hover .recruit-btn-icon-circle {
  transform: translateX(5px);
}

.recruit-btn-arrow {
  width: 15px;
  height: 15px;
  fill: #ffffff;
}

/* =========================================
   5. Footer (全画面幅)
========================================= */
.footer {
  width: 100%;
  background-color: #fff;
  padding: 50px 30px 20px;
  color: #333;
  text-align: left;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 25px;
  border-left: 4px solid #0056b3;
  padding-left: 10px;
  line-height: 1.2;
}

.footer-info {
  flex: 0 0 280px;
}

.footer-logo img {
  width: 100%;
  max-width: 250px;
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.footer-facilities {
  flex: 1;
}

.footer-facilities ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav {
  flex: 0 0 150px;
}

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

.footer-nav li {
  margin-bottom: 10px;
}

.footer a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a,
.copyright {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* =========================================
   6. スマホ・タブレット用 (1000px以下)
========================================= */
@media screen and (max-width: 1000px) {
  .main-wrapper {
    display: block; /* スマホ時は縦並びに戻す */
  }

  .right-content {
    width: 100%;
  }

  /* 上部固定ヘッダーに戻す */
  .header {
    position: -webkit-sticky;
    position: sticky;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #ccc;
    overflow-y: visible;
  }

  .header img {
    margin: 0;
    max-width: 180px;
  }

  /* ハンバーガーボタンの表示と装飾 */
  .hamburger {
    display: block;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 100;
  }
  
  .hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
    left: 0;
  }
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 11px; }
  .hamburger span:nth-child(3) { bottom: 0; }

  .hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

  /* ナビゲーションメニュー */
  #js-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 99;
  }
  
  #js-nav.is-active {
    visibility: visible;
    opacity: 1;
  }
  
  .global-nav {
    flex-direction: column;
    gap: 0;
  }
  .global-nav li {
    border-top: 1px solid #eee;
    border-bottom: none;
  }
  .global-nav a {
    display: block;
    padding: 15px 30px;
    text-align: center; 
  }

  /* お問い合わせエリアの調整 */
  .contact {
    flex-direction: column;
    padding: 60px 20px;
    gap: 60px;
  }

  .contact-section {
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 500px;
  }

  .contact-title-vertical {
    writing-mode: horizontal-tb;
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .contact-title-en {
    margin-bottom: 5px;
    font-size: 1.4rem;
  }

  .contact-title-ja {
    font-size: 2.4rem;
  }

  .contact-content {
    align-items: center;
    width: 100%;
  }

  .contact-intro-text {
    text-align: center;
    margin-bottom: 25px;
  }

  .contact-tel-group {
    justify-content: center;
    padding: 20px 0;
    width: 100%;
  }

  .contact-tel-number {
    font-size: 2.8rem;
  }

  .contact-web-group {
    justify-content: center;
    width: 100%;
  }

  .recruit-section {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
  }
  
  .recruit-content {
    height: auto;
    padding: 50px 30px;
    min-height: 300px;
  }
}

/* =========================================
   7. スマホ用 (768px以下)
========================================= */
@media screen and (max-width: 768px) {
  .body {
    padding: 30px 20px;
    margin: 20px auto;
    border-radius: 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* フッター調整 */
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer-info, .footer-facilities, .footer-nav {
    flex: auto;
    width: 100%;
  }
  .footer-facilities ul {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-links {
    flex-direction: column;
    gap: 10px;
  }
}