@charset "UTF-8";
/* =========================== */
/* グローバル設定 */
/* =========================== */
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #F1F1F1;
  overflow-x: hidden;
}

a {
  color: #000 !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

a:hover {
  color: #008E44 !important;
}

/* =========================== */
/* ヘッダーの調整 (XDデザイン準拠) */
/* =========================== */
.header {
  position: fixed;
  width: 100%;
  height: 120px; /* XDデザインの高さに合わせる */
  top: 0;
  left: 0;
  background-color: #F1F1F1;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1920px; /* XDデザインの幅に合わせる */
  padding: 0 40px; /* XDのサイドパディング */
}

/* ヘッダー内部レイアウト */
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ========================== */
/* ロゴの調整 */
/* =========================== */
.header-logo-area {
  position: relative;
}

.header-logo {
  height: auto;
  max-width: 339px;
  width: 100%;
}

.header-logo-sp {
  width: auto;
  height: 48px;
  max-width: 230px;
}

/* =========================== */
/* ナビゲーション＆エントリーボタンラッパー */
/* =========================== */
.nav-entry-wrapper {
  display: flex;
  align-items: center;
  gap: 20px; /* XDデザインに合わせたナビとボタンの間隔 */
}

/* =========================== */
/* ナビゲーションメニュー */
/* =========================== */
.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 25px; /* XDデザインの間隔に合わせる */
}

.nav-list li {
  list-style: none !important;
}

.nav-link {
  font-size: 16px; /* XDデザインのフォントサイズに合わせる */
  font-weight: 500;
  color: #333 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-link:hover {
  color: #007b5e !important;
}

/* 1920px以下の画面幅での調整 */
@media (max-width: 1800px) {
  .nav-list {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 15px;
  }
}

