:root {
    --bg-color: #F8F7F5;
    /* Light beige/warm gray background */
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --text-light: #767676;
    --accent-color: #4C7DAD;
    /* Muted blue from visual */
    --accent-hover: #3a638c;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-brand: 'Noto Sans JP', sans-serif;
    --section-spacing: 140px;
    --container-width: 960px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 2.0;
    font-size: 15px;
    letter-spacing: 0.05em;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

img {
    max-width: 100%;
}

.container {
    width: 88%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* Header */
.site-header {
    padding: 30px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: none;
    padding-left: 20px;
}

.logo {
    font-family: var(--font-brand);
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 150px;
    width: auto;
    max-width: 250px;
}

.site-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.1em;
}

/* Headings & Section Common */
.section {
    padding-bottom: var(--section-spacing);
}

.section-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.8rem;
    color: #cb9b6d;
    /* Gold/Beige accent for subtitle */
    letter-spacing: 0.1em;
    margin-bottom: 60px;
}

/* Hero Section */
.hero-section {
    min-height: 65vh;
    position: relative;
    padding-top: 150px;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(50% + 480px);
    /* Align with container max-width */
    height: 90%;
    background-color: #fff;
    border-bottom-left-radius: 100px;
    z-index: -1;
    max-width: 90%;
    /* Prevent overflow on smaller screens */
}

.hero-content {
    position: relative;
    /* Align with container left edge */
    padding-left: 0;
    margin-top: 100px;
}

.vertical-text {
    writing-mode: vertical-rl;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    color: #cb9b6d;
    letter-spacing: 0.3em;
}

.hero-main-text h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 60px;
    /* Space for vertical text */
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    /* Align with H1 */
    padding-left: 60px;
}

/* ABOUT */
.about-card {
    background-color: var(--card-bg);
    padding: 80px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.about-name {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 24px;
}

/* NOTE */
.note-section {
    padding-top: 50px;
}

.btn-note {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-top: 20px;
}

.btn-note .arrow {
    margin-left: 10px;
}

/* SERVICE */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item {
    background-color: var(--card-bg);
    padding: 50px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    border-radius: 4px;
    position: relative;
    /* transition: transform 0.3s; */
}

/* .service-item:hover { transform: translateY(-5px); } */

.service-number {
    background-color: #333;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    width: 320px;
    /* テキスト開始位置を02に合わせて調整 */
}

.service-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.service-body {
    flex: 1;
    min-width: 0;
    /* フレックスアイテムのはみ出し防止 */
}

.service-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-body p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* CONTACT */
.contact-section {
    padding-bottom: 80px;
}

.btn-contact {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 80px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 25px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: var(--accent-hover);
}

.btn-contact .sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.8;
    font-family: var(--font-body);
}

/* Footer */
.footer-nav {
    margin-bottom: 30px;
}

.footer-nav a {
    margin: 0 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    max-width: 170px;
}

/* Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    /* JSで制御するため初期状態は表示 */
    opacity: 1;
    transform: none;
    transition: 0.8s;
}

.fade-in-up.js-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
    animation-delay: 0.6s;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 100px;
    }

    .container {
        width: 92%;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        width: 90%;
        padding-left: 0;
        justify-content: space-between;
    }

    .logo-img {
        margin-left: 20px;
        height: 100px;
        max-width: 180px;
    }

    .hero-bg-shape {
        width: 100%;
        height: 70%;
        max-width: 100%;
    }

    .hero-content {
        padding-left: 0;
        margin-top: 60px;
    }

    .hero-main-text h1,
    .hero-lead {
        padding-left: 40px;
    }

    .vertical-text {
        left: 0;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    .container {
        width: 90%;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .site-header {
        position: relative;
        padding: 20px 0;
    }

    .header-inner {
        padding-left: 20px;
        justify-content: flex-start;
    }

    .logo-img {
        margin-left: 0;
        height: 100px;
        max-width: 150px;
    }

    .site-nav {
        display: none;
    }

    /* Mobile Menu omitted for simplicity */

    .hero-bg-shape {
        width: 100%;
        height: 85%;
        max-width: 100%;
        border-radius: 0 0 30px 30px;
    }

    .hero-section {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-content {
        /* Align left on SP as requested */
        margin-top: 40px;
        padding-left: 0;
        text-align: left;
    }

    .hero-main-text h1,
    .hero-lead {
        padding-left: 0;
        /* Reset for mobile */
    }

    .hero-main-text h1 {
        font-size: 1.8rem;
    }

    .vertical-text {
        display: none;
    }

    .about-card {
        padding: 40px 20px;
    }

    .service-item {
        flex-direction: column;
        /* Stack number and content */
        gap: 20px;
        padding: 30px;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: auto;
        /* モバイルでは固定幅を解除 */
    }

    .service-number {
        font-size: 0.8rem;
    }

    .btn-contact {
        font-size: 1.4rem;
        padding: 20px;
    }
}

/* Service Plan Block */
.service-plan {
    margin-top: 25px;
    padding: 20px;
    background-color: #f0f2f5;
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.plan-name {
    display: block;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.plan-price {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.9rem !important;
    color: var(--text-light);
    margin-bottom: 0 !important;
}

.about-lead {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 30px;
}

/* Contact Page Form Styles */
.contact-page-section {
    padding-top: 150px;
    padding-bottom: 80px;
}

.page-content-card {
    background-color: #fff;
    padding: 60px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro-link {
    text-align: center;
    margin-bottom: 40px;
}

.contact-intro-link a {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-form-row {
    margin-bottom: 30px;
}

.contact-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-required {
    background-color: #4C7DAD;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 400;
    vertical-align: middle;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
}

textarea.wpcf7-form-control {
    height: 200px;
    resize: vertical;
}

.form-footer {
    text-align: center;
    margin-top: 40px;
}

.privacy-check {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.privacy-check a {
    text-decoration: underline;
    color: var(--text-color);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.wpcf7-submit {
    background-color: #4C7DAD;
    color: #fff;
    padding: 15px 60px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 300px;
}

.wpcf7-submit:hover {
    background-color: var(--accent-hover);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .contact-page-section {
        padding-top: 100px;
    }

    .page-content-card {
        padding: 40px 20px;
    }
}

/* Privacy Policy Styles */
.privacy-section {
    padding-top: 150px;
    padding-bottom: 80px;
}

.privacy-content {
    background-color: #fff;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    max-width: 800px;
    margin: 0 auto;
}

.privacy-header {
    text-align: left;
    margin-bottom: 50px;
}

.privacy-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.privacy-subtitle {
    font-size: 0.9rem;
    color: #cb9b6d;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.privacy-body h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.privacy-body p {
    margin-bottom: 1.5em;
    color: var(--text-color);
    line-height: 1.8;
}

.privacy-body ul {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.privacy-body li {
    margin-bottom: 0.5em;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .privacy-section {
        padding-top: 100px;
    }

    .privacy-content {
        padding: 30px 20px;
    }

    .privacy-title {
        font-size: 1.8rem;
    }

    .privacy-body h3 {
        font-size: 1.2rem;
    }
}