:root {
    --primary-color: #2c5e85;
    --secondary-color: #f4f7f6;
    --text-color: #333;
    --light-text-color: #fff;
    /* コントラスト比を確保するために色を調整 (元: #d4a017) */
    --accent-color: #a57c00;
    --base-font-size: 16px;
    --font-family: 'Noto Sans JP', sans-serif;
}

/* Basic Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
}

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

ul {
    list-style: none;
}

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

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

/* Header */
.header {
    background-color: var(--light-text-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 700;
    transition: color 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 110;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Main Content */
main {
    padding-top: 70px; /* Header height */
}

.section {
    padding: 80px 0;
}

.section:nth-child(odd) {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 60px 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-image {
    flex: 1;
}
.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}
.hero-text {
    flex: 1;
}
.hero-title {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    /* 元の色に合わせて調整 */
    background-color: #8c6800;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-content-noimg {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 24px;
}
.about-content-noimg .about-text {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    padding: 32px 24px 16px 24px;
    background: #f8fafb;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44,94,133,0.06);
    position: relative;
}
.about-text {
    flex: 2;
}
.about-incho {
    margin-top: 32px;
    text-align: right;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.about-incho-label {
    color: var(--accent-color);
    font-weight: 700;
}

/* Services Section */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.services-list li {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Gallery Section - Modern Row Layout */
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
}
.gallery-row figure {
    width: 420px;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44,94,133,0.10);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.gallery-row figure:hover {
    box-shadow: 0 4px 24px rgba(44,94,133,0.18);
}
.gallery-row img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.gallery-row figcaption {
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44,94,133,0.25);
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(44,94,133,0.18);
    background: #fff;
}
.modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
    text-shadow: 0 2px 8px #333;
}

/* Info Section - Modern Card Layout */
.info-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 30px;
}
.info-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(44,94,133,0.08);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.info-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
.info-card .price span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 400;
}
.info-card .note {
    font-size: 0.95rem;
    color: #666;
}
.info-card .tel-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    background: #f4f7f6;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}
.info-card .tel-link:hover {
    background: var(--accent-color);
    color: #fff;
}

.large-text {
    font-size: 1.15rem;
}

.about-large-text {
    font-size: 1.25rem;
    line-height: 2;
}
.about-large-text strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Catchphrase Enhancement */
.hero-catchphrase-catch {
    text-align: left;
    margin-bottom: 32px;
    padding: 14px 24px 14px 18px;
    background: linear-gradient(90deg, #f4f7f6 80%, #e9e9e9 100%);
    border-left: 6px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(44,94,133,0.06);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.03em;
    display: block;
    max-width: 480px;
}
.hero-catchphrase-catch .catchphrase-lead strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    .hero-inner {
        flex-direction: column;
        gap: 24px;
    }
    .about-content {
        flex-direction: column;
        gap: 24px;
    }
    .gallery-row {
        gap: 16px;
    }
    .gallery-row figure {
        width: 45vw;
        min-width: 140px;
        max-width: 220px;
    }
    .gallery-row img {
        height: 110px;
    }
    .info-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 2px 8px rgba(44,94,133,0.08);
        display: none;
        transition: all 0.3s;
        z-index: 999;
    }
    .nav.nav-open {
        display: block;
    }
    .nav ul {
        padding: 20px 0;
    }
    .nav li {
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .hamburger.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-logo {
        font-size: 1.2rem;
    }
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    .about-image img {
        width: 120px;
        height: 120px;
    }
    .gallery-row figure {
        width: 90vw;
        min-width: 100px;
        max-width: 100vw;
    }
    .gallery-row img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .info-card {
        padding: 18px 10px;
    }
    .modal-content {
        max-width: 95vw;
        max-height: 70vh;
    }
    .modal-close {
        top: 12px;
        right: 18px;
        font-size: 2rem;
    }
    .hero-image img {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        height: 180px;
        object-fit: cover;
        display: block;
        margin-left: -10px; /* compensate for container padding if needed */
    }
}