/*
Theme Name: YDCXVIII ROOM
*/
/*サイトの設定*/

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
/*サイトの中身全体の設定*/
body {
    
    color: #ededed;
}

/* 1. サイト本文の背景の写真（デスクトップ）を適用させるための修正 */
/*デスクトップのメイン背景*/

.home {    
    background-image: url("assets/images/IMG_1326.JPG");
    background-size: cover; /* 100% から cover に変更し、全画面を埋めるように調整 */
    background-position: center;
    width:100%;                              /* 横幅のサイズを指定    */
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative; /* home-imgHover の absolute の基準にするために追加 */
    box-sizing: border-box;
}




/*プロフィール画像アニメーションの背景*/
/* home-imgHover::after はそのまま（問題ないと仮定） */
.home-imgHover::after {
    content: '';
    position: absolute;
    top: 0px;
    right: 0;
    width: 55%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 2;
}

/*ホームコンテンツのコンテナ*/
.home-content {
    background: transparent;
    max-width:500px;
    position: top;
    top: 10px;
}

/* 以下、アニメーション関連のCSSはそのまま */
/*メインタイトル ヘッダ1*/
.home-content h1 {
    position: relative;
    font-size: 35px;
    color: white;
    background: black;
    font-weight: 700;
    line-height: 1.2; /* 1,2 を 1.2 に修正 */
}
/*before:サイトを開いた時のアニメーション*/
/*タイトル出現アニメーション*/
.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

/*サブタイトル*/
.home-content h3 {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: rgb(104, 0, 0);
}
.home-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}
/*h4はもともと新着情報のタイトルでした*/
.home-content h4 {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    color: rgb(0, 173, 52);
    background: rgb(255, 255, 190);
}

.home-content h4::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
    z-index: 50;
}
/*本文テキスト*/
.home-content p {
    position: relative;
    font-size: 16px;
    color: BLACK;
    margin: 10px 0 20px;
}

.home-content p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}
/*ボタンコンテナ*/
.home-content .btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 345px;
    height: 42px;
}

/*ボタンコンテナの出現アニメーション*/
.home-content .btn-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1.9s;
    z-index: 2;
}
/*共通ボタンデザイン*/
.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-content: center;
    width: 160px;
    height: 70%;
    background: black;
    border: 2px solid white;
    border-radius:  8px;
    font-size: 19px;
    color:  white;
    text-decoration: none;
    font-weight:  600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a:hover {
    color: red;
}


/*2つ目のボタンの個別設定*/
.btn-box a:nth-child(2) {
    background: transparent;
    color: black;
    /* 2つ目のボタンはホバー背景色が青なので、ホバー時の文字色を白に戻す */
    border: 2px solid black; /* 透明背景なので、枠線を黒に */
}
.btn-box a:nth-child(2):hover {
    color: red;
}


/*アニメーション関連の説明*/
@keyframes showRight {
    100% {
        width: 0;
    }
}

/* 2. ヘッダのメニューのデザインが適用されていない＆位置がおかしい の修正 (デスクトップ) */

/*ヘッダー全体*/
.c-header {
  align-items: center;
  background: rgb(255,243,140); /* カスタマイズしてください */
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem; /* カスタマイズしてください */
  width: 100%;
}
/*サイトロゴ*/
.c-header_logo {
  color: black; /* カスタマイズしてください */
  min-width: 140px; /* カスタマイズしてください */
  text-decoration: none;
}
/*ナビゲーションメニュー*/
.c-header__list {
    box-sizing: border-box;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    list-style: none;
    text-decoration: none;
    color: black; /* カスタマイズしてください */
    display: flex;
    gap: 20px;
    margin-right: 20px; /* カスタマイズしてください */
    text-decoration: none;
    padding: 10px 0px; /* カスタマイズしてください */

}

/*追記部分*/
.c-header__list li a {
    color: black;
    text-decoration: none; /* 必要であれば下線を消去 */
}
/*ここまで*/

/*メニューホバーエフェクト　修正*/
.c-header__list li a:hover {
  filter: opacity(0.6);
  /* transition を追加すると、効果が滑らかになります */
}
/*修正ここまで*/

