/* ========================================
   WILL サークルホームページ - 共通スタイル
   ======================================== */

/* CSS変数定義 */
:root {
  --shinonome: linear-gradient(91deg, #6f5878 0.02%, #4f648d);
  --blue_Kashmir: #52648c;
  --gray: #535353;
  --ivory: #fffcf7;
  --purple_Kimberly: #6b5b7d;
  --gray-50: rgba(83, 83, 83, 0.5);
  --black: #232323;
  --white: #ffffff;
  --ivory-50: rgba(255, 252, 247, 0.5);

  /* ナビメニューのホバーアニメーション時間 */
  --nav-hover-transition: 0.0s;

  --font_70: 70px;
  --font_60: 60px;
  --font_48: 48px;
  --font_40: 40px;
  --font_36: 36px;
  --font_32: 32px;
  --font_28: 28px;
  --font_24: 24px;
  --font_22: 22px;
  --font_20: 20px;
  --font_18: 18px;
  --font_16: 16px;
  --font_14: 14px;
  --font_12: 12px;

  --noto: "Noto Sans JP", sans-serif;
  --anton: "Anton", serif;
  --ubuntu: "Ubuntu", serif;
  --jomolhari: "Jomolhari", serif;
  --times-new-roman: "Tinos", serif;
  --inter: "Inter", sans-serif;
  --esteban: "Esteban", serif;
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 8;
    padding: 0;
    font-family: var(--noto);
    min-height: 100vh;
    background-color: var(--ivory);
    padding-bottom: 100px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   共通ヘッダースタイル
   ======================================== */

.page-header {
  display: flex;
  padding: 24px 32px;
  justify-content: space-between;
  align-items: center;
  background-color: var(--ivory);
}

.will-logo {
  display: flex;
  height: 100%;
}

.will-logo img {
  height: 48px;
  width: auto;
}
.link-box {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-wrapper {
  display: none;
}

.text-link {
  color: var(--gray);
  font-size: var(--font_16);
  font-family: var(--noto);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background var(--nav-hover-transition), color var(--nav-hover-transition);
}

.text-link:hover {
  background: var(--shinonome);
  color: var(--ivory);
}

.text-link.active {
  color: var(--blue_Kashmir);
  font-weight: 700;
  position: relative;
}

.text-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--blue_Kashmir);
  border-radius: 2px;
}

.text-link.active:hover {
  background: var(--shinonome);
  color: var(--ivory);
}

.text-link.active:hover::after {
  background: var(--ivory);
}

/* 共通ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

/* 共通セクションスタイル */
.section {
    padding: 60px 0;
}

/* セクションタイトルの統一スタイル */
.section-title {
  color: var(--black);
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
}

/* セクションタイトル内のspan（補足情報など） */
.section-title span {
  font-size: var(--font_24);
  font-weight: 400;
  color: var(--gray);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

/* 共通カードスタイル */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 共通グリッドレイアウト */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .section-title {
        font-size: var(--font_32);
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .section-title {
        font-size: var(--font_28);
        margin-bottom: 32px;
    }
}

/* 共通アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 共通ユーティリティクラス */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ========================================
   統一ヘッダー画像スタイル
   ======================================== */

/* ヘッダー画像コンテナの統一スタイル */
.head-image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    position: relative;
    width: 100%;
    height: 591px; /* 固定の高さ */
    overflow: hidden; /* はみ出した部分を隠す */
}

/* ヘッダー画像の統一スタイル */
.head-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を保ちながらコンテナに合わせる */
    object-position: center; /* 中央に配置 */
    align-self: stretch;
}

