/* =========================================================================
   Variables & Reset
   ========================================================================= */
:root {
    --color-dark: #1a1a1a;
    --color-dark-gray: #333333;
    --color-light-gray: #f5f5f5;
    --color-border: #e0e0e0;
    --color-white: #ffffff;
    --color-accent: #6b705c;
    --font-main: 'Noto Sans JP', sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-dark-gray);
    background-color: var(--color-white);
    line-height: 1.8;
    letter-spacing: 0.08em;
    font-size: 15px;
    font-weight: 300;
}

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

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4 {
    font-weight: 500;
    color: var(--color-dark);
}

h2 {
    font-family: 'Noto Serif JP', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.sub-heading {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

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

.sub-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: currentColor;
}

.mt-30 {
    margin-top: 30px;
}

/* Buttons */
.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-dark);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

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

.btn-solid,
.btn-outline {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    min-width: 200px;
    text-align: center;
}

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

.btn-solid.text-dark {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-solid:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-outline {
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.btn-outline.text-white {
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline.text-white:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 160;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 40px;
}

.logo {
    padding: 15px 0;
}

.logo img {
    height: 35px;
}

.global-nav {
    margin-left: auto;
    margin-right: 40px;
}

.global-nav ul {
    display: flex;
    gap: 40px;
}

.global-nav a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    position: relative;
}

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

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

.header .btn-contact {
    height: 100%;
    padding: 25px 40px;
}

/* ハンバーガーボタン（3本線） */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    margin-right: 20px;
    position: relative;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.3s ease, top 0.35s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* 開いた状態：X アニメーション */
.nav-open .hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}
.nav-open .hamburger span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 992px) {
    .header-inner {
        padding-left: 20px;
    }

    .header .btn-contact {
        display: none;
    }

    .hamburger {
        display: flex;
        align-items: center;
        margin: 18px 0;
        z-index: 200;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* グローバルナビはSPでは非表示のまま */
    .global-nav {
        display: none;
    }
}

/* =========================================================================
   Mobile Nav Overlay
   ========================================================================= */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 150;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 40px;
}

.mobile-nav-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.mobile-nav-inner a {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-dark);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-inner a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

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

/* =========================================================================
   Hero / Swiper Slider
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-light-gray);
    overflow: hidden;
}

.hero .swiper {
    width: 100%;
    height: 100%;
}

.hero .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.swiper-slide-active .hero-image img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text-box {
    max-width: 500px;
    padding-top: 80px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    font-family: 'Noto Serif JP', serif;
    background: linear-gradient(to right, var(--color-dark), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
}

.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 2.2;
    color: var(--color-dark-gray);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.8s;
}

.swiper-slide-active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-image {
        width: 100%;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.3) 100%);
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-text-box {
        margin-top: 150px;
        background: rgba(255, 255, 255, 0.9);
        padding: 40px;
        border-radius: 4px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
    padding: 0 20px;
    }    
    
    .hero-text-box {
        margin-top: 50px;
        padding: 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
    margin-bottom: 20px;
    }
}

/* =========================================================================
   Concept (Grid Layout)
   ========================================================================= */
.concept {
    padding: 120px 0;
}

.grid-layout {
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
}

.grid-text {
    flex: 0 0 45%;
    padding: 60px 80px 60px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-text h2 {
    font-size: 2.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.grid-text .text-content p {
    margin-bottom: 20px;
}

.grid-image {
    flex: 0 0 55%;
    max-height: 550px;
}

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

@media (max-width: 1024px) {
    .grid-layout {
        flex-direction: column;
    }

    .grid-text {
        padding: 60px 40px;
    }

    .grid-image {
        min-height: 400px;
    }

    .grid-text h2 {
        font-size: 1.8rem;
    }
}
@media (max-width: 576px) {
    .concept {
    padding: 50px 0;
    }

    .grid-text {
        padding: 20px 20px;
    }

    .grid-image {
    min-height: 300px;
}
}
/* =========================================================================
   CEO Message
   ========================================================================= */
.message {
    padding: 120px 0;
    background-color: var(--color-light-gray);
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 60px;
    line-height: 1.4;
}

.message-grid {
    display: flex;
    gap: 80px;
    align-items: center;
    flex-direction: row-reverse;
}

.message-image {
    flex: 0 0 40%;
    position: relative;
}

.message-image .image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
}

.message-image img {
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.05);
    filter: grayscale(20%);
}

.message-text {
    flex: 1;
}

