:root {
    --color-bg: #F5F5F5;
    --color-text: #333333;
    --color-primary: #1A3C34;
    --color-accent: #C5A059;
    --color-white: #FFFFFF;
    --font-en: 'Lato', sans-serif;
    --font-jp: 'Noto Serif JP', serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: 0.05em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.container {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(26, 60, 52, 0.95);
    /* Dark background for visibility on mobile */
    transition: padding 0.3s var(--ease);
}

.header-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-jp);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
    font-weight: 500;
}

.nav ul {
    display: none;
    /* Hidden on mobile by default */
}

.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.1em;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 60, 52, 0.98);
    z-index: 99;
    transition: right 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-en);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

.mobile-contact {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    display: inline-block;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .header {
        background: transparent;
        /* Transparent on desktop initially */
        padding: 2rem 0;
        transition: all 0.3s ease;
    }

    .header.scrolled {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav ul {
        display: flex;
        gap: 3rem;
        list-style: none;
    }

    .nav a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.8);
        font-family: var(--font-en);
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        transition: color 0.3s ease;
    }

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

    .header.scrolled .logo {
        color: var(--color-primary);
    }

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

    .btn-contact:hover {
        border-color: var(--color-accent);
    }

    .header.scrolled .btn-contact {
        color: var(--color-primary);
        border-color: rgba(26, 60, 52, 0.3);
    }

    .header.scrolled .btn-contact:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    /* Full height on mobile */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 52, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -10vh;
    /* Move content up significantly */
    padding: 0 1rem;
    width: 100%;
}

.hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.9;
    display: block;
}

.hero-title {
    font-size: 2.5rem;
    /* Smaller for mobile */
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 500;
    font-feature-settings: "palt" 1;
    /* Enable proportional metrics */
    margin-left: 1.5rem;
    /* Adjusted offset */
}

.hero-title span {
    display: inline-block;
}

.hero-title .punct {
    margin-left: -0.2em;
    margin-right: -0.2em;
}

/* Adjust spacing between 'い' and 'を' */
.hero-title span:nth-child(2) {
    margin-right: -0.15em;
}

/* Adjust spacing between 'な' and 'ぐ' */
.hero-title span:nth-child(7) {
    margin-right: -0.18em;
}

.hero-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto;
}

.scroll-down {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin: 3rem auto 0;
    /* Spacing from desc */
}

.scroll-down .line {
    width: 1px;
    height: 40px;
    background-color: var(--color-white);
}