/* ヘッダー文字の統一スタイル */
.head-letter {
    position: absolute;
    right: 48px;
    bottom: 56px;
    font-size: 70px;
    font-family: "Noto Sans JP", sans-serif;
    color: #fffcf7;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    z-index: 2; /* 画像の上に表示 */
    background-color: rgba(0, 0, 0, 0.6); /* 半透明の背景ボックス */
    padding: 0 20px 12px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .head-image-container {
        height: 400px;
    }
    
    .head-letter {
        font-size: var(--font_48);
        right: 30px;
        bottom: 40px;
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .head-image-container {
        height: 300px;
    }
    
    .head-letter {
        font-size: 36px;
        right: 20px;
        bottom: 30px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .head-image-container {
        height: 250px;
    }
    
    .head-letter {
        font-size: 28px;
        right: 15px;
        bottom: 20px;
        padding: 6px 12px;
    }
}

/* ========================================
   共通フッタースタイル
   ======================================== */

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 160px 0 40px 0;
  gap: 80px;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  background-color: var(--ivory);
  gap: 80px;
}

.footer-sm-logo {
  display: flex;
  align-items: center;
  gap: 43px;
}

.x-logo {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.x-logo img {
  width: 42px;
  height: 42px;
}

.instagram-logo {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.instagram-logo img {
  width: 56px;
  height: 56px;
}

.footer-logo {
  flex-direction: column;
  align-items: center;
  gap: 30px;
  display: flex;
}

.footer-logo img:first-child {
  height: 40px;
  width: auto;
}

.footer-logo img:last-child {
  height: 21px;
  width: auto;
}

.footer-copyright {
  display: flex;
  padding: 8px 0px;
  justify-content: center;
  align-items: center;
  gap: 30px;
  align-self: stretch;
}

.footer-copyright img {
  background-color: var(--ivory);
}

.copyright-text {
  color: var(--gray);
  font-family: var(--times-new-roman);
  font-size: var(--font_18);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.72px;
}

/* ========================================
   共通ナビゲーションスタイル
   ======================================== */

.nav {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

.nav-link.active {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

/* ========================================
   共通ハンバーガーメニュースタイル
   ======================================== */

@media (max-width: 1200px) {
  html,
  body {
    padding-bottom: 0px;
  }

  .nav-wrapper {
    display: flex;
  }

  /* 
    hamburger(ハンバーガーアイコン)
    =================================== */
  .hamburger {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
  }
  .hamburger__line {
    position: absolute;
    left: 2.67px;
    width: 26.67px;
    height: 3px;
    background-color: #6b5b7d;
    border-radius: 2px;
    transition: all 0.5s;
  }
  .hamburger__line--1 { top: 6.5px; }
  .hamburger__line--2 { top: 14.0px; }
  .hamburger__line--3 { top: 21.5px; }
  .open .hamburger__line--1 {
    transform: rotate(-45deg);
    top: 14.0px;
  }
  .open .hamburger__line--2 {
    opacity: 0;
  }
  .open .hamburger__line--3 {
    transform: rotate(45deg);
    top: 14.0px;
  }

  /* 
    sp-nav(ナビ)
    =================================== */
  .sp-nav {
    position: fixed;
    right: -100%; /*ハンバーガーがクリックされる前はWindow右側に隠す*/
    top: 0;
    width: 70%; /* 出てくるスライドメニューの幅 */
    height: 100vh;
    background-color: var(--blue_Kashmir);
    transition: all 0.5s;
    z-index: 200;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
  }

  .sp-nav ul {
    padding-top: 100px;
    list-style: none;
    text-align: center;
    padding-left: 0;
  }

  .sp-nav ul li {
    padding: 10px 0px;
  }

  .sp-nav a {
    color: var(--ivory);
    font-family: var(--noto);
    font-size: var(--font_32);
    text-decoration: none;
    cursor: pointer;
  }

  .sp-nav a.active {
    color: var(--ivory);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    text-decoration-color: var(--ivory);
  }

  .sp-nav a.active::before {
    /* content: '▶'; */
    position: absolute;
    left: 0;
    font-size: var(--font_20);
  }

  /*ハンバーガーがクリックされたら右からスライド*/
  .open .sp-nav {
    right: 0;
  }
  /* 
    black-bg(ハンバーガーメニュー解除用bg)
    =================================== */
  .black-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    cursor: pointer;
    z-index: 100;
  }

  /*ハンバーガーメニューが開いたら表示*/
  .open .black-bg {
    opacity: 0.3;
    visibility: visible;
  }

  .link-box {
    display: none;
  }

  .head-image-container img {
    height: 400px;
  }

  .head-letter {
    padding: 8px 14px;
  }

  .footer {
    margin-top: 80px;
    gap: 20px;
  }

  .footer-top {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .footer-logo {
    gap: 20px;
  }

  .footer-sm-logo {
    gap: 18px;
  }

  .x-logo img {
    width: 40px;
    height: 40px;
  }

  .instagram-logo img {
    width: 40px;
    height: 40px;
  }

  .footer-copyright {
    gap: 8px;
  }

  .footer-copyright img {
    width: 24px;
    height: 24px;
  }

  .copyright-text {
    font-size: var(--font_18);
  }
} 


/* ───────────────────────────
① Smart phone  (0 – 639 px)
─────────────────────────── */
@media (max-width: 639px) {
  .section-title span {
    font-size: var(--font_14);
  }

  .description {
    font-size: var(--font_18);
  }
}