/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "ヒラギノ角ゴシック W3", "Hiragino Kaku Gothic W3", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    color: #1a1515;
}
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

/* スプラッシュスクリーンのデザイン */
html, body {
    overflow: hidden; /* スクロールを無効化 */
}
.splash-hidden {
    overflow: auto; /* スクロールを有効化 */
}
#splash {
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease-out; /* フェードアウトのアニメーション */
}
/* メインコンテンツを最初は非表示 */
#main-content {
    display: none; /* 最初は非表示 */
    opacity: 0;
    transition: opacity 1s ease-in;
}

.txt {
    display: flex;
    overflow: hidden;
}

.txt p {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.4rem;
    color: #1a1515;
    font-family: "ヒラギノ角ゴシック W3", "Hiragino Kaku Gothic W3", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;

    /* ここからアニメーション関係 */
    opacity: 0;
    animation: textanimation 1s forwards;
}

/* 1文字目 */
.txt p:nth-child(1) {
    animation-delay: 0.2s
}
/* 2文字目 */
.txt p:nth-child(2) {
    animation-delay: 0.4s
}
/* 3文字目 */
.txt p:nth-child(3) {
    animation-delay: 0.6s
}
/* 4文字目 */
.txt p:nth-child(4) {
    animation-delay: 0.8s
}
/* 5文字目 */
.txt p:nth-child(5) {
    animation-delay: 1s
}
/* 6文字目 */
.txt p:nth-child(6) {
    animation-delay: 1.2s
}
/* 7文字目 */
.txt p:nth-child(7) {
    animation-delay: 1.4s
}
/* 8文字目 */
.txt p:nth-child(8) {
    animation-delay: 1.6s
}
/* 9文字目 */
.txt p:nth-child(9) {
    animation-delay: 1.8s
}
/* 10文字目 */
.txt p:nth-child(10) {
    animation-delay: 2s
}
/* 11文字目 */
.txt p:nth-child(11) {
    animation-delay: 2.2s
}
/* 12文字目 */
.txt p:nth-child(12) {
    animation-delay: 2.4s
}


@keyframes textanimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #splash-logo .txt p {
        font-size: 2rem !important;
        letter-spacing: 0.29rem;
        font-weight: 400;
    }
}

/**********************************　
  以下、新規ヘッダー
  ************************************/

  header {
    height: 60px;
    width: 100%;
    padding: 44px 23px;
    background-color: rgba(0, 0, 0, 0);
    color: white; 
    z-index: 100;
    position: fixed;
    top: 0;
    display: flex;
    font-weight: 400;
    transition: background-color 0.3s ease, padding 0.3s ease, color 0.3s ease; 
    align-items: center;
  }
  
  header .logo {
    font-size: 25px;
  }
  
  header ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  header a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    line-height: 60px;
    padding: 0 20px;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
  }

  header .logo a{
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.35rem;
  }
  
  header .sm {
    display: none;
  }
  
  /* 新しいヘッダースタイル */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.4); 
    color: #1a1515 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1); 
    padding: 0.5% 0 0.5% 2%;
    backdrop-filter: blur(8px);
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-scrolled a {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: #1a1515 !important;
}

.header-scrolled .logo a {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.35rem;
    color: #1a1515 !important;
}
  
  /**********************************　
  以下、ハンバーガーメニューの設定　
  ************************************/
  
  @media (max-width: 768px) {
  
    .pc {
      display: none;
    }
  
    #hamburger {
      background-color: transparent;
      position: relative;
      cursor: pointer;
      margin: 0 0 0 auto;
      height: 60px;
      width: 60px;
    }

    header{
        padding: 3% 2%;
    }

    header .logo a {
        font-size: 1.6rem;
        letter-spacing: 0.29rem;
        font-weight: 400;
    }
  
    header .icon span {
      position: absolute;
      left: 15px;
      width: 30px;
      height: 2px;
      background-color: white;
      border-radius: 8px;
      transition: ease 0.75s;
    }
  
    header .icon span:nth-of-type(1) {
      top: 18px;
    }
    header .icon span:nth-of-type(2) {
      top: 28px;
    }
    header .icon span:nth-of-type(3) {
      bottom: 20px;
    }

    header .close{
        position: relative;
    }
  
    header .close span:nth-of-type(1) {
      transform: rotate(45deg);
      top: 28px;
    }
  
    header .close span:nth-of-type(2) {
      opacity: 0;
    }
  
    header .close span:nth-of-type(3) {
        transform: rotate(-45deg);
        top: 28px;
    }
  
    header .sm {
        top: 60px;
        left: 0px;
        position: absolute;
        z-index: 10;
        width: 100%;
        background-color:rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
    }

    header .sm a {
        color: #fff !important;
    }
  
    header ul {
      flex-direction: column;
    }
  
    header a {
      text-align: center; 
    }

    header .border-top{
        border-top: solid 0.5px rgba(255, 255, 255, 0.6);
    }

    .header-scrolled {
        background-color: rgba(255, 255, 255, 0.4); 
        color: #1a1515 !important;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1); 
        padding: 0 2%;
        backdrop-filter: blur(8px);
        height: 60px;
    }

    .header-scrolled .logo a {
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 0.29rem;
    }

    .header-scrolled .sm {
        top: 60px;
        background-color:rgba(0, 0, 0, 1);
    }

    .header-scrolled a{
        font-size: 1em;
    }

    .header-scrolled .border-top{
        border-top: solid 0.5px rgba(255, 255, 255, 0.6);
    }

    .header-scrolled .icon span{
        background-color: #1a1515 !important;
    }
  }

    /**********************************　
  以上、新規ヘッダー
  ************************************/

