:root {
    /* Trustworthy & Modern Palette */
    --color-gold: #D4AF37;
    --color-gold-hover: #B5952F;
    --color-brown: #5D4037;
    --color-brown-light: #8D6E63;
    --color-navy: #1A2B49;
    /* Keeping for deep contrast if needed */
    --color-bg-light: #F9F8F6;
    /* Warm off-white */
    --color-white: #FFFFFF;
    --color-text-main: #3E2723;
    /* Dark Brown for text */
    --color-text-light: #6D4C41;
    --color-accent-blue: #4CB5F5;
    /* Keep as secondary accent if needed */

    /* Spacing */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --gap-xl: 8rem;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

/* Typography Utils */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--color-gold);
}

.text-brown {
    color: var(--color-brown);
}

.text-blue {
    color: var(--color-accent-blue);
}

.text-navy {
    color: var(--color-navy);
}

.text-white {
    color: var(--color-white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    /* Rounded corners */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle 3D effect */
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.btn:hover {
    transform: translateY(-2px);
    /* Clickable feel */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
}

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

.btn-brown {
    background-color: var(--color-brown);
    color: var(--color-white);
}

.btn-brown:hover {
    background-color: var(--color-brown-light);
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--gap-md);
}

.main-nav a {
    text-decoration: none;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:not(.btn):hover {
    color: var(--color-blue);
}

/* Sections */
.section {
    padding: var(--gap-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--gap-sm);
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--gap-lg);
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* Hero */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/外観.jpg') no-repeat center center/cover;
    background-color: var(--color-navy);
    /* Fallback */
    margin-top: 70px;
}

/* Surroundings */
.surroundings-section {
    background-color: var(--color-bg-light);
}

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

.surroundings-card {
    background-color: var(--color-white);
    padding: var(--gap-sm);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.surroundings-card img {
    border-radius: 8px;
    margin-bottom: var(--gap-sm);
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.caption {
    font-weight: 700;
    color: var(--color-navy);
}

/* Maps in Specs */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.map-card {
    text-align: center;
}

.map-card h3 {
    margin-bottom: var(--gap-sm);
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.map-card img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 43, 73, 0.7) 0%, rgba(76, 181, 245, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero-label {
    display: inline-block;
    background-color: var(--color-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: var(--gap-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--gap-md);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: var(--gap-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Empathy */
.empathy-section {
    background-color: var(--color-white);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.pain-card {
    background: var(--color-bg-light);
    padding: var(--gap-md);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    overflow: hidden;
}

.pain-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    margin: calc(var(--gap-md) * -1) calc(var(--gap-md) * -1) var(--gap-sm) calc(var(--gap-md) * -1);
    height: 180px;
    overflow: hidden;
}

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

.solution-bridge {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
}

.arrow-down {
    font-size: 2rem;
    margin-top: var(--gap-xs);
    animation: bounce 2s infinite;
}

/* Solution / Use Cases */
.solution-section {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.solution-section .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}

.use-case-card {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    color: var(--color-text-main);
    transition: transform 0.3s;
}

.use-case-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.use-case-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--gap-md);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: var(--gap-xs);
    color: white;
}

.tag-blue {
    background-color: #5D99C6;
    /* Fallback or specific blue */
}

.tag-orange {
    background-color: var(--color-gold);
    /* Map orange to gold for consistency */
    color: #fff;
}

.tag-navy {
    background-color: var(--color-navy);
}

.tag-green {
    background-color: #2E7D32;
    /* Natural green for Lifestyle/Garden */
}

/* Image Disclaimer */
.card-image,
.expert-img-wrapper,
.card-image-wrapper {
    position: relative;
    /* Ensure wrapper is relative */
}

.image-disclaimer {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    /* Darker background for readability */
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0;
    line-height: 1;
    pointer-events: none;
    z-index: 20;
    /* Ensure it stays on top */
    display: block !important;
    /* Force visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Surroundings Section */
.surroundings-section {
    background-color: var(--color-bg-light);
}

/* Surroundings Section */
.surroundings-section {
    background-color: var(--color-bg-light);
}

.surroundings-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.gallery-item {
    background: var(--color-white);
    padding: var(--gap-xs);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--gap-xs);
}

.gallery-item .caption {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.surroundings-featured img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-caption {
    margin-top: var(--gap-sm);
    font-size: 1.1rem;
    color: var(--color-navy);
    font-weight: 700;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.amenity-card {
    background: var(--color-white);
    padding: var(--gap-sm);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.amenity-card:hover {
    transform: translateY(-3px);
}

.amenity-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--gap-xs);
}

.amenity-card p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0;
}

.surroundings-sub {
    text-align: center;
    margin-top: var(--gap-lg);
}

.surroundings-sub img {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    opacity: 0.9;
}

/* Expertise */
.expertise-section {
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-bg-light) 100%);
}

.expertise-layout {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.expert-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.expert-img-wrapper {
    position: relative;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--color-blue);
}

.badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-orange);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.expert-text-col {
    flex: 1;
}

.expert-role {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 5px;
}

.expert-bio {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-navy);
    margin: var(--gap-md) 0;
    border-left: 4px solid var(--color-orange);
    padding-left: var(--gap-sm);
}

.expert-skills {
    list-style: none;
    margin-bottom: var(--gap-md);
}

.expert-skills li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Specs */
.specs-section {
    background-color: var(--color-white);
}

.specs-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: var(--color-bg-light);
    width: 30%;
    color: var(--color-navy);
    font-weight: 700;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.price-tag {
    font-size: 1.3rem;
    color: var(--color-orange);
}

.office-info {
    text-align: center;
    margin-top: var(--gap-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* CTA */
.cta-section {
    background-color: var(--color-orange);
    background-image: linear-gradient(135deg, var(--color-orange) 0%, #FF8C60 100%);
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--gap-lg);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    text-align: center;
}

.cta-sub {
    margin-bottom: var(--gap-md);
    opacity: 0.9;
}

.booking-form {
    background-color: var(--color-white);
    padding: var(--gap-md);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

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

/* Property Details Map Alignment */
.property-map-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.property-map-row img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure images don't stretch */
    max-height: 300px;
    /* Or a reasonable fixed height to align them */
}

/* Footer */
.site-footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: var(--gap-md) 0;
    font-size: 0.9rem;
}

.company-name {
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Responsive */
@media (max-width: 900px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .expertise-layout {
        flex-direction: column;
        text-align: center;
    }

    .expert-img-wrapper {
        box-shadow: 0 10px 0 var(--color-blue);
        margin-bottom: var(--gap-md);
    }

    .section-title.text-left {
        text-align: center;
    }

    .expert-bio {
        border-left: none;
        border-top: 4px solid var(--color-orange);
        padding-top: var(--gap-sm);
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .main-nav {
        display: none;
        /* Hide for now, toggle with JS later if needed or keep simple */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: var(--gap-md);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
        /* Typically hidden on desktop, shown here */
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-navy);
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- スマホ版の「窮屈さ」だけをピンポイントで直すコード --- */
@media (max-width: 768px) {

    /* 1. フォーム内の入力欄が左右にぶつかるのだけを防ぐ */
    .cta-box {
        padding: 30px 20px !important;
        /* 上下はたっぷり、左右は少しだけ確保 */
    }

    /* 2. 入力欄（input）の幅をスマホ画面にフィットさせる */
    .form-group input,
    .form-group select {
        width: 100% !important;
        font-size: 16px !important;
        /* ズーム防止用 */
    }

    /* 3. スマホ専用改行タグを有効にする（HTMLで指定した場合のみ） */
    .mobile-only {
        display: inline !important;
    }
}

/* 4. PC・スマホ共通：単語の途中での不自然な改行を防ぐ（これだけは全体に効かせるのがお勧めです） */
body {
    word-break: keep-all;
    overflow-wrap: anywhere;
}