/*
Theme Name: Jm
Theme URI: https://example.com/jm
Author: Jm Inc.
Author URI: https://example.com/
Description: 株式会社Jm オリジナルテーマ。店舗設計・注文住宅のコーポレートサイト向け。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jm
*/

/* ==========================================
   Reset & Base
========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #F5F5F7;
    color: #333333;
    line-height: 1.6;
    letter-spacing: 0.05em;
}
body.no-scroll { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; background: transparent; }

/* Utility Classes */
.font-serif { font-family: 'Noto Serif JP', serif; }
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.home .container { max-width: 1300px; }
.section-padding { padding: 100px 0; }

/* ==========================================
   Header & Mobile Menu
========================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeaea;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 30px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.logo-main {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #222;
}
.logo-image {
    max-height: 50px;
    width: auto;
    display: block;
}
.footer-logo-image {
    max-height: 60px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}
.logo-tagline {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #666;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

/* PC Nav */
.pc-nav .nav-list {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pc-nav .nav-item a,
.pc-nav .nav-list li a {
    font-size: 14px;
    color: #333;
    letter-spacing: 0.08em;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}
.pc-nav .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background-color: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.pc-nav .nav-list li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #2c2c2c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.icon-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

/* MENU Button (pill) */
.menu-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #f5f5f7;
    color: #222;
    padding: 10px 20px 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 0.12em;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    min-height: 42px;
}
.menu-btn:hover { background-color: #eaeaec; }
.menu-btn-label { line-height: 1; }
.menu-btn-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
}
.menu-btn-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #222;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.is-active .menu-btn-icon span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}
.menu-btn.is-active .menu-btn-icon span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* ==========================================
   Drawer Menu
========================================== */
.drawer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: #fafafa;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}
.drawer.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Close button ラッパー (ヘッダーと完全同構造) */
.drawer-close-wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 30px;
    max-width: 1600px;
    margin: 0 auto;
    pointer-events: none;
    z-index: 1010;
}
.drawer-close-wrap::before {
    /* ヘッダーのロゴ位置を占有する見えないスペーサー */
    content: '';
    flex: 1;
}

.drawer-close {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #2c2c2c;
    color: #fff;
    padding: 10px 20px 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 0.12em;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #2c2c2c;
    min-height: 42px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.drawer-close:hover {
    background-color: #555;
    transform: scale(1.03);
}
.drawer-close-label { line-height: 1; }
.drawer-close-icon {
    display: inline-flex;
    position: relative;
    width: 18px;
    height: 18px;
}
.drawer-close-icon span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #fff;
    transform-origin: center;
}
.drawer-close-icon span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.drawer-close-icon span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }
.drawer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* 左カラム */
.drawer-main {
    padding: 140px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.drawer-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #999;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-nav li {
    border-bottom: 1px solid #e8e8e8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.drawer.is-active .drawer-nav li {
    opacity: 1;
    transform: translateY(0);
}
.drawer.is-active .drawer-nav li:nth-child(1) { transition-delay: 0.2s; }
.drawer.is-active .drawer-nav li:nth-child(2) { transition-delay: 0.28s; }
.drawer.is-active .drawer-nav li:nth-child(3) { transition-delay: 0.36s; }
.drawer.is-active .drawer-nav li:nth-child(4) { transition-delay: 0.44s; }
.drawer.is-active .drawer-nav li:nth-child(5) { transition-delay: 0.52s; }

.drawer-nav a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 22px 0 22px 4px;
    color: #222;
    position: relative;
    transition: padding-left 0.4s ease, color 0.4s ease;
}
.drawer-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background-color: #222;
    transition: width 0.4s ease;
    transform: translateY(-50%);
}
.drawer-nav a:hover {
    padding-left: 44px;
    color: #666;
}
.drawer-nav a:hover::before {
    width: 28px;
}
.drawer-nav .jp {
    font-size: 28px;
    letter-spacing: 0.08em;
    line-height: 1;
}
.drawer-nav .en {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: #bbb;
    text-transform: uppercase;
}