/* メインビジュアル（パララックス効果） */
.parallax {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    z-index: 1;
    height: 100vh;
}
#home.parallax {
    background-image: url('./img/mv_top_pc.webp');
}

.main-visual {
    position: absolute;
    bottom: 30px;
    width: 100%;
    font-size: 36px;
}

/* 各セクション共通 */
h2{
    margin: 240px 0 80px;
    font-size: 2.8em;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-align: center;
}

/* GARALLYセクション */
#garally {
    text-align: center;
}

.category {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.category-item {
    position: relative;
    display: flex;
    justify-content: center;  
    align-items: center;     
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-item:hover img {
    transform: scale(1.05); 
}

.category-txt{
    position: absolute;
    text-align: center;
    color: #e8e8e8;
    font-weight: 400;
    z-index: 1; 
}

.category-item h3 {
    color: #e8e8e8;
    font-size: 2.3em;
    letter-spacing: 0.12em;
    margin-top: 0;
    z-index: 2;
    font-weight: 400;
    margin-bottom: 10px;
}

.category-item p {
    color: #e8e8e8;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
}


.image-gallery-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-gallery {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    margin-top: 100px;
    padding-left: 10%;
    position: relative; 
    transition: padding-left 0.3s ease;
}

/* スクロールボタンのスタイル */
.scroll-button {
    font-weight: bold;
    margin-right: 3%;
    position: absolute;
    top: 58%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none; 
}

.scroll-button:hover {
    background-color: rgba(19, 17, 17, 0.6);
    color: #fff;
}

.image-item img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.image-item img:hover{
	opacity:0.5;
	transition:0.5s;
}

/* GARALLYモーダル */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.modal {
    display: none; /* 初期状態は非表示 */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 9%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 91%;
    background-color: rgba(19, 17, 17, 0.6);
    z-index: 9999;
    backdrop-filter: blur(10px);
    padding: 8%;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease forwards;
}
/* モーダル内の画像 */
#modalImage {
    max-width: 100%;  
    max-height: 100%;
    width: 100%;     
    height: auto;   
    object-fit: contain; 
    display: block; 
    margin: auto; 
    margin-bottom: auto; 
}

/* モーダルコンテンツ */
.modal-content {
    max-width: 100%;
    height: 100%;
    overflow: hidden; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
}

/* 閉じるボタンのスタイル */
.close {
    position: absolute;
    top: 0;
    right: 3%;
    color: white;
    font-size: 4.4em;
    font-weight: 100;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
}

/* 矢印ボタンのスタイル */
.arrow-button {
    position: absolute;
    top: 50%;
    transform: scale(0.6, 1) translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 3px 12px 8px;
    font-size: 4em;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-weight: 100;
}

.arrow-button.left {
    left: 30px;
}

.arrow-button.right {
    right: 30px;
}

#modalText{
    right: 40px;
    bottom: 35px;
    display: block;
    position: absolute;
    text-align: right;
}

.text-year {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #fff;
}

.text-title {
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.1em;
    display: inline-block;
    margin: 2px auto;
    color: #fff;
}

.text-info {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #fff;
}


/* PROFILEセクション */
#profile {
    padding: 0 10%;
}

.profile-content{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.profile-video {
    width: 39%;
}

.profile-text {
    width: 54%;
    color: #444141;
    letter-spacing: 0.16rem;
    margin-top: 50px;
}

.profile-text h4{
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.profile-text h4 span{
    color: #aaa6a6;
    font-size: 1.2rem;
}

.profile-text h5{
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 50px;
}

.profile-text p {
    font-size: 1.4rem;
    margin-bottom: 100px;
    line-height: 2.8rem;
}

/* PROFILE年表 */
.all_dlBlock{
    margin-bottom: 80px;
}

.dlBlock {
    display: flex;
  }

.dlBlock dt{
    font-size: 1.4rem;
    line-height: 2.8rem;
}
.dlBlock dd{
    border-left:1px solid #aaa6a6; /*線の設定*/
    font-size: 1.4rem;
    margin-left: 20px;
    padding-left: 20px;
    line-height: 2.8rem;
}
   
/* CONTACTセクション */
#contact {
    padding: 160px 24% 120px;
    background-color: #918c8c;
}

#contact h2 {
    margin-top: 0;
    margin-bottom: 40px;
    color: #e8e8e8;
}

#contact p {
    text-align: center;
    font-size: 1.4rem;
    line-height: 2.8rem;
    color: #e8e8e8;
    margin-bottom: 40px;
}

