@charset "utf-8";

/*----------------------------------------
  1. リセットと基本スタイル
----------------------------------------*/
/* リセット */
body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

h1, h2, h3, h4 {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

/* 基本フォント設定 */
html {
  font-size: 16px;
}

/*----------------------------------------
  2. タイポグラフィ
----------------------------------------*/
/* 余白設定 */
h1, h2, h3, p {
  margin-bottom: 1.3em;
}

/* 見出し - グラデーションカラーパレット
  #379f79 - ベースとなる緑
  #27ae60 - アクセントの深緑
  #2ecc71 - 明るい緑
  */
h1 {
  position: relative;
  font-size: 26px;
  font-weight: bold;
  padding: 0 0 5px;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 22px;
  font-weight: bold;
  padding: 3px 16px;
  margin-bottom: 1em;
  color: #ffffff;
  background: linear-gradient(
    to right,
    #379f79 0%,
    #27ae60 50%,
    #2ecc71 100%
  );
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

h3 {
  font-size: 20px;
  font-weight: bold;
  padding: 3px 16px;
  margin-bottom: 1em;
  color: #333;
  background-color: rgba(55, 159, 121, 0.1);
  border-bottom: 3px solid;
  border-image: linear-gradient(
    to right,
    #379f79 0%,
    #27ae60 50%,
    #2ecc71 100%
  );
  border-image-slice: 1;
  border-radius: 4px;
  overflow: hidden;
}

h4 {
  font-size: 18px;
  font-weight: bold;
  padding: 3px 10px;
  margin-bottom: 1em;
  border-left: 8px solid #379f79;
}

/*----------------------------------------
  3. レイアウトコンポーネント
----------------------------------------*/
/* ヘッダー */
.header-container {
  width: 100%;
  background-color: #006400;
  overflow: hidden;
}

.responsive-header {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: left center;
}

.mypage-link {
  position: absolute;
  top: 15.5px;
  right: 30px;
  border: 0 solid #000;
  width: auto;
}

/* メインコンテンツ */
main {
  width: 100%;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.back-link {
  margin-left: 24px;
}

/* フッター */
.footer-container {
  width: 100%;
  clear: both;
  background-color: #379F79;
  text-align: center;
  padding: 3px 0;
}

/*----------------------------------------
  4. ナビゲーション
----------------------------------------*/
/* パンくずリスト */
.breadcrumb {
  overflow-x: auto;
  word-break: keep-all;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-left: 5%;
  margin-left: 0;
  width: 90%;
}

.breadcrumb:hover {
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

.breadcrumb li {
  display: inline-block;
  font-size: 0.8em;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 5px;
}

/*----------------------------------------
  5. コンポーネント
----------------------------------------*/
/* セクション見出し - メインカラーパレット 
  背景色: #d0f0e0 - 薄い緑
  文字色: #006633 - 濃い緑
*/
.section-title {
  display: table;
  margin: 0 auto;
  text-align: center;
  background-color: #d0f0e0;
  color: #006633;
  padding: 8px 60px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,90,43,0.1);
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* テーブル */
table {
  border-collapse: collapse;
  width: auto;
  border: 1px solid #999;
}

th, td {
  border: 1px solid #999;
  padding: 6px;
}

/* テーブル - スクロール可能な横長テーブル用のクラス */
.slider {
  width: 100%;
  overflow-x: auto;  /* 横スクロールを可能にする */
  -webkit-overflow-scrolling: touch;  /* スムーズなスクロールのため */
}

.slider th,
.slider td {
  white-space: nowrap;  /* テキストの折り返しを防ぎ、横スクロールを可能にする */
}

/* セクションコンテンツ - 画像とテキストのレイアウト
  デフォルトは横並び、レスポンシブ時に縦積みに変更 */
  .section-content {
    display: flex;
    gap: 1.2em;
  }
  
  .section-text {
    flex: 1;
  }
  
  .image-container {
    flex-shrink: 0;
    text-align: center;
  }

/* 縦積みレイアウト - 画面サイズに関係なく常にコンテンツを縦方向に配置 */
.column-layout {
  flex-direction: column;
  gap: 0;
}

.column-layout .image-content {
  display: block;
  text-align: left;
  padding-left: 1.3em;
}

/*----------------------------------------
  6. 動画コンポーネント
----------------------------------------*/
/* 動画コンテナ - YouTubeの埋め込み用コンポーネント
  通常の16:9動画とショート動画(9:16)に対応 
*/
.video-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.video-regular {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-short {
  position: relative;
  width: 100%;
  max-width: 315px;
  margin: 0 auto;
  height: 560px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.video-regular iframe,
.video-short iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*----------------------------------------
  7. ユーティリティクラス
----------------------------------------*/
/* ハイライト表示用のクラス - 文章中の重要な箇所をマーキング */
.look {
  display: inline-block;
  padding: 0 10px;
  background: #ffd700;
  color: #000;
  border-radius: 3px;
  margin: 5px 0;
  word-break: break-all;
}

/* アクセシビリティ対応 - スクリーンリーダー専用の要素 */
.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  word-break: break-all;
}

/*----------------------------------------
  8. レスポンシブデザイン
----------------------------------------*/
/* デスクトップ (1024px以上) */
@media all and (min-width: 1024px) {
  p {
    padding: 0 16px;
  }
}

/* タブレット以下 (768px以下) */
@media screen and (max-width: 768px) {
  .responsive-header {
    height: 54px;
  }

  .mypage-link {
    top: 11px;
    right: 10px;
  }

  .mypage-link img {
    height: 32px;
  }

  main {
    padding: 24px;
  }

  h1, h2, h3, p {
    margin-bottom: 1.2em;
  }

  .section-content:not(.column-layout) {
    flex-direction: column;
  }

  .column-layout .image-content {
    padding-left: 0;
  }

  .image-container {
    margin-bottom: 1.2em;
    width: 100%;
  }

  .video-container {
    padding: 0 0.5rem;
    margin: 1.5rem auto;
  }
  
  .video-regular,
  .video-short {
    border-radius: 4px;
  }

  .video-short {
    width: 315px;
    max-width: 100%;
    height: 560px;
    max-height: calc(100vh - 60px);
  }
}

/* モバイル (480px以下) */
@media screen and (max-width: 480px) {
  .responsive-header {
    height: 46px;
  }

  .mypage-link {
    top: 9px;
    right: 7px;
  }

  .mypage-link img {
    height: 28px;
  }

  main {
    padding: 20px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  h4 {
    font-size: 16px;
  }

  .video-container {
    padding: 0 0.25rem;
    margin: 1rem auto;
  }
  
  .video-short {
    height: calc(100vh - 80px);
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* 横向き時の設定 */
@media (orientation: landscape) {
  html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }
}