/* 鳥獣戯画風デザイン - 墨絵と和紙のテクスチャ - 巻物風フォント */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全体的に巻物風の古めかしい雰囲気 */
*:not(.type-icon):not(.character-emoji) {
    letter-spacing: 0.08em;
}

body {
    font-family: 'Tsukimi Rounded', 'ヒラギノ丸ゴ ProN', 'Hiragino Maru Gothic ProN', sans-serif;
    font-weight: 500;
    /* 和紙のような背景 */
    background: #ECE5CB;
    background-attachment: fixed;
    min-height: 100vh;
    color: #2c2416;
    line-height: 1.9;
    position: relative;
    /* 巻物風の古めかしいテキスト効果 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

body.has-overlay-header {
    padding-top: 0;
}

/* 巻物風のグローバルテキストスタイル */
p {
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 2;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.7;
}

/* 和紙テクスチャのオーバーレイ - 削除 */
/* body::before と body::after を削除しました */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* ヘッダー - 書道風 */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ECE5CB;
    margin-bottom: 0;
}

.header-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(236, 229, 203, 0.9) 0px, transparent 1px, transparent 2px, rgba(236, 229, 203, 0.9) 3px),
        repeating-linear-gradient(90deg, rgba(236, 229, 203, 0.9) 0px, transparent 1px, transparent 2px, rgba(236, 229, 203, 0.9) 3px);
    opacity: 0.8;
    pointer-events: none;
}

.header-overlay .header-container {
    background: #ECE5CB;
    border: none;
    box-shadow: none;
}

.header-overlay .logo {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-overlay .logo-image {
    /* シャドウ削除 */
}

.header-overlay .subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 5px auto 5px;
    padding: 15px;
    background: #ECE5CB;
    border: none;
    box-shadow: none;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-image {
    height: 55px;
    width: auto;
    display: block;
    /* トランジション削除 */
    /* シャドウ削除 */
}

.logo-link:hover .logo-image {
    /* ホバー効果削除 */
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: #2c2416;
    margin: 0;
    transition: transform 0.3s ease;
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 0 rgba(139, 90, 43, 0.2);
    font-style: normal;
    /* 縦書き風の雰囲気を出すため文字間を広く */
}

.logo-link:hover .logo {
    transform: scale(1.05);
    color: #654321;
}

.subtitle {
    color: #5a4a3a;
    font-size: 1rem;
    letter-spacing: 0.2em;
}

/* ナビゲーションメニュー - 和風 */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #4a3520;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.1em;
}

.nav-link:hover {
    color: #8b5a2b;
    background: rgba(139, 90, 43, 0.1);
}

.nav-link.active {
    color: #654321;
    background: rgba(101, 67, 33, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #8b5a2b;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #4a3520;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background: #8b5a2b;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* メインコンテンツ */
.main-content {
    animation: fadeIn 1s ease-out;
}

/* ヒーローセクション - 絵巻物風 */
.hero-section {
    margin-bottom: 50px;
}

.hero-section-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    margin-top: 80px;
}

.hero-image-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    animation: fadeIn 1s ease-out;
}

/* ヒーローボタンオーバーレイ */
.hero-button-overlay {
    position: relative;
    text-align: center;
    z-index: 100;
    margin-top: -150px;
    margin-bottom: 70px;
}

.hero-button-overlay .start-btn {
    display: inline-block;
}

.hero-content {
    margin-top: 30px;
}

.hero-image-container {
    margin-bottom: 40px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(74, 53, 32, 0.3),
        0 4px 8px rgba(139, 90, 43, 0.2);
    border: 4px solid #8b5a2b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card {
    background: #ECE5CB;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 
        0 4px 0 rgba(74, 53, 32, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: center;
    animation: slideUp 0.8s ease-out;
    border: 3px solid #8b5a2b;
    border-top-width: 4px;
    border-bottom-width: 4px;
    position: relative;
}

/* 絵巻物の装飾 */
.hero-card::before,
.hero-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: #654321;
    top: 15px;
}

