/* ========================================
   リセット＆基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - ハワイの自然をイメージ */
    --primary-color: #2C5F7D; /* 深い海の青 */
    --secondary-color: #7BA89A; /* ターコイズグリーン */
    --accent-color: #D4A574; /* サンセットゴールド */
    --text-dark: #2C3E50;
    --text-gray: #5A6C7D;
    --text-light: #8B9DAB;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFB;
    --bg-beige: #F5F2ED;
    --border-color: #E1E8ED;
    
    /* フォント */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* スペーシング */
    --container-max: 1200px;
    --section-padding: 80px 20px;
    --header-height: 80px;
    
    /* トランジション */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.pc-only {
    display: inline;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 15px 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/wp-content/themes/libun-theme/assets/images/memorial-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    margin-top: var(--header-height);
    overflow: hidden;
}

/* メモリアルページ専用ヒーロー */
.hero-memorial {
    height: 55vw;
    min-height: 280px;
    max-height: 520px;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 30px;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    padding: 0 20px 30px;
    width: 100%;
}

.hero-memorial .hero-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #fff;
    text-align: left;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 168, 154, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    display: block;
    font-size: 28px;
    font-weight: 300;
    margin-top: 15px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    background-color: #C99563;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--bg-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   共通セクションスタイル
======================================== */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto 0;
}

/* ========================================
   サービス概要セクション
======================================== */
.section-about {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 32px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   墓地サポートセクション
======================================== */
.section-cemetery {
    background-color: var(--bg-white);
}

.content-block {
    margin-bottom: 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text {
    padding: 20px 0;
}

.content-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.content-subtitle {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.content-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.content-note {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

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

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

.detail-item i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.content-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.cemetery-image {
    background: linear-gradient(135deg, #5B9BAD, #2C5F7D);
}

.care-image {
    background: linear-gradient(135deg, #7BA89A, #5B9BAD);
}

.ocean-image {
    background: linear-gradient(135deg, #4A90A4, #2C5F7D);
}

.hospice-image {
    background: linear-gradient(135deg, #A8C5B8, #7BA89A);
}

.transfer-image {
    background: linear-gradient(135deg, #D4A574, #C99563);
}

/* 費用感セクション */
.cost-section {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-beige));
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
}

.cost-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.cost-note {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.cost-card {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.cost-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cost-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.cost-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cost-unit {
    font-size: 16px;
    color: var(--text-light);
}

.cost-disclaimer {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 墓地の場所セクション */
.location-section {
    margin: 60px 0;
}

.location-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.location-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.location-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.location-card:hover {
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.location-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.location-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.location-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

.location-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 宗教・儀礼セクション */
.religion-section {
    background: linear-gradient(135deg, var(--bg-beige), var(--bg-light));
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
}

.religion-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.religion-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.religion-description {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.religion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.religion-card {
    background-color: var(--bg-white);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.religion-card i {
    font-size: 32px;
    color: var(--secondary-color);
}

.religion-card span {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.religion-note {
    text-align: center;
    font-size: 15px;
    color: var(--text-gray);
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
}

/* 海洋散骨セクション */
.scattering-section {
    margin: 60px 0;
}

.scattering-features h4,
.scattering-cost h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.scattering-cost {
    margin-top: 30px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.scattering-cost ul {
    list-style: none;
    margin-bottom: 15px;
}

.scattering-cost li {
    padding: 10px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.scattering-cost li:last-child {
    border-bottom: none;
}

.cost-note-small {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}

/* 法的手続きセクション */
.legal-section {
    background-color: var(--bg-light);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
}

.legal-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.legal-description {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.legal-item {
    background-color: var(--bg-white);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.legal-item i {
    font-size: 28px;
    color: var(--accent-color);
}

.legal-item span {
    font-size: 15px;
    color: var(--text-dark);
}

.legal-support {
    text-align: center;
    margin-top: 30px;
}

.legal-support p {
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    display: inline-block;
}

.legal-support strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   終活サポートセクション
======================================== */
.section-endoflife {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-beige) 100%);
}

.endoflife-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 17px;
    color: var(--text-gray);
    line-height: 2;
}

/* Good Care Hawaiiセクション */
.goodcare-section {
    background-color: var(--bg-white);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.goodcare-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.goodcare-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.goodcare-description {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.goodcare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.goodcare-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-beige));
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.goodcare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.goodcare-card i {
    font-size: 36px;
    color: var(--secondary-color);
}

.goodcare-card p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 安心の二国体制 */
.support-system {
    margin: 60px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    color: var(--bg-white);
}

.support-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.support-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.support-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.support-flag {
    font-size: 40px;
    margin-bottom: 20px;
}

.support-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.support-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.support-arrow {
    font-size: 32px;
    color: var(--bg-white);
}

.support-description {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}

/* ========================================
   お問い合わせセクション
======================================== */
.section-contact {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-beige));
}

.contact-box {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method {
    text-align: center;
    padding: 20px;
}

.contact-method i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-method h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-method p {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-cta {
    text-align: center;
    margin-bottom: 30px;
}

.contact-message {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 50px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* ========================================
   ページトップボタン
======================================== */
.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.page-top.visible {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    /* メモリアルヒーロー: 携帯画面ぴったり固定 */
    .hero-memorial {
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
    }

    .pc-only {
        display: none;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .content-title {
        font-size: 26px;
    }

    .cost-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .cost-amount {
        font-size: 22px;
    }

    .location-grid,
    .goodcare-grid {
        grid-template-columns: 1fr;
    }

    .religion-grid {
        grid-template-columns: 1fr;
    }

    .support-flow {
        flex-direction: column;
    }

    .support-arrow {
        transform: rotate(90deg);
    }

    .contact-box {
        padding: 40px 25px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .page-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }

    .cost-section,
    .legal-section,
    .religion-section,
    .goodcare-section {
        padding: 40px 25px;
    }
}

/* ========================================
   ヒーロー直下セクション（青緑背景）
======================================== */
.hero-below-section {
    background-color: #4d8a8a;
    color: #fff;
    padding: 40px 20px;
    text-align: left;
}

.hero-below-inner {
    max-width: 600px;
    margin: 0 auto;
}

.hero-below-header h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.hero-below-body p {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
}

/* ========================================
   緊急連絡・詳細セクション（白背景）
======================================== */
.memorial-info-section {
    background-color: #fff;
    padding: 50px 20px;
    text-align: left;
}

.memorial-info-inner {
    max-width: 600px;
    margin: 0 auto;
}

.memorial-info-lead {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.memorial-info-contact {
    margin-bottom: 30px;
}

.memorial-info-contact p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.memorial-info-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.btn-info-detail {
    display: inline-block;
    padding: 14px 60px;
    background-color: #e8e4de;
    color: var(--text-dark);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-info-detail:hover {
    background-color: #d5d0c9;
    transform: translateY(-2px);
}

/* 緊急対応セクションの見出し */
.memorial-info-heading {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}

.memorial-info-subheading {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ========================================
   CTAボタンセクション（青緑背景）
======================================== */
.memorial-cta-section {
    background-color: #4d8a8a;
    padding: 35px 20px;
}

.memorial-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.memorial-cta-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.memorial-cta-btn.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.memorial-cta-btn.btn-secondary-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.memorial-cta-btn.btn-secondary-outline:hover {
    background-color: rgba(255,255,255,0.15);
}
