@charset "UTF-8";

html {
  scroll-behavior: smooth; /* スムーズスクロール */
}

/* セクションごとの余白調整 */
section.section-lp, div.section-lp {
  padding: 30px 20px 10px;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden; /* 子要素のアニメーション等がはみ出さないようにガード */
}

@media (max-width: 768px) {
  section.section-lp, div.section-lp {
    padding-left: 0;
    padding-right: 0;
  }
}

/* コンテンツ幅を1024pxに制限し、中央寄せにする */
.section-lp-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .section-lp-inner {
    padding-left: 15px; /* モバイルでは少し狭める */
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .section-lp-inner {
    padding-left: 10px; /* 非常に狭い画面ではさらに狭める */
    padding-right: 10px;
  }
}

/* 背景色の切り替え */
.bg-white { background-color: #ffffff; }
.bg-purple { background-color: var(--body-bg); }

/* セクション見出しの統一 */
.section-title-lp {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title-lp::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* マーカー線 */
.marker-yellow {
  background: linear-gradient(transparent 60%, #fff100 0%);
  font-weight: bold;
}
.marker-orange {
  background: linear-gradient(transparent 60%, #f58c29 0%);
  font-weight: bold;
}

/* 立体付箋風デザイン（共通ベース） */
.sticky-note-3d {
  text-align: left;
  padding: 0.5em 0.8em;
  color: var(--primary-color);
  border-left: 10px solid var(--primary-color);
  background-color: var(--item-hover-bg);
  box-shadow: 0 5px 3px #d1d5db;
  position: relative;
  display: block;
}

/* 付箋風スタイル（既存の黄色い付箋） */
.sticky-note {
  background: #fff9c4;
  padding: 20px;
  position: relative;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
  transform: rotate(-1deg);
  border-radius: 2px;
  margin: 20px 0;
}
.sticky-note::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 手書き風注釈 */
.handwritten-note {
  color: #d32f2f;
  font-size: 0.9rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding: 5px 10px;
}
.handwritten-note::before {
  content: '※';
  margin-right: 3px;
}

/* ふきだし */
.balloon-chat {
  position: relative;
  background: #fff;
  border: 2px solid var(--primary-color-light);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
}
.balloon-chat::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 30px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: var(--primary-color-light) transparent;
  display: block;
  width: 0;
}
.balloon-chat::before {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 31px;
  border-width: 11px 11px 0;
  border-style: solid;
  border-color: #fff transparent;
  display: block;
  width: 0;
  z-index: 1;
}

/* 会社紹介：数字ボックスの調整 */
.number-box-container {
  display: flex;
  justify-content: center; /* 中央寄せ */
  flex-wrap: wrap;
  gap: 15px; /* 隙間を少し調整 */
  margin-top: 10px;
}
.number-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 10px;
  text-align: center;
  width: calc(25% - 12px); /* 最大4列を維持（隙間分を引く） */
  min-width: 230px; /* モバイル等で落ちる際の下限 */
  box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* 影を強化 */
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .number-box {
    min-width: 100%; /* 非常に狭い画面では1列にする */
  }
}
.number-box h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.number-box .number {
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--primary-color);
}
.number-box .unit {
  font-size: 1rem;
  margin-left: 5px;
}
.number-box p {
  font-size: 0.9em;
  margin-top: 8px; /* 最初のpタグの上余白 */
  margin-bottom: 0;
  color: var(--text-color-light);
  line-height: 1.5;
}
.number-box p + p {
  margin-top: 4px; /* 連続するpタグ同士の間隔を少し狭く調整 */
}
.simple-explainer {
  background-color: #fff;

  padding: 10px;
  border-radius: 15px;
  margin: 30px auto;
  max-width: 850px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .simple-explainer {
    border-radius: 0;
    /* ネガティブマージンを削除し、親のパディングに合わせる */
    margin-left: 0;
    margin-right: 0;
  }
}
.simple-explainer h3 {
  text-align: left;
  padding: 0.5em 0.8em;
  color: var(--primary-color);
  border-left: 10px solid var(--primary-color);
  background-color: var(--item-hover-bg);
  box-shadow: 0 5px 3px #d1d5db;
  position: relative;
  display: block;
  margin-bottom: 25px;
}

/* 1日の流れ タイムラインスタイル */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-color);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--primary-color-light);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-color-light);
}
.time {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: block;
}
.schedule-content {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* 影を少し強化 */
  border: 1px solid var(--body-bg);
}
.schedule-content h4 {
  margin-top: 0;
  margin-bottom: 5px;
}
.schedule-content p {
  margin: 0;
  font-size: 0.95em;
  color: #555;
}

