/*
Theme Name: GN2
Theme URI:
Description: GN2株式会社 コーポレートサイト
Version: 1.0.0
Author: GN2
Text Domain: gn2
*/

/* ========================================
   GN2株式会社 コーポレートサイト
   ======================================== */

/* --- Variables --- */
:root {
    --color-primary: #00336d;
    --color-accent: #f3a032;
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray: #666666;
    --color-gray-light: #f5f5f5;
    --color-gray-border: #e0e0e0;

    --font-en: 'Montserrat', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    --header-height: 80px;
    --transition: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul, ol {
    list-style: none;
}

@media (max-width: 768px) {
    .footer-info {
        font-size: 0.8em;
    }
}

/* --- Container --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;  /* ← 40px → 5% に変更 */
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-sub {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 95px;
    padding-top: 8px;
    width: auto;
}

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

.nav-list a {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    position: relative;
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Opening Section
   ======================================== */
.opening {
    position: relative;
    height: 325vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}


.opening-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Logo Animation - 画面中央に固定 */
.logo-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 350px;
    z-index: 100;
}

.logo-animation.completed {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* 青い人型 - スクロール連動アニメーション */
.logo-part.logo-blue {
    position: absolute;
    width: 94px;
    height: auto;
    top: 40%;
    left: 50%;
    transform: translate(300px, -400px);
    opacity: 0;
    z-index: 2;
    will-change: transform, opacity, filter;
}

/* オレンジの人型 - スクロール連動アニメーション */
.logo-part.logo-orange {
    position: absolute;
    width: 94px;
    height: auto;
    top: 40%;
    left: 50%;
    transform: translate(-400px, -400px);
    opacity: 0;
    z-index: 1;
    will-change: transform, opacity, filter;
}

/* 飛行機 - スクロール連動でclip-pathアニメーション */
.logo-plane {
    position: absolute;
    width: 122px;
    height: auto;
    top: 40%;
    left: 50%;
    transform: translate(-60%, -75%);
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    will-change: clip-path, opacity, filter;
}

/* ロゴネーム - スクロール連動で表示 */
.logo-name {
    position: absolute;
    width: 243px;
    height: auto;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    will-change: opacity, filter;
}

/* 完成ロゴ */
.logo-complete {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.8s ease;
}

.logo-complete.animate {
    opacity: 1;
}

.logo-complete.glow {
    animation: glowPulse 1.5s ease-in-out;
}

@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 0 rgba(243, 160, 50, 0));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(243, 160, 50, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(243, 160, 50, 0.3));
    }
}

@media (max-width: 768px) {
    .logo-name {
        margin-top: 15px;
    }
    
    
}

/* ロゴ背景画像 */
.logo-base-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    width: 500px;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    pointer-events: none;
}

.logo-base-bg.visible {
    opacity: 0.7;
}

.logo-full {
    width: 350px;
    height: auto;
}

/* スクロール後に固定されるヘッダー */
.logo-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--color-white);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 20px 20px 30px;
}

.logo-fixed.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 下層ページ用：最初からヘッダー表示 */
body.subpage .logo-fixed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo-fixed img {
    height: 55px;
    width: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 120px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 150;
    transition: opacity 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.scroll-indicator span {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-primary);
}

/* 円（線のみ） */
.scroll-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 矢印アニメーション */
.scroll-arrow {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    animation: scrollArrowFade 2s ease-in-out infinite;
}

@keyframes scrollArrowFade {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 1;
        transform: translateY(4px);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* City Silhouette - Fixed */
.city-silhouette-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    background: var(--color-white);
    line-height: 0;
    font-size: 0;
}

.city-silhouette-fixed img {
    display: block;
    width: 100%;
    height: auto;
}

.city-silhouette-fixed.released {
    position: absolute;
    top: 0;
    bottom: auto;
    transform: translateY(calc(-100% + 5px));
    background: transparent;
}

.city-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Section Common
   ======================================== */
.section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
    max-width: 90%
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--color-gray);
    letter-spacing: 0.1em;
}

