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

:root {
    --primary-color: #4a3866; /* ダークパープル */
    --secondary-color: #ffffff; /* ホワイト */
    --accent-color: #c9a961; /* ゴールド */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(74, 56, 102, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(74, 56, 102, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.header-tel span {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.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: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 56, 102, 0.85), rgba(74, 56, 102, 0.7));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-weight: 500;
}

.hero-tel {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 25px 40px;
    border-radius: 10px;
    display: inline-block;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.hero-tel p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.hero-tel-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.hero-tel-number span {
    color: var(--accent-color);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.hero-feature::before {
    content: '✓';
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========================================
   セクション共通
   ======================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* ========================================
   急なお別れセクション
   ======================================== */
.emergency {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

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

.emergency-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.emergency-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.emergency-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.emergency-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.emergency-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   葬儀プラン
   ======================================== */
.plans {
    background: var(--secondary-color);
}

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

.plan-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.plan-header {
    background: linear-gradient(135deg, var(--primary-color), #5a4876);
    color: var(--secondary-color);
    padding: 30px;
    text-align: center;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 15px;
}

.plan-price span {
    font-size: 1.2rem;
}

.plan-body {
    padding: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 25px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-color);
}

/* ========================================
   特徴セクション
   ======================================== */
.features {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

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

.feature-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   葬儀の流れ
   ======================================== */
.flow {
    background: var(--secondary-color);
}

.flow-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--accent-color);
}

.flow-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.flow-item:nth-child(odd) {
    flex-direction: row;
}

.flow-item:nth-child(even) {
    flex-direction: row-reverse;
}

.flow-content {
    width: 45%;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.flow-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.flow-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.flow-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   式場紹介
   ======================================== */
.hall {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

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

.hall-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hall-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.hall-image:hover img {
    transform: scale(1.05);
}

.hall-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hall-features {
    list-style: none;
    margin-top: 25px;
}

.hall-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.hall-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   スタッフ紹介
   ======================================== */
.staff {
    background: var(--secondary-color);
}

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

.staff-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.staff-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.staff-qualities {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
}

.staff-qualities h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.staff-qualities ul {
    list-style: none;
}

.staff-qualities li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.staff-qualities li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ========================================
   料金案内
   ======================================== */
.pricing {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.pricing-note {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.pricing-note h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.pricing-table {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row div {
    padding: 20px 30px;
}

.pricing-row div:first-child {
    background: var(--bg-light);
    font-weight: bold;
    color: var(--primary-color);
}

.pricing-row div:last-child {
    color: var(--text-light);
}

/* ========================================
   事前相談
   ======================================== */
.consultation {
    background: var(--secondary-color);
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.consultation-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.consultation-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.consultation-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.consultation-benefits {
    list-style: none;
    margin-top: 25px;
}

.consultation-benefits li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.consultation-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-color);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #5a4876;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 25px 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer.active {
    max-height: 500px;
}

/* ========================================
   アクセス
   ======================================== */
.access {
    background: var(--secondary-color);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.access-map {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.access-info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.access-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.access-detail {
    margin-bottom: 20px;
}

.access-detail h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.access-detail p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   お問い合わせ
   ======================================== */
.contact {
    background: linear-gradient(135deg, var(--primary-color), #5a4876);
    color: var(--secondary-color);
}

.contact .section-title h2 {
    color: var(--secondary-color);
}

.contact .section-title h2::after {
    background: var(--secondary-color);
}

.contact .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.contact-form {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #5a4876;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tel-number {
        font-size: 2.2rem;
    }

    .hall-content,
    .staff-content,
    .access-content,
    .contact-grid,
    .consultation-content {
        grid-template-columns: 1fr;
    }

    .flow-timeline::before {
        left: 30px;
    }

    .flow-item {
        flex-direction: row !important;
        padding-left: 80px;
    }

    .flow-content {
        width: 100%;
    }

    .flow-number {
        left: 30px;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .header-content {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transition: left 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 20px;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .header-tel {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: 100px 0 50px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-tel {
        padding: 20px 25px;
    }

    .hero-tel-number {
        font-size: 1.8rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .flow-item {
        padding-left: 60px;
    }

    .flow-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .pricing-row {
        grid-template-columns: 1fr;
    }

    .pricing-row div:first-child {
        border-bottom: 1px solid #e0e0e0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-tel-number {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .plan-price {
        font-size: 2rem;
    }

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