/*
 Theme Name: n-kiyo-child
 Template: twentytwentyfive
 Description: 株式会社KIYO 静的HTML変換子テーマ
 Version: 1.0.0
*/

@charset "UTF-8";

/* ==================================================
   Base Settings
================================================== */
:root {
    /* Color Palette */
    --color-base: #1a2b4c;        /* ネイビー：信頼・堅実 */
    --color-base-dark: #0f1a2e;   /* 濃いネイビー */
    --color-accent: #e67e22;      /* オレンジ：安全・アクセント */
    --color-text: #333333;        /* 本文色 */
    --color-bg-gray: #f4f6f8;     /* 薄いグレー背景 */
    --color-white: #ffffff;
    
    /* Typography */
    --font-base: "Noto Sans JP", sans-serif;
    
    /* Layout */
    --header-height: 70px;
    --width-container: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* ヘッダー分ずらす */
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==================================================
   Utilities & Common Components
================================================== */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 20px;
}

.u-desktop-only { display: none; }
@media (min-width: 768px) {
    .u-desktop-only { display: inline; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    min-width: 200px;
    cursor: pointer;
}

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

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}
.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-base);
}

.btn-navy {
    background-color: var(--color-base);
    color: var(--color-white);
    border: 2px solid var(--color-base);
}
.btn-navy:hover {
    background-color: transparent;
    color: var(--color-base);
}

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

/* Section Common */
.section {
    padding: 80px 0;
}
@media (min-width: 768px) {
    .section { padding: 100px 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-en {
    display: block;
    font-size: 0.875rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-jp {
    font-size: 1.75rem;
    color: var(--color-base);
    font-weight: 700;
    margin: 0;
}
.section-lead {
    margin-top: 24px;
    font-size: 0.95rem;
}

/* Scroll Animation Class */
.js-fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.js-fadein.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   Header
================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

/* Hamburger Menu (Mobile) */
.nav-toggle {
    display: block;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-base);
    position: absolute;
    left: 10px;
    transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

/* Hamburger Animation */
.nav-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
    top: 21px;
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 21px;
}

/* Mobile Nav Drawer */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-base);
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1050;
    text-align: center;
}
.nav.is-open {
    transform: translateX(0);
}
.nav-item {
    margin-bottom: 24px;
}
.nav-link {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 700;
}
.nav-link.btn-nav {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--color-accent);
    border-radius: 4px;
}

/* PC Nav Style */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        transform: none;
    }
    .nav-list {
        display: flex;
        align-items: center;
        gap: 20px; /* アイテム間の余白調整 */
    }
    .nav-item { margin: 0; }
    .nav-link {
        color: var(--color-base);
        font-size: 0.95rem;
        position: relative;
    }
    .nav-link:not(.btn-nav):not(.header-tel-link)::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--color-accent);
        transition: 0.3s;
    }
    .nav-link:not(.btn-nav):not(.header-tel-link):hover::after {
        width: 100%;
    }
    .nav-link.btn-nav {
        color: var(--color-white);
    }
    .nav-link.btn-nav:hover {
        background-color: #d35400;
    }
}

/* ヘッダー内電話番号エリア */
.header-tel-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 右揃え */
    justify-content: center;
    line-height: 1.2;
    margin-right: 10px; /* ボタンとの余白 */
    color: var(--color-base);
}
.header-tel-time {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 2px;
    font-weight: 500;
}
.header-tel-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-base);
    letter-spacing: 0.05em;
    font-family: "Noto Sans JP", sans-serif;
}
.header-tel-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* ==================================================
   Hero
================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-main.jpg') center/cover no-repeat;
    z-index: -2;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 35, 80, 0.6); /* 画像に被せるネイビーのフィルター */
    z-index: -1;
}
.hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-accent);
}
.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
}
.hero-lead {
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-title { font-size: 2.75rem; }
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.scroll-indicator span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}
.scroll-indicator .arrow {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.scroll-indicator .arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #fff;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ==================================================
   About
================================================== */
.about {
    background-color: var(--color-white);
}
.about-content {
    margin-top: 40px;
}
.about-sub-title {
    font-size: 1.4rem;
    color: var(--color-base);
    margin-bottom: 20px;
    line-height: 1.5;
}
.about-btn-wrap {
    margin-top: 30px;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}
.about-text p + p {
    margin-top: 1.5em;
}

@media (min-width: 768px) {
    .about-content {
        display: flex;
        align-items: center;
        gap: 60px;
    }
    .about-text { flex: 1; }
    .about-image {
        flex: 1;
        margin-top: 0;
    }
}

/* ==================================================
   Works (Slider)
================================================== */
.works {
    background-color: var(--color-bg-gray);
}
.works-slider-wrapper {
    position: relative;
    padding: 0 20px;
}
.works-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none;    /* Firefox */
}
.works-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.work-card {
    min-width: 280px;
    width: 30%;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .work-card { width: 80%; }
}