.message-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.message-text p {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .message-grid {
        flex-direction: column;
        gap: 40px;
    }

    .message-image {
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* =========================================================================
   About Us & Company Profile
   ========================================================================= */
.about {
    padding: 120px 0;
}

/* Page Header */
/*.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 66px;
}

.page-header .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

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

.page-title {
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

/* Company Table */
.company-profile {
    padding: 100px 0;
    background-color: var(--color-white);
}

.profile-inner {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 60px;
    border: 1px solid var(--color-border);
}

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

.company-table th,
.company-table td {
    padding: 30px 20px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

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

.company-table th {
    width: 25%;
    font-weight: 500;
    color: var(--color-dark);
    text-align: left;
    white-space: nowrap;
}

.company-table td {
    color: var(--color-dark-gray);
    line-height: 2;
}

.link-underline {
    position: relative;
    color: var(--color-dark);
    font-weight: 500;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-dark);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.link-underline:hover::after {
    transform: scaleX(0);
}

.map-container {
    margin-top: 20px;
    width: 100%;
    background-color: var(--color-light-gray);
}

@media (max-width: 768px) {
    .profile-inner {
        padding: 30px 20px;
    }

    .company-table,
    .company-table tbody,
    .company-table tr,
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 10px;
        border-bottom: none;
        color: var(--color-accent);
        font-size: 0.9em;
        letter-spacing: 0.1em;
    }

    .company-table td {
        padding-top: 0;
        padding-bottom: 30px;
    }

    .company-table tr:last-child td {
        padding-bottom: 0;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-header {
        height: 300px;
    }
}

/* =========================================================================
   Contact Page
   ========================================================================= */
.contact-page {
    padding: 100px 0;
    max-width: 900px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-dark-gray);
    line-height: 2;
}

.contact-direct {
    background-color: var(--color-light-gray);
    padding: 40px;
    margin-top: 40px;
    border-radius: 4px;
}

.contact-direct h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-direct .phone-number {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-wrapper {
    background-color: var(--color-white);
    padding: 60px;
    border: 1px solid var(--color-border);
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group.required .form-label::after {
    content: '必須';
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #d9534f;
    color: white;
    font-size: 0.75rem;
    border-radius: 2px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-dark-gray);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(98, 122, 102, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-dark-gray);
}

/* Contact Form 7 Styles */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-dark-gray);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(98, 122, 102, 0.1);
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 16px 60px;
    background-color: var(--color-dark);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--color-accent);
}

.wpcf7 p {
    margin-bottom: 25px;
}

.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-dark);
}

@media (max-width: 576px) {
    .form-wrapper {
        padding: 30px 20px;
    }
    .form-control.wpcf7-checkbox {
        padding: 0;
        border: none;
    }
    .wpcf7-list-item {
       display: block;
    }
}

/* =========================================================================
   About Grid
   ========================================================================= */
.about-grid {
    display: flex;
    gap: 60px;
}

.about-info {
    flex: 0 0 40%;
}

.about-lead {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-dark);
    line-height: 1.8;
}

.about-info p {
    margin-bottom: 20px;
}

.feature-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-index {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-light-gray);
    line-height: 1;
    z-index: 0;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }

    .feature-card {
        padding: 30px;
    }
}

/* =========================================================================
   Blog (Top Page Section)
   ========================================================================= */
.blog-home {
    padding: 120px 0;
    background-color: var(--color-light-gray);
}

.blog-home .section-header {
    text-align: left;
    margin-bottom: 60px;
}

