/*
 * Geofence FOSテーマ 共通スタイルシート
 * ================================
 * 目次:
 * 1. ベース設定
 * 2. 共通スタイル
 * 3. セクション別スタイル
 * 4. ユーティリティ
 * 5. レスポンシブ設定
 */

/* ============================================================ 
   1. ベース設定
   ========================================================== */
   :root {
    --deep-blue: #004ea2;
    --light-blue: #196fdd;
    --white: #ffffff;
    --black: #000000;
    
    /* 余白 */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
    
    /* 寸法 */
    --container-width: 100%;
    --container-max-width: 1920px;
    --border-radius: 20px;
    
    /* Font sizes */
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
  }
  
  /* ============================================================ 
     2. 共通スタイル
     ========================================================== */
  
  /* ----- 基本レイアウト ----- */
  .section {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
  }
  
  .section-common {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .section-vh100 {
    height: 100vh;
  }
  
  .section-colored {
    background-color: #196fdd;
    color: var(--white);
  }
  
  .section-margin {
    margin-top: 8vh;
  }
  
  #page-container {
    position: relative;
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    background-color: var(--white);
  }
  
  /* ----- Flexbox レイアウト ----- */
  .flex {
    display: flex;
  }
  
  .flex_row {
    display: flex;
    align-items: center;
  }
  
  .flex_rowRev {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
  }
  
  .flex_column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .flex-section {
    margin-top: 10vh;
    height: 780px;
  }
  
  .flex-center {
    justify-content: center;
  }
  
  .flex-between {
    justify-content: space-between;
  }
  
  .flex-start {
    justify-content: flex-start;
  }
  
  .flex-end {
    justify-content: flex-end;
  }
  
  /* ----- 余白・余白調整 ----- */
  .gap-small {
    gap: var(--spacing-sm);
  }
  
  .gap-medium {
    gap: var(--spacing-md);
  }
  
  .gap-large {
    gap: var(--spacing-lg);
  }
  
  .gap-xl {
    gap: var(--spacing-xl);
  }
  
  .padding-section {
    padding: 0 5vw;
  }
  
  /* ----- ボタンスタイル ----- */
  .btn {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: 1.2rem 4rem;
    border-radius: var(--border-radius);
    border-color: #196fdd;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
  }
  
  .btn-primary {
    background-color: #196fdd;
    color: var(--white);
  }
  
  .btn-reverse {
    background-color: var(--white);
    color: var(--deep-blue);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .btn-primary:hover {
    background-color: transparent;
    color: #196fdd;
  }
  
  .btn-reverse:hover {
    background-color: #196fdd;
    color: var(--white);
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .button-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
  }
  
  .btnText {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .button-container .righteous_regular {
    margin: 0;
    font-size: var(--font-size-md);
    letter-spacing: 1px;
  }
/* ----- パンくずリスト・共通見出し ----- */
.breadcrumb-container {
  width: 100%;
  max-width: 1920px;
  margin-top: 120px;
  margin-bottom: 80px;
  padding: 0 14vw;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-sm);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: #666;
}

.breadcrumb li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb li a:hover {
  color: #007bff;
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
}

.breadcrumb .current {
  font-weight: 500;
  color: #333;
}

/* 下層ページ見出しスタイル */
.bottomPage_headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 14vw;
}

.section_heading02,
.bottomPage_headline .section_heading02 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #004ea2;
}

.section_sub02,
.bottomPage_headline .section_sub02 {
  font-size: 18px;
  color: #004EA2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 特定コンテナ内での上書き */
.bottomPage_headline .section_heading02 {
  font-size: 3em;
}

.bottomPage_headline .section_sub02 {
  font-size: 2em;
}

/* 共通ページリンクセクション */
.common_page_links {
  padding-top: 6vw;
  width: 100%;
}

.page_links_container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.page_links_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.page_link_item {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

.page_link_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #005ae05e;
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 20px;
  transition: background-color 0.3s ease;
}

.page_link_item:hover .page_link_overlay {
  background-color: #005ae0b6;
}

.page_link_content {
  color: #fff;
  padding: 20px;
}

.page_link_title {
  font-size: 32px;
  margin-bottom: 10px;
}

.page_link_subtitle {
  font-size: 18px;
  margin-bottom: 25px;
}

.page_link_button {
  display: inline-block;
  padding: 20px 80px;
  background-color: #fff;
  color: #003366; /* deep-blue */
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #fff;
}

.page_link_button:hover {
  background-color: transparent;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page_links_grid {
    grid-template-columns: 1fr;
  }
  
  .page_link_item {
    height: 250px;
  }
}






/* ============================================================ 
   3. セクション別スタイル
   ========================================================== */

/* ----- 下層ページ共通レイアウトスタイル ----- */
.split_layout_content {
  width: 100%;
  height: 740px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.content_sidebar_left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 15%;
  height: 100%;
  padding: 0 1vw;
  position: relative;
}

.content_main_right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 55%;
  height: 100%;
  padding: 0 4vw;
  background-color: #196fdd;
}