.work-thumb {
    position: relative;
    aspect-ratio: 16/9;
}
.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-base);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 2px;
}
.work-body {
    padding: 15px 20px 20px;
}
.work-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}
.work-title {
    font-size: 1rem;
    color: var(--color-base);
    line-height: 1.4;
    margin: 0;
}
.btn-text {
    display: inline-block;
    color: var(--color-base);
    font-weight: 700;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
    margin-top: 10px;
    font-size: 0.9rem;
}
.btn-text:hover {
    color: var(--color-accent);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-base);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: 0.3s;
}
.slider-arrow:hover {
    opacity: 1;
}
.slider-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.slider-prev {
    left: -10px;
}
.slider-prev::before {
    transform: translate(-40%, -50%) rotate(-135deg);
}
.slider-next {
    right: -10px;
}
.slider-next::before {
    transform: translate(-60%, -50%) rotate(45deg);
}
@media (max-width: 768px) {
    .slider-arrow { display: none; }
}

/* Works Section Button */
.works-btn-area {
    text-align: center;
    margin-top: 40px;
}

/* ==================================================
   Access (Grid 6)
================================================== */
.access-grid-6 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
@media (min-width: 600px) {
    .access-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .access-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

.access-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #000;
}
.access-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}
.access-card:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}
.access-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 15px 15px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.access-btn-area {
    text-align: center;
    margin-top: 40px;
}

/* ==================================================
   Recruit (Glassmorphism)
================================================== */
.recruit-glass-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.recruit-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/recruit-bg.jpg') center/cover no-repeat; /* 背景画像指定 */
    background-attachment: fixed; /* パララックス風 */
    z-index: -2;
}
.recruit-glass-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 暗くする */
    z-index: -1;
}
.recruit-glass-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.recruit-glass-title {
    font-size: 1.5rem;
    margin: 30px 0;
    line-height: 1.5;
    font-weight: 700;
}
.recruit-glass-btn {
    margin-top: 40px;
}

/* ==================================================
   Contact (Compact & Dark Theme)
================================================== */
.contact {
    /* 画像に合わせて濃いネイビー背景に固定 */
    background-color: #1a2b4c; 
    color: #ffffff;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    width: 100%;
}

/* セクション見出し色の上書き */
.contact .section-jp { color: #ffffff; }
.contact .section-en { color: #e67e22; }

.contact-lead {
    margin-bottom: 40px;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* アクションエリア（電話とボタンの横並び） */
.contact-actions {
    display: flex;
    flex-direction: column; /* スマホでは縦積み */
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-actions {
        flex-direction: row; /* PCでは横並び */
        align-items: center;
    }
}

/* 電話番号ボックス（画像のイメージに合わせる） */
.contact-tel-box {
    background-color: rgba(255, 255, 255, 0.1); /* 半透明のボックス */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* 横幅をボタンと分け合う */
}

.tel-label { font-size: 0.9rem; margin-bottom: 5px; }

.tel-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: underline;
    margin-bottom: 5px;
}
.tel-number:hover {
    color: #e67e22;
    text-decoration: none;
}

.tel-note { font-size: 0.8rem; opacity: 0.8; }

/* フォームボタンの調整 */
.contact-btn {
    flex: 1; /* 電話ボックスと同じ幅比率にする */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* 電話ボックスと高さを合わせるため少し高く */
    font-size: 1.25rem;
    background-color: #e67e22; /* 画像のオレンジ */
    border: none;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
}
.contact-btn:hover {
    background-color: #d35400;
}

/* ==================================================
   Footer (Rich Layout)
================================================== */
.footer {
    background-color: #0f1a2e; /* さらに濃いネイビー */
    color: #cccccc;
    padding: 60px 0 20px;
    text-align: left;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* 会社情報エリア */
.footer-info {
    flex: 1;
}

.footer-logo {
    margin-bottom: 20px;
}
.footer-logo img {
    /* 黒ロゴを白く反転表示 */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    opacity: 0.9;
}
.footer-logo a {
    display: inline-block;
}

.footer-address p {
    margin: 0 0 8px;
    font-size: 0.9rem;
}
.address-office {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
}
.address-tel {
    font-size: 1.1rem !important;
    color: #ffffff;
    font-weight: 700;
    margin-top: 10px !important;
}
.address-tel .tel-label {
    font-size: 0.8rem;
    font-weight: normal;
    margin-right: 5px;
}

/* サイトマップエリア */
.footer-links {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
@media (min-width: 768px) {
    .footer-links { justify-content: flex-start; }
}

.footer-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列で表示 */
    gap: 15px 40px;
}

.footer-nav-list li a {
    color: #ffffff;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}
.footer-nav-list li a::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}
.footer-nav-list li a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
}


/* ==================================================
   About Page Styles
================================================== */

/* Page Hero (共通コンポーネントとして他ページでも使えます) */
.page-hero {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #6a82fb 0%, #fc5c7d 100%); /* 提供画像のような青紫〜ピンクのグラデーション */
    /* 背景を画像風のシェイプにする場合 */
    background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* これが近いです */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: var(--header-height);
}
/* ヘッダー被りを考慮 */
.header + .main .page-hero { margin-top: 0; }

.page-hero::before {
    /* 左上の斜めシェイプ装飾（CSSで再現） */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}
.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    font-family: 'Secular One', sans-serif; /* 英語フォントがあれば指定 */
}
.page-hero-sub {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* POLICIES */
.policies-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 768px) {
    .policies-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }
}
.policies-text {
    flex: 1;
}
.policy-item {
    margin-bottom: 30px;
}
.policy-item:last-child { margin-bottom: 0; }

