/* =========================================
   ベーススタイル
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* コンテナ共通クラス */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* =========================================
   ヘッダー
========================================= */
.header {
  background-color: #009143; /* コーポレートカラー(緑)を使用 */
  color: #fff;
  padding: 1rem 0;
}

.header-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* =========================================
   ヒーローセクション
========================================= */
.hero {
  /* 
    例として背景画像を設定する場合
    画像サイズ:
    1920px x 600 ~ 1080px がおすすめ
  */
  background-image: url("images/hero.jpg"); /* 画像のパスを適宜変更 */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 50vh; /* 画面の縦半分くらいの高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

/* ヒーローテキストエリア */
.hero-content {
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4); /* テキストの視認性を高めるために半透明の背景 */
  border-radius: 4px;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
}

/* =========================================
   メッセージセクション
========================================= */
.message-section {
  padding: 2rem 0;
}

.message-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #009143; /* コーポレートカラー */
}

.message-section p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* =========================================
   キャンペーンセクション
========================================= */
.campaign-section {
  background-color: #f2f2f2;
  padding: 2rem 0;
}

.campaign-section h2 {
  font-size: 1.8rem;
  color: #009143; /* コーポレートカラー */
  margin-bottom: 1rem;
}

.campaign-section p {
  font-size: 1rem;
  line-height: 1.8;
}

/* =========================================
   フッター
========================================= */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

.footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

a.footer_link{
  color:#fff;
  font-weight: 600;
}

/* =========================================
   レスポンシブ対応
   - ここでは簡易的に768px以下を対象
========================================= */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .message-section, .campaign-section {
    padding: 1rem 0;
  }
}

/* ------------------------------
   ヘッダー関連
------------------------------ */
header {
  background-color: #009143; /* コーポレートカラー */
  padding: 0.5rem 0;         /* 上下の余白を少し小さめに */
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  /* ロゴ画像のサイズ調整などがあればここで */
  height: 40px;
  /* width: auto; などを必要に応じて追加 */
}

/* ナビゲーション全般 */
nav {
  position: relative;
}

nav ul {
  display: flex; /* PC表示では横並びに */
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 2rem; /* リスト同士のスペースを調整 */
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}

nav ul li a:hover {
  opacity: 0.8;
}

/* ハンバーガーメニュー */
.menu-icon {
  display: none;         /* PC表示時は非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

/* レスポンシブ（768px以下） */
@media screen and (max-width: 768px) {
  /* ロゴ高さを少し変える場合はここで */
  .site-logo {
    height: 36px;
  }

  /* メニューアイコンを表示し、ナビのウルを一旦非表示に */
  .menu-icon {
    display: flex;
  }
  
  nav ul {
    position: absolute;
    top: 60px; 
    right: 0;
    background-color: #009143; 
    flex-direction: column;
    width: 200px;     /* メニューの幅を調整 */
    display: none;    /* 初期は閉じた状態 */
    text-align: right;
    padding: 1rem;
  }

  nav ul li {
    margin: 1rem 0;
  }
}
/* ヒーローセクション全体のレイアウト */
.hero {
  width: 100%;
  /* 必要なら余白を調整 */
  margin: 0 auto;
  text-align: center; /* 画像がインライン要素として中央に揃う */
  background-color: #dbf2fa; /* ページ背景色を薄いグリーン系にする例 */
  /* ↑ ここはお好みで */
}

/* 画像自体をレスポンシブに表示する */
.hero-img {
  width: 100%;   /* 親要素幅いっぱいに拡大・縮小 */
  height: auto;  /* アスペクト比を維持して表示 */
  display: block; /* 不要な余白を消したい場合は display:block; に */
  max-width: 1920px; /* 必要なら最大幅を設定しておく (任意) */
  margin: 0 auto; /* max-width指定時のセンタリング */
}

/* ==========================
   ベーススタイル
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ==========================
   コンテナ
========================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* ==========================
   社長メッセージセクション
========================== */
.president-message {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
}
.president-message .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* PCで左右に離す */
  gap: 2rem;                      /* 写真とテキストの間隔 */
}

/* 写真エリア */
.president-photo {
  flex: 1;
  max-width: 100px; /* 写真の表示領域をある程度制限しておく */
}

.president-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* 角を少し丸める例 */
  display: block;
}

