/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --main-bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #007BFF;
    --card-bg-color: #1a1a1a;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ==========================================
   Link Styles
   ========================================== */
a {
    color: #b0b0b0; /* 見やすいグレー */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d0d0d0; /* ホバー時は少し明るく */
}

a:visited {
    color: #a0a0a0; /* 訪問済みリンク */
}

/* ==========================================
   Header
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    z-index: 100;
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    transition: background-color 0.5s ease, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

header.hide-header {
    transform: translateY(-100%);
    opacity: 0;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    z-index: 101;
    transition: color 0.5s ease;
    margin: 0;
    padding: 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 120px;
    vertical-align: middle;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

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

.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #ffffff !important;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

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

/* ==========================================
   Buttons
   ========================================== */
.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    color: var(--text-color);
}

.cta-button-large {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.cta-button-large:hover {
    transform: scale(1.05);
}

/* ==========================================
   Layout Sections
   ========================================== */
.full-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ==========================================
   Background Media
   ========================================== */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
    display: none;
    max-width: 100vw;
    overflow: hidden;
}

.content {
    text-align: center;
    padding: 2rem;
}

.text-section {
    background-color: var(--main-bg-color);
}

/* ==========================================
   Typography
   ========================================== */
h1, h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 5rem;
    line-height: 1.8;
}

.content h2 {
    font-size: 5rem;
    line-height: 1.8;
    padding-left: 0;
    padding-right: 0;
}

.logo h1 {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.4;
}

p {
    font-size: 1.3rem;
    line-height: 1.9;
}

/* ==========================================
   Hero Section Components
   ========================================== */
#vision .content {
    padding-left: 0;
    padding-right: 0;
}

.hero-news {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    max-width: 300px;
    z-index: 10;
}

.hero-news .news-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-news .news-date {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 400;
}

.hero-news .news-title {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.hero-news .news-title a {
    color: #ffffff; /* ニュースタイトルのリンクは白 */
    text-decoration: none;
}

.hero-news .news-title a:hover {
    color: #d0d0d0; /* ホバー時は少し暗く */
}

/* ==========================================
   Horizontal Scroll Section (Services)
   ========================================== */
.horizontal-scroll-section {
    height: 200vh;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.horizontal-content {
    display: flex;
    height: 100%;
    width: 400%; /* カード4枚分 */
    align-items: center;
    padding: 0;
}

.card {
    flex: 0 0 20%; /* 画面幅の20% */
    background-color: var(--card-bg-color);
    margin: 0 2.5%;
    border-radius: 15px;
    height: 50vh;
    display: flex;
    padding: 0;
    overflow: hidden;
}

.card-content {
    flex: 1 1 60%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-image {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 1rem;
}

.card ul a {
    color: #b0b0b0; /* 見やすいグレー */
    text-decoration: underline;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.card ul a:hover {
    color: #d0d0d0; /* ホバー時は少し明るく */
    letter-spacing: 0.5px; /* 文字間隔を少し広げるアクションを追加 */
}

.card ul {
    padding-left: 0;
    margin: 0;
    list-style-position: inside;
}

.card ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* ==========================================
   Contact Section
   ========================================== */
#contact .content {
    padding-left: 0;
    padding-right: 0;
}

#contact {
    background-color: transparent !important;
    position: relative;
}

#contact .background-image {
    z-index: -1;
    opacity: 0.5;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
}

#contact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

/* Contact section - allow height to expand beyond 100vh */
#contact.full-screen {
    height: auto;
}

#contact .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact footer {
    position: relative;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

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

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

/* ==========================================
   Blog Section
   ========================================== */
#blog {
    padding: 10rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
}

.blog-item {
    display: block;
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
    background-color: #2a2a2a;
}

.blog-date {
    font-size: 0.9rem;
    color: #aaa;
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.blog-link {
    margin-top: 4rem;
    text-align: center;
}

.blog-list-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.blog-list-link:hover {
    background-color: var(--text-color);
    color: #000;
    transform: scale(1.05);
}

/* ==========================================
   Clients Section
   ========================================== */
#clients {
    padding: 10rem 0;
    overflow: hidden;
}

#clients h2 {
    margin-bottom: 4rem;
}

.client-logo-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.client-logo-scroll {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 200%; /* 2セット分 */
    animation: client-logo-scroll-left 30s linear infinite;
}



.client-logo-item {
    flex: 0 0 auto;
    background-color: transparent;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    min-width: 250px;
    margin: 0 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ccc;
    transition: opacity 0.3s ease;
}