.policy-head {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-base);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.policy-body {
    font-size: 0.95rem;
    line-height: 1.8;
}

.policies-image {
    flex: 1;
    text-align: center;
}
.policies-image img {
    border: 5px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 100%;
}


/* PHILOSOPHY */
.about-philosophy {
    position: relative;
    padding: 30px 0;
    color: var(--color-base); /* 文字色を黒（濃紺）に変更 */
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: url('images/about-philosophy-bg.jpg') center/cover no-repeat;
    /* パララックスは解除し、自然な配置にする（旧デザインに寄せるため） */
    /* background-attachment: fixed; */ 
    
    /* 画像を暗くするのではなく、薄くして白背景に馴染ませる */
    opacity: 1.3; 
    z-index: -1;
}

.philosophy-container {
    position: relative;
    z-index: 1;
}

/* コンテンツの幅と配置を調整 */
.philosophy-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* 左寄せに変更 */
}

/* 見出しの左寄せスタイル */
.section-header-left {
    margin-bottom: 40px;
}
.section-header-left .section-en {
    display: block;
    font-size: 0.875rem;
    color: var(--color-base); /* 黒（濃紺）に変更 */
    letter-spacing: 0.2em; /* 字間を少し広げる */
    font-weight: 700;
    margin-bottom: 5px;
}
.section-header-left .section-jp {
    font-size: 1.5rem; /* サイズ調整 */
    color: var(--color-base);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.1em;
}

.philosophy-content {
    font-size: 1rem;
    line-height: 2.2; /* 行間をゆったりと */
    font-weight: 500;
}

.mt-4 { margin-top: 2.5rem; }


/* BUSINESS */
.about-business {
    background-color: #fff;
}
.business-chart {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.business-chart img {
    width: 100%;
    height: auto;
}


/* COMPANY (Table Style) */
.about-company {
    background-color: var(--color-bg-gray);
}
.company-table {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}
.company-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    margin: 0;
}
@media (min-width: 768px) {
    .company-row {
        flex-direction: row;
    }
}
.company-row dt {
    background-color: #f9f9f9;
    padding: 20px;
    font-weight: 700;
    color: var(--color-base);
    border-bottom: 1px solid #eee;
}
@media (min-width: 768px) {
    .company-row dt {
        width: 200px;
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid #eee;
    }
}
.company-row dd {
    padding: 20px;
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}


/* ==================================================
   Recruit Page Styles
================================================== */

/* Message */
.recruit-message-body {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.recruit-message-body .text-body {
    text-align: left;
    display: inline-block; /* 中央寄せの中で左揃えにするテクニック */
    line-height: 2;
}

/* Interview */
.recruit-interview {
    background-color: var(--color-bg-gray);
}

.interview-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.interview-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .interview-card {
        flex-direction: row;
        align-items: stretch;
    }
    /* 偶数番目のカードは写真を右にする場合（お好みで有効化してください） */
    /* .interview-card:nth-child(even) { flex-direction: row-reverse; } */
}

.interview-img {
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形にトリミング */
    position: relative;
}
.interview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .interview-img {
        width: 35%; /* PCでの画像幅 */
        flex-shrink: 0;
    }
}

.interview-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .interview-content {
        padding: 40px 50px;
    }
}

