/* --- 1. リセットと基本設定 (サイト全体から移植) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* サイト共通の背景色 */
    background-color: #EFE8D2; 
    /* サイト共通のフォント設定 */
    font-family: 'Hiragino Mincho Pro', sans-serif; 
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.otherpage{
    background-image: url('back02.jpg'); 
}

.otherpage2{
    background-image: url('back02.jpg');
}
/* ---------- モバイルで homepage を otherpage と同じ画像に差し替えるサンプル ----------
   実装方法:
   1) プロジェクト内に軽量版画像 `back02-small.jpg` を用意する（モバイル用にリサイズ/圧縮したもの）
   2) 以下の CSS を有効にすると、画面幅が 767px 以下のとき `body.homepage` が `back02-small.jpg` を使います。
   3) `back02-small.jpg` が無ければ `back02.jpg` にフォールバックする形にしています。
*/
@media (max-width: 768px) {
    /* もし小さい画像を用意するならこちらを使う */
    body{
        overflow-x: hidden;
    }
    body.homepage {
        background-image: url('back02-small.jpg'); /* mobile 用に用意した軽量画像 */
        /* フォールバック: サーバ/ブラウザのキャッシュや存在確認が必要なら、
           HTML 側で <link rel="preload"> 等を使って先に用意する方法もあります */
    }

    .hero{
        width: 100% !important;
        max-width: 100vw; 
        margin: 0;
        max-height: 200px;
        padding: 0;
    }

    .artist-hero-image {
        width: 100% !important;
        background-size: cover;    /* 画像を隙間なく敷き詰める */
        background-position: center;
        max-height: 250px;
      }
    
/* 💖 メインタイトル（Who's your Artists?）のサイズ */
    .hero-text h1 {
    font-size: 1.8rem !important; /* PCの2.5emから少し小さく調整 */
    letter-spacing: 0.02em;      /* 画面が狭いので文字間も少し詰めると綺麗 */
    margin-bottom: 0.3em;
  }

  /* 💖 サブタイトル（推し画家診断）のサイズ */
  .hero-text p.tagline {
    font-size: 1.0rem !important; /* 少し控えめにしてメインを立たせる */
  }

  /* 💖 ヒーローエリア内の余白もスマホ用にスリムに！ */
  .hero-text {
    padding: 1.5em 0.5em;        /* 上下のパディングを少し減らす */
  }
}


main {
    flex: 1;
    /* 💖✨ mainタグは画面幅いっぱいに広げたいので、最大幅をリセット！ ✨💖 */
    width: 100%;
}


/* --- 💖 ヒーローセクション（画像エリア）のスタイルを上書き/追加！ 💖 --- */

.hero {
    margin: 0 0 1.5em 0; /* マージンを上下のみに設定 */
    max-width: 1600px; 
    width: 100%; 
    padding: 0;
}

