/* =========================================
   layout.css — .es-inner / .l-header / .l-footer 上書き
   コンポーネントのスタイルはここに書かない
========================================= */

/* =========================================
   フロントページ：Arkhe の l-container 制約を解除して全幅表示に
   header.php が出力する .l-content__body.l-container は
   padding: min(48px,4vw) と margin: 3rem auto を持つため上書き
========================================= */
body.home .l-content__body {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================================
   コンテナ（旧 .in → .es-inner にリネーム）
========================================= */
.es-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* =========================================
   Header 上書き（Arkheの .l-header を対象に）
========================================= */
.l-header {
    background-color: rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 90px;
}

/* ロゴ */
.l-header .logo a,
.l-header__logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--es-font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--es-green);
}
.l-header .logo span,
.l-header__logo span {
    font-size: 0.8rem;
    color: #666;
    font-family: var(--es-font-title);
    margin-left: 5px;
}

/* ナビ アンダーラインアニメーション */
.c-gnav a {
    font-family: var(--es-font-title);
    font-weight: 700;
    position: relative;
}
.c-gnav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--es-green);
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform 0.3s;
}
.c-gnav a:hover::after,
.c-gnav a.current::after {
    transform-origin: left top;
    transform: scale(1, 1);
}
.c-gnav a.current { color: var(--es-green); }

/* =========================================
   Footer 上書き（Arkheの .l-footer を対象に）
========================================= */
.l-footer {
    background: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer_inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer_left { width: 30%; }
.footer_logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--es-font-en);
}
.footer_nav { width: 65%; display: flex; flex-wrap: wrap; }
.footer_nav_col { width: 33.33%; padding-right: 20px; }
.footer_nav_col li { margin-bottom: 15px; }
.footer_nav_col a { font-weight: 500; font-size: 0.95rem; color: #ccc; }
.footer_nav_col a:hover { color: var(--es-green-light); padding-left: 5px; }
.copyright {
    text-align: center;
    margin-top: 60px;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* =========================================
   モーダルの z-index（Arkheドロワーより上に）
   Arkheドロワーは z-index 1000前後
========================================= */
.modal-overlay { z-index: 9999; }

/* =========================================
   Page Hero / Breadcrumb（下層ページ共通）
========================================= */
.page_hero {
    background: linear-gradient(135deg, #e0f2e9 0%, #d4ebe2 100%);
    padding: 60px 0 50px;
    text-align: center;
}
.page_hero_title {
    font-family: var(--es-font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--es-green);
}
.page_hero_title span {
    display: block;
    font-family: var(--es-font-en);
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-top: 6px;
}
.breadcrumb { margin-top: 16px; font-size: 0.85rem; color: #888; }
.breadcrumb a { color: var(--es-green); }
.breadcrumb a:hover { text-decoration: underline; }

/* =========================================
   SP / PC 表示切替（Arkhe標準に合わせる）
   ※ .pc_only / .sp_only は使わず Arkhe の
      u-hide-sp / u-only-sp を使う
      以下はフォールバック定義
========================================= */
@media (max-width: 768px) {
    .l-footer .footer_inner { flex-direction: column; }
    .footer_left { width: 100%; margin-bottom: 30px; }
    .footer_nav  { width: 100%; }
    .footer_nav_col { width: 50%; }
}
