@charset "utf-8";

/* =====================
   BASE
===================== */
:root {
	--primary-color: #ffa07a;			/*テンプレートの土台カラー*/
	--primary-inverse-color: #725A4C;	/*上のprimary-colorの対となる色*/
	
	--secondary-color: #32443C;			/*テンプレートのサブまたはアクセントカラー*/
	--secondary-inverse-color: #fff;	/*上のsecondary-colorの対となる色*/
	
	--accent-color: #EC3500;			/*アクセントカラー*/
  --kichijoji-color: rgba(255, 41, 241,1);
  --sagamihara-color: rgba(120, 255, 149,1);
  --bg-blue: rgba(170, 187, 250, 0.8);
  --bg-pink: rgba(237, 111, 180, 0.8);
    --black: #1d1d21;
    --gray-10: #2e2e31;
    --gray-6: #7b7a7d;
    --gray-4: #a5a5a6;
    --gray-3: #bbbbbc;
    --gray-2: #d1d0d2;
    --gray-1: #e8e7e8;
    --white: white;	
	--global-space: 3rem;				/*主に余白の一括管理用*/
  --font-family: "Inter", "Hiragino Sans", "Meiryo", sans-serif;
}

body{
  color: #333;
  font-family: var(--font-family);
  letter-spacing: 0.03em;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

main.page{ 
  padding-top: 80px; /* 固定ヘッダーの高さ考慮 */
  width: 100%;
  margin: 0 auto;
}

.section {
  padding: 100px 20px; /* 余白を広めにとって「雑誌」感を出す */
  max-width: 900px;
  margin: 0 auto;
}

/* :::::: contents :::::: */
main>div {
	background: white;
    overflow-x: hidden;
}
h2 {
  margin: 1rem 0 .5rem;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}
h3 {
  margin: 1rem 0 .5rem;
  font-weight: bold;
  text-align: center;
}
h4 {
  margin: 1rem 0 .5rem;
  font-weight: bold;
  text-align: center;
}
main p a {
	color: #86c0de;
}

main div::after {
	content: "";
	display: block;
	clear: left;
}

/*h2見出し共通*/
.section h2 {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 4rem;
}

/*h2内の小文字*/
.section h2 .eigo {
	display: block;
	font-size: .7rem;	
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--gray-4);
  letter-spacing: 0.3em; /* 文字間を広げてスタイリッシュに */
  margin-bottom: 0.2rem;
}
.content p {
  font-size: 0.8rem;
  line-height: 1.3rem;
}

footer{
  height: 5vw;
  width: 100%;
  text-align: center;
}

/* =====================
   HEADER（SPベース）
===================== */
.v-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* header本体 */
.v-header__inner {
  position: relative;
  height: 60px; /* 基本の高さ */
  min-height: 60px; /* 変化用 */
  background-image: linear-gradient(-160deg, #5f81fb, #ff29ef, #ff0000);
  z-index: 2;
  transition: min-height 0.3s ease;
}

/* ロゴ（中央固定） */
.v-header__logo {
  position: absolute;
  left: 50%;
  top: 10px; 
  transform: translateX(-50%);
  height: auto;
  display: flex;
  align-items: flex-start;      /* 子要素も上寄せ */
  z-index: 2;
}

.v-header__logo img {
  height: 40px;
  max-width: none;
}


/* =====================
   ハンバーガーメニュー
===================== */
.v-header__toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 24px;
  z-index: 2;

  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}

.v-header__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #fff; /* グラデヘッダーに合わせて白に変更 */
  display: block;
  /* アニメーションの速度調整 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3本線の配置 */
.v-header__toggle span:nth-child(1) { top: 0; }
.v-header__toggle span:nth-child(2) { top: 11px; }
.v-header__toggle span:nth-child(3) { top: 22px; }

/* -----------------------
   開いた時（×印）の状態
   ----------------------- */
.v-header__toggle.is-active span:nth-child(1) {
  top: 11px;
  /* 1回転(360) + 45度 = 405度 */
  transform: rotate(405deg);
}

.v-header__toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.v-header__toggle.is-active span:nth-child(3) {
  top: 11px;
  /* 逆方向に405度 */
  transform: rotate(-405deg);
}

/* -----------------------
   アニメーション速度
   ----------------------- */