.artist-hero-image {
    /* 🚨 画像ファイルを指定してね！ここでは仮でWhats01.pngを使ってるよ */
    background: url('Type01.png') center/cover no-repeat;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-result-image {
    /* 🚨 画像ファイルを指定してね！ここでは仮でWhats01.pngを使ってるよ */
    background: url('Result01.png') center/cover no-repeat;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 30%;
}

.hero-text {
    background: rgba(255,255,255,0.2);
    text-align: center;
    padding: 2em 1em;
}

.hero-text h1 {
    /* 推し画家診断のメインタイトル (Artists Type) */
    font-size: 2.5em;
    font-weight: normal;
    margin: 0 0 0.5em 0;
    color: #222;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.hero-text p {
    /* 推し画家診断のサブタイトル (Impressionism Artists) */
    font-size: 1.3em;
    color: #7a5c2e;
    margin: 0;
}

.lead {
    text-align: center;
    max-width: 800px; /* 診断コンテンツの幅に合わせて調整 */
    margin: 20px auto 20px auto; 
    padding: 0 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* 診断コンテンツのラッパー */


.quiz-wrapper {
    width: 100%;
    /* 💖✨ quiz-wrapper自体の最大幅を制限して中央寄せする ✨💖 */
    max-width: 1000px; 
    margin: 0 auto; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px 20px; /* 上下左右のパディングを調整 */
}

/* --- 2. ヘッダー (サイト全体から移植) --- */
header {
    background-color: #405F70; 
    color: #fff;
    padding: 10px 20px;
    font-size: 0.8rem;
    position: sticky; 
    top: 0;
    z-index: 10;
}


footer {
    background-color: #2e4a4a; 
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.7rem;
    position: static;
    
    /* 💖✨ 横いっぱいに伸ばすため、幅に関する制限を排除！✨💖 */
    width: 100%; /* 横いっぱいにする */
    max-width: none; /* 最大幅の制限を解除 */
    margin: 0; /* マージンをリセット */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.header-inner a {
    /* リンクの下線を消す (もし他の場所で設定されてたらリセット) */
    text-decoration: none; 
    
    /* リンクの色を統一！ */
    color: #fff !important; /* 🚨 !importantで強制的に白にするよ */
}

/* 訪問済み、アクティブ、ホバー状態も全て白に統一 */
.header-inner a:visited,
.header-inner a:hover,
.header-inner a:active,
.header-inner a:focus {
    color: #fff !important;
}

/* サイトタイトル部分のリンクの色（「印象派の教科書」） */
.header-inner .site-title a {
    color: #fff !important; 
}

.site-title {
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 0.1em;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.2em;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
}

/* ヘッダーのナビゲーション（診断では不要かもしれないがスタイルを定義） */
.utility-nav ul {
    width: 100%;
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.utility-nav ul li a {
    color: #fff;
    text-decoration: none;
}

footer .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 15px auto; /* 中央寄せ */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    max-width: 1200px; /* ナビゲーションの幅を制限して中央寄せ */
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

/* --- 4. 診断コンテンツのスタイル (既存の診断CSSを調整) --- */


h1 {
    /* サイトのメインビジュアルのH1スタイルに寄せる */
    font-family: serif; 
    font-size: 2.5em;
    color: #405F70; /* ヘッダーの色に合わせて統一感UP */
    margin-bottom: 5px;
    letter-spacing: 0.2em;
}
.main-title-container p {
    font-family: 'Hiragino Mincho Pro';
    font-size: 1.1em;
}

.quiz-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin-top: 40px;
    background-color: #fff; /* 診断部分を白くして見やすくする */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 質問グループのスタイルはそのまま */
.question-group {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px 0;
}

.question-group.active {
    display: block; 
    opacity: 1;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    color: #3a5565; /* サイトのセクションH2の色に統一 */
}

/* --- 5. 選択肢コンテナとシーリングスタンプ演出 (既存を維持) --- */

.options-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; 
}

.stamp-option {
    position: relative;
    width: 45%; 
    min-width: 250px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;

    background-color: #f8f0e3; /* アンティークなクリーム色 (そのまま維持) */
    
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.stamp-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stamp-text {
    position: relative;
    z-index: 10; 
    color: #555; 
    font-weight: 600;
    font-size: 1.0em;
    line-height: 1.4;
    transition: color 0.4s ease; 
    padding: 15px;
}

/* --- 6. 演出要素 (effect & icon) (既存を維持) --- */

.stamp-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: none;
    background-color: transparent; 
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease, background-color 0.4s ease;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 💖 STEP 1: ホバー時: 蝋を垂らす (色をサイトのアクセント色に調整) 💖 */
.stamp-option:hover .stamp-effect {
    width: 100%; 
    height: 100%; 
    background-color: #7a5c2e; /* サイトのテキスト色から採用 */
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3); 
}

.stamp-option:hover .stamp-text {
    color: #fff; 
}


/* 💥 STEP 2: クリック時: スタンプを押す (色をサイトの濃い色に調整) 💥 */
.stamp-option.stamped .stamp-effect {
    background-color: #405F70; /* ヘッダーの色から採用 */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 3px 6px rgba(0, 0, 0, 0.2); 
    transition: all 0.2s ease;
    border: 3px solid #f8f0e3; 
}

.stamp-option.stamped .stamp-text {
    color: #fff; 
}

/* --- 印の画像スタイル (既存を維持) --- */
.stamp-icon {
    width: 80px; 
    height: 80px;
    position: absolute;
    display: none; 
    opacity: 0; 
    transform: scale(0) rotate(-10deg); 
    transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    filter: brightness(10) grayscale(1) contrast(10) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)); 
}

.stamp-option:hover .stamp-icon,
.stamp-option.stamped .stamp-icon {
    display: block; 
}

.stamp-option.stamped .stamp-icon {
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
    transition: opacity 0.2s ease 0.1s, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.1s; 
}

/* --- 結果ページ専用スタイル (Style2.css内に定義) --- */

.result-container {
    text-align: center;
    padding: 50px;
    
    /* 💖✨ 縦並びなので幅を狭く戻すよ！ ✨💖 */
    max-width: 650px; 
    width: 90%; 

    margin: 50px auto;
    background-color: #fff; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-content{
    display: flex;
}

#result-artist-image{
    width: 100%;
}
#result-type-title {
    font-size: 1.8em; 
    color: #405F70; /* 濃いめの色で強調 */
    font-weight: bold;
    margin: 15px 0 25px 0;
    padding: 8px 15px;
    display: inline-block; /* 背景色を文字の幅に合わせる */
    border-radius: 5px;
}