/* Parallax Animation */
[data-parallax] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-parallax].visible {
    opacity: 1;
    transform: translateY(0);
}

/* 画像完了後に表示（画面下から上にスライド） */
[data-parallax-after-image] {
    opacity: 0;
    transform: translateY(100vh);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-parallax-after-image].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--color-white);
    position: relative;
    height: 300vh;
    padding: 0;
    overflow: visible;
}

.about-section .about-sticky-wrapper {
    position: sticky;
    top: 0;
    height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    padding: 70px 5% 0;
   max-width: 1020px;    /* ← 追加（お好みの値に） */
    margin: 0 auto;       /* ← 追加（中央寄せ） */
}

.about-image-fixed {
    position: relative;
    width: 40%;
    border-radius: 20px;
    overflow: hidden;
    max-width: 450px;
    z-index: 10;
    flex-shrink: 0;
}

.about-image-fixed img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}

/* 1枚目の画像（円形マスクアニメーション） */
.about-image-fixed .about-img-1 {
    will-change: clip-path;
    clip-path: circle(10% at 50% 50%);
    transition: clip-path 0.1s linear;
}

/* 2枚目の画像（スクロール連動フェード） */
.about-image-fixed .about-img-2 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.about-section .container {
    display: contents;
}

.about-content {
    width: 50%;
    max-width: 500px;
    max-height: calc(100vh - 256px);
    overflow-x: hidden;
    overflow-y: auto;
    text-align: right;
    padding-right: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.about-content::-webkit-scrollbar {
    display: none;
}

.about-content .section-header {
    text-align: left;
    margin-bottom: 0;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 0.9rem;
    margin-bottom: 1.5em;
    text-align: left;
    color: var(--color-primary);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    background: var(--color-white);
    margin-top: -80px;
}

.news-section .section-header {
    margin-bottom: 10px;
}

.news-list {
   max-width: 90%
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
    padding-right: 40px;
    border-bottom: 1px solid var(--color-gray-border);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.news-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2300336d' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.5);
    padding-left: 20px;
    margin: 0 -20px;
}

.news-item:hover::after {
    right: -5px;
}

.news-date {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
}

.news-text {
    color: var(--color-primary);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--color-white);
    padding-top: 60px;
    padding-bottom: 250px;
}

.contact-section .section-header {
    margin-bottom: 10px;
}

.contact-content {
    text-align: left;
   max-width: 90%
    margin: 0 auto;
}

.contact-notice {
    width: 50%;
}

.contact-notice p {
    color: var(--color-primary);
    margin-bottom: 30px;
    letter-spacing: 0.09em;
}

.contact-btn-wrapper {
    text-align: right;
}

/* ========================================
   Button
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(5px);
}

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

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

.btn-large {
    padding: 20px 60px;
    font-size: 16px;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ========================================
   Page Hero
   ======================================== */