#contact p span {
    font-size: 1.2rem;
    color: #e8e8e8;
}

/* フォームのスタイル */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

.formGroup {
    margin-bottom: 16px;
}

.formGroup label {
    margin-bottom: 8px;
    display: block;
    font-size: 1.4rem;
    color: #e8e8e8;
}

.formGroup input, .formGroup textarea {
    width: 100%;
    padding: 10px;
    font-size: 1.6rem;
    border: 1px solid #918c8c;
    border-radius: 6px;
}

/* ボタンのスタイル */
.buttonGroup{
    width: 20%;
    margin: 0 auto;
}

form input[type="submit"], form input[type="reset"] {
    width: 100%;  /* ボタンの幅も100%に設定 */
    padding: 10px 0;
    font-size: 1.6rem;
    background-color: #fff;
    border: none;
    cursor: pointer;
    margin: 20px auto;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 1.4rem;
}

form input[type="submit"]:hover, form input[type="reset"]:hover {
    background-color: #555;
}

/* テーブル内のスタイル */
.formTable {
    margin: 0 auto;
}

.formTable th, td {
    display: block;
}

.formTable th {
    text-align: left;
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: #e8e8e8;
    font-weight: 400;
}


/* フッター */
footer {
    background-color: #fff;
    padding: 40px;
    text-align: center;
}

footer p{
    font-size: 1.8rem;
    letter-spacing: 0.1em;
}

footer p span{
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.br-pc{
    display:none;
}


/* 768px以下の画面幅でアコーディオンメニューを表示 */
@media screen and (max-width: 768px) {

    #home.parallax {
        animation: fadeBackground 8s infinite; 
        background-attachment: unset; 
        background-image: url('./img/mv_top_sp1re.webp');
    }

    p{
        font-size: 1.3em !important;
        line-height: 2.4rem !important;
    }
    
    .home_top {
        margin-right: 0;
        margin-bottom: 3%;
    }

    .flex-nav {
        display: flex;
        justify-content: center;
    }

    nav ul{
        display: block;
    }

    nav ul li.home_top a{
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: 0.3rem;
    }

    nav ul li a{
        font-size: 1rem;
    }

    .flex-nav li{
        margin: 0 8px;
    }


    h2{
        margin: 160px 0 40px;
        font-size: 2.2em;
    }

    .category-item h3{
            font-size: 2em;
    }
    
    .category {
        display: block;
    }

    .image-gallery {
        gap: 20px;
        margin-top: 20px;
    }

    .image-item img {
        width: 300px;
        height: 300px;
    }

    .scroll-button{
        top: 52%;
    }

    /* モーダル */
    .modal {
        top: 8%;
        left: 0%;
        width: 100%;
        height: 92%;
        border-radius: 0px;
        padding: 12%;
        z-index: 10;
    }

    #modalText {
        right: 0;
        margin: 0 5%;
        bottom: 15px;
    }

    .text-year {
        font-size: 1.2rem;
    }

    .text-info {
        font-size: 1.2rem;
        margin-right: 9px;
    }

    .arrow-button{
        font-size: 4em;
        font-weight: lighter !important;
        font-family: "ヒラギノ角ゴシック W3", "Hiragino Kaku Gothic W3", "Helvetica Neue", Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    .arrow-button.left{
        left: 6px;
    }

    .arrow-button.right{
        right: 6px;
    }

    .close{
        font-size: 4.4em;
        font-weight: lighter !important;
        font-family: "ヒラギノ角ゴシック W3", "Hiragino Kaku Gothic W3", "Helvetica Neue", Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    .text-title{
        font-size: 1.4em;
        font-weight: 400;
        margin-right: 9px;
    }

    #profile{
        padding: 0 5%;
    }

    .profile-content{
        display: block;
    }
    
    .profile-video {
        width: 100%;
    }

    .profile-text{
        width: 100%;
        margin-top: 40px;
    }

    .profile-text h5{
        margin-bottom: 40px;
    }

    .profile-text p{
        margin-bottom: 60px;
    }

    .permanent{
        font-size: 1.2rem !important;
        line-height: 2.2rem !important;
    }

    .all_dlBlock{
        margin-bottom: 40px;
    }

    .dlBlock dd {
        font-size: 1.2rem;
        line-height: 2.2rem;
        margin-left: 10px;
        padding-left: 10px;
    }

    .dlBlock dt {
        font-size: 1.2rem;
        line-height: 2.2rem;
    }

    #contact{
        padding: 80px 5%;
    }

    form label{
        font-size: 1.2em;
    }

    form button {
        font-size: 1.3em;
    }


    .br-sp {
        display: none;
    }

    .br-pc{
        display:block;
    }
}


/* スマホサイズ */
@media screen and (max-width: 400px) {
    .image-item img {
        width: 200px;
        height: 200px;
    }

    .arrow-button.left{
        left: -1px;
    }

    .arrow-button.right{
        right: -1px;
    }
    
    #splash{
        height: 90vh;
    }
}