body {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  text-align: center;
  padding: 0;
}

.header-title {
  background: linear-gradient(to right, #ddbb67, #f3d067);
  text-align: left;
  padding: 0;
  color: #fff;
  width: 100%;
  height: 50px;
}


/* sp */
@media (max-width: 767px) {
  .header-title {
    text-align: center;
    height: 70px!important;
  }
}

footer {
  background-color: #f3d067;
  color: #333333;
  text-align: center;
  padding: 30px 10px;
  flex-shrink: 0;
  font-size: 0.6em;
}

.video {
  background-image: radial-gradient(#f6f3e6 20%, transparent 1px),
    radial-gradient(#f6f3e6 20%, transparent 1px);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  margin: 0;
  width: 100%;
  text-align: center;
  padding: 30px 0 60px;
  position: relative;
  display: inline-block;
}

#replay-btn {
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background-color: #64866c;
  color: #fff;
  padding: 30px 40px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#replay-btn:hover {
  background-color: #64866c;
  transform: translate(-50%, -50%) scale(1.05);
}

.video-description {
  max-width: 800px;
  margin: 2rem auto 1rem;
  text-align: left;
  padding: 0; /* 左右に余白を追加 */
  line-height: 2rem;
  font-family: "Hiragino Maru Gothic ProN", "Meiryo", "MS PGothic", sans-serif;
}

.video-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.custom-video {
  width: 100%;
  height: auto;
  border: 1px solid #c4c4c4;
  box-shadow: 0 0 10px rgba(201, 201, 201, 0.5);
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.video-description a {
  display: inline-block;
  padding: 2.5px 1px;
  background-color: #64866c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1rem;
}

.video-description a:hover {
  background-color: #ffcc00;
  color: #000;
  transform: translateY(-2px);
}

/* sp */
@media (max-width: 767px) {
  .video {
    padding: 0 0 30px;
  }
  .video-description {
    max-width: 95%;
    margin: 2rem auto 1rem;
    font-size: 0.85em;
    padding: 0 10px;
    line-height: 1.5rem;
  }
  .custom-video {
    width: 90vw;
  }
  .video-description a {
  font-size: 0.8rem;
}
}

.topics {
  text-align: center;
  margin: 0;
  padding: 30px 0;
  background: #f6f3e6 url('../images/bg_A.png') no-repeat top right;
  background-position: top right 10px;
  background-size: 50%;
}

.kanshu {
  width: 100%;
  background-color: #eee8cc;
  color: #333333;
  text-align: left;
  padding: 15px 40px;
  flex-shrink: 0;
  font-size: 0.7em;
}

@media (max-width: 767px) {
  .kanshu {
    padding: 10px 10px;
  }
}

h2.ttl-femtech,
h2.ttl-femtech-B {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: #64866c;
  margin: 20px 0 40px;
  line-height: 2.5rem;
}
h2.ttl-femtech {
  font-size: 1.3rem;
}
h2.ttl-femtech strong {
  font-size: 2rem;
}
h2.ttl-femtech-B {
  font-size: 1.6rem;
}

.topic-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* リンク全体（トピック）の下線を削除 */
.topic-item {
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.topic-item:hover {
  transform: translateY(-10px);
}

.topic-item img {
  width: 100%;
  border-radius: 50%;
}

.learn-btn {
  display: block;
  padding: 10px 40px;
  background-color: #64866c;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin: 10px auto;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 400;
  text-decoration: none;
  width: 150px;
  font-size: 0.9em;
}

/* マウスオーバー時：リンク全体にホバーした際もボタンのスタイルを変更 */
.learn-btn:hover,
.topic-item:hover .learn-btn {
  background-color: #ffcc00;
  color: #000;
}

/* アンケートボタン */
.questionnaire-btn a {
  background: #64866c;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 250px;
  padding: 20px 30px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 100%;
  line-height: 1.8;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s ease-in-out;
}
.questionnaire-btn a:after {
  content: '';
  position: absolute;
  right: 2rem;
  transition: right 0.3s;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.questionnaire-btn a:hover:after {
  right: 1.4rem;
}
.questionnaire-btn a:hover {
  background: #ffcc00;
  color: #000;
  transform: translateY(-5px);
}
.tooltip {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 120%;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
  color: #64866c;
}
.tooltip:before {
  content: '＼';
  margin-right: 1rem;
}
.tooltip:after {
  content: '／';
  margin-left: 1rem;
}

/* フォント定義 */
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../fonts/Zen_Maru_Gothic/ZenMaruGothic-Black.ttf') format('truetype');
  font-weight: 900;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../fonts/Zen_Maru_Gothic/ZenMaruGothic-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../fonts/Zen_Maru_Gothic/ZenMaruGothic-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../fonts/Zen_Maru_Gothic/ZenMaruGothic-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../fonts/Zen_Maru_Gothic/ZenMaruGothic-Light.ttf') format('truetype');
  font-weight: 300;
}


@media screen and (min-width: 1024px) {
  .sp_br {
    display: none;
  }
}

.header-title {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 0;
  height: 50px;  /* 高さを明示的に指定 */
}

.header-title h1 {
  font-size: 15px;
  margin: 0 0 0 30px;  /* 上下のマージンを0に、左マージンのみ30px */
  padding: 0;  /* パディングを削除 */
  display: flex;  /* フレックスボックスを使用 */
  align-items: center;  /* 垂直方向の中央揃え */
  height: 100%;  /* 親要素の高さいっぱいに */
}

/* スマートフォン対応 */
@media (max-width: 767px) {
  .header-title h1 {
    margin: 0;
    justify-content: center;  /* スマホ表示時は中央揃え */
  }
}

.header-btn {
  display: inline-block;
  padding: 8px 20px;  /* パディングを調整 */
  background-color: #64866c;
  color: white;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  height: auto;  /* 高さを自動に変更 */
  line-height: 16px;
  margin: 8px 15px;  /* マージンを調整 */
  position: relative;
  border-radius: 20px;  /* 角丸を追加 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* 軽い影を追加 */
  border: 1px solid rgba(255, 255, 255, 0.2);  /* 微かなボーダーを追加 */
}

.header-btn:hover {
  background-color: #7a9f82;  /* ホバー時の色を少し明るく */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);  /* ホバー時は影を強く */
  transform: translateY(-1px);  /* わずかに浮き上がる効果 */
}

/* スマートフォン対応 */
@media (max-width: 767px) {
  .header-title {
    padding: 0 0 0 15px;  /* 左右に15pxの余白を追加 */
  }
  
  .header-title h1 {
    margin: 0;  /* 既存のマージンをリセット */
    justify-content: center;
  }
  
  .header-btn {
    margin: 20px 10px!important;  /* スマホ時のマージン調整 */
    padding: 6px 20px  /* スマホ時のパディング調整 */
  }
  
}