.page-hero {
    position: relative;
    padding-top: var(--header-height);
    height: calc(400px + var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    background-image:
        linear-gradient(30deg, rgba(0, 51, 109, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(0, 51, 109, 0.04) 87.5%),
        linear-gradient(150deg, rgba(0, 51, 109, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(0, 51, 109, 0.04) 87.5%),
        linear-gradient(30deg, rgba(0, 51, 109, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(0, 51, 109, 0.04) 87.5%),
        linear-gradient(150deg, rgba(0, 51, 109, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(0, 51, 109, 0.04) 87.5%),
        linear-gradient(60deg, rgba(243, 160, 50, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(243, 160, 50, 0.03) 75%),
        linear-gradient(60deg, rgba(243, 160, 50, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(243, 160, 50, 0.03) 75%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    overflow: hidden;
}

.page-hero-content {
    text-align: center;
    z-index: 2;
}

.page-title {
    font-family: var(--font-en);
    font-size: 64px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--color-gray);
    letter-spacing: 0.2em;
}

/* ========================================
   Company Page
   ======================================== */
.company-info-section {
    background: var(--color-white);
}

.company-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.company-table th {
    width: 200px;
    font-weight: 500;
    color: var(--color-primary);
}

.company-table td {
    color: var(--color-primary);
}

.map-embed {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.back-to-top-wrapper {
    margin-top: 60px;
    text-align: center;
}

.map-embed iframe {
    display: block;
    border-radius: 8px;
}

/* Office Section */
.office-section {
    background: var(--color-gray-light);
}

.office-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.office-item {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.office-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
}

.office-address {
    color: var(--color-gray);
    margin-bottom: 25px;
    line-height: 2;
}

/* Business Section */
.business-section {
    background: var(--color-white);
}

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

.business-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-gray-border);
}

.business-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.business-category {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--color-accent);
}

.business-detail {
    padding-left: 20px;
}

.business-detail li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--color-gray);
}

.business-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-form-section {
    background: var(--color-white);
}

.contact-form-section .section-header {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 50px;
}

.contact-notice-box {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 30px;
    background: var(--color-white);
    border-left: 4px solid var(--color-accent);
    text-align: center;
}

.contact-notice-box p {
    color: var(--color-gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 10px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-black);
}

.required {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    font-family: var(--font-jp);
    font-size: 16px;
    border: 1px solid var(--color-gray-border);
    border-radius: 5px;
    transition: var(--transition);
    background: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 109, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

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

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-border);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: var(--color-gray);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
    padding-top: 70px;
    margin-top: 150px;
    overflow: visible;
    z-index: 101;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 1.6em;
}

.footer-address-line {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    text-align: left;
}

.footer-address-line strong {
    color: var(--color-white);
    min-width: 80px;
    flex-shrink: 0;
}

.map-link {
    display: inline-block;
    margin-left: 10px;
    font-family: var(--font-en);
    font-size: 0.9rem;
    text-decoration: underline;
}

.map-link:hover {
    text-decoration: none;
}

@media (max-width: 576px) {
    .footer-address-line {
        display: flex;
        text-align: left;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
        letter-spacing: 1px;
        line-height: 1.7;
    }

    .footer-address-line strong {
        text-align: center;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

.copyright {
    font-size: 12px;
    opacity: 0.7;
}

/* ========================================
   Mobile Navigation
   ======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    transition: var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 30px;
}

.mobile-nav-list a {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

/* ========================================
   Single Post
   ======================================== */
.single-section {
    padding-top: 60px;
}

.single-layout {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.single-main {
    flex: 1;
    min-width: 0;
}

.single-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid var(--color-gray-border); */
}

.single-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.single-date {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-gray);
}

/* 記事本文 */
.single-article .entry-content {
    color: var(--color-black);
    line-height: 2;
}

.single-article .entry-content p {
    margin-bottom: 1.5em;
}

.single-article .entry-content img {
    border-radius: 4px;
    margin: 1em 0;
}

.single-article .entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.single-article .entry-content a:hover {
    text-decoration: none;
}

/* 前後記事ナビゲーション */
.single-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    /* border-top: 1px solid var(--color-gray-border); */
}

.single-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-gray-border);
    border-radius: 50%;
    color: var(--color-primary);
    transition: var(--transition);
}

.single-nav a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.single-nav svg {
    width: 20px;
    height: 20px;
}

/* サイドバー */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-list li a {
    display: block;
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.sidebar-list li a:hover {
    opacity: 0.7;
}

.sidebar-categories li {
    color: var(--color-accent);
}

.sidebar-categories li a {
    color: var(--color-accent);
}

.sidebar-categories li a:hover {
    opacity: 0.7;
}

/* ========================================
   Archive
   ======================================== */
.archive-section {
    padding-top: 60px;
}

.archive-section .container,
.single-section .container {
    padding: 0 20px;
}

.archive-layout {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.archive-main {
    flex: 1;
    min-width: 0;
}

.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray-border);
    border-radius: 50%;
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-primary);
    transition: var(--transition);
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   WordPress Block Editor Styles
   ======================================== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
    padding: 20px;
    border-bottom: 1px solid var(--color-gray-border);
    text-align: left;
    vertical-align: top;
}

.entry-content table th {
    width: 200px;
    font-weight: 500;
    color: var(--color-primary);
}