/* 保護者・先生向けメッセージのスタイル */
.message-box {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* 影を強化 */
}
@media (max-width: 768px) {
  .message-box {
    padding: 20px 15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    /* ネガティブマージンを削除 */
    margin-left: 0;
    margin-right: 0;
  }
}
.message-box h3 {
  text-align: left;
  padding: 0.5em 0.8em;
  color: var(--primary-color);
  border-left: 10px solid var(--primary-color);
  background-color: var(--item-hover-bg);
  box-shadow: 0 5px 3px #d1d5db;
  position: relative;
  display: block;
  margin-bottom: 25px;
}
.message-content p {
  line-height: 1.8;
  margin-bottom: 15px;
}
.flow-step {
    display: inline-block;
    background: var(--body-bg);
    padding: 10px 20px;
    border-radius: 20px;
    margin: 0 10px 10px 0;
    font-weight: bold;
    color: var(--nav-link-hover-color);
    white-space: normal; /* モバイルで長すぎる場合に折り返しを許可 */
}

.interview-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* コンテンツが多い場合はスクロール */
  background-color: rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  /* Flexboxによる中央配置 */
  align-items: center;
  justify-content: center;
}
.interview-modal.show {
  display: flex;
  opacity: 1;
}
.interview-modal-content {
  background-color: #fefefe;
  margin: 20px auto; /* モバイルでの中央寄せ */
  padding: 40px 30px;
  border: 1px solid #888;
  width: calc(100% - 40px); /* 左右マージン分を引く */
  max-width: 900px;
  max-height: 90vh; /* 画面いっぱいの高さにならないように */
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow-y: auto; /* コンテンツのスクロール */
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-sizing: border-box; /* パディングを含める */
}
.interview-modal.show .interview-modal-content {
  transform: translateY(0);
}
.interview-modal-close {
  color: #666;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(240, 240, 240, 0.8);
  border-radius: 50%;
}
.interview-modal-close:hover,
.interview-modal-close:focus {
  color: #000;
  text-decoration: none;
  background: #ddd;
}

/* カードをクリッカブルにする */
.interview-card-clickable {
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.interview-card-clickable:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.click-hint {
  display: inline-block;
  margin-top: 10px; /* Reduced from 15px */
  padding: 8px 20px; /* Reduced from 10px 25px */
  background-color: var(--primary-color);
  color: white;
  border-radius: 25px;
  font-size: 0.9em; /* Reduced from 0.95em */
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}
.interview-card-clickable:hover .click-hint {
  background-color: var(--secondary-color);
}

.hidden-content {
  display: none !important;
}

/* モーダル内部のスタイル調整 */
.interview-modal-content .timeline {
    margin: 20px auto;
    padding-left: 10px; /* モーダル内部の調整 */
}
/* モバイル対応 */
@media (max-width: 600px) {
    .interview-modal-content {
        padding: 20px;
        width: calc(100% - 20px);
        margin: 10px auto;
    }
    .interview-modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}

.interview-card {
  justify-content: center;
  background: var(--item-bg);
  border-radius: 12px;
  padding: 15px; /* Reduced from 20px */
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  display: flex; /* Layout adjustment */
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 基本の影を追加 */
}

/* .interview-card:hover は interview-card-clickable で上書きされるため調整 */

.interview-img img {
    width: 150px;
    height: 150px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px; /* Further reduced from 10px */
    border: 3px solid #eee;
}

.interview-info h3 {
    margin: 5px 0; /* Reduced from 10px 0 */
    color: var(--primary-color);
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.requirements-table th,
.requirements-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  background-color: #fff;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word; /* 長い単語（メールアドレス等）の折り返し */
}

.requirements-table th {
  width: 25%;
  font-weight: bold;
  background-color: var(--table-header-bg);
}

.requirements-table ul {
  margin: 0;
  padding-left: 20px;
}

.requirements-table li {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .requirements-table thead {
    display: none;
  }

  .requirements-table,
  .requirements-table tbody,
  .requirements-table tr,
  .requirements-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .requirements-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
  }

  .requirements-table td {
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border-color-light);
    padding: 10px 15px;
  }

  .requirements-table td:before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
  }

  .requirements-table th {
      display: none;
  }
}

