/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --color-bg:        #ffffff;
    --color-bg-2:      #f5f5f5;
    --color-bg-3:      #ebebeb;
    --color-accent:    #1a5c38;
    --color-accent-2:  #2d7a50;
    --color-text:      #111111;
    --color-text-2:    #666666;
    --color-border:    rgba(0,0,0,0.1);
    --color-white:     #ffffff;
    --color-black:     #000000;

    --font-ja:         'Noto Sans JP', sans-serif;
    --font-en:         'Oswald', sans-serif;

    --header-height:   80px;
    --header-height-sm: 60px;

    --container-max:   1200px;
    --container-pad:   clamp(20px, 5vw, 60px);

    --transition:      0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ============================================================
   Base
   ============================================================ */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-ja);
    font-size: 1.6rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) {
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}
/* ============================================================
   Layout
   ============================================================ */
.l-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.l-main {
    padding-top: 0;
    padding-bottom: 80px;
}

/* WordPress admin bar 非表示 */
html #wpadminbar {
    display: none !important;
}
html {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: relative;
    background: transparent;
    z-index: 2;
}
@media (max-width: 767px) {
    .site-header {
        width: 100vw;
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px, 2.5vw, 28px) clamp(20px, 4vw, 50px);
}

/* Logo */
.site-header__logo a {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 44px;
    width: auto;
}

/* ============================================================
   Global Nav — 全画面幅でハンバーガーに統一のため非表示
   ============================================================ */
.global-nav {
    display: none;
}

.site-header__actions {
    display: none;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    border-radius: 3px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.header-btn--recruit {
    border: 1px solid var(--color-text-2);
    color: var(--color-text);
    background: transparent;
}

.header-btn--recruit:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.header-btn--contact {
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: var(--color-bg);
}

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

/* ============================================================
   Hamburger — 右上に固定・黒背景
   ============================================================ */
.hamburger {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 72px;
    height: 72px;
    background: var(--color-black);
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    transition: background var(--transition);
}

.hamburger:hover {
    background: #222;
}

.hamburger__label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.hamburger__line {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--color-white);
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
    transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger__label {
    display: none;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   Drawer Navigation (右サイドパネル — PC・モバイル共通)
   ============================================================ */
.drawer-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    background: var(--color-white);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
}

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

.drawer-nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-nav__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-nav__head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 20px 20px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.drawer-nav__close {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 4px 0;
    transition: color var(--transition);
}

.drawer-nav__close:hover {
    color: var(--color-accent);
}

.drawer-close-icon {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.drawer-close-icon::before,
.drawer-close-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    top: 50%;
    left: 0;
}

.drawer-close-icon::before {
    transform: translateY(-50%) rotate(45deg);
}

.drawer-close-icon::after {
    transform: translateY(-50%) rotate(-45deg);
}

.drawer-nav__body {
    flex: 1;
    padding: 8px 0;
}

.drawer-nav__list {
    display: flex;
    flex-direction: column;
}

.drawer-nav__list > li > a {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 18px 36px;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition), background var(--transition), padding-left var(--transition);
    letter-spacing: 0.05em;
}

.drawer-nav__list > li > a:hover {
    color: var(--color-accent);
    background: var(--color-bg-2);
    padding-left: 44px;
}

.drawer-nav__actions {
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.drawer-nav__actions .header-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    border-radius: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--color-bg-2);
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.site-footer__logo img {
    height: 40px;
    width: auto;
}

.footer-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.footer-nav__list li a {
    font-size: 1.3rem;
    color: var(--color-text-2);
    transition: color var(--transition);
}

.footer-nav__list li a:hover {
    color: var(--color-accent);
}

.site-footer__info {
    text-align: right;
}

.site-footer__info address {
    font-style: normal;
    font-size: 1.3rem;
    color: var(--color-text-2);
    line-height: 1.8;
}

.site-footer__info address a {
    color: var(--color-text-2);
    transition: color var(--transition);
}

.site-footer__info address a:hover {
    color: var(--color-accent);
}

.site-footer__copyright {
    background: var(--color-black);
    text-align: center;
    padding: 16px;
}

.site-footer__copyright p {
    font-size: 1.2rem;
    color: var(--color-text-2);
    letter-spacing: 0.05em;
}

/* ============================================================
   Scroll Fade-in Animation
   ============================================================ */
.js-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.js-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.js-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   共通セクション
   ============================================================ */
.section {
    padding-block: clamp(60px, 8vw, 120px);
}
@media (max-width: 767px) {
    .section {
        width: 100vw;
        overflow-x: hidden;
    }
}

.section__head {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 70px);
}

.section__en {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(3.6rem, 5vw, 5.6rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-black);
    line-height: 1;
    margin-bottom: 12px;
}

.section__ja {
    display: block;
    font-size: 1.3rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
}

/* ============================================================
   ボタン共通
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    border: none;
}
@media (max-width: 767px) {
    .btn {
        width: 100%;
    }
}

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

.btn--primary:hover {
    background: var(--color-accent-2);

}

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

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

/* Arrow icon */
.btn__arrow {
    width: 20px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: width var(--transition);
}

.btn__arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.btn:hover .btn__arrow {
    width: 28px;
}

/* ============================================================
   パンくず
   ============================================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 1.2rem;
    color: var(--color-text-2);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb__separator {
    color: var(--color-border);
}

.breadcrumb a {
    color: var(--color-text-2);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__info {
        text-align: left;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: var(--header-height-sm);
    }
}

/* ============================================================
   英語フォント（Oswald）— 全体を太字に統一
   ============================================================ */
.page-fv__en,
.top-news__date,
.top-nav-link__en,
.top-about__text h2,
.works-filter__label,
.works-pagination .page-numbers,
.works-meta__label,
.works-nav__label,
.works-nav__back a,
.history-item__year,
.works-history-item__year,
.philosophy-block__title,
.hero__scroll,
.header-btn {
    font-weight: 700;
}

.works-card__img img{
    max-width: 100%;
    height: auto !important;
}