.interview-profile {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.interview-role {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
}

.interview-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-base);
    margin: 0;
}

.interview-title {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--color-base);
}

.interview-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Requirements */
.mynavi-banner {
    margin-top: 15px;
}
.mynavi-banner img {
    max-width: 100%;
    height: auto;
}


/* ==================================================
   Access Page Styles
================================================== */

.access-detail {
    background-color: var(--color-bg-gray);
}

.access-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}
.access-item:last-child {
    margin-bottom: 0;
}

.access-item-title {
    background-color: var(--color-base);
    color: #fff;
    font-size: 1.25rem;
    padding: 15px 30px;
    margin: 0;
    font-weight: 700;
    border-left: 5px solid var(--color-accent);
}

.access-item-body {
    padding: 30px;
}

@media (min-width: 768px) {
    .access-item-body {
        display: flex;
        align-items: center; /* 垂直方向中央寄せ */
        gap: 40px;
    }
}

.access-visual {
    width: 100%;
    margin-bottom: 20px;
}
.access-visual img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .access-visual {
        width: 40%;
        margin-bottom: 0;
    }
    .access-info {
        flex: 1;
    }
}

.access-data-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.access-data-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 600px) {
    .access-data-row {
        flex-direction: row;
        align-items: baseline;
    }
}

.access-data-row dt {
    font-weight: 700;
    color: var(--color-base);
    min-width: 80px;
    margin-bottom: 5px;
}
@media (min-width: 600px) {
    .access-data-row dt {
        margin-bottom: 0;
    }
}

.access-data-row dd {
    margin: 0;
    font-size: 0.95rem;
}

/* Map */
.access-map {
    width: 100%;
    height: 350px;
    background-color: #eee;
}
.access-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==================================================
   Works Page Styles (List)
================================================== */

.works-archive {
    background-color: var(--color-bg-gray);
    padding-bottom: 120px;
}

/* Filter Buttons */
.works-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-base);
    color: var(--color-base);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    min-width: 100px;
}

.filter-btn:hover,
.filter-btn.is-active {
    background-color: var(--color-base);
    color: #fff;
}

/* Grid Layout */
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 600px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 900px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Card Style */
.works-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.works-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.works-item-link {
    display: block;
    height: 100%;
}

.works-item-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.works-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.works-cat {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-base);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 3px;
    z-index: 1;
}

.works-item-body {
    padding: 20px 25px 25px;
}

.works-date {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    font-family: 'Lato', sans-serif; /* 英数字用フォントがあれば */
}

.works-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-base);
    line-height: 1.5;
    margin: 0;
}

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

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--color-base);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: var(--color-base);
    color: #fff;
    border-color: var(--color-base);
}

.page-numbers.next {
    font-family: monospace; /* 矢印を見やすく */
}

/* ==================================================
   Works Detail Page Styles
================================================== */

.works-article {
    background-color: var(--color-white);
    padding-bottom: 100px;
}

/* Header Area */
.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.article-date {
    color: #888;
    font-family: 'Lato', sans-serif;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-base);
    line-height: 1.4;
    margin: 0;
}
@media (min-width: 768px) {
    .article-title { font-size: 2.25rem; }
}

/* Main Image */
.article-main-img {
    margin-bottom: 50px;
}
.article-main-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Info Table (Reuse company-row styles partially) */
.article-info {
    margin-bottom: 50px;
    border-top: 1px solid #ddd;
}

/* Body Text */
.article-body {
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 2;
    font-size: 1rem;
}
.article-body h3 {
    font-size: 1.5rem;
    color: var(--color-base);
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.article-body p {
    margin-bottom: 1.5em;
}

/* Gallery */
.article-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 80px;
}
@media (min-width: 600px) {
    .article-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.gallery-item img:hover {
    opacity: 0.8;
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.post-nav-link {
    font-weight: 700;
    color: var(--color-base);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.post-nav-link:hover {
    color: var(--color-accent);
}
.post-nav-link.prev .arrow { margin-right: 5px; }
.post-nav-link.next .arrow { margin-left: 5px; }

.post-nav-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--color-base);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
}
.post-nav-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* Adjust order for mobile */
@media (max-width: 600px) {
    .post-nav {
        flex-direction: column;
    }
    .post-nav-btn {
        order: 3; /* Move "Back to List" to bottom on mobile */
        width: 100%;
        text-align: center;
    }
    .post-nav-link {
        width: 100%;
        justify-content: center;
        padding: 10px;
        background: #f9f9f9;
        border-radius: 4px;
    }
}


/* ==================================================
   Blog Page Styles
================================================== */

.blog-archive {
    /* 施工事例一覧（.works-archive）と同じ設定を継承 */
    background-color: var(--color-bg-gray);
    padding-bottom: 120px;
}

/* カードスタイルやグリッド（.works-grid, .works-itemなど）は
   施工事例ページと共有しているため、追加記述は不要です。
   個別にカスタマイズが必要になった場合は、ここに追記してください。
*/


/* ==================================================
   Mobile Navigation Styles (修正版)
================================================== */

/* スマホ表示制御クラス */
.u-mobile-only { display: block; }
@media (min-width: 768px) {
    .u-mobile-only { display: none; }
}

/* Nav Drawer Base */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-base); /* ネイビー背景 */
    padding-top: 80px; /* ヘッダーの高さ分あける */
    padding-bottom: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1050;
    text-align: center;
    overflow-y: auto; /* 縦スクロール対応 */
}

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

.nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 0 20px;
}

/* Links (Mobile) */
.nav-item {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* メニューが開いたときのアニメーション */
.nav.is-open .nav-item {
    opacity: 1;
    transform: translateY(0);
}
.nav.is-open .nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav.is-open .nav-item:nth-child(2) { transition-delay: 0.15s; }
.nav.is-open .nav-item:nth-child(3) { transition-delay: 0.2s; }
.nav.is-open .nav-item:nth-child(4) { transition-delay: 0.25s; }
.nav.is-open .nav-item:nth-child(5) { transition-delay: 0.3s; }

/* スマホ時は白文字 */
.nav-link {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    padding: 5px 0;
}

/* Mobile Info Area */
.nav-mobile-info {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s;
}

.nav.is-open .nav-mobile-info {
    opacity: 1;
    transform: translateY(0);
}

.nav-mobile-time {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.nav-mobile-tel {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.nav-mobile-btn {
    max-width: 300px;
    margin: 0 auto;
}

/* ハンバーガーボタンの色制御 */
/* 開いているときは背景がネイビーなので、×印は白にする */
.nav-toggle.is-open span {
    background-color: #fff;
}


/* ==================================================
   Desktop Reset (PC表示の修正)
================================================== */
@media (min-width: 768px) {
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        transform: none;
        overflow: visible;
        display: block !important;
    }
    .nav-inner {
        display: block;
        min-height: auto;
        padding: 0;
    }
    .nav-item {
        opacity: 1;
        transform: none;
        margin-bottom: 0;
    }
    
    /* ▼▼ PC時の文字色をネイビーに戻す記述 ▼▼ */
    .nav-link {
        color: var(--color-base); /* ここで色を戻します */
        font-size: 0.95rem;
        display: inline-block;
        padding: 0;
    }
    
    /* お問い合わせボタンの文字色は白のまま維持 */
    .nav-link.btn-nav {
        color: var(--color-white);
    }
}



/* ==================================================
   Contact Page Styles
================================================== */

/* Phone Section */
.contact-phone-section {
    background-color: var(--color-white);
}

.phone-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.phone-item {
    background-color: var(--color-bg-gray);
    width: 100%;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

@media (min-width: 600px) {
    .phone-item {
        width: calc(50% - 10px); /* 2列 */
    }
}
@media (min-width: 900px) {
    .phone-item {
        width: calc(33.333% - 14px); /* 3列 */
    }
}

.phone-name {
    display: block;
    font-weight: 700;
    color: var(--color-base);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
}
.phone-number:hover {
    color: var(--color-accent);
}


/* Form Section */
.contact-form-section {
    background-color: var(--color-bg-gray);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .form-wrapper {
        padding: 60px;
    }
}

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

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

.form-required {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

/* カンマ区切りで .form-select を追加します */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background-color: #f9f9f9;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-base);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1);
}

/* セレクトボックスの矢印など微調整 */
.form-select {
    cursor: pointer;
    appearance: none; /* デフォルトの矢印を消す場合（お好みで） */
    /* 以下、矢印アイコンをCSSで自作する場合の例（必要なければ削除可） */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

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

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

.btn-large {
    min-width: 300px;
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* デバッグ用：アニメーションを無効化して強制表示 */
.js-fadein {
    opacity: 1 !important;
    transform: none !important;
}


/* WordPress標準ギャラリーの簡易スタイル調整 */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 画像間の隙間 */
    padding: 0;
    list-style: none;
}

.wp-block-gallery .wp-block-image {
    width: calc(33.333% - 10px); /* 3列にする計算 */
    margin: 0;
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* スマホでは1列にする場合 */
@media (max-width: 768px) {
    .wp-block-gallery .wp-block-image {
        width: 100%;
    }
}