.v-header__toggle span {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   NAV（SP）
===================== */
.v-nav, .v-nav_extra {
  display: none;
}

/* SPドロワー */
.v-nav.is-open {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100Vh;
  background: transparent; /* headerのグラデが見えるように */
  z-index: 1;

  /* ヘッダー高さ分のマージン */
  padding-top: 60px; /* header__inner の高さ */
}

.v-nav__list {
  margin-top: 50px;
  list-style: none;
}

.v-nav__item a {
  display: flex;
  flex-direction: column;
  padding: 14px;
  color: #FFF;
  font-weight: 900;
  text-decoration: none;
}
.v-nav__item .en { font-size: .9rem; line-height: 1.2rem; }
.v-nav__item .jp { font-size: .7rem; }

/* 子メニュー */
.v-nav__child {
  padding-left: 16px;
  font-size: .8rem;
  font-weight: 500;
}




.v-nav__item.is-open .v-nav__child {
  display: block;
}

/* =====================
   EXTRA（共通）
===================== */
.v-nav__extra {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px;
}

.v-nav__sns {
  display: flex;
  gap: 5px;
}

.v-nav__extra a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.v-nav__extra i {
  font-size: 1.3rem;
}


/* =====================
   ページトップに戻るボタン
===================== */
.page-top {
  position: fixed;
  right: 16px; /* SP: 端に寄せすぎない */
  bottom: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
}

/* 表示時 */
.page-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* SP: タップしやすい最小サイズ */
  height: 44px;
  text-decoration: none;
  background-color: var(--black, #333);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, transform 0.3s;
}

.page-top a i {
  font-size: 1rem;
}


/* =====================
   SP
===================== */
@media (max-width: 767px) {
  /* 親メニューを相対位置に */
  .v-nav__item--parent {
    position: relative;
  }

  /* .enの右横に＋を表示 */
  .v-nav__item--parent .en::after {
    content: "+";
    position: absolute;
    left: 12rem;        /* ナビの右余白と揃える */
    top: 1rem;           /* 縦中央 */
    font-size: 1.2em;
    font-weight: 900;
    pointer-events: none; /* クリックを邪魔しない */
    transition: transform 0.3s;
  }

  /* 開いたらマイナスに変更 */
  .v-nav__item--parent.is-open .en::after {
    content: "−";
  }
  .v-nav__child {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  .v-nav__item.is-open .v-nav__child {
    max-height: 600px;
    opacity: 1;
  }
}


/* =====================
   PC
===================== */
@media (min-width: 768px) {

  /* ハンバーガーメニュー解除 */
  .v-header__toggle {
    display: none;
  }

  /* PCではHOMEメニューなし */  
  .v-nav__home {
    display: none;
  }

  /* PCでの外部リンクサイズ調整*/
  .v-nav__extra i {
    font-size: 1rem;
  }
  /* header内をフレックスで均等配置 */
  .v-header__inner {
    display: flex;
    justify-content: space-between; /* 左・中央・右を均等配置 */
    align-items: center;
    padding: 0 24px; /* 左右余白 */
  }

  /* ロゴは左端 */
  .v-header__logo {
    position: static; /* SPのabsolute解除 */
    transform: none;
    display: flex;
    justify-content: flex-start; /* 左寄せ or 中央に調整 */
  }

  /* ナビは中央 */
  .v-nav {
    display: flex !important;
    justify-content: center;
    flex: 1;      /* 均等割りの1/3 */
    margin-left: 2em;
  }

  /* 外部リンクは右端 */
  .v-nav__extra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1; /* 均等割りの1/3 */
    gap: 12px;
  }

  /* ナビ横並び */
   .v-nav__list {
    margin-top: 0;
    display: flex;
    gap: 24px;
  }

    /* ナビ見た目 */
  .v-nav__item > a {
    align-items: center;
    font-weight: 900;
    line-height: 1.6;
  }
  .v-nav__item .en{font-size: .8rem;}
  .v-nav__item .jp{font-size: .7rem;}
  .v-nav__item > a:hover {
    opacity: 0.8;
  }


  /* -----------------------
   サブメニューのドロップダウン
   ----------------------- */
  .v-nav__item {
    position: relative;
    border: none;
  }

  .v-nav__child {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255,255,255,0.95);
    min-width: 200px;
    padding: 15px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s, transform .3s, visibility .3s;
  }

  .v-nav__item:hover .v-nav__child {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  .v-nav__child li a {
    display: block;
    padding: 10px 24px;
    color: #444;
    font-size: 0.75rem;
    text-align: center;
  }

  .v-nav__child li a:hover {
    background: #f8f9ff;
    color: #ff29ef;
  }

}