.product-list {
  display: grid;
  gap: 30px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  background-color: var(--section-bg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08); /* 影を強化 */
}

.product-item img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.product-item-text {
  display: flex;
  flex-direction: column;
}

.product-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-item p {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .product-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }
}

/* Image Gallery Styles */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.image-gallery img {
  width: 150px; /* Increased from 100px */
  height: 150px; /* Increased from 100px */
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
}

.lightbox-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (min-width: 769px) {
  .theme-high-school .product-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-high-school .product-item {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .theme-high-school .product-item img {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
  }

  .theme-high-school .product-item-text {
      width: 100%;
  }
}

.interview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  align-items: stretch;
}

.interview-grid-item {
  flex: 1 1 280px; /* モバイルでの基準幅 */
  max-width: 330px; /* PCでの最大幅、3列収まるサイズに制限 */
  min-width: 260px;
  display: flex;
  flex-direction: column;
}

/* カードのスタイル調整：グリッド内の高さを揃える */
.interview-grid-item .interview-card {
  justify-content: center;
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Changed from space-between */
}

.interview-grid-item .interview-header-badge {
  align-self: center; /* バッジを中央に */
}

.interview-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2px; /* Further reduced from 5px */
}

.interview-content h3 {
    margin: 5px 0;
}

.interview-content p {
    margin: 2px 0;
}

.interview-content .interview-quote {
    margin: 8px 0; /* Reduced from 20px 0 */
}

/* =========================================
   Sticky Header & Anchor Adjustment
   ========================================= */
.theme-high-school .header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* アンカーリンクのジャンプ位置をヘッダーの高さ分ずらす */
.theme-high-school section[id] {
  scroll-margin-top: 60px;
}

/* ナビゲーションのアクティブ表示 */
.theme-high-school nav .links a.active {
  color: var(--primary-color-dark);
  text-decoration: underline;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

/* =========================================
   Special Features Section Styles
   ========================================= */
.special-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
  flex-wrap: nowrap; /* 強制的に1列に並める */
  border-radius: 15px;
}

.special-nav-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  flex: 1; /* 均等に幅を取る */
  flex-basis: 0; /* Safari用: 均等分割を確実にする */
  max-width: 480px; /* 広がりすぎ防止 */
  min-width: 0; /* Flexbox内の縮小を許可 */
  text-decoration: none;
  color: var(--text-color-dark);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  box-shadow: 0 8px 15px rgba(0,0,0,0.08); /* 影を強化 */

  /* 高さを300pxにし、中身を中央寄せ */
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.special-nav-card[href="#for-students"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/photo-newgrad.jpg');
  background-size: cover;
  background-position: center;
}

.special-nav-card[href="#for-students"]:hover {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../img/photo-newgrad.jpg');
}

.special-nav-card[href="#for-stakeholders"] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/photo-building2.jpg');
  background-size: cover;
  background-position: center;
}

.special-nav-card[href="#for-stakeholders"]:hover {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../img/photo-building2.jpg');
}

.special-nav-card:hover {
  background-color: var(--item-hover-bg);
}

.icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.special-nav-card h4 {
  margin: 10px 0;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.special-nav-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* コンテンツ全体を中央に寄せ、最大幅を制限 */
body.theme-high-school .special-content-block {
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 2px dashed var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body.theme-high-school .special-content-block {
    padding-left: 0;
    padding-right: 0;
  }
}

.special-block-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding: 10px 20px;
  background: var(--item-bg);
  display: inline-block;
  border-radius: 30px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 影を追加 */
}

.special-grid {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.special-grid-item {
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06); /* 影を強化し立体感を出す */
  position: relative;
  min-width: 0; /* Safari等で画像が突き破るのを防ぐ */
  overflow: hidden; /* 角丸からはみ出すのを防ぐ */
}

.special-grid-item.full-width {
    grid-column: 1 / -1;
}