.client-logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@keyframes client-logo-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================
   About Us Section
   ========================================== */
#about-us {
    padding: 10rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Adjust grid ratio for wider map */
    gap: 5rem; /* Increase gap */
    margin-top: 4rem;
    text-align: left;
    align-items: center;
}

.about-info {
    padding-left: 2rem; /* Add padding to the left */
}

.about-info dl {
    margin: 0;
}

.about-info dt {
    font-weight: bold;
    margin-top: 1.5rem;
    color: var(--accent-color);
}

.about-info dd {
    margin-left: 0;
    line-height: 1.8;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #666;
    border-radius: 10px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* ==========================================
   Value Section
   ========================================== */
.value-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item h3 {
    margin: 0 0 0 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
}

.value-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.reason-list {
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
    gap: 3rem;
    /* padding-left: calc(3em * 1); /* デザインの文字幅分の余白 */
}

.reason-item {
    display: block;
    position: relative;
    padding-left: calc(-3em * 3); /* デザインの文字幅分左にずらす */
    margin: 0;
    white-space: nowrap; /* 改行を防ぐ */
    font-size: 3em;
    text-align: center;
}

.reason-item strong {
    display: inline-block;
    /* width: 3em; /* 文字数分の幅を確保 */
}

.description {
    white-space: normal; /* 説明文は改行を許可 */
    display: inline-block;
    padding-left: calc(3em * 2 - 3em); /* デザインの位置から現在の文字数を引いた分 */
    font-size: 0.5em;
}

.pc-only {
    display: inline;
}

.sp-only {
    display: none;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    padding: 0rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ==========================================
   Responsive Styles (Mobile)
   ========================================== */
@media (max-width: 768px) {
    /* Base mobile layout */
    body,
    main,
    section,
    .full-screen {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Contact section - disable full-screen height */
    #contact.full-screen {
        height: auto !important;
        min-height: auto !important;
    }

    /* Hero news (mobile) */
    .hero-news {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        padding: 0.8rem;
    }
    
    .hero-news .news-date {
        font-size: 0.7rem;
    }
    
    .hero-news .news-title {
        font-size: 0.8rem;
    }

    /* Background media (mobile) */
    .background-image,
    .background-video {
        display: none !important;
    }

    .background-image {
        display: block !important;
        z-index: -1;
        max-width: 100vw;
        width: 100vw;
        left: 0;
        right: 0;
        overflow: hidden;
    }

    /* Content areas (mobile) */
    .content,
    .card,
    .card-content,
    .card-image {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Typography (mobile) */
    h1, h2 {
        font-size: 2rem;
    }

    h3,
    .content h3 {
        font-size: 1.4rem;
        line-height: 1.2;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    p {
        font-size: 1rem;
    }

    .content h2 {
        font-size: 2.4rem;
        line-height: 1.4;
    }

    .card h3 {
        font-size: 2rem;
    }
    
    header {
        padding: 1rem 1.5rem;
        transition: background-color 0.5s ease, transform 0.3s ease-in-out;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 30px;
        max-width: 100px;
        vertical-align: middle;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    nav.is-active {
        transform: translateX(0);
    }

    nav a {
        margin: 2rem 0;
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
    }

    /* Header mobile (navigation) */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    nav.is-active {
        transform: translateX(0);
    }

    nav a {
        margin: 2rem 0;
        font-size: 1.5rem;
    }

    /* Services section (mobile) */
    .horizontal-scroll-section {
        height: auto;
    }

    .sticky-container {
        position: static;
        height: auto;
    }

    .horizontal-content {
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 5rem 0;
    }

    .card {
        width: 90%;
        margin: 1.5rem auto;
        height: auto;
        flex: none;
        flex-direction: column;
    }

    .card-content {
        flex: none;
        padding: 2rem;
    }

    .card-image {
        flex: none;
        width: 100%;
        height: 220px;
        order: -1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .card ul {
        padding-left: 0;
        margin: 0;
        list-style-position: inside;
    }

    .card ul li {
        margin-bottom: 0.4rem;
        padding-left: 0;
    }

    /* Clients section (mobile) */
    #clients {
        padding: 5rem 0;
    }

    #clients h2 {
        margin-bottom: 3rem;
        font-size: 2.4rem;
    }

    .client-logo-track {
        padding: 1rem 0;
    }

    .client-logo-scroll {
        animation: client-logo-scroll-left 20s linear infinite;
    }

    .client-logo-item {
        height: 70px;
        min-width: 130px;
        margin: 0 0.5rem;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Blog section (mobile) */
    #blog {
        padding: 5rem 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About Us section (mobile) */
    #about-us {
        padding: 5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-placeholder {
        height: 300px;
    }

    /* Mobile utilities */
    .sp-br {
        display: block;
        height: 0;
        content: "";
    }

    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }

    /* Value section (mobile) */
    .value-grid {
        flex-direction: column;
        max-width: 100%;
    }

    .value-item {
        text-align: center;
        padding: 1rem;
    }

    .value-item h3 {
        font-size: 1.4rem;
    }

    /* Reason list (mobile) */
    .reason-list {
        padding-left: 0;
        gap: 2rem;
        width: 100%;
    }

    .reason-item {
        padding-left: 0;
        font-size: 1.5em;
        white-space: normal;
        line-height: 1.4;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        position: static; /* position: relativeをリセット */
    }

    .reason-item strong {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .description {
        display: block;
        padding-left: 0;
        margin-top: 0.5rem;
        font-size: 0.56em;
        line-height: 1.6;
        text-align: center;
        width: 100%;
    }

    /* Detail pages (mobile) */
    .detail-content {
        gap: 2rem;
        margin: 3rem 0;
    }

    .detail-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .detail-item h3 {
        font-size: 1.4rem;
    }

    .detail-item p {
        font-size: 1rem;
    }

    .back-button {
        margin-top: 2rem;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Footer (mobile) */
    footer {
        padding: 0rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}

/* ==========================================
   Light Theme
   ========================================== */
body.light-theme {
    --main-bg-color: #ffffff;
    --text-color: #121212;
    --card-bg-color: #f4f4f4;
    --accent-color: #0056b3;
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.7);
}

body.light-theme .logo,
body.light-theme nav a {
    color: var(--text-color);
}

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

body.light-theme a {
    color: #555555; /* ライトテーマでは暗めのグレー */
}

body.light-theme a:hover {
    color: #333333; /* ホバー時はさらに暗く */
}

body.light-theme a:visited {
    color: #666666; /* 訪問済みリンク */
}

body.light-theme .card ul a {
    color: #555555; /* Our Servicesセクションのリンクもグレー */
}

body.light-theme .card ul a:hover {
    color: #333333; /* ホバー時はさらに暗く */
}

body.light-theme .menu-toggle span {
    background-color: var(--text-color);
}

body.light-theme .blog-item {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-theme .blog-item:hover {
    background-color: #e9e9e9;
}

body.light-theme .blog-date {
    color: #666;
}

body.light-theme .map-placeholder {
    background-color: #e0e0e0;
}

body.light-theme .cta-button-large,
body.light-theme .cta-button {
    color: #ffffff;
}

body.light-theme .value-item {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .footer-content p {
    color: rgba(0, 0, 0, 0.6);
}

/* ==========================================
   Value Detail Pages
   ========================================== */
.value-link {
    text-decoration: none;
    color: #ffffff !important;
    display: block;
    width: 100%;
    height: 100%;
    padding: 1rem 6rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.value-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.value-link h3,
.value-link h3 strong {
    color: #ffffff !important;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
}

.detail-item h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.detail-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.back-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: scale(1.05);
    color: #ffffff !important;
}

/* ==========================================
   Blog List Page
   ========================================== */
.blog-list-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background-color: var(--main-bg-color);
}

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

.blog-list-header h2 {
    font-size: 4rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.blog-list-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.blog-card-thumb {
    width: 100%;
    height: 200px;
    background-color: #666;
    background-image: linear-gradient(45deg, #666 25%, transparent 25%), 
                      linear-gradient(-45deg, #666 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #666 75%), 
                      linear-gradient(-45deg, transparent 75%, #666 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-title {
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.blog-card-date {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.blog-pagination a {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.blog-pagination a:hover,
.blog-pagination a.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* ==========================================
   Blog Detail Page
   ========================================== */
.blog-detail-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background-color: var(--main-bg-color);
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-thumb {
    width: 100%;
    height: 300px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 2rem 0;
    border-radius: 10px;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 2rem 0 1rem 0;
    color: var(--text-color);
}

.blog-detail-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* Blog content styles */
.blog-detail-content h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-color);
}

.blog-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-color);
}

.blog-detail-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2rem 0 1rem 0;
    color: var(--text-color);
}

.blog-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Legacy class support */
.blog-detail-h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-color);
}

.blog-detail-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-color);
}

.blog-detail-h4 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2rem 0 1rem 0;
    color: var(--text-color);
}

.blog-detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.blog-detail-list {
    margin: 2rem 0;
    padding-left: 2rem;
}

.blog-detail-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.blog-detail-quote {
    background-color: var(--card-bg-color);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-detail-pager {
    display: none; /* Hide prev/next navigation */
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-detail-prev,
.blog-detail-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-detail-prev:hover,
.blog-detail-next:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

.blog-detail-prev span,
.blog-detail-next span {
    font-size: 1.2rem;
}

/* ==========================================
   Blog Pages - Mobile Styles
   ========================================== */
@media (max-width: 768px) {
    .blog-list-section {
        padding: 6rem 1rem 3rem;
    }
    
    .blog-list-header h2 {
        font-size: 2.5rem;
    }
    
    .blog-list-sub {
        font-size: 1rem;
    }
    
    .blog-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .blog-card-thumb {
        height: 180px;
    }
    
    .blog-card-title {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .blog-card-date {
        padding: 0 1rem 1rem;
        font-size: 0.8rem;
    }
    
    .blog-pagination {
        gap: 0.3rem;
    }
    
    .blog-pagination a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 35px;
    }

    /* Blog detail (mobile) */
    .blog-detail-section {
        padding: 6rem 1rem 3rem;
    }
    
    .blog-detail-thumb {
        height: 200px;
        margin: 1.5rem 0;
    }
    
    .blog-detail-title {
        font-size: 1.8rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .blog-detail-date {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Blog content styles (mobile) */
    .blog-detail-content h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1rem 0;
    }

    .blog-detail-content h3 {
        font-size: 1.3rem;
        margin: 2rem 0 0.8rem 0;
    }

    .blog-detail-content h4 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .blog-detail-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    /* Legacy class support (mobile) */
    .blog-detail-h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1rem 0;
    }

    .blog-detail-h3 {
        font-size: 1.3rem;
        margin: 2rem 0 0.8rem 0;
    }

    .blog-detail-h4 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .blog-detail-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .blog-detail-list {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }
    
    .blog-detail-list li {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 0.4rem;
    }
    
    .blog-detail-quote {
        padding: 1.5rem;
        margin: 1.5rem 0;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-detail-pager {
        margin-top: 3rem;
        padding-top: 1.5rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .blog-detail-prev,
    .blog-detail-next {
        flex: 1;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* ================================================
   Contact Form 7 スタイル
================================================ */
.contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto 0;
    width: 100%;
}

/* ラベル */
.wpcf7 label {
    display: block;
    margin-bottom: -1.5rem;
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
}

/* 入力フィールド */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* プレースホルダー */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* フォーカス時 */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* テキストエリア */
.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    background: #fff;
    color: #000;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 24px auto 0;
}

.wpcf7 input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* レスポンスメッセージ */
.wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

/* エラーメッセージ */
.wpcf7-validation-errors,
.wpcf7-not-valid-tip {
    background: rgba(255, 0, 0, 0.25);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #fff;
}

.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    margin-top: -1.4rem;
    margin-bottom: 2.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    text-align: left;
    display: block;
}

/* 送信成功メッセージ */
.wpcf7-mail-sent-ok {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #fff;
}

/* 送信中のスピナー */
.wpcf7 .ajax-loader {
    margin-left: 1rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .contact-form-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 1rem 2rem;
    }

    /* Contact section mobile styles */
    #contact {
        padding: 4rem 0 2rem;
    }

    #contact .content {
        padding: 2rem 1rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

    #contact .contact-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    #contact footer {
        position: relative;
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
}

/* ================================================
   Privacy Policy スタイル
================================================ */
.privacy-policy-section {
    padding: 4rem 2rem;
}

.privacy-policy-content {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
    line-height: 1.8;
}

.privacy-policy-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.privacy-policy-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-policy-content p {
    margin-bottom: 1.5rem;
    color: #333;
}

.privacy-policy-content ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.privacy-policy-content li {
    margin-bottom: 0.5rem;
    color: #333;
}

.back-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .privacy-policy-section {
        padding: 2rem 1rem;
    }
    
    .privacy-policy-content {
        padding: 0 1rem;
    }
    
    .privacy-policy-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-policy-content h3 {
        font-size: 1.2rem;
    }
}

/* ================================================
   Footer Navigation
================================================ */
.footer-nav {
    margin-top: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-nav a {
        margin: 0;
    }
}

/* reCAPTCHA バッジを非表示 */
.grecaptcha-badge {
    visibility: hidden;
}