:root {
    /* スマホでも少し広めに */
    --spacing-xs: 8px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 80px;
    --spacing-xl: 100px;
}

body {
    font-size: 1rem;
    /* モバイルでも読みやすいサイズに調整 */
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.container {
    padding: 0 20px;
    max-width: 480px;
    /* スマホ幅での最大値を設定し、それ以上は中央寄せ */
    margin: 0 auto;
}

section {
    padding: 60px 0;
    /* 80px -> 60px (スマホでのバランス調整) */
}

.section-title-ja {
    font-size: 1.5rem;
    /* 1.3rem -> 1.5rem */
}

/* Header */
.header {
    padding: 10px 0;
    padding-top: max(10px, env(safe-area-inset-top));
    /* ノッチ対策 */
    background-color: var(--color-white);
    /* 背景色と合わせる */
    /* backdrop-filter: blur(10px); 削除: 白背景なので不要 */
    /* -webkit-backdrop-filter: blur(10px); 削除 */
}

.nav {
    padding: 0 15px;
    padding-right: max(15px, env(safe-area-inset-right));
    padding-left: max(15px, env(safe-area-inset-left));
    justify-content: space-between;
    /* 両端揃えを強調 */
}

.nav-brand {
    margin-left: 0;
    /* 左寄せを確実に */
    align-items: flex-start;
    /* 左揃え */
}

.nav-brand img {
    width: 120px;
    /* 130px -> 120px 少し縮小して余裕を持たせる */
    height: auto;
}

.nav-brand-text {
    font-size: 0.65rem;
}

/* PCメニューを非表示 */
.nav-menu-pc {
    display: none !important;
}

.nav-toggle {
    display: flex !important;
    /* 強制的に表示 */
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10000;
    /* 最前面に */
    position: relative;
    /* 位置指定 */
}

.nav-toggle span {
    display: block;
    /* 確実にブロック表示 */
    background-color: var(--color-primary);
    width: 100%;
    height: 2px;
    transition: 0.3s;
}

.nav-toggle.active span {
    background-color: var(--color-white);
}

.btn-contact-mobile {
    display: block !important;
    /* モバイルで表示 */
    margin-left: auto;
    margin-right: 12px;
    /* 15px -> 12px 間隔を微調整 */
    font-size: 0.75rem;
    /* 0.8rem -> 0.75rem */
    padding: 8px 14px;
    /* パディング微調整 */
}

/* Hero Section */
.hero {
    padding-top: 90px;
    /* ヘッダー分確保 (60px -> 90px) */
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 既存要素の非表示 */
/* 既存要素の復帰 */
.hero-slider,
.hero-overlay {
    display: block !important;
}

.hero-bg-logo {
    display: none !important;
    /* 背景ロゴはモバイルでは非表示のまま */
}

/* スマホ用フルスクリーン背景 */
.mobile-hero-bg {
    display: none;
}

.mobile-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.1);
    /* ゆっくりズームアウト用 */
}

.mobile-hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.mobile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    padding: 20px 30px;
    z-index: 3;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.hero-center-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    /* 中央揃え */
}

.hero-logo-mark {
    display: none;
}

.hero-text-block {
    text-align: center;
    /* 中央揃え */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 中央揃え */
    text-shadow: none;
    /* 影削除 */
}

.hero-title-en,
.hero-title,
.hero-subtitle {
    text-align: center;
    /* 中央揃え */
    color: var(--color-text);
    /* 白文字から通常色へ戻す（背景が白になるため） */
}

.hero-title-en {
    font-size: 1.2rem;
    color: var(--color-primary);
    /* 通常色へ */
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.0rem;
    /* 2.4rem -> 2.0rem (375px幅対策) */
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: keep-all;
    /* 単語の途中で改行しない */
    overflow-wrap: normal;
    width: 90%;
    /* 幅を広げて改行を防ぐ */
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-right: -0.2em;
    color: var(--color-text-light);
    /* 通常色へ */
    font-weight: 300;
}

.hero-slider {
    height: 18vh;
    width: 100%;
    margin-bottom: 0;
    z-index: 2;
    margin-top: 0;
}

.hero-slider-track img {
    margin-right: 20px;
    border-radius: 5px;
}

.hero-slider-top {
    margin-top: 0;
}

.hero-slider-bottom {
    margin-top: 0;
    margin-bottom: 60px;
    /* スクロールインジケーター用スペース確保 */
}

.scroll-indicator {
    bottom: 15px;
    /* 位置調整 */
    margin-top: 0;
    z-index: 3;
}

.scroll-text {
    color: var(--color-primary);
}

.scroll-line {
    background-color: var(--color-border);
}

.scroll-line::after {
    background-color: var(--color-primary);
}

