/* ===== General & Variables ===== */
:root {
    --bg-color: #ffffff;
    --bg-light-color: #f8f7f5;
    --text-color: #333333;
    --primary-color: #bfaea0;
    /* くすみベージュ */
    --secondary-color: #8c8c8c;
    --font-ja: 'M PLUS Rounded 1c', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-ja);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light-color);
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    font-family: var(--font-ja);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ===== Header ===== */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-en);
    color: var(--text-color);
    font-weight: 700;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

/* ===== 1. First View ===== */
.first-view {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* TODO: ご自身の写真に差し替えてください */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1507525428034-b723a9ce6890?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
}

.first-view-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== 2. About ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text .mission {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* ===== 3. Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ===== 4. Works ===== */
.works-tabs {
    text-align: center;
    margin-bottom: 40px;
}

.tab-link {
    background: none;
    border: none;
    font-family: var(--font-en);
    font-size: 1.2rem;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--secondary-color);
    position: relative;
}

.tab-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.works-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.works-gallery img:hover {
    transform: scale(1.05);
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-item {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.work-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.work-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
}

.link-arrow:after {
    content: ' →';
}

/* ===== 5. Voices ===== */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.voice-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.voice-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
}

.voice-card p {
    margin-bottom: 20px;
}

.voice-card cite {
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
    display: block;
}

/* ===== 6. Media ===== */
.media-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.sns-links {
    text-align: center;
    margin-bottom: 50px;
}

.sns-links a {
    font-size: 2.5rem;
    margin: 0 15px;
    color: var(--secondary-color);
}

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

.latest-posts {
    max-width: 700px;
    margin: 0 auto;
}

.latest-posts h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.latest-posts i {
    color: var(--primary-color);
}

.post-card {
    background-color: var(--bg-light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.post-card .post-date {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 10px;
}

/* ===== 7. Contact ===== */
.contact-methods {
    text-align: center;
    margin-bottom: 40px;
}

.btn-line {
    background-color: #06C755;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.btn-line:hover {
    background-color: #05b14c;
    color: #fff;
}

.btn-line i {
    margin-right: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-ja);
    font-size: 1rem;
}

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

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.faq-link {
    text-align: center;
    margin-top: 30px;
}

.faq-link i {
    font-size: 0.8em;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Header & Nav for Mobile */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        display: flex;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        z-index: 1001;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

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

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

    /* First View */
    .first-view-content h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 80%;
    }

    /* About */
    .about-content {
        flex-direction: column;
    }

    /* Works */
    .work-item {
        flex-direction: column;
    }

    .work-item img {
        width: 100%;
        height: 220px;
    }
}


/* ===== style.cssの一番下に追加 ===== */

/* ===== Static Pages (Privacy, Tokushoho) ===== */
.static-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: calc(100vh - 61px);
    /* フッターの高さ(概算)を引いて、コンテンツが少なくてもフッターが浮かないようにする */
    background-color: var(--bg-color);
}

.static-page .container {
    max-width: 800px;
}

.static-page h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-ja);
    color: var(--text-color);
}

.static-page h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light-color);
    font-family: var(--font-ja);
}

.static-page p,
.static-page li {
    margin-bottom: 1em;
}

.static-page ul {
    list-style: disc;
    padding-left: 25px;
}

/* for Tokushoho page table style */
.tokushoho-table {
    border-top: 1px solid #e0e0e0;
}

.tokushoho-table-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tokushoho-table dt {
    background-color: var(--bg-light-color);
    font-weight: 700;
    padding: 20px;
    width: 30%;
    min-width: 150px;
}

.tokushoho-table dd {
    padding: 20px;
    width: 70%;
    margin-left: 0;
}

.tokushoho-table a {
    text-decoration: underline;
}

/* ===== Footer Links ===== */
.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}


/* ===== Responsive for Static Pages ===== */
@media (max-width: 768px) {
    .static-page h1 {
        font-size: 1.8rem;
    }

    .tokushoho-table-row {
        flex-direction: column;
    }

    .tokushoho-table dt,
    .tokushoho-table dd {
        width: 100%;
    }

    .tokushoho-table dt {
        border-bottom: 1px dashed #e0e0e0;
    }
}
