@charset "utf-8";
/* --------------------------------------------------
   main.css - サイト共通の基本スタイル
-------------------------------------------------- */

/* --------------------------------------------------
   リセット＆基本設定
-------------------------------------------------- */
* {
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow-x: hidden;
  background: #f5f5f5;
}

h1, h2 {
  margin-top: 0;
}
a {
  color: #004080;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   共通セクションスタイル
--------------------------------------------------
  max-width: 1000px;
  width: 90%;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  border: 2px dashed #aaa;
  box-sizing: border-box;
}*/
.section {
  max-width: 1280px;
  margin: 40px auto;
  padding: 6rem 30px;
  text-align: center;   /* 中央揃えしたい場合はこちら */
}

.section + .section {
  margin-top: 10rem;
}
/* --------------------------------------------------
   ページ上部の共通ヒーロー画像エリア（サブページ用）
-------------------------------------------------- */
.page-hero {
  position: relative !important;
  width: 100% !important;
  height: 400px !important; /* ← 高さを明確に指定 */
  overflow: hidden !important;
  margin-bottom: 200px ;
  z-index: 0 !important;
}

.page-hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* キャッチコピーを左下に配置 */
.page-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
}
/* ----------------------------------------------
   ページトップボタン（英語版デザイン＋スクロール表示）
------------------------------------------------ */

.page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #007acc;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 999;

  opacity: 0;              /* 初期は隠す */
  visibility: hidden;
  transform: translateY(10px); /* 下から少しスライド */

  transition: 
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;

  display: flex;
  align-items: center;
  gap: 4px;

  border: none;
  cursor: pointer;
}

/* ★ JS が付けるクラス（is-active） */
.page-top.is-active {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}

/* ホバー時の挙動（英語版そのまま） */
.page-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ▲ アイコン調整 */
.page-top i {
  font-style: normal;
  font-size: 16px;
  line-height: 1;
}

/* “TOP” の文字 */
.page-top p {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

html {
  scroll-behavior: smooth;
}


/* --------------------------------------------------
   レスポンシブフォントサイズ（見出し・本文）
-------------------------------------------------- */
@media screen and (max-width: 768px) {
.page-hero {
  margin-bottom: 50px ;
}

}
/* 🟢 PCサイズ */
h1 {
  font-size: 2.2em;
}
h2 {
  font-size: 1.8em;
}
h3 {
  font-size: 1.4em;
}
p,
li {
  font-size: 1em;
}

/* 🔵 タブレットサイズ以下（～768px） */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.2em;
  }
  p,
  li {
    font-size: 0.95em;
  }
}

/* 🟣 スマホサイズ（～600px） */
@media screen and (max-width: 600px) {
  h1 {
    font-size: 1.5em;
  }
  h2 {
    font-size: 1.2em;
  }
  h3 {
    font-size: 1.05em;
  }
  p,
  li {
    font-size: 0.9em;
  }

  .page-hero {
    height: 180px;
  }

  .page-hero-text {
    font-size: 1.2em;
    left: 15px;
    bottom: 15px;
  }
}