/* Sections */
.section {
    padding: 5rem 0;
    /* Reduced padding */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.en-title {
    display: block;
    font-family: var(--font-en);
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.jp-title {
    font-size: 1.6rem;
    color: var(--color-primary);
}

/* Concept */
.concept {
    background-color: var(--color-white);
}

.concept-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    /* Center align usually safer for mobile unless justified */
}

.concept-text h3 {
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.concept-text p {
    font-size: 1rem;
    color: #666;
    text-align: center;
    /* Left align body text for readability */
}

/* Service */
.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-note {
    margin: 1.5rem auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.service-note-highlight {
    display: inline-block;
    margin-top: 2rem;
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(197, 160, 89, 0.15);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    width: 100%;
    max-width: 600px;
    font-size: 0.95rem;
}

.service-highlight-group {
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: min(1200px, 100%);
    justify-items: stretch;
}

.service-highlight-card {
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    min-height: 220px;
    width: min(360px, 100%);
}

.service-highlight-card--visit {
    background: var(--color-white);
    color: var(--color-primary);
}

.service-highlight-card--closure {
    background: linear-gradient(135deg, #1a3c34, #28513f 60%, #1f3f36);
    color: var(--color-white);
}

.highlight-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.service-highlight-card--visit .highlight-badge {
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-primary);
}

.service-highlight-card--closure .highlight-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

@media (max-width: 767px) {
    .service-highlight-group {
        grid-template-columns: 1fr;
    }

    .service-highlight-card {
        width: 100%;
    }
}

.service-highlight-card h4 {
    margin: 0 auto 0.7rem;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.service-highlight-card p {
    margin: 0.4rem auto;
    line-height: 1.7;
}

.card-desc {
    text-align: left;
}

.service-cta {
    font-weight: 600;
    color: #f4d3a2;
}

.card {
    background: var(--color-white);
    padding-bottom: 1rem;
}

.card-img {
    height: 200px;
    background-color: #ddd;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card:hover .card-img::after {
    transform: scale(1.1);
}

.img-clean::after {
    background-image: url('cleaning.png');
}

.img-pray::after {
    background-image: url('praying.png');
}

.img-report::after {
    background-image: url('report.png');
}

.card-content {
    padding: 0 0.5rem;
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* Price */
.price {
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}

.price-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.1), transparent 60%);
}

.price-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.price-content .jp-title {
    color: var(--color-white);
}

.price-display {
    margin: 1rem 0 0;
    font-family: var(--font-en);
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 0.3rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
}

.tax {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 0.5rem;
    display: block;
    margin-top: 0.5rem;
}

.price-plan-single {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.price-plan-annual {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Add shadow to distinguish recommended */
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.2rem 1rem;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 2px;
}

.plan-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.plan-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.price-display-annual {
    font-family: var(--font-en);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 1.2rem;
}

.price-arrow {
    color: var(--color-accent);
    transform: rotate(90deg);
    margin: 0.5rem 0;
}

.price-new {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-accent);
}

.price-desc {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.service-detail-title {
    font-family: var(--font-en);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.price-note {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.price-note--highlight {
    color: #ff8b73;
    font-weight: 600;
}

.price-note--closure {
    color: #ffc17a;
    font-weight: 600;
}

.price-service-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto 2rem auto;
}

.price-plans-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-service-item {
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.price-service-item--visit {
    background: rgba(255, 255, 255, 0.12);
}

.price-service-item--closure {
    background: rgba(255, 255, 255, 0.15);
}

.price-service-tag {
    display: inline-flex;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
    color: #fff;
}

.price-plan-closure {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.closure-desc {
    text-align: left;
}

.price-closure-note {
    margin-top: 1rem;
    font-weight: 600;
    text-align: left;
}

.price-service-details {
    margin-top: 1.5rem;
    text-align: left;
}

.price-service-details .price-note {
    text-align: left;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.price-features li {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    width: 100%;
    max-width: 280px;
}

/* Flow (Timeline) */
.timeline {
    max-width: 600px;
    width: fit-content;
    /* Shrink to fit content to truly center */
    margin: 0 auto;
    position: relative;
    padding-left: 1rem;
    /* Reduced from 2rem for mobile */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    /* Center of the marker */
    height: 100%;
    width: 1px;
    background: rgba(26, 60, 52, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    /* Reduced from 2rem for mobile */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 0;
    /* Align with the line */
    width: 15px;
    height: 15px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.5);
    z-index: 1;
}

.timeline-step {
    display: block;
    font-family: var(--font-en);
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.desc-line {
    display: inline;
}

/* FAQ */
.faq {
    background-color: var(--color-bg);
}

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

.faq-item {
    border-bottom: 1px solid rgba(26, 60, 52, 0.1);
    padding: 2rem 0;
}

.faq-item:first-child {
    border-top: 1px solid rgba(26, 60, 52, 0.1);
}

.faq-item dt {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
}

.faq-item dt::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-family: var(--font-en);
}

.faq-item dd {
    padding-left: 2rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* Contact */
.contact {
    background-color: var(--color-white);
}

.contact-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-en);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-align: center;
}

.contact-info p {
    text-align: center;
}

.contact-form-wrapper {
    width: 100%;
    flex: 1.5;
}

.contact-form {
    width: 100%;
}

.btn-line {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #06C755;
    color: #fff;
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
    font-family: var(--font-jp);
}

.btn-line:hover {
    opacity: 0.9;
}

.btn-line::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 5.92 2 10.75c0 2.67 1.36 5.07 3.53 6.64-.15.58-.54 2.1-.62 2.41-.1.38.15.74.52.41.21-.19 2.5-2.19 3.44-2.97.37.06.75.09 1.13.09 5.52 0 10-3.92 10-8.75S15.52 2 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 0.5rem;
}

.contact-or {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #999;
    position: relative;
}

.contact-or::before,
.contact-or::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #ddd;
    vertical-align: middle;
    margin: 0 10px;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    font-size: 16px;
    /* Prevent zoom */
    font-family: var(--font-en);
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    /* Remove iOS rounded corners */
}

.btn-submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 1rem 0;
    width: 100%;
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #111;
    color: #666;
    padding: 2rem 0;
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.footer .address {
    margin-bottom: 0.5rem;
    font-family: var(--font-jp);
    /* Use JP font for address */
}

/* Desktop Overrides */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .section {
        padding: 8rem 0;
    }

    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .price-features {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .price-features li {
        width: auto;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .price-display-annual {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        white-space: nowrap;
    }

    .price-arrow {
        transform: none;
        margin: 0;
    }

    .price-display-annual .tax {
        display: inline;
        margin-top: 0;
        margin-left: 0.3rem;
    }

    .price-service-group {
        flex-direction: column;
        gap: 2rem;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .price-service-item--visit {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        align-items: center;
        padding: 3rem;
        text-align: left;
    }

    .price-service-item--visit .price-service-tag {
        grid-column: 1 / -1;
        justify-self: start;
        margin-bottom: 1rem;
    }

    .price-plans-wrapper {
        margin-bottom: 0;
        gap: 1.5rem;
    }

    .price-plan-single,
    .price-plan-annual {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .price-service-details {
        margin-top: 0;
        padding-left: 2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .price-service-item--closure {
        padding: 3rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .price-service-item--closure .price-service-tag {
        margin-bottom: 1.5rem;
    }

    .price-plan-closure {
        max-width: 700px;
        margin: 0 auto;
        font-size: 1.1rem;
    }

    .service-highlight-group {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
    }

    .service-highlight-card {
        width: auto;
    }



    .contact-inner {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-info {
        flex: 1;
        text-align: left;
    }

    .contact-info h3,
    .contact-info p {
        text-align: left;
    }

    .contact-form {
        flex: 1.5;
    }

    .tax {
        display: inline;
        margin-top: 0;
        margin-left: 1rem;
    }

    .desc-line {
        display: block;
    }
}