.special-grid-item h5 {
  text-align: left;
  padding: 0.4em 0.8em;
  color: var(--primary-color-dark);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 15px;
  border-left: 8px solid var(--secondary-color);
  background-color: var(--item-hover-bg);
  box-shadow: 0 3px 2px #d1d5db;
  display: block;
}

.special-grid-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.item-img-small {
  width: 150px;
  height: auto;
  margin-bottom: 15px;
}

.image-placeholder {
  background: #eee;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #888;
  font-size: 0.9rem;
  border: 1px dashed #ccc;
}

.dummy-chart {
  background: #f0f4f8;
  height: 100px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-weight: bold;
}

.highlight-badge {
  background: var(--primary-color);
  color: white;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .special-nav {
    flex-wrap: wrap; /* モバイルでは折り返す */
  }
  .special-nav-card {
    width: 100%;
    flex: none;
    height: auto; /* モバイルでは自動高さに戻す（オプション） */
    min-height: 200px;
  }
}

/* Text Alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-right-offset { text-align: right; margin-right: 100px; }

@media (max-width: 768px) {
  .text-right-offset {
    margin-right: 0; /* モバイルでは右余白をなくす */
  }
}

/* Margins & Paddings */
.mt-10 { margin-top: 5px; }
.mt-20 { margin-top: 10px; }
.mt-50 { margin-top: 20px; }
.mt-60 { margin-top: 20px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.pb-0 { padding-bottom: 0 !important; }

/* Border Radius */
.br-15 { border-radius: 15px; }

/* Text Styles */
.intro-text {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
}

.section-sub-heading {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 25px;
  padding: 0.5em 1em;
  color: var(--primary-color);
  font-size: 1.8rem;
  border-left: 10px solid var(--primary-color);
  background-color: var(--item-hover-bg);
  box-shadow: 0 5px 3px #d1d5db;
  position: relative;
  display: block;
}

.modal-sub-heading {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.interview-badge {
  background: var(--secondary-color);
  color: white;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.interview-quote {
  margin: 20px 0;
}

.modal-header-wrapper {
  border-bottom: 2px solid var(--border-color-light);
  padding-bottom: 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.modal-header-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.modal-header-title {
  margin: 0;
  color: var(--primary-color);
}

.modal-header-subtitle {
  margin: 5px 0 0;
  color: var(--text-color-subtle);
}

.dashed-divider {
  border: 0;
  border-top: 1px dashed var(--secondary-color);
  margin: 40px 0;
}

/* 枠自体を1024pxに制限するセクション */
#interview.bg-white, 
.other-recruit-section {
    max-width: 1024px !important;
    margin: 40px auto !important;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    box-sizing: border-box; /* パディングを含めて1024pxにする */
}

@media (max-width: 768px) {
  #interview.bg-white, 
  .other-recruit-section {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    /* ネガティブマージンを削除（これが横スクロールの主な原因） */
    margin-left: 0;
    margin-right: 0;
  }
}

.other-recruit-section h2 {
    text-align: left;
    padding: 0.5em 1em;
    color: var(--primary-color);
    font-size: 1.8rem;
    border-left: 10px solid var(--primary-color);
    background-color: var(--item-hover-bg);
    box-shadow: 0 5px 3px #d1d5db;
    position: relative;
    display: block;
    margin-bottom: 25px;
}

.other-recruit-title {
    font-size: 1.5rem;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.link-underline {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

/* =========================================
   Global Link Styles
   ========================================= */
a {
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    text-decoration: none !important;
    color: var(--primary-color-light) !important;
}

/* リンクボタンなどは例外として除外、または特定のリンクにだけ適用する場合、上記を調整 */

/* Job Role specific styles */
.job-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.job-role-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* 影を追加 */
}

.job-role-card h6 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
    margin-top: 0;
}

.job-role-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* Image styles */
.img-standard {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
}

.img-responsive {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
}

/* Swiper custom styles */
.swiper-standard {
    margin-bottom: 15px;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* hiddenに戻す */
    border: 1px solid #ddd;
    width: 100%;
}

.swiper-standard .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 矢印を非表示に */
.swiper-standard .swiper-button-prev,
.swiper-standard .swiper-button-next {
    display: none;
}

/* ページネーション（丸印）を画像の下部に配置 */
.swiper-standard .swiper-pagination {
    bottom: 10px !important;
}

.swiper-standard .swiper-pagination-bullet {
    width: 14px !important; /* 少し大きく */
    height: 14px !important;
    margin: 0 6px !important;
    background: var(--swiper-pagination-bullet-bg) !important;
    opacity: 0.6;
    border: 1px solid #fff; /* 画像上で見やすいよう白枠を追加 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.swiper-standard .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--swiper-pagination-bullet-active-bg) !important;
    width: 16px !important;
    height: 16px !important;
}

/* 疑似要素のカバなどは不要なので削除 */
.swiper-standard::before,
.swiper-standard::after {
  display: none;
}

/* Custom lists */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.list-emphasis li {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.list-stat {
    padding-left: 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.special-grid-item h6 {
    color: var(--primary-color);
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Process block */
.process-box {
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 影を少し強化 */
    overflow-x: hidden; /* 内部での溢れを防止 */
}

.process-box h4 {
    margin-top: 20px;
    color: var(--primary-color);
    text-align: left;
    padding: 0.4em 0.8em;
    border-left: 6px solid var(--primary-color);
    background-color: var(--item-hover-bg);
    box-shadow: 0 3px 2px #d1d5db;
    display: block;
}

/* =========================================
   Scroll Animation Styles
   ========================================= */
.scroll-trigger-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-trigger-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   Gender Ratio Chart Styles
   ========================================= */

.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.pie-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #3b82f6 0% 79%,    /* Male (Blue) 87% */
    #ec4899 21% 100%   /* Female (Pink) 13% */
  );
  position: relative;
  margin-bottom: 15px;
}

/* Donut hole */
.pie-chart::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: var(--body-bg); /* Matches number-box background */
  border-radius: 50%;
}

.chart-legend {
  font-size: 0.95em;
  text-align: left;
  width: 100%;
  padding-left: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #333;
}

.legend-item .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
}

.legend-item .dot.male {
  background-color: #3b82f6;
}

.legend-item .dot.female {
  background-color: #ec4899;
}

/* =========================================
   Ideal Candidate Section Styles
   ========================================= */
.ideal-candidate-box {
  border: 2px solid var(--secondary-color);
  padding: 40px;
  border-radius: 15px;
  background-color: var(--item-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* 影を強化 */
  text-align: left;
}

.ideal-candidate-box p {
    line-height: 1.8;
}

.ideal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.ideal-item {
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  width: calc(50% - 20px); /* 2カラムレイアウト */
  box-shadow: 0 8px 15px rgba(0,0,0,0.06); /* 影を強化 */
  display: flex;
  flex-direction: column;
}

.ideal-item:hover {
  background: var(--body-bg);
}

.ideal-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.ideal-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .ideal-item {
    width: 100%;
  }
  .ideal-candidate-box {
    padding: 25px 20px;
  }
}

/* =========================================
   Residence Chart Styles
   ========================================= */

.residence-chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    #3b82f6 0% 32.5%,    /* 大和市 */
    #10b981 32.5% 49.2%, /* 横浜市 */
    #f59e0b 49.2% 57.5%, /* 綾瀬市 */
    #ef4444 57.5% 65.0%, /* 座間市 */
    #8b5cf6 65.0% 72.5%, /* 相模原市 */
    #ec4899 72.5% 79.2%, /* 藤沢市 */
    #06b6d4 79.2% 83.4%, /* 海老名市 */
    #94a3b8 83.4% 100%   /* その他 */
  );
  position: relative;
  margin-bottom: 15px;
}

.residence-chart::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: #fdfdfd; /* Matches special-grid-item background */
  border-radius: 50%;
}

.legend-item .dot.yamato { background-color: #3b82f6; }
.legend-item .dot.yokohama { background-color: #10b981; }
.legend-item .dot.ayase { background-color: #f59e0b; }
.legend-item .dot.zama { background-color: #ef4444; }
.legend-item .dot.sagamihara { background-color: #8b5cf6; }
.legend-item .dot.fujisawa { background-color: #ec4899; }
.legend-item .dot.ebina { background-color: #06b6d4; }
.legend-item .dot.others { background-color: #94a3b8; }

.chart-legend.grid-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    font-size: 0.85em;
    padding-left: 0;
}

.hero-text-box {
    max-width: 100%; /* ボックスが画面幅を超えないように制限 */
    box-sizing: border-box;
}
