/* 統合サイト用のスクロール設定 */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, Helvetica, sans-serif;
}

/* SNS用アイコンをくるむ要素 */
.sns_icon_list {
    position: absolute;
    right: 0;
    width: fit-content;
    height: fit-content;
    top: 50px;
    right: 100px;
    display: flex;
}

/* SNS用アイコン */
.sns_icon {
    width: 28px;
    height: 28px;
    margin: 0 0 0 10px;
    z-index: 10;
    opacity: 0; /* 初期状態で透明 */
    animation: fadein 2s forwards; /* アニメーションを適用 */
    animation-delay: 2s;
}

.sns_icon img { width: 100%; height: 100%; display: block; }

.intro .main_illustration {
    width: 100%;
    height: 100dvh;
    position: fixed;
    inset: 0;              /* 全辺を0に設定してコンテナ全体に広げる */
    object-fit: cover;     /* コンテナを覆うように調整 */
    object-position: top;  /* 上部に配置 */
    transition: opacity .4s, left 0s;
    transition-delay: 0s, 0s;
    color:#fff;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    animation: fadein 2s forwards;
    animation-delay: 1.2s;
    pointer-events: none;
    z-index: 2;
}
.scroll-indicator .arrow {
    font-size: 18px;
    animation: bounce 1.2s infinite ease-in-out;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

#main_illustration {
    opacity: 0; /* 初期状態で透明 */
    animation: fadein 2s forwards; /* アニメーションを適用 */
}

.header {
    font-size: 1em;
    color: #ffffff;
    top: 0;
    left: 0;
    height: 10dvh;
    width: 100%;
    /*margin: 50px 0 0 50px;*/
    box-sizing: border-box;
    z-index: 10;
    /*overflow: hidden;*/
    position: fixed;
}

.main_title_mask {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    top: 50px;
    left: 50px;
    z-index: 10;
    position: absolute;
}

.main_title {
    position: absolute;
    padding: 0 0 0 10px;
    color:#fff;
    top: 0;
    left: 0;
    z-index: 10;

    animation: slideUp 0.5s forwards; /* アニメーションを適用 */
    animation-delay: 1s; /* アニメーション開始までの遅延 */
    font-family: Arial, Helvetica, sans-serif;
    transition: ease .4s;
}

.main_title_black {
    color:#000;
}



@keyframes fadein {
    from { opacity: 0; } /* 開始位置 */
    to { opacity: 1; } /* 終了位置 */
}

/* sliderWrapper 削除に伴い関連スタイルを除去 */

/* style.css */
a {
    text-decoration: none;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
    color: #ffffff;
    font-size: 0.8em;
    font-family: Arial, Helvetica, sans-serif;
}

.footer {
    display: block;
    font-size: 0.8em;
    color: #000;
    position: relative;
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 0;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
    opacity: 1;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f8f8;
    width: 100%;
    min-height: 60px;
    z-index: 1;
}

/* achievements 折りたたみ */
.achievements.collapsed {
    max-height: calc(1.8em * 12 + 14px);
    overflow: hidden;
}
.achievements-toggle {
    margin-top: 8px;
    background: none;
    border: none;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}




.header__inner {
    display: flex; /*ロゴとハンバーガーメニューを横に並べる*/
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ヘッダーのナビ部分 */
.header__nav {
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    transform: translateX(100%);
    background-color: rgba(255,255,255,0.8); /*ハンバーガーメニュークリック時のナビゲーションメニュー背景色*/
    transition: ease .4s; /*ハンバーガーメニュークリック時のナビゲーションメニュー出現を遅延*/
    opacity: 0;
    font-family: Arial, Helvetica, sans-serif;
}
/* ハンバーガーメニュー */
.header__hamburger {
    width: 36px;
}

.hamburger {
    padding: 0;
    background-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
    border-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
    position: fixed;
    top:50px;
    right: 50px;
    z-index: 9999;
}

/* ハンバーガーメニューの線 */
.hamburger span {
    width: 100%;
    height: 1px;
    background-color: #fff;
    position: relative;
    transition: ease .4s; /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
    display: block;
}

.hamburger_black span {
    background-color: #000;
}

.main_title.active {
    
    color:#000;
}

.hamburger.active span {
    background-color: #000;
}

.hamburger span:nth-child(1) {
    top: 0;
    left: 0;
}

.hamburger span:nth-child(2) {
    margin: 8px 0;
    left: 0;
}

.hamburger span:nth-child(3) {
    top: 0;
    left: 0;
}

/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
    transform: translateX(0);
    opacity: 1;
    position: fixed;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    left: -20px;
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: -9px;
    transform: rotate(-45deg);
}

.nav-items {
    margin-top: 120px;
    margin-left: 50px;
}

.nav-items__item {
    margin: 0 0 30px 0;
    padding-left: 8px;
}

/* ナビのリンク */
.nav-items__item a {
    color: #444;
    font-size: 14px;
    /*margin-bottom: 24px;*/
}

.nav-items__item:last-child a {
    margin-bottom: 0;
}

.swiper-slide .swiper-button-next .swiper-button-prev {
    z-index: 10;
}

/* 共通化: about, privacy_policy 用 */
/* aboutページの詳細スタイルは about_style.css に集約 */

/* モバイル用 */
@media screen and (max-width: 600px) {

    .nav-items {
        margin-top: 80px;
        margin-left: 50px;
    }

  /* aboutページの詳細スタイルは about_style.css に集約 */

  .intro::before {
    content: none;
  }

  /* モバイルではメイン画像を固定しない */
  .intro .main_illustration {
    position: static;
    height: 100dvh;
    width: 100%;
  }

  /* モバイルでヒーロー領域を画面高に */
  .intro {
    height: 100dvh;
    overflow: hidden;
  }

  .scroll-indicator {
    bottom: 16px;
    font-size: 12px;
  }
  .scroll-indicator .arrow { font-size: 16px; }

  .header {
    font-size: 0.7em;
    /*margin: 10px 0 0 10px;*/
  }

  .main_title_mask {
    overflow: hidden;
    top: 20px;
    left: 60px;
  }

  .sns_icon_list {
    top: 20px;
    right: 20px;
  }

  .header__hamburger {
    width: 30px;
  }

  .hamburger {
    left: 20px;
    top: 20px;
  }

  .main_title {
    position: absolute;
    border:none;
    z-index: 10;
    letter-spacing: 0.04em;
    font-weight: 100;
    top: 40px;
    animation: slideUp 0.5s forwards; /* アニメーションを適用 */
    animation-delay: 1s; /* アニメーション開始までの遅延 */
    font-family: Arial, Helvetica, sans-serif;
    transition: ease .4s;
  }

  .main_title_black {
    color:#000;
    border-left:none;
  }

  .main_title.active {
  
    border:none;
    color:#000;
  }

  /* sliderWrapper スタイル削除 */

  .footer {
    color: #000;
    font-size: 0.8em;
    text-align: center;
    position: static;
    padding: 40px 0 20px;
    margin-top: 0;
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
  }

  .select_page {
    margin-left: 15px;
  }

  @keyframes slideUp {
    from { top: 50px; } /* 開始位置 */
    to { top: 0; } /* 終了位置 */
  }
}