/* テキストエリア */
.president-text {
  flex: 2; /* 写真よりもテキストエリアを少し広めに */
}

.president-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #009143; /* コーポレートカラー */
}

.president-text p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.president-text .signature {
  text-align: right;
  margin-top: 2rem;
  font-weight: bold;
}

/* ==========================
   レスポンシブ対応
   （768px以下で縦並びに）
========================== */
@media screen and (max-width: 768px) {
  .president-message .container {
    flex-direction: column;
    align-items: flex-start;  /* 写真とテキストを上から順に縦並び */
  }

  .president-photo,
  .president-text {
    max-width: 100%;
    flex: none;  /* flex指定を解除 */
    width: 100%; /* 横幅いっぱいに表示 */
  }

  .president-text h2 {
    font-size: 1.2rem;
  }
}

/* ==========================
   共通セクション
========================== */
.section-title {
  font-size: 1.8rem;
  color: #009143;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.section-lead.small { font-size: .95rem; color:#555; }

/* ==========================
   ボタン
========================== */
.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .08s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #009143;
  color: #fff;
}
.btn-primary:hover { opacity: .9; }

.btn-outline {
  border: 2px solid #009143;
  color: #009143;
  background: #fff;
  margin-left: .5rem;
}
.btn-outline:hover { background: #f5fff9; }

/* ==========================
   ゼミ セクション
========================== */
.zemi-section {
  background: #f7fbf9;
  padding: 2rem 0;
  border-top: 1px solid #e6f2ec;
  border-bottom: 1px solid #e6f2ec;
}

.badge-sale {
  display: inline-block;
  background: #e6f6ee;
  color: #006c32;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
  margin-left: .25rem;
  white-space: nowrap;
}

.zemi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.zemi-card {
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.zemi-card__head { padding: 1rem 1rem 0; }
.zemi-card__title { font-size: 1.2rem; line-height: 1.5; color:#222; }

.zemi-card__body { padding: 1rem; flex: 1; }
.zemi-points { margin: 0 0 1rem; padding-left: 1.2rem; }
.zemi-points li { margin: .3rem 0; }

.zemi-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 1rem;
}
.price--list {
  text-decoration: line-through;
  color: #777;
}
.price--sale {
  font-size: 1.25rem;
  color: #d12a2a;
  font-weight: 800;
}

.zemi-card__foot { padding: 0 1rem 1rem; }
.zemi-note {
  margin-top: .75rem;
  font-size: .95rem;
  color: #444;
}

/* ==========================
   動画セクション（軽量サムネ）
========================== */
.anniv-videos {
  padding: 2rem 0;
  background: #fff;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.video-card { display: flex; flex-direction: column; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 1px solid #e7e7e7;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform .25s ease, opacity .2s ease;
}
.video-thumb:hover img { transform: scale(1.02); opacity: .95; }

.play-badge {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-weight: 700;
  padding: .35rem .55rem;
  border-radius: 6px;
  font-size: .9rem;
}

.video-title {
  font-size: 1rem;
  margin-top: .5rem;
  line-height: 1.5;
  color:#222;
}

/* ==========================
   レスポンシブ
========================== */
@media (max-width: 992px) {
  .zemi-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section-title { font-size: 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== PC・スマホ共通：画像をカード幅にフィットさせる ===== */
.zemi-card--with-media .zemi-card__media {
  order: -1;                              /* 画像を常に上に */
  padding: 0;
  border-bottom: 1px solid #eef2ee;
  background: #fff;
}

.zemi-card--with-media .zemi-card__media img {
  display: block;
  width: 100%;            /* 横幅いっぱい */
  height: auto;           /* 高さは自動調整で比率維持 */
  object-fit: contain;    /* トリミングしない */
  border-radius: 12px 12px 0 0;
  box-shadow: none;
}

/* PC時のレイアウトも縦並びで統一 */
@media (min-width: 993px) {
  .zemi-card--with-media {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

/* スマホ時も画像の高さ制限は解除してフル表示 */
@media (max-width: 992px) {
  .zemi-card--with-media {
    grid-template-columns: 1fr;
  }
  .zemi-card--with-media .zemi-card__media img {
    max-height: none;
  }
}

/* ===== 25周年プレゼント企画（予告） ===== */
.gift-teaser {
  padding: 2rem 0;
  background: #fff;                  /* ページ背景に合わせて必要なら変更可 */
  border-top: 1px solid #f0f2f2;
  border-bottom: 1px solid #f0f2f2;
}

/* 16:9のレスポンシブ埋め込み */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;              /* モダンブラウザ */
  background: #000;                  /* 読み込み前に黒背景 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  margin-bottom: 1rem;
}

/* 互換性フォールバック（aspect-ratio非対応ブラウザ向け） */
.yt-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 余白調整（任意） */
@media (max-width: 640px) {
  .gift-teaser { padding: 1.5rem 0; }
}
/* PCではYouTube埋め込みの高さを最大400pxに制限 */
@media (min-width: 993px) {
  .yt-embed {
    max-width: 710px;   /* 16:9の横幅 → 高さ400pxに収まる幅 */
    max-height: 400px;
    margin-left: auto;
    margin-right: auto; /* センター寄せ */
  }
  .yt-embed iframe {
    width: 100%;
    height: 100%;
  }
}

/* ===== 募集要項（画像） ===== */
.gift-terms {
  margin: 1.25rem auto 0;
  max-width: min(1100px, 100%);      /* コンテナ幅にフィット */
  text-align: center;
}
.gift-terms__link {
  display: inline-block;
  width: 100%;
}
.gift-terms img {
  display: block;
  width: 100%;
  height: auto;                       /* 画面幅に応じてスケール */
  border-radius: 12px;
  border: 1px solid #eef2ee;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* キャプション（注記） */
.gift-terms__note {
  margin-top: .5rem;
  font-size: .9rem;
  color: #666;
}

/* 余白微調整（スマホはやや詰め、PCは余裕を持たせる） */
@media (max-width: 640px) {
  .gift-terms { margin-top: .75rem; }
}
@media (min-width: 993px) {
  .gift-terms { margin-top: 1.25rem; }
}
/* ===== プレゼント紹介（画像） ===== */
.gift-present {
  margin: 1.5rem auto 0;
  max-width: min(1100px, 100%);
  text-align: center;
}
.gift-present__link {
  display: inline-block;
  width: 100%;
}
.gift-present img {
  display: block;
  width: 100%;
  height: auto;                  /* 横幅に応じて縮小 */
  border-radius: 12px;
  border: 1px solid #eef2ee;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.gift-present__note {
  margin-top: .5rem;
  font-size: .9rem;
  color: #666;
}

/* スマホ時に余白を少し詰める */
@media (max-width: 640px) {
  .gift-present { margin-top: 1rem; }
}

/* ---- 予告動画：コンテナ ---- */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;     /* 比率維持でレスポンシブ */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* 旧フォールバックを無効化（黒い箱だけになるのを防止） */
.yt-embed::before { content: none; }

/* 埋め込み／プレースホルダーを全面にフィットさせる */
.yt-embed iframe,
.yt-embed .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* プレースホルダーの見た目 */
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(255,255,255,.06), transparent 60%),
    #111; /* ほんのりアクセント */
}
.video-placeholder p {
  line-height: 1.7;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* PCは縦400px上限（ご指定どおり）＆中央寄せ */
@media (min-width: 993px) {
  .yt-embed {
    max-height: 400px;
    max-width: calc(400px * 16 / 9); /* 710px相当 */
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== 応募ボタン（CTA） ===== */
.gift-apply { margin: 1.25rem auto 0; text-align: center; }

.btn-cta {
  display: inline-block;
  width: 100%;
  max-width: 520px;              /* PCでの横幅 */
  padding: 1.1rem 1.25rem;
  border-radius: 999px;          /* でかい丸ボタン */
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 6px 18px rgba(0,145,67,.25);
}

/* 公開後（有効） */
.btn-cta.is-live {
  background: #009143;
  color: #fff;
}
.btn-cta.is-live:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,145,67,.32); }
.btn-cta.is-live:active { transform: translateY(0); }

/* 公開前（無効表示） */
.btn-cta.is-soon {
  background: #e6f6ee;
  color: #006c32;
  border: 2px dashed #97d3b5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-cta small { display:block; font-weight:600; opacity:.9; }

/* 小注記 */
.gift-apply__note { margin-top: .5rem; color:#666; font-size:.9rem; }

/* スマホは全幅、PCは中央寄せ（max-widthで制御） */
@media (min-width: 641px) {
  .gift-apply { display: flex; justify-content: center; }
}