/* 右カラム */
.drawer-aside {
    position: relative;
    background-color: #2c2c2c;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 140px 60px 60px;
}
.drawer-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 40px;
}
.drawer-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.drawer.is-active .drawer-visual img {
    transform: scale(1.03);
}
.drawer-info {
    color: rgba(255, 255, 255, 0.85);
}
.drawer-logo {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}
.drawer-address {
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.6);
}
.drawer-sns {
    display: flex;
    gap: 14px;
}
.drawer-sns a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.drawer-sns a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 1024px) {
    .drawer-inner { grid-template-columns: 1fr; }
    .drawer-main { padding: 110px 40px 40px; }
    .drawer-aside {
        padding: 40px 40px 60px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
    .drawer-visual { display: none; }
    .drawer-info { flex: 1; }
    .drawer-address { margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .drawer-close-wrap { height: 72px; padding: 0 16px; }
    .drawer-close { padding: 8px 16px; font-size: 12px; }
    .drawer-close-label { display: none; }
}
@media (max-width: 640px) {
    .drawer-main { padding: 100px 24px 30px; }
    .drawer-nav .jp { font-size: 22px; }
    .drawer-nav a { padding: 18px 0; }
    .drawer-nav a:hover { padding-left: 20px; }
    .drawer-aside {
        padding: 30px 24px 50px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   First View
========================================== */
.fv { position: relative; height: 100vh; height: 100svh; padding-top: 90px; }
.fvSwiper { width: 100%; height: 100%; }
.fv-slide-bg { width: 100%; height: 100%; background-size: cover; background-position: center; }
.fv-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.85); padding: 40px 60px; text-align: center;
    z-index: 10; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.fv-title { font-size: 32px; line-height: 1.8; margin-bottom: 12px; letter-spacing: 0.1em; }
.fv-en {
    font-size: 13px;
    letter-spacing: 0.3em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.fv-subtitle { font-size: 15px; color: #555; letter-spacing: 0.12em; }

.swiper-pagination-bullet { background-color: #8C8C8C !important; opacity: 0.5 !important; }
.swiper-pagination-bullet-active { background-color: #333333 !important; opacity: 1 !important; }
.swiper-button-prev::after, .swiper-button-next::after {
    color: #ffffff !important; font-size: 28px !important; text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* ==========================================
   Common Section
========================================== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 30px; letter-spacing: 0.1em; margin-bottom: 10px; }
.section-subtitle { font-size: 12px; color: #888; letter-spacing: 0.1em; }
.btn-more {
    display: inline-block; border: 1px solid #888; color: #666;
    padding: 15px 50px; letter-spacing: 0.1em; font-size: 14px;
}
.btn-more:hover { background-color: #333; color: #fff; border-color: #333; }

/* ==========================================
   Concept
========================================== */
.concept-wrapper { padding-bottom: 40px; }
.concept-box {
    background-color: #fff; padding: 60px 40px; text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.concept-box h3 {
    font-size: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    line-height: 1.6;
    min-height: calc(1.6em * 2); /* 2行分の高さを確保して見出しを揃える */
    display: flex;
    align-items: center;
    justify-content: center;
}
.concept-box p { color: #666; line-height: 2; font-size: 14px; }

@media (min-width: 768px) {
    .concept-wrapper {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 0;
    }
    .conceptSwiper { overflow: visible; }
    .concept-pagination { display: none; }
}

/* ==========================================
   Works
========================================== */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 60px; }
.work-item { background-color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); display: block; }
.work-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
.work-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
}
.work-badge {
    position: absolute; top: 15px; left: 15px; background-color: #fff;
    padding: 5px 12px; font-size: 11px; letter-spacing: 0.1em; z-index: 2;
}
.work-badge.dark { background-color: #333; color: #fff; }
.work-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work-item:hover .work-img { transform: scale(1.05); }
.work-body { padding: 25px; }
.work-title { font-size: 18px; margin-bottom: 10px; }
.work-desc { font-size: 13px; color: #888; }

/* ==========================================
   Awards
========================================== */
.awards { background-color: #fff; padding: 40px 0; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; }
.awards-inner { display: flex; align-items: center; justify-content: center; gap: 15px; }
.award-badge { background-color: #FEF3C7; color: #92400E; font-size: 12px; font-weight: bold; padding: 4px 12px; letter-spacing: 0.1em; }
.award-text { font-size: 15px; transition: color 0.3s; }
.awards-inner:hover .award-text { color: #888; }

/* ==========================================
   Blog
========================================== */
.blog { background-color: #fff; }
.filter-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; }
.filter-btn {
    display: inline-block;
    border: 1px solid #ccc; background-color: transparent; color: #666;
    padding: 8px 20px; font-size: 14px; letter-spacing: 0.05em;
    text-decoration: none; line-height: 1.4;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
}
.filter-btn:hover { background-color: #f0f0f0; }
.filter-btn.active { background-color: #333; color: #fff; border-color: #333; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-groups .blog-group[hidden] { display: none; }
.blog-item { display: block; transition: opacity 0.4s ease; }
.blog-img-wrap {
    width: 100%;
    aspect-ratio: 1200 / 630;
    background-color: #f5f5f7;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-item:hover .blog-img { transform: scale(1.05); }
.blog-img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 24px; color: #ccc; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-date { font-size: 12px; color: #aaa; }
.blog-cat { font-size: 11px; background-color: #f0f0f0; padding: 3px 8px; color: #666; }
.blog-cat.award { background-color: #FEF3C7; color: #92400E; }
.blog-title { font-size: 16px; transition: color 0.3s; }
.blog-item:hover .blog-title { color: #888; }

/* ==========================================
   Instagram
========================================== */
.instagram-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.ig-title h2 { font-size: 20px; letter-spacing: 0.1em; }
.ig-title p { font-size: 12px; color: #888; margin-top: 5px; }
.ig-link { font-size: 12px; color: #888; border-bottom: 1px solid #ccc; padding-bottom: 2px; }
.ig-link:hover { color: #333; border-color: #333; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ig-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ==========================================
   Company
========================================== */
.company { background-color: #fff; }
.company-inner { display: flex; align-items: center; background-color: #F5F5F7; }
.company-content { flex: 1; padding: 80px 60px; }
.company-content h2 { font-size: 30px; letter-spacing: 0.1em; margin-bottom: 20px; }
.company-content p { color: #666; line-height: 1.8; margin-bottom: 40px; font-size: 14px; }
.company-img-wrap { flex: 1; height: 500px; }
.company-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================
   Contact
========================================== */
.contact-area { background-color: #333; color: #fff; padding: 100px 20px; text-align: center; }
.contact-area h2 { font-size: 32px; margin-bottom: 20px; letter-spacing: 0.1em; }
.contact-area p { font-size: 15px; color: #ccc; margin-bottom: 40px; line-height: 1.8; }
.btn-primary { background-color: #fff; color: #333; padding: 18px 50px; letter-spacing: 0.1em; display: inline-block; font-weight: bold; }
.btn-primary:hover { background-color: #eaeaea; }

/* ==========================================
   Footer
========================================== */
.footer { background-color: #fff; padding: 60px 0 30px; border-top: 1px solid #eaeaea; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-logo { font-size: 24px; font-weight: bold; display: block; margin-bottom: 10px; letter-spacing: 0.1em; }
.footer-info p { font-size: 12px; color: #888; line-height: 1.8; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.footer-links a { font-size: 14px; color: #888; }
.footer-links a:hover { color: #333; }
.copy { text-align: center; font-size: 11px; color: #aaa; margin-top: 50px; }

/* ==========================================
   Single / Archive / Page
========================================== */
.page-header {
    padding: 180px 20px 80px; text-align: center; background-color: #fff; border-bottom: 1px solid #eaeaea;
}
.page-header h1 { font-size: 32px; letter-spacing: 0.1em; margin-bottom: 10px; }
.page-header .subtitle { font-size: 12px; color: #888; letter-spacing: 0.1em; }

.entry-content { max-width: 1100px; margin: 0 auto; padding: 80px 60px; background: #fff; }

@media (max-width: 768px) {
    .entry-content { padding: 50px 20px; }
}
.entry-content h2 { font-size: 24px; margin: 40px 0 20px; letter-spacing: 0.08em; }
.entry-content h3 { font-size: 20px; margin: 30px 0 15px; }
.entry-content p { margin-bottom: 20px; line-height: 2; color: #555; }
.entry-content img { margin: 20px 0; }
.entry-content a { color: #333; border-bottom: 1px solid #888; }
.entry-content ul, .entry-content ol { margin: 20px 0 20px 30px; }
.entry-content blockquote { border-left: 3px solid #333; padding-left: 20px; margin: 30px 0; color: #666; }

.entry-meta { margin-bottom: 30px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.entry-thumbnail { margin-bottom: 40px; }
.entry-thumbnail img { width: 100%; height: auto; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.pagination .page-numbers {
    padding: 10px 16px; border: 1px solid #ccc; color: #666; font-size: 14px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: #333; color: #fff; border-color: #333; }

.back-link { text-align: center; margin: 40px 0 80px; }

/* ==========================================
   Breadcrumbs
========================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 0;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.05em;
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
}
.breadcrumbs-item:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: #ccc;
}
.breadcrumbs-item a {
    color: #888;
    text-decoration: none;
}
.breadcrumbs-item a:hover { color: #333; }
.breadcrumbs-item span { color: #555; }

@media (max-width: 768px) {
    .breadcrumbs { padding: 6px 0; min-height: 32px; font-size: 11px; }
}

/* ==========================================
   Works Archive Page
========================================== */
.works-hero {
    margin-top: 80px;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.works-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.works-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.works-hero-inner h1 {
    font-size: 44px;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}
.works-hero-inner .subtitle {
    font-size: 14px;
    letter-spacing: 0.2em;
    opacity: 0.9;
}
.works-description {
    max-width: 720px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 2;
    font-size: 14px;
}
.works-archive .works-grid { margin-bottom: 60px; }
.works-archive .filter-btn { display: inline-block; }

@media (max-width: 768px) {
    .works-hero { height: 280px; margin-top: 80px; }
    .works-hero-inner h1 { font-size: 32px; }
}

/* ==========================================
   About Page
========================================== */
.about-message { background-color: #fff; }
.about-message-inner {
    max-width: 900px;
    margin: 0 auto;
}
.about-message-inner.has-image {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}
.about-rep-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.about-message-body p {
    color: #555;
    line-height: 2.2;
    font-size: 15px;
    margin-bottom: 1.5em;
    letter-spacing: 0.05em;
}
.about-rep-name {
    text-align: right;
    font-size: 18px;
    margin-top: 40px !important;
    color: #333 !important;
    letter-spacing: 0.1em;
}

.about-info { background-color: #F5F5F7; }
.about-info-table {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.about-info-table th,
.about-info-table td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
    line-height: 1.8;
}
.about-info-table th {
    width: 180px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.1em;
    background-color: #fafafa;
    vertical-align: top;
}
.about-info-table td { color: #333; }
.about-info-table tr:last-child th,
.about-info-table tr:last-child td { border-bottom: none; }

.about-extra { background-color: #fff; }

@media (max-width: 768px) {
    .about-message-inner.has-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-rep-image { max-width: 240px; margin: 0 auto; }
    .about-info-table th,
    .about-info-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }
    .about-info-table th {
        padding-bottom: 5px;
        border-bottom: none;
        font-size: 12px;
    }
}

/* 404 */
.error-404 { text-align: center; padding: 200px 20px; background: #fff; }
.error-404 h1 { font-size: 80px; font-family: 'Noto Serif JP', serif; margin-bottom: 20px; }
.error-404 p { color: #888; margin-bottom: 40px; }

/* ==========================================
   Responsive
========================================== */
@media (max-width: 1024px) {
    .pc-nav { display: none; }
}
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; height: 72px; }
    .logo-main { font-size: 24px; }
    .logo-tagline { display: none; }
    .header-actions { gap: 8px; }
    .icon-btn { width: 38px; height: 38px; }
    .menu-btn { padding: 8px 16px; font-size: 12px; }
    .menu-btn-label { display: none; }
    .fv { padding-top: 72px; }

    .fv-overlay { width: 90%; padding: 30px 20px; }
    .fv-title { font-size: 24px; }

    .concept-box { padding: 40px 20px; }
    .concept-box h3 { font-size: 18px; }

    .awards-inner { flex-direction: column; text-align: center; }

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

    .ig-grid { grid-template-columns: repeat(2, 1fr); }
    .ig-grid img:nth-child(3), .ig-grid img:nth-child(4) { display: none; }

    .company-inner { flex-direction: column; }
    .company-content { padding: 50px 20px; text-align: center; }
    .company-img-wrap { width: 100%; height: 300px; }

    .footer { padding: 50px 0 25px; }
    .footer-inner { flex-direction: column; gap: 30px; text-align: center; align-items: center; }
    .footer-info p { font-size: 11px; }
    .footer-logo { font-size: 22px; margin-bottom: 14px; }
    .footer-links { gap: 12px 20px; max-width: 280px; margin: 0 auto; }
    .footer-links a { font-size: 13px; }
    .copy { margin-top: 36px; font-size: 10px; }

    .page-header { padding: 140px 20px 60px; }
    .page-header h1 { font-size: 24px; }
}

/* ==========================================
   Contact Page & Contact Form 7
========================================== */
.contact-page { background-color: #fff; }
.contact-lead {
    max-width: 640px;
    margin: 0 auto 60px;
    color: #666;
    line-height: 2;
    font-size: 15px;
}
.contact-lead small { color: #999; font-size: 12px; }

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

/* CF7 Form Layout */
.contact-form-wrap .wpcf7-form {}

.contact-form-wrap .form-group {
    margin-bottom: 36px;
}
.contact-form-wrap .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    color: #333;
}
.contact-form-wrap .form-group .required {
    display: inline-block;
    background-color: #c0392b;
    color: #fff;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 2px;
    margin-left: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
    vertical-align: middle;
}
.contact-form-wrap .form-group .optional {
    display: inline-block;
    background-color: #999;
    color: #fff;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 2px;
    margin-left: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* Input / Textarea */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    border-color: #333;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.06);
}
.contact-form-wrap textarea { min-height: 200px; resize: vertical; }
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder { color: #bbb; }

/* Checkbox group */
.contact-form-wrap .checkbox-group,
.contact-form-wrap .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 10px 0;
}
.contact-form-wrap .wpcf7-list-item {
    margin: 0 !important;
}
.contact-form-wrap .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    margin-bottom: 0;
}
.contact-form-wrap .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #333;
    cursor: pointer;
}

/* Submit Button */
.contact-form-wrap .form-submit {
    text-align: center;
    margin-top: 50px;
}
.contact-form-wrap input[type="submit"],
.contact-form-wrap .wpcf7-submit {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 18px 80px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    border: 2px solid #333;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}
.contact-form-wrap .wpcf7-submit:hover {
    background-color: #fff;
    color: #333;
}

/* Spinner */
.contact-form-wrap .wpcf7-spinner { display: block; margin: 16px auto 0; }

/* Validation */
.contact-form-wrap .wpcf7-not-valid { border-color: #c0392b !important; }
.contact-form-wrap .wpcf7-not-valid-tip {
    display: block;
    color: #c0392b;
    font-size: 12px;
    margin-top: 6px;
}
.contact-form-wrap .wpcf7-response-output {
    border: none !important;
    padding: 16px 20px !important;
    margin: 30px 0 0 !important;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
}
.contact-form-wrap .wpcf7-mail-sent-ok,
.contact-form-wrap .wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    color: #155724;
}
.contact-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #f8d7da;
    color: #721c24;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-lead { font-size: 14px; margin-bottom: 40px; }
    .contact-form-wrap input[type="text"],
    .contact-form-wrap input[type="email"],
    .contact-form-wrap input[type="tel"],
    .contact-form-wrap textarea { font-size: 16px; padding: 12px 14px; }
    .contact-form-wrap .wpcf7-submit { width: 100%; padding: 16px 20px; }
    .contact-form-wrap .checkbox-group { flex-direction: column; gap: 12px; }
}

/* WP Core */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #888; text-align: center; margin-top: 5px; }
.screen-reader-text {
    position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden;
}