.blog-home .section-title {
    font-size: 2.4rem;
    line-height: 1.4;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.blog-item {
    border-bottom: 1px solid var(--color-border);
}

.blog-link {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    background-color: var(--color-white);
    transform: translateX(10px);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 250px;
    flex-shrink: 0;
}

.blog-meta time {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    letter-spacing: 0.1em;
}

.blog-category {
    font-size: 0.75rem;
    padding: 5px 12px;
    background-color: var(--color-accent);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.blog-link:hover .blog-category {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0;
    font-family: var(--font-main);
}

@media (max-width: 768px) {
    .blog-home .section-header {
        text-align: center;
    }

    .blog-home .section-title {
        font-size: 1.8rem;
    }

    .blog-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px 10px;
    }

    .blog-item:hover .blog-link {
        transform: translateX(0);
    }
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta {
    background-color: var(--color-accent);
    padding: 100px 40px;
    text-align: center;
    background-image: linear-gradient(rgba(92, 113, 94, 0.85), rgba(92, 113, 94, 0.85)), url('../images/cta-bg-img.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.4rem;
    color: var(--color-white);
    margin: 20px 0 30px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

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

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .btn-solid,
    .btn-outline {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    height: 35px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-bottom: 15px;
}

.footer-brand .email {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-col h4 {
    color: var(--color-white);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
}

.link-col ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.link-col a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
}

/* =========================================================================
   Animations
   ========================================================================= */
.js-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-fade-up.is-active {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* =========================================================================
   Blog List Pages
   ========================================================================= */
.blog-header, .page-header {
    background-color: var(--color-light-gray);
    padding: 140px 0 100px;
    text-align: center;
}

.blog-header-en {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.blog-header-title, .page-title {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    font-family: 'Noto Serif JP', serif;
}

.blog-list-section {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 40px;
}

.blog-card {
    display: block;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.blog-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-light-gray);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 30px;
}

.blog-card .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--color-dark-gray);
    width: auto;
}

.blog-card .blog-category {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 15px;
}

.blog-card .blog-title {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================================
   Blog Single Page
   ========================================================================= */
.blog-single {
    padding: 160px 0 100px;
}

.blog-single-header {
    margin-bottom: 50px;
    text-align: center;
}

.blog-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.blog-single-title {
    font-size: 2.2rem;
    line-height: 1.5;
    font-family: 'Noto Serif JP', serif;
    max-width: 900px;
    margin: 0 auto;
}

.blog-main-image {
    width: 100%;
    max-width: 100%;
    height: 80vh;
    min-height: 400px;
    object-fit: cover;
    margin-bottom: 60px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 2.2;
}

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

.blog-content h2 {
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.blog-content img {
    margin: 40px 0;
    width: 100%;
    height: auto;
}

.blog-back {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .blog-header {
        padding: 100px 0 60px;
    }

    .blog-header-en {
        font-size: 0.75rem;
    }

    .blog-header-title {
        font-size: 2rem;
    }

    .blog-single {
        padding: 130px 0 80px;
    }

    .blog-single-title {
        font-size: 1.6rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-main-image {
        height: 40vh;
        min-height: 250px;
        margin-bottom: 40px;
    }
}

/* =========================================================================
   Works Archive
   ========================================================================= */
.works-list-section {
    padding: 100px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 40px;
}

.works-card {
    display: block;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.works-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.works-card-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: var(--color-light-gray);
}

.works-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.works-card-body {
    padding: 30px;
}

.works-card-title {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    color: var(--color-dark);
}

.works-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .works-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .works-card-img {
        height: 240px;
    }
}

/* =========================================================================
   Works Single
   ========================================================================= */
.works-single {
    padding: 160px 0 100px;
}

.works-single-header {
    margin-bottom: 50px;
    text-align: center;
}

.works-single-title {
    font-size: 2.2rem;
    line-height: 1.5;
    font-family: 'Noto Serif JP', serif;
    max-width: 900px;
    margin: 0 auto;
}

/* 施工事例 メタ情報（お引き渡し・延床面積） */
.works-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.works-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 32px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    min-width: 160px;
}

.works-meta-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.works-meta-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    letter-spacing: 0.05em;
}

@media (max-width: 576px) {
    .works-meta {
        gap: 16px;
    }

    .works-meta-item {
        padding: 12px 20px;
        min-width: 130px;
    }
}

.works-main-image {
    width: 100%;
    max-width: 100%;
    /*height: 60vh;*/
    min-height: 400px;
    object-fit: cover;
    margin-bottom: 60px;
}

.works-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 2.2;
}

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

.works-gallery {
    max-width: 1000px;
    margin: 60px auto 0;
}

.works-gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.works-back {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .works-single {
        padding: 130px 0 80px;
    }

    .works-single-title {
        font-size: 1.6rem;
    }

    .works-main-image {
        height: 40vh;
        min-height: 250px;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 250px;
    }
}
/*
@media (max-width: 576px) {
    .works-content .is-layout-flex {
        display: grid;
    }

    .works-content .is-layout-flex img {
        width: 100%;
        margin-bottom: 15px;
    }     
}*/

/* =========================================================================
   404 Page
   ========================================================================= */
.error-404 {
    padding: 200px 0 150px;
    text-align: center;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-light-gray);
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-404 p {
    margin-bottom: 40px;
    color: var(--color-dark-gray);
}

/* =========================================================================
   Pagination
   ========================================================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--color-dark);
}

/* =========================================================================
   WordPress Default Classes
   ========================================================================= */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-dark-gray);
    margin-top: 5px;
    text-align: center;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}