.hero-card::before {
    left: 15px;
}

.hero-card::after {
    right: 15px;
}

.hero-title {
    font-size: 2.5rem;
    color: #2c2416;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 0 rgba(139, 90, 43, 0.15);
    /* 古めかしい巻物風 */
    line-height: 1.6;
}

.hero-description {
    font-size: 1.1rem;
    color: #4a3520;
    margin-bottom: 30px;
    line-height: 2.2;
    letter-spacing: 0.1em;
    font-weight: 500;
    /* 巻物風の読みやすさ */
}

.type-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.type-icon {
    font-size: 2.5rem;
    animation: gentleBounce 3s infinite;
    filter: sepia(0.3) brightness(0.9);
}

.type-icon:nth-child(1) { animation-delay: 0s; }
.type-icon:nth-child(2) { animation-delay: 0.2s; }
.type-icon:nth-child(3) { animation-delay: 0.4s; }
.type-icon:nth-child(4) { animation-delay: 0.6s; }
.type-icon:nth-child(5) { animation-delay: 0.8s; }
.type-icon:nth-child(6) { animation-delay: 1s; }
.type-icon:nth-child(7) { animation-delay: 1.2s; }
.type-icon:nth-child(8) { animation-delay: 1.4s; }

.start-btn {
    background: linear-gradient(to bottom, #8b5a2b 0%, #654321 100%);
    color: #fffdf8;
    border: 3px solid #4a3520;
    padding: 18px 55px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 
        0 4px 0 #4a3520,
        0 8px 15px rgba(74, 53, 32, 0.4);
    transition: all 0.2s ease;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.25em;
    position: relative;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #4a3520,
        0 12px 20px rgba(74, 53, 32, 0.5);
}

.start-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #4a3520,
        0 4px 10px rgba(74, 53, 32, 0.4);
}

/* 情報セクション - 巻物風カード */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.info-card {
    background: #ECE5CB;
    padding: 30px 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(74, 53, 32, 0.2);
    transition: transform 0.3s ease;
    border: 2px solid #c9b499;
    border-top: 3px solid #8b5a2b;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 53, 32, 0.3);
    border-top-color: #654321;
}

.info-card h3 {
    color: #654321;
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
}

