:root {
    --color-bg: #FCFBF9; /* 淡いベージュ・白基調 */
    --color-text: #333333; /* 墨色・チャコールグレー */
    --color-accent: #8E7A6E; /* 落ち着いた和のアクセントカラー */
    --font-mincho: 'Noto Serif JP', serif;
    --font-gothic: 'Noto Sans JP', sans-serif;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-gothic);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: var(--font-mincho);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Header */
.header {
    padding: 24px;
    text-align: center;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.logo span {
    font-size: 1rem;
    color: var(--color-accent);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Sections */
section {
    padding: var(--spacing-lg) 24px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 12px;
}

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

/* Hero */
.hero {
    padding: 0;
    max-width: 100%;
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(252, 251, 249, 0.9) 0%, rgba(252, 251, 249, 0.2) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    margin-top: 20vh;
}

.catchphrase {
    font-size: 2.2rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    writing-mode: vertical-rl;
    margin: 0 auto;
    letter-spacing: 0.2em;
}

/* Mobile Catchphrase Adjustment */
@media (max-width: 768px) {
    .catchphrase {
        font-size: 1.8rem;
    }
}

/* Profile */
.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.profile-text {
    text-align: justify;
    text-justify: inter-ideograph;
    max-width: 500px;
}

.profile-text p {
    margin-bottom: 16px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-bottom: var(--spacing-md);
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.instagram-link {
    text-align: center;
    margin-top: var(--spacing-md);
}

.btn-instagram {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: var(--font-gothic);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(142, 122, 110, 0.4);
}

.btn-instagram:hover {
    background-color: #7a685e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 122, 110, 0.6);
}

/* Price */
.price-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.price-card {
    background-color: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    text-align: center;
    border-top: 4px solid var(--color-text);
}

.price-card.option {
    border-top-color: var(--color-accent);
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mincho);
    margin-bottom: 4px;
}

.amount span {
    font-size: 1.2rem;
}

.tax-info {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 16px;
}

.detail {
    font-size: 0.9rem;
}

/* Desktop variations */
@media (min-width: 768px) {
    .profile-content {
        flex-direction: row;
        justify-content: center;
        gap: 64px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .price-cards {
        flex-direction: row;
    }

    .price-card {
        flex: 1;
    }
}

/* Form */
.booking {
    background-color: #fff;
    padding: var(--spacing-lg) 24px;
}

.form-intro {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.required {
    background-color: #d9534f;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-bg);
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
}

small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.8rem;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--color-text);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 32px;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 40px 24px;
    background-color: var(--color-text);
    color: #fff;
    font-size: 0.8rem;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: -100px; /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: #fff;
    padding: 16px 48px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(142, 122, 110, 0.4);
    z-index: 100;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.floating-btn.show {
    bottom: 24px;
}

.floating-btn:hover {
    background-color: #7a685e;
}

@media (min-width: 768px) {
    .floating-btn {
        display: none; /* Hide on desktop */
    }
}