@media (max-width: 1600px) {
  .nav-list {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 1400px) {
  .header-container {
    padding: 0 20px;
  }
  
  .nav-list {
    gap: 10px;
  }
  
  .nav-link {
    font-size: 13px;
  }
  
  .header-logo {
    max-width: 300px;
  }
}

/* さらに小さい画面サイズでの調整 */
@media (max-width: 1200px) {
  .nav-list {
    gap: 8px;
  }
  
  .nav-link {
    font-size: 12px;
  }
  
  .header-logo {
    max-width: 260px;
  }
  
  .btn-entry-header {
    width: 140px;
    font-size: 0.75rem;
  }
}

/* カスタムブレイクポイント用のユーティリティクラス (890px) */
@media (min-width: 891px) {
  .d-custom-block {
    display: block !important;
  }
  
  .d-custom-flex {
    display: flex !important;
  }
  
  .d-custom-none {
    display: none !important;
  }
}

@media (max-width: 890px) {
  .d-custom-none {
    display: block !important;
  }
  
  .d-custom-block, .d-custom-flex {
    display: none !important;
  }
  
  .header {
    height: 90px;
  }
}

/* =========================== */
/* エントリーボタン（背景画像適用） */
/* =========================== */
.entry-button {
  display: flex;
  align-items: center;
}

.btn-entry-header {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff !important;
  display: inline-block;
  width: 180px; /* XDデザインのサイズに合わせる */
  height: 60px;
  line-height: 60px;
  text-align: center;
  text-decoration: none !important;
  background-image: url('/rcs-newgrad/assets/images/btn_entry.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease-in-out;
}

.btn-entry-header:hover {
  background-image: url('/rcs-newgrad/assets/images/btn_entry_hover.png'); /* ホバー時の背景 */
  color: #000 !important;
}

/* 画面サイズに応じたボタンの調整 */
@media (max-width: 1400px) {
  .btn-entry-header {
    width: 160px;
    height: 50px;
    line-height: 50px;
    font-size: 0.8rem;
  }
}

/* =========================== */
/* ハンバーガーメニュー */
/* =========================== */
.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background-color: #333;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.hamburger div:nth-child(1) {
  top: 0;
}

.hamburger div:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger div:nth-child(3) {
  bottom: 0;
}

.hamburger.open div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* =========================== */
/* モバイルナビゲーション */
/* =========================== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('/rcs-newgrad/assets/images/bg_sp_menu.png');
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  padding-top: 76px;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-inner {
  width: 100%;
  padding: 1rem;
}

.mobile-nav-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background-color: #F1F1F1;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.mobile-nav-logo .logo-sp {
  height: 48px;
  width: auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  width: 100%;
}

.mobile-nav-list li {
  border-bottom: 1px solid #ddd;
  padding: 0.8rem 0;
}

.mobile-nav-list a {
  color: #333 !important;
  font-size: 1.1rem;
  display: block;
  width: 100%;
}

.mobile-nav-list a:hover {
  color: #008E44 !important;
}

.mobile-entry-buttons {
  width: 100%;
  margin-top: 2rem;
}

/* 
* モバイルメニューのエントリーボタン 
*/
.mobile-entry-buttons .btn-entry {
  width: 90%;
  max-width: 280px;
  height: 60px;
  line-height: 60px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff !important;
  text-align: center;
  background-image: url('/rcs-newgrad/assets/images/sp_btn_entry.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.mobile-entry-buttons .btn-entry:hover {
  background-image: url('/rcs-newgrad/assets/images/sp_btn_entry_hover.png');
  color: #000 !important;
}

.close-menu {
  position: absolute;
  top: 18px;
  right: 15px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 1002;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* =========================== */
/* パンくずリスト */
/* =========================== */
.breadcrumb-container {
  background: #fff !important;
  padding: 1rem 0;
}

.breadcrumb {
  margin-bottom: 0;
  padding: 0;
  background-color: transparent;
  max-width: 1200px;
  width: 100%;
  max-height: 65px;
  height: auto;
  margin:0 auto;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}
@media (max-width: 767.98px) {
	.breadcrumb-container {
		display: none;
	}
}

/* =========================== */
/* コンテンツセクション */
/* =========================== */
.content-section {
  position: relative;
  background-image: url('/rcs-newgrad/assets/images/content_area_bg.png');
  background-size: cover; /* 背景を全体に広げる */
  background-position: center center;
  background-repeat: no-repeat;
  padding: 40px 0 60px;
  min-height: auto; /* 高さを自動に調整 */
  overflow: hidden;
}

/* コンテンツを包括するコンテナ */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 左側縦ブロックの背景 */
.content-left {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 160%; /* アスペクト比を維持 */
  background-image: url('/rcs-newgrad/assets/images/left_block_bg.png');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ボタンの調整 */
.content-left .btn-image {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 340px;
  transition: transform 0.3s ease;
}

.btn-image:hover {
  transform: translateX(-50%) scale(1.05);
}

/* 右側画像グリッド */
.content-grid {
  width: 100%;
}

.content-grid .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.content-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background-color: #fff; /* ボックスの背景色を白に */
  box-shadow: 0 0 10px rgba(0,0,0,0.05); /* 軽い影を追加 */
}

.content-grid img {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
}

.content-grid a:hover img {
  transform: scale(1.05);
}

/* 上の2つのグリッドアイテムは正方形に */
.content-grid .row .col:nth-child(1) a,
.content-grid .row .col:nth-child(2) a {
  aspect-ratio: 1 / 1;
}

/* 3つ目以降は横長に */
.content-grid .row .col:nth-child(n+3) a {
  aspect-ratio: 2 / 1;
}

@media (max-width: 1440px) {
  .content-section {
    padding: 30px 0 50px;
  }
  
  .content-grid .row {
    --bs-gutter-x: 0.8rem;
    --bs-gutter-y: 0.8rem;
  }
}

@media (max-width: 1280px) {
  .content-section {
    padding: 25px 0 40px;
  }
  
  .content-grid .row {
    --bs-gutter-x: 0.6rem;
    --bs-gutter-y: 0.6rem;
  }
}

@media (max-width: 991px) {
  .content-section {
    padding: 20px 0 30px;
  }
  
  .content-grid .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
}

@media (max-width: 890px) {
  .content-section {
    padding: 15px 0 25px;
  }
  
  .content-left {
    background-image: url('/rcs-newgrad/assets/images/sp_left_block_bg.png');
    margin-bottom: 15px;
  }
  
  /* すべてのグリッドアイテムを正方形に */
  .content-grid .row .col a {
    aspect-ratio: 1 / 1;
  }
}

/* =========================== */
/* フッターエリア */
/* =========================== */
.footer-section {
  background-color: #f9f9f9;
  margin-top: 3rem;
}

/* リンク付きブロックエリア */
.footer-link-blocks {
  background-image: url('/rcs-newgrad/assets/images/footer_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: auto; 
  min-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 4% 0;
  padding-left: 8%;
}

.link-block-container {
  width: 630px;
  height: 630px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.link-block {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.link-block img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.link-block:hover {
  transform: scale(1.05);
}

/* エントリーボタンエリアの調整 */
.entry-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

@media (max-width: 1920px) {
  .footer-link-blocks {
    min-height: 44vw; /* 1920pxに対する845pxの比率 (845/1920 ≈ 0.44) */
  }
}

/* 16:9比率のメディア幅での調整 */
@media (max-width: 1700px) and (min-aspect-ratio: 16/9) {
  .footer-link-blocks {
    padding-left: 6%;
  }

  .link-block-container {
    width: 560px;
    height: 560px;
    gap: 20px;
  }
  
  .link-block {
    width: 270px;
    height: 270px;
  }
}

/* 超横長ディスプレイでの調整 */
@media (min-width: 1921px) {
  .footer-link-blocks {
    background-size: 1920px auto;
    background-position: center top;
  }
}

@media (max-width: 1400px) {
  .footer-link-blocks {
    padding-left: 6%;
  }

  .link-block-container {
    width: 580px;
    height: 580px;
    gap: 20px;
  }
  
  .link-block {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 1200px) {
  .link-block-container {
    width: 500px;
    height: 500px;
    gap: 20px;
  }
  
  .link-block {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 991px) {
  .link-block-container {
    width: 420px;
    height: 420px;
    gap: 15px;
  }
  
  .link-block {
    width: 200px;
    height: 200px;
  }
}

/* 890px以下でもPC表示を維持 */
@media (max-width: 890px) {
  .footer-link-blocks {
    background-image: url('/rcs-newgrad/assets/images/footer_bg.jpg');
    min-height: 400px;
    padding-left: 4%;
  }
  
  .link-block-container {
    width: 400px;
    height: 400px;
    gap: 15px;
  }
  
  .link-block {
    width: 190px;
    height: 190px;
  }
}

/* フッター用のカスタムブレイクポイント */
@media (min-width: 577px) {
  .footer-link-blocks .d-custom-block {
    display: block !important;
  }
  
  .footer-link-blocks .d-custom-none {
    display: none !important;
  }
}

/* スマホサイズのみ（576px以下）の調整 */
@media (max-width: 576px) {
  /* スマホサイズでのセクション間の余白調整 */
  section {
    margin-bottom: 0 !important;
  }
  
  .mt-4, .mt-5, .my-4, .my-5 {
    margin-top: 1rem !important;
  }
  
  .mb-4, .mb-5, .my-4, .my-5 {
    margin-bottom: 1rem !important;
  }
  
  /* フッター余白の調整 */
  .footer-section {
    margin-top: 1rem !important;
  }
  
  /* フッター余白の調整 */
  .footer-section {
    margin-top: 1rem !important;
  }
  
  .footer-link-blocks {
    background-image: url('/rcs-newgrad/assets/images/sp_footer_bg.jpg');
    background-size: contain; /* contain に変更して画像全体が表示されるようにする */
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    padding-bottom: 278%; /* アスペクト比を維持するために高さをパーセンテージで指定 (1086/391≈278%) */
    height: 0; /* 実際の高さは padding-bottom で制御 */
    position: relative;
    margin-bottom: 0;
    max-width: 100%; /* 最大幅を100%に設定 */
  }
  
  /* コンテナを上揃えに変更 */
  .footer-link-blocks .container {
    position: absolute;
    top: 0; /* 上部から配置開始 */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 80px 0 20px; /* 上部に余白を追加 */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上揃えに変更 */
    align-items: center;
  }
  
  .link-block-container {
    width: 100%;
    max-width: 330px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    padding: 0;
  }
  
  .link-block {
    width: 100%;
    height: auto;
    aspect-ratio: 330 / 150;
    margin: 0 auto;
  }
  
  .link-block img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .footer-link-blocks .d-custom-block {
    display: none !important;
  }
  
  .footer-link-blocks .d-custom-none {
    display: block !important;
  }
  
  /* エントリーボタン周りの空白調整 */
  .footer-entry-buttons {
    padding: 1rem 0; /* パディングを小さく調整 */
  }
  
  .entry-text {
    line-height: 1.3;
    margin-bottom: 0.8rem; /* 下マージンを小さく */
  }
  
  .btn-entry {
    width: 320px;
    height: 65px;
    line-height: 65px;
    margin-bottom: 0.5rem; /* ボタン間の間隔をさらに小さく */
  }
  
  .entry-button-group {
    gap: 8px; /* ボタン間の間隔をさらに小さく */
  }
  
  /* ロゴとコピーライトのスペース調整 */
  .footer-logo-area {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* SNSエリアの余白調整 */
  .sns-text-block {
    margin: 0.5rem 0;
  }
  
  /* コピーライトの余白調整 */
  .footer-copyright {
    margin-top: 1rem;
  }
  
  /* フッターセクションの各要素間隔調整 */
  .footer-section > * + * {
    margin-top: 0.5rem;
  }
}

@media (max-width: 390px) {
  .footer-link-blocks {
    width: 100%;
    background-size: cover; /* カバーに変更 */
    height: 0;
    padding-bottom: 278%; /* アスペクト比を維持 */
  }
  
  .link-block {
    width: 90%;
  }
}

/* エントリーボタンエリア */
.footer-entry-buttons {
  padding: 2rem 0;
}

/* フッターのエントリーボタン */
.btn-entry {
  font-size: 1rem;
  font-weight: bold;
  color: #fff !important;
  display: inline-block;
  width: 250px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-image: url('/rcs-newgrad/assets/images/btn_entry.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}

.btn-entry:hover {
  background-image: url('/rcs-newgrad/assets/images/btn_entry_hover.png');
  color: #000 !important;
}

@media (max-width: 767.98px) {
  .entry-button-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-entry {
    width: 85%;
    max-width: 320px; /* スマホ用ボタン画像の幅に合わせる */
    height: 65px; /* スマホ用ボタン画像の高さに合わせる */
    line-height: 65px;
    background-image: url('/rcs-newgrad/assets/images/sp_btn_entry.png'); /* スマホ用背景画像 */
    background-size: 100% 100%; /* 背景画像をボタンサイズに合わせる */
  }
  
  .btn-entry:hover {
    background-image: url('/rcs-newgrad/assets/images/sp_btn_entry_hover.png'); /* スマホ用ホバー時背景画像 */
  }
}

/* フッターボトム */
.footer-logo {
  width: 310px;
  max-width: 100%;
  height: auto;
}

.footer-logo-sp {
  width: auto;
  height: 48px;
  max-width: 230px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.footer-nav li {
  display: inline-block;
  padding: 0 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
}

/* SNSエリア */
.sns-text-block {
  margin: 1.5rem 0 1rem;
}

.sns-text {
  font-size: 0.9rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding: 0 30px;
}

.sns-text::before, .sns-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  height: 2px;
  background-color: #333;
}

.sns-text::before {
  left: 5px;
  transform: rotate(45deg);
}

.sns-text::after {
  right: 5px;
  transform: rotate(-45deg);
}

.footer-sns img {
  width: 38px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-sns a:hover img {
  transform: scale(1.1);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #929292;
  margin-top: 1.5rem;
}

/* スマホサイズでのセクション間の空白調整 */
@media (max-width: 576px) {
  /* コンテナとセクションの余白を効率化 */
  .container, .container-fluid, .container-sm {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  /* セクション間の無駄な余白を削減 */
  section + section {
    margin-top: 0 !important;
  }
  
  /* フッターボトムの余白調整 */
  .footer-bottom {
    padding: 1rem 0 !important;
  }
  
  /* SNSブロックの余白調整 */
  .sns-text-block {
    margin: 1rem 0 0.5rem;
  }
  
  /* フッターナビゲーションの余白調整 */
  .footer-nav {
    margin: 1rem 0;
  }
}

/* タブレットサイズでの調整 */
@media (min-width: 577px) and (max-width: 991px) {
  /* セクション間の余白を調整 */
  .mt-md-5 {
    margin-top: 2rem !important;
  }
  
  .footer-section {
    margin-top: 2rem !important;
  }
}