/* CSS Variables */
:root {
    --color-bg: #fdfcf0;
    /* Ecru */
    --color-text: #4a4a4a;
    /* Soft Black */
    --color-primary: #d3e0d3;
    /* Sage Green */
    --color-secondary: #e6e0d4;
    /* Beige */
    --color-accent: #e8d3d3;
    /* Muted Pink */
    --color-gray-pale: #f5f5f5;

    --font-heading: "Shippori Mincho", serif;
    --font-body: "Zen Maru Gothic", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: url('images/paper-texture.png');
    background-blend-mode: multiply;
    background-size: 400px;
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 20px;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

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

.nav a {
    font-size: 0.95rem;
}

.btn-contact {
    border: 1px solid var(--color-text);
    padding: 8px 16px;
    border-radius: 20px;
    background-color: transparent;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Hamburger menu active state (X shape) */
.menu-toggle.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    bottom: 11px;
    transform: rotate(-45deg);
}

/* Main Visual */
.main-visual {
    height: 90vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
    background-image: url('images/main_visual.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.main-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(253, 252, 240, 0.65); */
    /* Semi-transparent base color */
    /* backdrop-filter: blur(2px); */
    z-index: 1;
}

.mv-content {
    width: 100%;
    max-width: 1000px;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.catchcopy-sub {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    /* White outline (stroke) + Glow */
    /* White shadow in all directions */
    text-shadow:
        1px 1px 0 #fff, -1px -1px 0 #fff,
        -1px 1px 0 #fff, 1px -1px 0 #fff,
        1px 0 0 #fff, -1px 0 0 #fff,
        0 1px 0 #fff, 0 -1px 0 #fff,
        0 0 10px #fff, 0 0 20px #fff, 0 0 30px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    align-self: flex-start;
    /* Left alignment */
    margin-left: 5%;
    opacity: 0;
    animation: fadeSlideInLeft 1.5s ease-out forwards;
}

.catchcopy-main {
    font-size: 5rem;
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 600;
    color: #3a3a3a;
    /* White outline (stroke) + Glow */
    /* White shadow in all directions */
    text-shadow:
        1px 1px 0 #fff, -1px -1px 0 #fff,
        -1px 1px 0 #fff, 1px -1px 0 #fff,
        1px 0 0 #fff, -1px 0 0 #fff,
        0 1px 0 #fff, 0 -1px 0 #fff,
        0 0 10px #fff, 0 0 25px #fff, 0 0 40px rgba(255, 255, 255, 0.8);
    align-self: flex-start;
    /* Left alignment */
    margin-left: 5%;
    opacity: 0;
    animation: fadeSlideInLeft 1.5s ease-out 0.5s forwards;
    /* Delay start */
}

.message {
    font-size: 1.8rem;
    line-height: 2;
    margin-top: 20px;
    letter-spacing: 0.15rem;
    font-weight: 600;
    text-align: right;
    /* Right align text content */
    color: var(--color-text);
    /* White outline (stroke) + Glow */
    /* White shadow in all directions */
    text-shadow:
        1px 1px 0 #fff, -1px -1px 0 #fff,
        -1px 1px 0 #fff, 1px -1px 0 #fff,
        1px 0 0 #fff, -1px 0 0 #fff,
        0 1px 0 #fff, 0 -1px 0 #fff,
        0 0 10px #fff, 0 0 20px #fff, 0 0 30px rgba(255, 255, 255, 0.8);
    align-self: flex-end;
    /* Right alignment in container */
    margin-right: 5%;
    opacity: 0;
    animation: fadeSlideInRight 1.5s ease-out 2.0s forwards;
    /* Display after others */
}

@keyframes fadeSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Mobile Adjustments for Main Visual */
@media (max-width: 768px) {
    .catchcopy-sub {
        font-size: 1.2rem;
        margin-left: 0;
        align-self: center;
    }

    .catchcopy-main {
        font-size: 2.8rem;
        margin-right: 0;
        align-self: center;
        margin-bottom: 40px;
    }

    .message {
        font-size: 1.1rem;
    }
}

/* Removed .mv-image styles as they are no longer needed */

/* About */


.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    max-width: 400px;
}

.about-image img {
    border-radius: 8px;
    /* Slightly rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.about-text {
    width: 100%;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 2.2;
    text-align: left;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .about-image {
        flex: 1;
        max-width: none;
    }

    .about-text {
        flex: 1;
    }
}



/* About Video */
.about-video {
    /* background-color: var(--color-bg); */
    text-align: center;
}

.about-video-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-description {
    margin-bottom: 40px;
    line-height: 2.2;
    font-size: 1.05rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Greeting */
.greeting {
    background-color: #fff;
    text-align: center;
}

.greeting-content {
    max-width: 600px;
    margin: 0 auto;
}

.greeting-content p {
    margin-bottom: 30px;
}

.signer {
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Visual Separator */
.visual-separator {
    width: 100%;
    position: relative;
    line-height: 0;
}

.visual-separator img {
    width: 100%;
    height: auto;
    display: block;
}

.visual-separator::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    /* Whitish fade */
    z-index: 1;
}

/* Service */
.service {
    /* background-color: var(--color-bg); */
    position: relative;
    overflow: hidden;
}

/* Decorative background circle */
.service::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: var(--color-primary);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.service .container {
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: var(--color-text);
    line-height: 1.6;
}

.service-card>p {
    font-size: 1.05rem;
    line-height: 2.2;
    margin-bottom: 50px;
}

.usp-box {
    margin-top: 20px;
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    display: block;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Double border effect using ::after */
.usp-box::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid var(--color-primary);
    opacity: 0.5;
    pointer-events: none;
}

.usp-box h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #6d826d;
    /* Darker sage green */
    text-shadow: none;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.usp-box p {
    font-weight: normal;
    color: var(--color-text);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Gallery */
.gallery {
    background-color: #fff;
}

.gallery-desc {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

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

.gallery-img-placeholder {
    width: 100%;
    padding-top: 100%;
    /* Square aspect ratio */
    background-color: var(--color-secondary);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

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

.gallery-item p {
    font-size: 0.9rem;
}

/* Voice */
.voice {
    background-color: #fdf5f5;
    /* Very soft pink */
}

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

.voice-item {
    margin-bottom: 80px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: none;
}

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

.voice-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.voice-img-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.voice-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.voice-img-wrapper:hover img {
    transform: scale(1.05);
}

.img-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text);
    font-weight: 600;
}

.voice-arrow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color-accent);
}

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

.voice-text {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
    background: var(--color-gray-pale);
    padding: 20px;
    border-radius: 8px;
    position: relative;
}



.voice-meta {
    font-weight: bold;
    color: var(--color-text);
}

/* Guide */


.guide-list {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

.guide-list dl {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted var(--color-secondary);
    padding: 20px 0;
}

.guide-list dl:last-child {
    border-bottom: none;
}

.guide-list dt {
    font-weight: bold;
    color: var(--color-text);
}

/* Flow */
.flow {
    background-color: #fdf5f5;
}

.flow-list {
    max-width: 700px;
    margin: 0 auto;
}

.flow-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    gap: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.flow-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-secondary);
}

.flow-num {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: bold;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

.flow-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.flow-text p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.flow-arrow {
    text-align: center;
    padding: 20px 0;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* FAQ */
.faq {
    background-color: #fff;
}

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

.faq-item {
    margin-bottom: 30px;
    background-color: #fcfaf2;
    /* Kinari */
    padding: 30px;
    border-radius: 12px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
}

.faq-question::before {
    content: "Q.";
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-right: 10px;
}

.faq-answer {
    padding-left: 35px;
    color: #666;
}

/* Fixed Background Separator */
.fixed-bg-separator {
    width: 100%;
    height: 400px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('images/bg01.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Info */
.info {
    background-color: #eff5ef;
    /* Soft gentle green */
}

.info-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 50px;
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
}

.info-content dl {
    display: flex;
    margin-bottom: 20px;
}

.info-content dt {
    width: 100px;
    font-weight: bold;
    flex-shrink: 0;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    background-color: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    text-align: center;
    background-color: #fff;
    padding: 100px 0;
}

.contact-lead {
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(232, 211, 211, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 211, 211, 0.6);
    opacity: 1;
}

.btn-secondary {
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: var(--color-text);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1100px) {
    .header-inner {
        width: 90%;
    }

    .menu-toggle {
        display: block;
        z-index: 200;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        padding-top: 80px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-visual {
        height: 100vh;
        /* Make sure it takes full height on mobile */
        padding-top: 60px;
    }

    .mv-content {
        padding: 50px 20px;
    }

    .message {
        margin-bottom: 30px;
    }

    .catchcopy-main {
        font-size: 2.5rem;
    }

    .voice-images {
        flex-direction: column;
        gap: 20px;
    }

    .voice-arrow {
        transform: none;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 15px solid var(--color-accent);
        border-bottom: none;
        width: 0;
        height: 0;
    }

    .info-content dl {
        flex-direction: column;
    }

    .info-content dt {
        margin-bottom: 5px;
    }

    .flow-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px;
    }

    .flow-item::before {
        width: 100%;
        height: 6px;
    }

    .flow-num {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {

    .greeting-content p,
    .service-card p,
    .voice-text,
    .flow-text p {
        text-align: left;
    }

    .greeting-content .signer {
        text-align: center;
    }

    .greeting-content p:not(.signer) br {
        display: none;
    }

    .guide-list dt {
        white-space: nowrap;
        margin-right: 1em;
    }

    .fixed-bg-separator {
        background-attachment: scroll;
        height: 250px;
    }
}