.info-card p {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Aboutセクション - 絵巻物 */
.about-section {
    background: transparent;
    padding: 40px 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 50px;
    border: none;
}

.about-section h3 {
    color: #2c2416;
    font-size: 1.8rem;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    text-shadow: 1px 1px 0 rgba(139, 90, 43, 0.1);
    text-align: center;
}

.about-section p {
    color: #4a3520;
    margin-bottom: 20px;
    line-height: 2;
    letter-spacing: 0.05em;
    text-align: center;
}

.philosophy-text {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.philosophy-text p {
    color: #3a2a1a;
    font-size: 1.05rem;
    line-height: 2.2;
    margin-bottom: 25px;
    text-align: center;
}

.philosophy-text strong {
    color: #654321;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.closing-message {
    text-align: center;
    font-size: 1.1rem;
    padding-top: 25px;
    border-top: 2px solid rgba(139, 90, 43, 0.3);
    margin-top: 35px;
    color: #4a3520;
}

.tagline {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #654321;
    margin-top: 15px;
    letter-spacing: 0.2em;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.feature-list li {
    padding: 12px 0;
    color: #5a4a3a;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

/* クイズページ - 巻物を開くイメージ */
.quiz-header {
    margin-bottom: 25px;
}

.progress-container {
    background: rgba(74, 53, 32, 0.2);
    border-radius: 6px;
    height: 14px;
    margin: 20px auto;
    max-width: 450px;
    overflow: hidden;
    border: 2px solid #8b5a2b;
}

.progress-bar {
    background: linear-gradient(to right, #8b5a2b 0%, #654321 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(139, 90, 43, 0.6);
}

.progress-text {
    color: #2c2416;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.quiz-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.question-card {
    background: #ECE5CB;
    border-radius: 0;
    padding: 50px 40px;
    box-shadow: none;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    border: none;
}

.question-title {
    font-size: 1.8rem;
    color: #2c2416;
    margin-bottom: 40px;
    text-align: center;
    line-height: 2;
    min-height: 60px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.question-title:empty::before {
    content: '';
    display: block;
    height: 40px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: #ECE5CB;
    border: 2px solid #c9b499;
    padding: 20px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Serif JP', serif;
    color: #4a3520;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.option-btn:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
    background: #d9cbb5;
    border-color: #8b5a2b;
    color: #2c2416;
}

/* 星マーク評価 - 墨絵風 */
.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 45px 30px;
    background: #ECE5CB;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.stars-bar {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.star {
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d4c4b0;
    user-select: none;
    filter: drop-shadow(0 2px 3px rgba(74, 53, 32, 0.2));
}

.star:hover {
    transform: scale(1.15);
}

.star.filled {
    color: #8b5a2b;
    filter: drop-shadow(0 3px 6px rgba(139, 90, 43, 0.6));
    animation: starPulse 0.4s ease-out;
}

.star:not(.filled) {
    color: #c9b499;
}

.star:hover.filled {
    color: #654321;
    filter: drop-shadow(0 4px 8px rgba(101, 67, 33, 0.7));
}

.scale-label-display {
    font-size: 1.3rem;
    color: #654321;
    font-weight: 700;
    text-align: center;
    min-height: 30px;
    letter-spacing: 0.1em;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

.back-btn {
    background: #ECE5CB;
    color: #654321;
    border: 2px solid #8b5a2b;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
    letter-spacing: 0.1em;
}

.back-btn:hover {
    background: #d9cbb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

/* キャラクター一覧 - 絵巻物のページ */
.characters-content {
    animation: fadeIn 0.8s ease-out;
}

.characters-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px;
    background: #ECE5CB;
    border-radius: 8px;
    border-top: 3px solid #8b5a2b;
    border-bottom: 3px solid #8b5a2b;
}

.characters-intro h2 {
    font-size: 2.5rem;
    color: #2c2416;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 0 rgba(139, 90, 43, 0.1);
}

.characters-intro p {
    font-size: 1.15rem;
    color: #4a3520;
    line-height: 2;
    letter-spacing: 0.05em;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.character-card {
    background: #ECE5CB;
    border: 3px solid #c9b499;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(74, 53, 32, 0.2);
    position: relative;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(139, 90, 43, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-8px) rotate(1deg);
    border-color: #8b5a2b;
    box-shadow: 0 8px 20px rgba(139, 90, 43, 0.4);
}

.character-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: gentleBounce 3s infinite;
    filter: sepia(0.2);
}

.character-card:hover .character-emoji {
    animation: none;
    transform: scale(1.15) rotate(-5deg);
}

.character-name {
    font-size: 1.8rem;
    color: #654321;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.character-type {
    font-size: 0.9rem;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.character-subtitle {
    font-size: 1rem;
    color: #5a4a3a;
    line-height: 1.6;
}

/* キャラクター詳細 */
.character-detail-content {
    animation: fadeIn 0.8s ease-out;
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    color: #654321;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
}

.back-link a:hover {
    color: #8b5a2b;
    transform: translateX(-5px);
}

/* 結果ページ - 絵巻物の完成形 */
.result-content {
    animation: fadeIn 0.8s ease-out;
}

.result-card {
    background: #ECE5CB;
    border-radius: 0;
    padding: 50px 40px;
    box-shadow: none;
    margin-bottom: 50px;
    border: none;
}

.result-header {
    text-align: center;
    margin-bottom: 35px;
}

.result-announcement {
    font-size: 1.6rem;
    color: #654321;
    animation: gentlePulse 2.5s infinite;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.result-type {
    text-align: center;
    padding: 45px;
    background: #ECE5CB;
    border-radius: 8px;
    margin-bottom: 35px;
    border: 3px solid #8b5a2b;
    box-shadow: 
        0 3px 0 rgba(74, 53, 32, 0.15),
        inset 0 2px 8px rgba(139, 90, 43, 0.1);
}

.type-emoji {
    font-size: 5.5rem;
    margin: 0 auto 25px;
    animation: gentleBounce 3s infinite;
    filter: sepia(0.25) brightness(0.95);
    display: flex;
    justify-content: center;
    align-items: center;
}

.type-name {
    font-size: 2.8rem;
    color: #2c2416;
    margin-bottom: 12px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 0 rgba(139, 90, 43, 0.15);
}

.type-subtitle {
    font-size: 1.3rem;
    color: #5a4a3a;
    letter-spacing: 0.1em;
}

.result-catchphrase,
.result-description,
.result-ffs,
.result-strengths,
.result-weaknesses,
.result-message,
.result-compatibility {
    margin-bottom: 35px;
}

.result-catchphrase h4,
.result-description h4,
.result-ffs h4,
.result-strengths h4,
.result-weaknesses h4,
.result-message h4,
.result-compatibility h4 {
    color: #654321;
    font-size: 1.5rem;
    margin-bottom: 18px;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.result-ffs h4 {
    text-align: center;
}

.result-catchphrase p,
.result-description p,
.result-message p {
    color: #4a3520;
    line-height: 2;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.result-catchphrase p {
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 700;
    color: #654321;
    padding: 15px;
    background: #d9cbb5;
    border-radius: 6px;
}

.result-message p {
    background: #d9cbb5;
    padding: 25px;
    border-radius: 6px;
    border-left: none;
    font-weight: 600;
    color: #2c2416;
}

/* FFSチャート - 墨絵風 */
.result-ffs {
    background: #ECE5CB;
    padding: 35px;
    border-radius: 8px;
    border: 2px solid #c9b499;
    box-shadow: inset 0 2px 6px rgba(74, 53, 32, 0.1);
}

.ffs-description {
    color: #5a4a3a;
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.05em;
}

.chart-container {
    position: relative;
    height: 400px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 30px;
    background: rgba(255, 253, 248, 0.5);
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
}

.ffs-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ffs-item {
    color: #4a3520;
    font-size: 0.95rem;
    line-height: 1.8;
}

.ffs-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 6px;
    letter-spacing: 0.05em;
}

.ffs-label.c {
    background: rgba(139, 90, 43, 0.25);
    color: #654321;
    border: 1px solid #8b5a2b;
}

.ffs-label.a {
    background: rgba(101, 123, 67, 0.25);
    color: #3a5a20;
    border: 1px solid #657b43;
}

.ffs-label.d {
    background: rgba(70, 100, 130, 0.25);
    color: #2a4a6a;
    border: 1px solid #466482;
}

.ffs-label.e {
    background: rgba(120, 70, 100, 0.25);
    color: #5a2a4a;
    border: 1px solid #784664;
}

.ffs-label.p {
    background: rgba(150, 100, 60, 0.25);
    color: #6a4a2a;
    border: 1px solid #96643c;
}

.result-strengths ul,
.result-weaknesses ul {
    list-style: none;
    padding: 0;
}

.result-strengths ul,
.result-weaknesses ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.result-strengths li {
    background: linear-gradient(to bottom, #a8b89f 0%, #8fa887 100%);
    color: #2a3a22;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(101, 123, 67, 0.3);
    border: 2px solid #657b43;
}

.result-weaknesses li {
    background: linear-gradient(to bottom, #d9b88f 0%, #c9a87f 100%);
    color: #3a2a1a;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(150, 100, 60, 0.3);
    border: 2px solid #96643c;
}

.compatibility-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.compatibility-item {
    background: linear-gradient(to bottom, rgba(245, 235, 220, 0.95), rgba(235, 225, 210, 0.95));
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #8b5a2b;
    box-shadow: 0 3px 10px rgba(139, 90, 43, 0.3);
    transition: all 0.3s ease;
}

.compatibility-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 90, 43, 0.4);
}

.compatibility-link {
    color: #654321;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.compatibility-link::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compatibility-link:hover {
    color: #8b5a2b;
    text-decoration: underline;
}

.compatibility-link:hover::after {
    opacity: 1;
}

.compatibility-reason {
    color: #4a3520;
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 90, 43, 0.2);
}

.result-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 45px;
}

.share-btn,
.retry-btn,
.home-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.share-btn {
    background: linear-gradient(to bottom, rgba(235, 225, 210, 0.95), rgba(225, 215, 200, 0.95));
    color: #4a3520;
    border: 2px solid #c9b499;
}

.retry-btn {
    background: linear-gradient(to bottom, #8b5a2b 0%, #654321 100%);
    color: #fffdf8;
    border: 2px solid #4a3520;
    box-shadow: 0 3px 0 #4a3520;
}

.home-btn {
    background: linear-gradient(to bottom, rgba(215, 205, 190, 0.95), rgba(205, 195, 180, 0.95));
    color: #2c2416;
    border: 2px solid #8b5a2b;
}

.share-btn:hover,
.retry-btn:hover,
.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 90, 43, 0.4);
}

.retry-btn:hover {
    box-shadow: 0 6px 0 #4a3520, 0 10px 20px rgba(139, 90, 43, 0.4);
}

.retry-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #4a3520;
}

/* フッター - 絵巻物の終わり */
.footer {
    text-align: center;
    color: #5a4a3a;
    padding: 40px 0;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-top: 2px solid rgba(139, 90, 43, 0.3);
    margin-top: 50px;
}

/* アニメーション - 穏やかな和風 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo {
        font-size: 1.6rem;
    }
    
    .logo-image {
        height: 44px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #ECE5CB;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(74, 53, 32, 0.3);
        border-left: 3px solid #8b5a2b;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.3rem;
    }

    .header-overlay .logo {
        font-size: 1.6rem;
    }
    
    .header-overlay .logo-image {
        height: 40px;
    }
    
    .header-overlay .subtitle {
        font-size: 0.9rem;
    }
    
    .hero-section-fullwidth {
        margin-top: 44px;
    }

    .hero-image-container {
        margin-bottom: 30px;
    }
    
    .hero-image {
        border-radius: 8px;
        border-width: 3px;
    }

    .hero-card {
        padding: 35px 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-button-overlay {
        margin-top: -100px;
        margin-bottom: 20px;
    }

    .start-btn {
        padding: 14px 40px;
        font-size: 1.15rem;
    }

    .type-icon {
        font-size: 2rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
    
    .star {
        font-size: 3rem;
    }
    
    .stars-bar {
        gap: 12px;
    }
    
    .rating-container {
        padding: 35px 20px;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .scale-label-display {
        font-size: 1.15rem;
    }

    .about-section {
        padding: 30px 20px;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
    }
    
    .philosophy-text {
        margin: 0;
        padding: 25px 18px;
    }
    
    .philosophy-text p {
        font-size: 0.95rem;
        line-height: 1.9;
    }
    
    .closing-message {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .chart-container {
        height: 350px;
        padding: 15px;
    }

    .question-card {
        padding: 35px 25px;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .question-title {
        font-size: 1.5rem;
    }

    .option-btn {
        font-size: 1rem;
        padding: 16px 20px;
    }

    .result-card {
        padding: 35px 25px;
    }

    .type-emoji {
        font-size: 4.5rem;
    }

    .type-name {
        font-size: 2.2rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .share-btn,
    .retry-btn,
    .home-btn {
        width: 100%;
    }
    
    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .character-card {
        padding: 25px 18px;
    }
    
    .character-emoji {
        font-size: 3.5rem;
    }
    
    .character-name {
        font-size: 1.5rem;
    }
    
    .characters-intro h2 {
        font-size: 2rem;
    }
    
    .characters-intro p {
        font-size: 1rem;
    }
    
    .chart-container {
        height: 300px;
        padding: 15px;
    }
    
    .ffs-legend {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .result-ffs {
        padding: 25px 18px;
    }
}