#result-title {
    color: #7b1c1c;
    font-size: 2.2em;
    margin-bottom: 20px;
}

#result-title-global {
    color: #7b1c1c; /* 元のCSSの濃い色に設定 */
    font-size: 2.2em;
    margin-bottom: 20px;
}

#result-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #4a4a4a;
    padding: 0 20px; /* 左右に余白 */
    margin-bottom: 30px;
}

.artist-result-box {
    margin: 0 auto 30px auto; /* 中央寄せと下の余白 */
    max-width: 400px; /* 画像の最大幅を制限 */
}
#result-artist-image {
    width: 100%; /* 親要素(max-width: 400px)いっぱいに広げる */
    height: auto;
    border-radius: 5px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.restart-button {
    margin-top: 30px;
    padding: 12px 25px; 
    font-size: 1.1em;
    cursor: pointer;
    background-color: #d84315; /* 元のCSSの色に設定 */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.restart-button:hover {
    background-color: #5d4323;
}

/* Style2.cssまたは<style>タグ内に追加 */

/* --- 💖 推し画家 詳細ボタンのスタイル 💖 --- */

.monet-button {
    /* デザインの基本設定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    width: 90%; 
    max-width: 450px; /* result-containerの幅に合わせる */
    margin: 40px auto 20px auto; 

    height: 140px;
    
    /* 🎨 色と装飾を画像に合わせる！ */
    background-color: #796666; /* 画像から抽出した茶系の色 */
    padding: 20px;
    
    /* 📐 角丸と影 */
    border-radius: 30px;       /* 角丸を大きくする */
    /* 影：ボタンを浮き上がらせる、下側に落ちた影を再現 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
    
    /* 文字装飾 */
    text-decoration: none;     
    color: #ffffff;            /* 文字色を白に */
    
    /* ホバーアニメーション（UX向上！） */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時のスタイル（ユーザー体験アゲ！） */
.monet-button:hover {
    transform: translateY(-5px); /* 少し上に浮き上がらせることで高級感UP */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); /* 影を濃くして浮遊感を強調 */
}


/* 上の行の文字スタイル */
.text-top {
font-size: 20px;           
    font-family: 'Hiragino Mincho Pro', sans-serif; 
    margin-bottom: 5px;
}

/* 下の行の文字スタイル */
.text-bottom {
font-size: 24px;           
    font-family: 'Hiragino Mincho Pro', sans-serif; 
    font-weight: 300;          
    
    /* 矢印と文字の並びを維持 */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 矢印（→）のスタイルを微調整（もし必要なら） */
.text-bottom::after {
    /* CSSで矢印を表現する場合のコード。もしHTML文字の「⟶」を使うならここは不要 */
    /* content: "→"; */
    /* font-size: 50px; */
}