/* ここまでデスクトップのヘッダーはOK。ハンバーガーメニュー関連のスタイルはそのまま */
/*コンテナ設定*/
.c-hamburger-menu {
  position: relative;
}
/*チェックボックスの非表示*/
.c-hamburger-menu__input {
  display: none;
}
/*オーバーレイ背景の初期設定*/
.c-hamburger-menu__bg {
  background-color: #000; 
  cursor: pointer;
  display: none;
  height: 100vh;
  left: 0;
  opacity: 0.4; 
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}
/*オーバーレイ背景の表示制御*/
#hamburger:checked ~ .c-hamburger-menu__bg {
  display: block;
}
/*ハンバーガーボタンの初期非表示*/
.c-hamburger-menu__button {
  display: none; /* デスクトップでは非表示 */
}
/*ハンバーガーボタンの線*/
.c-hamburger-menu__button-mark {
  background-color: #000; 
  display: block;
  height: 1px; 
  transition: 0.3s; 
  width: 20px; 
}
/*コンテンツの開始位置調整*/
/* bodyの開始タグ直後の main/section にヘッダーの高さ分のマージンを追加 (index.phpより前に読み込まれるため) */

/*修正部分*/
.home-main {
    margin-top: 0;
}
/*ここまで*/


/*フッター*/
footer {
    background: black;
    color: rgb(255,243,140);
    text-align: center;
}

/*スマホ表示用 */
@media screen and (max-width: 430px) {

/* 1. サイト本文の背景の写真（モバイル）を適用させるための修正 */
.home {
    height: 230vh;
    background-image: url('../IMG_1325.JPG') no-repeat; /* no-repeat を追加 */
    background-size: 100% 100%; 
    background-position: top;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    z-index: 10;
}

.home-imgHover {
    display: none;
}


/* 3. SNSと前のサイトのボタンの位置がおかしい の修正 (モバイル) */
.home-content {
    background: transparent;
    max-width: 330px;
     position: relative;
     top: 100px;
}

.home-content h1 {
    font-size: 40px;
    color: white;
    background: black;
    font-weight: 700;
    line-height: 1.2; 
    margin: 20px 0 40px; 
}

/* 以下、アニメーション関連のCSSはそのまま */

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    font-size: 25px;
    font-weight: 700;
    color: rgb(104, 0, 0);
}
.home-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(0, 173, 52);
    background: rgb(255, 255, 190);
}

.home-content h4::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content p {
    position: relative; /* beforeのために必要なので残す */
    font-size: 22px;
    color: black;
    margin: 20px 0 25px;
}

.home-content p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

/*ボタンの設定*/
.home-content .btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 295px;
    height: 45px;
    margin-top: 30px; /* ボタンがコンテンツから離れすぎないように調整 */
}


.home-content .btn-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgb(169,198,255);
    animation: showRight 1s ease forwards;
    animation-delay: 1.9s;
    z-index: 2;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center; /* 垂直方向も中央揃えにするために追加 */
    width: 130px;
    height: 100%; /* 親要素 (45px) の高さいっぱいに広げる */
    background: black;
    border: 2px solid white;
    border-radius:  8px;
    font-size: 16px;
    color:  white;
    text-decoration: none;
    font-weight:  600;
    letter-spacing: 1px;
    z-index: 1;
    transition: .5s;
}

.btn-box a:hover {
    color: red;
}


/*２つ目のボタンの追加設定*/
.btn-box a:nth-child(2) {
    background: transparent;
    color: black;
    border: 2px solid black; /* 透明背景なので、枠線を黒に */
}



.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgb(33,40,72);
    z-index: 1;
    transition: .5s;
}

/* 2. ボタンホバーアニメーションの記述ミス修正 */
.btn-box a:hover::before {
    width: 100%;
}

/*アニメーション関連の説明*/
@keyframes showRight {
    100% {
        width: 0;
    }
}


/* 2. ヘッダのメニューのデザインが適用されていない＆位置がおかしい の修正 (モバイル) */

/* デスクトップで非表示だったハンバーガーボタンを表示 */
  .c-hamburger-menu__button {
    align-items: center;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex; /* デスクトップの display: none; を上書き */
    flex-direction: column;
    gap: 5px; 
    height: 32px; 
    justify-content: center;
    width: 32px; 
  }

/* メニューリスト（非表示状態から開始） */
  .c-hamburger-menu__list {
    background-color: rgb(255,243,140); 
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 2rem; 
    position: absolute;
    transform: translateX(-100%);
    transition: 0.3s; 
    top: 100%;
    width: 100%;
    z-index: 1000;
    /* デスクトップの c-header__list の display: flex; を上書き */
    
  }

  /* チェックが入ったら表示 */
  #hamburger:checked ~ .c-hamburger-menu__list {
    transform: translateX(0%);
    transition: 0.3s;
  }
}