.entry-content table td {
    color: var(--color-primary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .office-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-info {
        gap: 30px;
    }
}

br.sp-only {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-logo-img {
        height: 40px;
    }

    .section {
        padding: 80px 0;
    }
.contact-section {
    padding-top: 40px;
}
    
    .section-title {
        font-size: 36px;
    }

    .contact-notice {
        width: 100%;
    }

    .contact-btn-wrapper {
        text-align: left;
    }

    .page-hero {
        height: calc(300px + var(--header-height));
    }

    .page-title {
        font-size: 42px;
    }

    .logo-animation {
        width: 280px;
        height: 250px;
    }

    .logo-full {
        width: 250px;
    }

    /* About Section - スマホ */
    .about-section {
        height: auto;
    }

    .about-section .about-sticky-wrapper {
        position: relative;
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .about-image-fixed {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-right: 0;
    }

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

    .company-table th {
        border-bottom: none;
        padding-bottom: 10px;
    }

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

    .entry-content table th,
    .entry-content table td {
        display: block;
        width: 100%;
    }

    .entry-content table th {
        border-bottom: none;
        padding-bottom: 10px;
    }

    .entry-content table td {
        padding-top: 0;
    }

    .office-item {
        padding: 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .btn {
        padding: 12px 30px;
    }

    .btn-large {
        padding: 15px 40px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    br.sp-only {
        display: block;
    }

    /* Single Post - タブレット以下 */
    .single-layout {
        flex-direction: column;
        gap: 40px;
    }

    .sidebar {
        width: 100%;
    }

    /* Archive - タブレット以下 */
    .archive-layout {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 32px;
    }

    .about-text p {
        font-size: 14px;
    }
    
    
    
    
}

/* ========================================
   Contact Form 7 スタイル調整
   ======================================== */

/* CF7フォーム全体 */
.wpcf7 .wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    /* padding: 50px; */
}

/* フォームグループ */
.wpcf7 .form-group {
    margin-bottom: 30px;
}

/* ラベル */
.wpcf7 .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-black);
}

/* 必須バッジ */
.wpcf7 .required {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 3px;
}

/* テキスト入力・メール・電話 */
.wpcf7 .form-input,
.wpcf7 .form-textarea {
    width: 100%;
    padding: 15px;
    font-family: var(--font-jp);
    font-size: 16px;
    border: 1px solid var(--color-gray-border);
    border-radius: 5px;
    transition: var(--transition);
    background: var(--color-white);
}

.wpcf7 .form-input:focus,
.wpcf7 .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 109, 0.1);
}

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

/* プライバシーポリシー承諾 */
.wpcf7 .form-privacy {
    text-align: center;
}

.wpcf7 .form-privacy .wpcf7-list-item {
    margin: 0;
}

.wpcf7 .form-privacy .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-gray);
}

.wpcf7 .form-privacy .wpcf7-list-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* 送信ボタン */
.wpcf7 .form-submit {
    text-align: center;
    margin-top: 40px;
}

.wpcf7 .form-submit .wpcf7-submit,
.wpcf7 .form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 60px;
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 50px;
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
}

.wpcf7 .form-submit .wpcf7-submit:hover,
.wpcf7 .form-submit input[type="submit"]:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(5px);
}

/* 送信ボタン無効状態（プライバシーポリシー未同意時） */
.wpcf7 .form-submit .wpcf7-submit:disabled,
.wpcf7 .form-submit input[type="submit"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.wpcf7 .form-submit .wpcf7-submit:disabled:hover,
.wpcf7 .form-submit input[type="submit"]:disabled:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: none;
}

/* CF7バリデーションエラー */
.wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #e74c3c;
}