.content_image {
  position: relative;
  overflow: hidden;
  height: 100%;
  background-color: #196fdd;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 40%;
}

.content_image img {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* サイドの縦書きタイトル */
.side_heading {
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 2rem;
  box-sizing: border-box;
}

.side_heading .righteous_regular {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(0deg);
}

/* 下層ページ固有のクラス */
.subpage_title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  height: 100%;
  display: inline-block;
}

.subpage_subtitle,
.subpage_heading,
.subpage_concept {
  margin-bottom: 20px;
}

/* メインコンテンツエリア */
.content_header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 4rem;
}

.content_description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

/* ============================================================ 
   5. レスポンシブ設定
   ========================================================== */

/* ===== 大型ディスプレイ (1280px以下) ===== */
@media screen and (max-width: 1280px) {
  /* パンくずリスト調整 */
  .breadcrumb-container {
    width: 100%;
    max-width: 1920px;
    margin-top: 120px;
    margin-bottom: 40px;
    padding: 0 10vw;
  }

  /* 見出しスタイル調整 */
  .bottomPage_headline .section_sub02 {
    font-size: 1.6em;
  }

  .bottomPage_headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 10vw;
    padding-bottom: 4vw;
}
  .bottomPage_headline .section_heading02 {
    font-size: 2.4em;
  }

  /* 共通レイアウト調整 */
  .split_layout_content {
    height: 640px;
  }

  .subpage_title {
    height: auto;
  }
  
  .content_sidebar_left {
    width: 10%;
  }
  
  .content_main_right {
    width: 50%;
    padding: 40px 3vw;
  }
  
  .content_image {
    width: 40%;
  }
}

/* ===== タブレット (992px以下) ===== */
@media screen and (max-width: 992px) {
  /* 共通レイアウト調整 */
  .split_layout_content {
    height: auto;
  }
  
  .content_sidebar_left {
    width: 100%;
    height: auto;
    align-items: center;
    padding: 30px 0;
  }
  
  .side_heading {
    width: 100%;
    height: auto;
    padding: 0;
  }
  
  .side_heading .righteous_regular,
  .subpage_title {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    height: auto;
    padding: 20px 0;
  }
  
  .content_main_right {
    width: 100%;
    padding: 40px 5vw;
  }
  
  .content_image {
    width: 100%;
    height: 300px;
  }
  
  .content_header {
    padding-bottom: 2rem;
  }
  
  .content_description {
    gap: 20px;
  }
  
  .breadcrumb-container {
    padding: 0 4vw;
  }

  .bottomPage_headline {
    padding: 0 4vw;
    margin-bottom: 20px;
  }

  .bottomPage_headline .section_heading02 {
    font-size: 2em;
  }

  .bottomPage_headline .section_sub02 {
    font-size: 1.4em;
  }
}

/* ===== モバイル大 (768px以下) ===== */
@media screen and (max-width: 768px) {
  /* 共通レイアウト調整 */
  .content_header {
    padding-bottom: 1.5rem;
  }
  
  .content_description {
    gap: 15px;
  }

  /* FVセクションの横幅調整 */
  .split_layout_content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    flex-direction: column; /* 縦並びを確実にする */
  }
  
  .content_sidebar_left,
  .content_main_right,
  .content_image {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .content_main_right {
    padding: 40px 5vw;
  }
  
  /* コンテナの余白調整 */
  .breadcrumb-container,
  .container,
  .section,
  [class*="container"] {
    width: 100%;
    max-width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
  }
  
  /* 余白をリセット */
  body, html {
    overflow-x: hidden;
  }
  
  /* 画像サイズの調整 */
  img.responsive-image {
    max-width: 100%;
    height: auto;
  }

  .common_page_links {
    padding: 6vw 0;
  }
}


/* ===== モバイル小 (576px以下) ===== */
@media screen and (max-width: 576px) {
  /* 共通レイアウト調整 */
  .content_main_right {
    padding: 30px 4vw;
  }
  
  .content_image {
    height: 200px;
  }

  .page_link_subtitle {
    margin-bottom: 0px;
  }
}