/* About Section */
.about-content {
    display: flex;
    /* Flexboxを有効化 */
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-image-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.about-image::after,
.about-image::before {
    width: 100px;
    height: 100px;
    filter: blur(10px);
}

.about-text {
    padding: 0;
}

.about-lead {
    text-align: left;
    font-size: 1.6rem;
    /* 1.8rem -> 1.6rem (少し控えめに) */
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-description p {
    text-align: left;
    line-height: 1.9;
    /* 行間を少し広げる */
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    /* 段落間を追加 */
}

.about-stats-container {
    flex-direction: column;
    gap: 15px;
    border-top: 1px dashed var(--color-border);
    border-bottom: 1px dashed var(--color-border);
    padding: 20px 0;
}

.about-stat-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.stat-label {
    flex-basis: 40%;
    text-align: left;
    margin-bottom: 0;
}

.stat-value {
    flex-basis: 60%;
    text-align: right;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-sub-text {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 2px;
}

/* Modal Mobile Adjustments */
.modal {
    padding: 10px;
    /* スマホは余白少なめ */
    align-items: flex-start;
}

.modal-container {
    padding: 30px 20px;
    margin: 20px auto;
    /* スマホでの上下余白 */
    width: 100%;
}

/* Message Section */
.message-content {
    padding: 0 20px;
}

.message-text {
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
}

.message-title {
    font-size: 1.6rem;
    /* 1.8rem -> 1.6rem */
    word-break: keep-all;
    /* 単語の途中で改行しない */
    overflow-wrap: normal;
    line-height: 1.4;
    width: 90%;
    margin: 0 auto 30px;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.message-text p {
    margin-bottom: 30px;
    line-height: 2.0;
    font-size: 0.95rem;
    text-align: justify;
    /* 両端揃えで整える */
    text-align-last: center;
    /* 最後の行は中央揃え */
    width: 100%;
}

.quote-box {
    margin: 40px 0;
    padding: 20px 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    /* 60px -> 80px */
}

.features-grid {
    grid-template-columns: 1fr;
    /* 1カラム */
    gap: 50px;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Gallery Section */
.gallery-grid {
    flex-direction: column;
    height: auto;
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: 8px;
}

.gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.gallery-item {
    overflow: hidden;
    /* 画像拡大時にはみ出さないように */
    display: block;
    position: relative;
}

.gallery-cat,
.gallery-title,
.gallery-date,
.gallery-more {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.gallery-cat {
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-bottom: 8px;
}

.gallery-title {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.gallery-date {
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.gallery-more {
    font-size: 0.8rem;
}

/* Plans Section */
.plan-card {
    padding: 25px;
    background: #FFFFFF;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.plan-image {
    border-radius: 10px;
    height: 220px;
    box-shadow: none;
    margin-bottom: 20px;
    width: 100%;
    object-fit: cover;
}

.plan-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 5px;
}

.plan-desc {
    text-align: left;
    padding-left: 5px;
    margin-bottom: 15px;
}

.plan-price-wrapper {
    text-align: left;
    padding-left: 5px;
    margin-bottom: 20px;
}

.plan-price {
    color: #333;
}

.btn-plan-detail {
    height: 50px;
    font-size: 1rem;
    border-radius: 25px;
}

/* Flow Section */
.flow-steps {
    padding-left: 0;
    max-width: 100%;
}

.flow-line-vertical {
    left: 24px;
}

.flow-step {
    gap: 20px;
    margin-bottom: 40px;
}

.flow-num {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    background: var(--color-white);
    z-index: 2;
}

.flow-info {
    padding-top: 0;
    flex: 1;
}

.flow-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.flow-info p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Policy Section */
.policy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.policy-card {
    padding: 25px;
    background-color: var(--color-white);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.policy-card h3 {
    font-size: 1.1rem;
    text-align: left;
}

.policy-card ul li {
    font-size: 0.85rem;
    line-height: 1.6;
}

.policy-notes {
    border: none;
    box-shadow: none;
    background-color: var(--color-bg);
    padding: var(--spacing-md);
}

.policy-notes h3 {
    font-size: 1rem;
    text-align: left;
}

.policy-notes ul li {
    font-size: 0.85rem;
}

/* FAQ Section */
.faq-question {
    padding: var(--spacing-sm) 0;
    font-size: 1rem;
}

.faq-answer-inner {
    padding-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content-flex {
    flex-direction: column;
    gap: var(--spacing-lg);
}

.calendar-container {
    height: 300px;
}

.btn-group {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    max-width: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-circle i {
    font-size: 1.8rem;
    width: auto;
    text-align: center;
}

.btn-circle span {
    display: none;
}

.contact-lead-text {
    padding: 0 20px;
}

/* Modal (Mobile) */
.modal {
    padding: 15px;
    align-items: center;
}

.modal-container {
    max-height: 80vh;
    /* 画面内に確実に収めてスクロールさせる */
    width: 95%;
    padding: 30px 20px;
    /* 余白調整 */
    overflow-y: auto;
    /* スクロール有効化 */
    -webkit-overflow-scrolling: touch;
    /* iOSでの滑らかなスクロール */
    margin: auto;
    /* 中央配置の補助 */
}

.modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
}

.modal-plan-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.modal-price {
    font-size: 1.8rem;
}

/* Floating Button Mobile */
.floating-contact-btn {
    width: 60px;
    height: 60px;
    bottom: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    /* ホームバー対策 */
    right: 20px;
    right: max(20px, env(safe-area-inset-right));
}

.floating-contact-btn i {
    font-size: 1.3rem;
}

.floating-text {
    font-size: 0.55rem;
}

/* モバイルメニュー展開時のロゴ切り替え */
body.mobile-menu-open .nav-logo-base {
    display: none;
}

body.mobile-menu-open .nav-logo-white {
    display: block;
}

body.mobile-menu-open .nav-brand-text {
    color: var(--color-white);
}