/* CF7送信レスポンスメッセージ */
.wpcf7 .wpcf7-response-output {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

/* CF7スピナー非表示 */
.wpcf7 .wpcf7-spinner {
    display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .wpcf7 .wpcf7-form {
        padding: 30px 20px;
    }

    .wpcf7 .form-submit .wpcf7-submit,
    .wpcf7 .form-submit input[type="submit"] {
        padding: 15px 40px;
    }
}


/* --- Footer Navigation --- */
.footer-nav {
    text-align: center;
    margin-top: -20px;
    padding: 0 0 40px;
    font-family: var(--font-en), sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.footer-nav a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-nav-separator {
    color: var(--color-white);
    margin: 0 60px;
    opacity: 0.5;
}

/* --- Footer Navigation Mobile --- */
@media (max-width: 768px) {
    .footer-nav {
        padding: 0 20px 40px;
    }
    .footer-nav-separator {
        margin: 0 20px;
    }
}

.d-sm-block {
    display: none;
}
@media (min-width: 576px) {
    .d-sm-none {
        display: none;
    }
    .d-sm-block {
        display: block;
    }
}
@media (min-width: 768px) {
    .d-md-none {
        display: none;
    }
}

/* スマホ表示（画面幅767px以下）の時の設定 */
@media screen and (max-width: 767px) {
    .footer-address-line {
        line-height: 1.4; /* 数値はお好みで調整してください（標準は1.6〜1.8程度） */
        margin-bottom: 15px; /* 各住所ブロックの間の余白 */
        font-size: 14px; /* 必要であれば文字サイズも少し小さくするとバランスが良いです */
    }

    /* 改行（brタグ）による隙間が気になる場合、ここも調整可能です */
    .footer-address-line br {
        content: "";
        display: block;
        margin-top: 2px;
    }
}
/* --- Privacy Policy Popup --- */
.privacy-link-text {
    margin-top: 8px;
    font-size: 0.75rem;
    text-align: center;
}

.privacy-link-text a {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.privacy-link-text a:hover {
    opacity: 0.7;
}

.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.privacy-modal.is-active {
    display: block;
}

.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.privacy-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 8px;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.privacy-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.privacy-modal-close:hover {
    color: #000;
}

.privacy-modal-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
}

.privacy-modal-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.privacy-modal-body p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.privacy-modal-body ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.privacy-modal-body ul li {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #333;
    list-style: disc;
    margin-bottom: 4px;
}


.footer-infomation-inner {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}
.footer-infomation-inner p {
    letter-spacing: 1.8px;
}
.footer-infomation-inner .info p.tel-fax {
    display: inline-block;
}
.footer-infomation-inner .info a {
    font-size: 13px;
}
.mt-30-20 {
    margin-top: 30px;
}
@media (min-width: 576px) {
    .footer-infomation-inner {
        font-size: 14px;
    }
    .footer-infomation {
        width: 80%;
        margin: 0 auto;
    }
    .footer-infomation-inner {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    .footer-infomation-inner .busyo {
        width: 15%;
    }
    .footer-infomation-inner .info {
        text-align: start;
        width: 70%;
    }
    .footer-infomation-inner .busyo p,
    .footer-infomation-inner .info p {
        text-align: start;
    }
    .footer-infomation-inner .info a {
        display: block;
        text-align: start;
        margin-left: 0;
        font-size: 14px;
    }
}
@media (min-width: 768px) {
    .footer-infomation-inner {
        justify-content: center;
        gap: 30px;
    }
    .footer-infomation-inner .info p.yubin {
        display: inline-block;
        padding-right: 5px;
    }
    .footer-infomation-inner .info p.address {
        display: block;
    }
    .footer-infomation-inner .info p.tel-fax {
        display: inline-block;
        padding-right: 15px;
    }
    .footer-infomation-inner .info a.map-link {
        display: inline-block;
    }
    .footer-infomation-inner .info {
       width: 60%;
    }
}
@media (min-width: 992px) {
    .mt-30-20 {
        margin-top: 20px;
    }
    .footer-inner {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 2;
        gap: 60px;
        align-items: center;
    }
    .footer-infomation {
        width: 90%;
    }
    .footer-infomation-inner .busyo {
        width: 10%;
    }
    .footer-infomation-inner .info p.address {
        padding-right: 15px;
        display: inline-block;
    }
    .footer-infomation-inner .info {
        width: 100%;
    }
}
@media (min-width: 1200px) {
    .footer-inner {
        gap: 80px;
    }
    .footer-infomation {
        width: 100%;
    }
}