/*
Theme Name: 社会福祉法人遊亀会 公式サイト
Theme URI: https://yuukikai.jp
Author: 遊亀会
Author URI: https://yuukikai.jp
Description: 社会福祉法人遊亀会 公式サイト WordPressテーマ。法人の信頼感、保護者への安心感、施設紹介、採用導線を重視した構成です。
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
License URI: #
Text Domain: yuukikai
Tags: social-welfare, childcare, corporate
*/

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'dnp-shuei-gothic-gin-std', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333333;
    background-color: #faf8f3;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   カラー変数
   ============================================================ */
:root {
    --color-bg:             #ffffff;
    --color-bg-soft:        #faf8f3;
    --color-bg-cream:       #f7f4ec;
    --color-text:           #333333;
    --color-text-sub:       #666666;
    --color-main:           #7fa77b;
    --color-main-dark:      #4f7a57;
    --color-main-light:     #a9c79b;
    --color-accent:         #e8a15a;
    --color-accent-light:   #f2d27a;
    --color-accent-pink:    #e8b7aa;
    --color-pastel-blue:    #bfd8d5;
    --color-pastel-yellow:  #f2e2a2;
    --color-pastel-pink:    #ebc6be;
    --color-pastel-green:   #d7e5c3;
    --color-pastel-orange:  #efc9a3;

    --color-black:          var(--color-text);
    --color-dark:           var(--color-main-dark);
    --color-mid:            var(--color-text-sub);
    --color-gray:           var(--color-main);
    --color-light-gray:     #9a9a8f;
    --color-border:         rgba(51, 51, 51, 0.08);
    --color-bg-alt:         var(--color-bg-soft);
    --color-bg-light:       var(--color-bg-cream);
    --color-placeholder:    #edf2e8;
    --color-white:          #ffffff;
    --color-main-soft:      var(--color-main-light);
    --color-accent-soft:    var(--color-accent-light);
    --color-pink-soft:      var(--color-accent-pink);
    --shadow-soft:          0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   制作用バナー（現在は非表示）
   ============================================================ */
.wf-banner {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 32px;
    z-index: 100;
}

.site-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.site-logo img {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.site-logo .logo-sub {
    font-size: 10px;
    color: var(--color-light-gray);
    letter-spacing: 0.15em;
}

.site-logo .logo-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.header-nav a:hover,
.header-nav a.current {
    color: var(--color-black);
    border-bottom-color: var(--color-black);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
    letter-spacing: 0.03em;
    text-decoration: none;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-black);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 9px 23px;
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
    text-decoration: none;
}

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

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--color-dark);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
    text-decoration: none;
}

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

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    color: var(--color-black);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
    letter-spacing: 0.03em;
    text-decoration: none;
}

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

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 9px 23px;
    border: 2px solid var(--color-white);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
    text-decoration: none;
}

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

/* ============================================================
   共通プレースホルダー・更新領域パーツ
   ============================================================ */
.wf-placeholder {
    background-color: var(--color-placeholder);
    border: 2px dashed #9e9e9e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.wf-wp-area {
    position: relative;
    background-color: var(--color-bg-light);
    border: 1px dashed #bdbdbd;
    border-radius: 2px;
}

.wf-wp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--color-gray);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.wf-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-light-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.wf-category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    background-color: var(--color-border);
    color: var(--color-dark);
    letter-spacing: 0.05em;
}

/* ============================================================
   コンテナ
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================================
   セクション
   ============================================================ */
.section {
    padding: 64px 0;
}

.yuukikai-front {
    position: relative;
    overflow: hidden;
}

.yuukikai-front > section {
    position: relative;
    z-index: 2;
}

/* ============================================================
   トップページ 背景装飾
   ============================================================ */
.yuukikai-bg-decor {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.yuukikai-bg-decor__item {
    position: absolute;
    display: block;
    width: clamp(42px, 5vw, 82px);
    aspect-ratio: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.42;
    filter: drop-shadow(0 10px 20px rgba(79, 122, 87, 0.08));
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    will-change: transform, opacity;
}

.yuukikai-bg-decor__item.is-flying {
    animation: yuukikai-fly-away 1.25s cubic-bezier(0.16, 0.82, 0.28, 1) forwards;
    pointer-events: none;
}

.yuukikai-bg-decor__item--star {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/07/%E6%98%9F.png");
}

.yuukikai-bg-decor__item--moon {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/07/%E6%9C%88.png");
}

.yuukikai-bg-decor__item--sun {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/07/%E5%A4%AA%E9%99%BD.png");
}

.yuukikai-bg-decor__item--star-1 {
    top: 14%;
    left: 7%;
    animation: yuukikai-play-a 24s ease-in-out infinite;
}

.yuukikai-bg-decor__item--star-2 {
    top: 88%;
    right: 12%;
    width: clamp(36px, 4vw, 68px);
    animation: yuukikai-play-b 29s ease-in-out infinite;
}

.yuukikai-bg-decor__item--moon-1 {
    top: 25%;
    left: 82%;
    animation: yuukikai-play-c 33s ease-in-out infinite;
}

.yuukikai-bg-decor__item--moon-2 {
    top: 94%;
    left: 11%;
    width: clamp(38px, 4.4vw, 74px);
    animation: yuukikai-play-d 28s ease-in-out infinite;
}

.yuukikai-bg-decor__item--sun-1 {
    top: 58%;
    right: 22%;
    width: clamp(46px, 5.6vw, 92px);
    animation: yuukikai-play-e 31s ease-in-out infinite;
}

.yuukikai-bg-decor__item--sun-2 {
    top: 81%;
    left: 45%;
    width: clamp(34px, 4.2vw, 70px);
    animation: yuukikai-play-f 26s ease-in-out infinite;
}

.yuukikai-find-game {
    position: relative;
    z-index: 4;
    padding: 22px 0 8px;
    background: var(--color-bg-soft);
}

.yuukikai-find-game__text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-main-dark);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(127, 167, 123, 0.22);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(79, 122, 87, 0.08);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.7;
    padding: 0.75rem 1.3rem;
}

.yuukikai-find-game__text::before {
    content: "";
    display: inline-block;
    width: 1.6em;
    aspect-ratio: 1;
    background: url("https://yu-kikai.com/wp-content/uploads/2026/07/%E6%98%9F.png") center / contain no-repeat;
    animation: yuukikai-find-sparkle 2.8s ease-in-out infinite;
}

.yuukikai-find-game__text.is-complete {
    color: #ffffff;
    background: var(--color-main);
    border-color: var(--color-main);
}

.yuukikai-find-game__text.is-complete::before {
    filter: brightness(0) invert(1);
}

@keyframes yuukikai-find-sparkle {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.16); }
}

@keyframes yuukikai-play-a {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); }
    24% { transform: translate3d(22px, -18px, 0) rotate(12deg) scale(1.14); }
    52% { transform: translate3d(40px, 34px, 0) rotate(-6deg) scale(0.96); }
    78% { transform: translate3d(-12px, 20px, 0) rotate(10deg) scale(1.08); }
}

@keyframes yuukikai-play-b {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(10deg) scale(1); }
    30% { transform: translate3d(-24px, -26px, 0) rotate(-14deg) scale(1.1); }
    58% { transform: translate3d(-48px, 18px, 0) rotate(8deg) scale(0.92); }
    82% { transform: translate3d(12px, 34px, 0) rotate(-4deg) scale(1.04); }
}

@keyframes yuukikai-play-c {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); }
    26% { transform: translate3d(-34px, 22px, 0) rotate(7deg) scale(1.08); }
    55% { transform: translate3d(-18px, -36px, 0) rotate(-12deg) scale(0.96); }
    80% { transform: translate3d(16px, -10px, 0) rotate(5deg) scale(1.05); }
}

@keyframes yuukikai-play-d {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg) scale(0.96); }
    22% { transform: translate3d(24px, -34px, 0) rotate(-10deg) scale(1.08); }
    49% { transform: translate3d(52px, 12px, 0) rotate(14deg) scale(1); }
    73% { transform: translate3d(12px, 36px, 0) rotate(-3deg) scale(1.12); }
}

@keyframes yuukikai-play-e {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    28% { transform: translate3d(20px, -42px, 0) rotate(18deg) scale(1.12); }
    54% { transform: translate3d(-20px, -14px, 0) rotate(-10deg) scale(0.95); }
    76% { transform: translate3d(26px, 28px, 0) rotate(8deg) scale(1.06); }
}

@keyframes yuukikai-play-f {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-12deg) scale(0.98); }
    20% { transform: translate3d(-20px, 22px, 0) rotate(12deg) scale(1.15); }
    46% { transform: translate3d(18px, 46px, 0) rotate(-7deg) scale(0.94); }
    72% { transform: translate3d(40px, -10px, 0) rotate(15deg) scale(1.05); }
}

@keyframes yuukikai-fly-away {
    0% {
        opacity: 0.5;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    35% {
        opacity: 0.9;
        transform: translate3d(calc(var(--fly-x, 120px) * 0.28), calc(var(--fly-y, -140px) * 0.22), 0) rotate(calc(var(--fly-rotate, 28deg) * 0.35)) scale(1.18);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--fly-x, 120px), var(--fly-y, -140px), 0) rotate(var(--fly-rotate, 28deg)) scale(0.62);
    }
}

@media (max-width: 768px) {
    .yuukikai-bg-decor__item {
        width: clamp(30px, 11vw, 54px);
        opacity: 0.26;
    }

    .yuukikai-bg-decor__item--star-1 { top: 16%; left: 6%; }
    .yuukikai-bg-decor__item--star-2 { top: 88%; right: 5%; }
    .yuukikai-bg-decor__item--moon-1 { top: 38%; left: 78%; }
    .yuukikai-bg-decor__item--moon-2 { top: 94%; left: 8%; }
    .yuukikai-bg-decor__item--sun-1 { top: 68%; right: 18%; }
    .yuukikai-bg-decor__item--sun-2 { top: 82%; left: 42%; }
}

@media (prefers-reduced-motion: reduce) {
    .yuukikai-bg-decor__item {
        animation: none;
    }

    .yuukikai-bg-decor__item.is-flying {
        opacity: 0;
    }
}

.section-alt {
    padding: 64px 0;
    background-color: var(--color-bg-alt);
}

.section-dark {
    padding: 64px 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

/* ============================================================
   見出し
   ============================================================ */
.heading-lg {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.heading-md {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.heading-sm {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.4;
}

.text-body {
    font-size: 0.9rem;
    color: var(--color-dark);
    line-height: 1.7;
}

.text-small {
    font-size: 0.8rem;
    color: var(--color-mid);
    line-height: 1.6;
}

/* ============================================================
   カード
   ============================================================ */
.wf-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

/* ============================================================
   グリッド
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   フレックス
   ============================================================ */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   ページヘッダー
   ============================================================ */
.page-header {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-light-gray);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

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

.breadcrumb .sep {
    color: var(--color-light-gray);
}

/* ============================================================
   ファーストビュー
   ============================================================ */
.fv-section {
    position: relative;
}

.fv-placeholder {
    width: 100%;
    height: clamp(400px, 56vw, 560px);
    background-color: var(--color-placeholder);
    border: 2px dashed #9e9e9e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid);
    font-size: 0.75rem;
    text-align: center;
}

.fv-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.fv-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.fv-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.fv-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-weight: 500;
}

.fv-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   施設カード
   ============================================================ */
.facility-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.facility-card .card-img {
    width: 100%;
    height: 160px;
    background-color: var(--color-placeholder);
    border: 2px dashed #9e9e9e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem;
}

.facility-card .card-body {
    padding: 1rem;
}

.facility-card .card-title {
    font-size: clamp(0.86rem, 1vw, 1rem);
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 0;
    line-height: 1.35;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.facility-card .card-type {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    background-color: var(--color-border);
    color: var(--color-dark);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.facility-card .card-capacity {
    font-size: 0.75rem;
    color: var(--color-mid);
    margin-bottom: 0.5rem;
}

.facility-card .card-desc {
    font-size: 0.8rem;
    color: var(--color-mid);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ============================================================
   採用セクション（ダーク）
   ============================================================ */
.recruit-section {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 64px 0;
}

.recruit-point-card {
    background-color: #2e2e2e;
    border: 1px solid #424242;
    padding: 1rem;
    text-align: center;
}

.recruit-number-box {
    border: 1px solid #424242;
    padding: 1.5rem;
    text-align: center;
}

.recruit-number-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.number-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.number-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-light-gray);
}

/* ============================================================
   お知らせリスト
   ============================================================ */
.news-list {
    border-top: 1px solid var(--color-border);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.75rem;
    color: var(--color-mid);
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}

.news-title {
    font-size: 0.875rem;
    color: var(--color-black);
    font-weight: 500;
    flex: 1;
}

.news-title a:hover {
    text-decoration: underline;
}

/* ============================================================
   年表（受賞歴）
   ============================================================ */
.timeline {
    max-width: 640px;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.timeline-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-dark);
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-connector {
    width: 1px;
    flex: 1;
    background-color: var(--color-border);
    margin: 4px 0;
    min-height: 32px;
}

.timeline-content {
    padding-bottom: 1.5rem;
}

.timeline-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-mid);
    margin-bottom: 4px;
}

.timeline-award {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-black);
}

/* ============================================================
   テーブル（法人概要・募集要項）
   ============================================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

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

.info-table th {
    font-weight: 600;
    color: var(--color-dark);
    background-color: var(--color-bg-alt);
    width: 33%;
    white-space: nowrap;
}

.info-table tr:nth-child(even) td {
    background-color: var(--color-bg-alt);
}

/* ============================================================
   フォームプレースホルダー
   ============================================================ */
.form-field {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.375rem;
}

.form-label .required {
    font-size: 0.7rem;
    color: var(--color-light-gray);
    margin-left: 4px;
}

.form-input-placeholder {
    width: 100%;
    height: 40px;
    background-color: var(--color-placeholder);
    border: 2px dashed #9e9e9e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid);
    font-size: 0.75rem;
}

.form-textarea-placeholder {
    width: 100%;
    height: 96px;
    background-color: var(--color-placeholder);
    border: 2px dashed #9e9e9e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid);
    font-size: 0.75rem;
}

.wpcf7 form {
    display: grid;
    gap: 1.1rem;
}

.wpcf7 p {
    margin: 0;
}

.yuukikai-form-label,
.wpcf7 form > p > label {
    display: grid;
    gap: 0.4rem;
    color: var(--color-main-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.yuukikai-form-row > .yuukikai-form-label {
    display: block;
    margin-bottom: 0.45rem;
}

.yuukikai-form-note {
    display: inline-block;
    margin-left: 0.35rem;
    color: #9a9a8f;
    font-size: 0.72rem;
    font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    border: 1px solid rgba(127, 167, 123, 0.28);
    border-radius: 14px;
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--color-main);
    box-shadow: 0 0 0 4px rgba(127, 167, 123, 0.12);
}

.wpcf7-list-item {
    margin: 0 1rem 0.5rem 0;
}

.wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-text-sub);
    font-weight: 600;
}

.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--color-main);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.wpcf7-submit:hover {
    background: var(--color-main-dark);
    transform: translateY(-1px);
}

.wpcf7-spinner {
    display: block;
    margin: 0.75rem auto 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0 0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
}

.contact-choice-card {
    display: flex;
    flex-direction: column;
}

.contact-choice-card .text-body {
    margin-bottom: 1rem;
}

.contact-choice-info {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
}

.contact-choice-card > a {
    margin-top: auto;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
}

.contact-facility-card {
    overflow-wrap: anywhere;
}

.event-card-image {
    display: block;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.event-card-image-sm {
    height: 160px;
    margin-bottom: 0;
}

.food-activity-image {
    display: block;
    width: 100%;
    height: 160px;
    margin-bottom: 1rem;
    object-fit: cover;
    border-radius: 16px;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-sub {
    font-size: 0.625rem;
    color: var(--color-light-gray);
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.footer-logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
}

.footer-logo img {
    width: auto;
    height: 58px;
    object-fit: contain;
}

.footer-address {
    font-size: 0.75rem;
    color: var(--color-light-gray);
    line-height: 1.8;
}

.footer-heading {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-light-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: #bdbdbd;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid #424242;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-mid);
}

/* ============================================================
   ハンバーガーメニュー（スマホ）
   ============================================================ */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-black);
}

.mobile-menu {
    display: none;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark);
    border-bottom: 1px solid #f0f0f0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .header-cta { display: none; }
    .hamburger-btn { display: block; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .heading-lg { font-size: 1.4rem; }
    .heading-md { font-size: 1.1rem; }
    .section, .section-alt, .section-dark, .recruit-section { padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ページネーション
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    transition: all 0.15s;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ============================================================
   本番デザイン調整
   ============================================================ */
.wf-banner,
.wf-section-label,
.wf-wp-badge {
    display: none !important;
}

body {
    color: var(--color-text);
    background: var(--color-bg-soft);
}

.site-header {
    top: 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.site-header .header-inner {
    height: 76px;
}

.site-logo .logo-sub {
    color: var(--color-main-dark);
    font-weight: 700;
}

.site-logo .logo-main {
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.header-nav a {
    color: var(--color-text);
}

.header-nav a:hover,
.header-nav a.current {
    color: var(--color-main);
    border-bottom-color: var(--color-main-light);
}

.btn-primary,
.btn-secondary,
.btn-outline-sm,
.btn-white,
.btn-outline-white {
    border-radius: 999px;
    min-height: 44px;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 14px 28px;
}

.btn-primary:hover {
    background-color: var(--color-main-dark);
}

.btn-secondary {
    color: var(--color-main-dark);
    border-color: var(--color-main);
    background-color: #ffffff;
    padding: 13px 27px;
}

.btn-secondary:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
}

.btn-outline-sm {
    color: var(--color-main-dark);
    border-color: rgba(127, 167, 123, 0.45);
    background-color: #ffffff;
}

.btn-outline-sm:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
}

.btn-white {
    color: var(--color-main-dark);
}

.btn-outline-white:hover {
    color: var(--color-main-dark);
}

.section,
.section-alt,
.section-dark,
.recruit-section {
    padding: clamp(64px, 8vw, 96px) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-bg-cream);
    color: var(--color-text);
}

.heading-lg,
.heading-md,
.heading-sm {
    color: var(--color-black);
    letter-spacing: 0.04em;
}

.heading-lg {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.text-body {
    color: var(--color-text-sub);
}

.text-small {
    color: var(--color-text-sub);
}

.front-philosophy-copy {
    white-space: nowrap;
}

.about-philosophy-copy span {
    display: inline;
    text-align: center;
}

.about-philosophy-copy span + span::before {
    content: "　";
}

.about-message-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
}

.about-message-photo {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    border: 1px solid rgba(127, 167, 123, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.about-message-signature {
    color: #424242;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

.about-goal-copy span {
    display: inline;
}

.wf-placeholder,
.fv-placeholder,
.facility-card .card-img,
.form-input-placeholder,
.form-textarea-placeholder {
    background:
        linear-gradient(135deg, rgba(215, 229, 195, 0.6), rgba(250, 248, 243, 0.96));
    border: 1px solid rgba(127, 167, 123, 0.22);
    color: #7b8c72;
    border-radius: 20px;
}

.wf-wp-area,
.wf-card,
.facility-card {
    background-color: rgba(255,255,255,0.96);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.wf-card {
    padding: 24px;
}

.facility-card {
    padding: 12px;
}

.front-facility-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facility-card .card-img,
.facility-card img {
    border-radius: 16px;
    overflow: hidden;
}

.facility-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 2rem;
    align-items: start;
}

.facility-main-photo-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 8 / 5;
}

.facility-main-photo-wrap--portrait {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
}

.facility-main-photo,
.facility-main-photo-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.facility-main-photo-wrap--portrait .facility-main-photo {
    object-position: center center;
}

.facility-overview-table {
    table-layout: fixed;
}

.facility-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.facility-archive-grid .facility-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.facility-archive-grid .facility-card .card-img {
    height: 190px;
}

.facility-archive-grid .facility-card .card-desc {
    min-height: 4.8em;
}

@media (max-width: 1024px) {
    .front-facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facility-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .front-philosophy-copy {
        font-size: clamp(0.86rem, 3.45vw, 1rem) !important;
        white-space: nowrap;
        letter-spacing: 0;
    }

    .about-philosophy-copy {
        font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
        line-height: 1.55 !important;
    }

    .about-philosophy-copy span {
        display: block;
    }

    .about-philosophy-copy span + span::before {
        content: "";
    }

    .about-message-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-message-photo {
        height: 260px;
    }

    .about-goal-copy {
        font-size: clamp(0.98rem, 4vw, 1.12rem) !important;
    }

    .about-goal-copy span {
        display: block;
    }

    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-facility-sidebar {
        min-width: 0;
    }

    .contact-facility-card {
        overflow-wrap: break-word;
    }

    .recruit-number-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recruit-number-box {
        min-height: 150px;
        padding: 1.4rem 0.75rem;
    }

    .recruit-number-box .number-highlight {
        font-size: clamp(2rem, 12vw, 3rem);
        white-space: nowrap;
    }

    .recruit-number-box .number-unit {
        display: inline;
        font-size: 0.9rem;
        margin-left: 0.15em;
    }

    .front-facility-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .front-facility-grid .facility-card img,
    .front-facility-grid .facility-card .card-img {
        height: 220px !important;
    }

    .facility-archive-grid {
        grid-template-columns: 1fr;
    }

    .facility-archive-grid .facility-card img {
        height: 210px;
    }

    .facility-archive-grid .facility-card .card-img {
        height: 210px;
    }

    .facility-archive-grid .facility-card .card-desc {
        min-height: 0;
    }

    .facility-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .facility-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .facility-detail-layout img:not(.facility-main-photo),
    .facility-detail-layout .wf-placeholder:not(.facility-main-photo-placeholder) {
        height: auto !important;
        aspect-ratio: 8 / 5;
    }

    .facility-main-photo-wrap--portrait {
        max-width: 100%;
    }

    .facility-overview-table {
        table-layout: auto;
    }

    .facility-overview-table td {
        vertical-align: top;
    }

    .facility-overview-table td:last-child {
        word-break: normal;
        overflow-wrap: anywhere;
    }
}

.facility-card .card-body {
    padding: 18px 12px 12px;
}

.wf-card,
.facility-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.wf-card:hover,
.facility-card:hover {
    transform: translateY(-3px);
    border-color: rgba(127, 167, 123, 0.34);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.facility-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.facility-gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    border: 1px solid rgba(127, 167, 123, 0.16);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.facility-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.facility-gallery-item:hover img {
    transform: scale(1.04);
}

.facility-gallery-item--placeholder {
    display: grid;
    place-items: center;
    background: #f4f7f0;
    color: #789075;
    text-align: center;
}

.facility-gallery-item--placeholder span {
    font-size: 0.95rem;
    font-weight: 700;
}

.facility-gallery-item--placeholder small {
    display: block;
    margin-top: 0.35rem;
    color: #9da99a;
    font-size: 0.72rem;
    font-weight: 500;
}

@media (max-width: 420px) {
    .facility-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.page-header {
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0;
}

.breadcrumb {
    color: #8a897f;
}

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

.fv-section {
    min-height: clamp(460px, 58vw, 640px);
    overflow: hidden;
    background: var(--color-bg-soft);
}

.fv-placeholder {
    position: relative;
    height: clamp(460px, 58vw, 640px);
    border-radius: 0;
    border: 0;
    background: var(--color-bg-soft);
    color: transparent;
    font-size: 0;
    overflow: hidden;
}

.fv-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: opacity, transform;
    opacity: 0;
    animation: yuukikai-fv-slideshow 32s ease-in-out infinite both;
}

.fv-slide--train {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/09/電車.png");
    animation-delay: 0s;
}

.fv-slide--walk {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/09/池田湖散歩-1.jpg");
    animation-delay: 8s;
}

.fv-slide--kusunoki {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/09/クスノキ.jpg");
    animation-delay: 16s;
}

.fv-slide--lunchroom {
    background-image: url("https://yu-kikai.com/wp-content/uploads/2026/09/いけだランチルーム.jpg");
    animation-delay: 24s;
}

@keyframes yuukikai-fv-slideshow {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    3%, 22% {
        opacity: 1;
    }
    25%, 100% {
        opacity: 0;
        transform: scale(1.045);
    }
}

.fv-overlay {
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
    left: 50%;
    right: auto;
    width: 100%;
    transform: translateX(-50%);
    background: transparent;
    padding-left: clamp(2rem, 6vw, 5rem);
}

.fv-label {
    display: none;
}

.fv-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-shadow: none;
}

.fv-sub {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    letter-spacing: 0.05em;
    color: var(--color-text-sub);
    width: fit-content;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(33, 33, 33, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fv-cta {
    justify-content: flex-start;
}

.fv-title {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.fv-cta .btn-outline-white {
    background: #ffffff;
    color: var(--color-main-dark);
    border-color: var(--color-main);
}

.fv-cta .btn-outline-white:hover {
    background: var(--color-bg-cream);
}

@keyframes yuukikai-fv-fade-a {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.055);
    }
    50% {
        opacity: 0;
        transform: scale(1.07);
    }
    90% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes yuukikai-fv-fade-b {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    40% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1.055);
    }
    100% {
        opacity: 0;
        transform: scale(1.07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fv-slide {
        animation: none;
        opacity: 0;
    }

    .fv-slide--train {
        opacity: 1;
    }
}

.wf-category-badge,
.facility-card .card-type {
    background-color: var(--color-pastel-green);
    color: var(--color-main-dark);
    border-radius: 999px;
    padding: 4px 12px;
}

.facility-card .card-title,
.news-title {
    color: var(--color-black);
}

.grid-4 .facility-card:nth-child(4n + 1) .card-type { background: var(--color-pastel-green); color: var(--color-main-dark); }
.grid-4 .facility-card:nth-child(4n + 2) .card-type { background: var(--color-pastel-blue); color: #3f6968; }
.grid-4 .facility-card:nth-child(4n + 3) .card-type { background: var(--color-pastel-yellow); color: #665a2e; }
.grid-4 .facility-card:nth-child(4n + 4) .card-type { background: var(--color-pastel-orange); color: #765332; }

.yuukikai-feature-card {
    min-height: 220px;
}

.activity-photo-card {
    position: relative;
    display: flex;
    min-height: 220px;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    border: 0;
    background: #ffffff;
    isolation: isolate;
}

.activity-photo-card::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

.activity-photo-card::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    background-image: var(--activity-photo-image);
    background-position: center;
    background-size: cover;
    content: "";
}

.activity-photo-card-content {
    display: flex;
    min-height: 106px;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.85rem 0.9rem;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.activity-photo-card-content .text-small {
    font-size: clamp(0.72rem, 0.85vw, 0.82rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: normal;
}

.feature-page-photo {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(127, 167, 123, 0.22);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.feature-page-photo-main {
    height: 320px;
}

.feature-page-photo-food {
    height: 280px;
}

.feature-gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(127, 167, 123, 0.22);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
}

.feature-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.feature-gallery-item:hover img {
    transform: scale(1.04);
}

.feature-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.feature-gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feature-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(38, 45, 38, 0.58);
    cursor: zoom-out;
}

.feature-gallery-lightbox__figure {
    position: relative;
    width: min(92vw, 980px);
    max-height: 88vh;
    margin: 0;
    opacity: 0;
    transform: scale(0.9) rotate(-3deg);
    transition: opacity 0.46s ease, transform 0.78s cubic-bezier(0.16, 0.9, 0.2, 1);
}

.feature-gallery-lightbox.is-open .feature-gallery-lightbox__figure {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.feature-gallery-lightbox__figure img {
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.feature-gallery-lightbox__close {
    position: absolute;
    top: -0.9rem;
    right: -0.9rem;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-main-dark);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

body.is-gallery-open {
    overflow: hidden;
}

.shokuiku-page-photo,
.shokuiku-approach-photo,
.shokuiku-award-photo,
.shokuiku-gallery-item img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(127, 167, 123, 0.22);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.shokuiku-page-photo-main {
    height: 320px;
}

.shokuiku-page-photo-project {
    height: clamp(320px, 34vw, 440px);
    padding: 12px;
    background: #fff;
    object-fit: contain;
}

.shokuiku-approach-photo {
    height: 180px;
    margin-bottom: 1rem;
}

.shokuiku-award-photo {
    height: clamp(260px, 30vw, 360px);
    margin-bottom: 1rem;
    padding: 10px;
    background: #fff;
    object-fit: contain;
}

.shokuiku-award-card-grid {
    align-content: start;
    align-items: start;
}

.shokuiku-award-card {
    align-self: start;
    padding: 1rem;
    text-align: center;
}

.shokuiku-gallery-item {
    margin: 0;
}

.yuukikai-feature-card-green .wf-placeholder { background: var(--color-pastel-green); }
.yuukikai-feature-card-blue .wf-placeholder { background: var(--color-pastel-blue); }
.yuukikai-feature-card-yellow .wf-placeholder { background: var(--color-pastel-yellow); }
.yuukikai-feature-card-pink .wf-placeholder { background: var(--color-pastel-pink); }
.yuukikai-feature-card-orange .wf-placeholder { background: var(--color-pastel-orange); }

.recruit-section {
    background: #f1f7ed;
    color: var(--color-text);
}

.recruit-section h2,
.recruit-section h3,
.recruit-section [style*="color:#fff"],
.recruit-section [style*="color: #fff"] {
    color: var(--color-text) !important;
}

.recruit-section p,
.recruit-section [style*="color:#bdbdbd"],
.recruit-section [style*="color:#9e9e9e"] {
    color: var(--color-text-sub) !important;
}

.recruit-point-card,
.recruit-number-box {
    background-color: #ffffff;
    border: 1px solid rgba(127, 167, 123, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.number-highlight {
    color: var(--color-main-dark);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
}

.number-unit {
    color: var(--color-main-dark);
}

.recruit-section .number-highlight,
.recruit-section .number-unit {
    color: var(--color-main-dark) !important;
}

.recruit-section .btn-white {
    background: var(--color-main);
    color: #ffffff !important;
}

.recruit-section .btn-white:hover {
    background: var(--color-main-dark);
}

.recruit-section .btn-outline-white {
    background: #ffffff;
    color: var(--color-main-dark) !important;
    border-color: var(--color-main);
}

.recruit-section .btn-outline-white:hover {
    background: var(--color-bg-cream);
}

.recruit-message-photo {
    width: 100%;
    height: clamp(260px, 28vw, 400px);
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    border: 1px solid rgba(127, 167, 123, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.news-list {
    border-top-color: var(--color-border);
}

.news-item {
    border-bottom-color: var(--color-border);
}

.news-title a:hover {
    color: var(--color-main);
    text-decoration: none;
}

.news-item {
    padding: 1.15rem 0;
}

.news-date {
    color: #8a897f;
}

.wf-category-badge {
    background: var(--color-pastel-yellow);
    color: #665a2e;
    border-radius: 999px;
    padding: 4px 10px;
}

.timeline-dot {
    background-color: var(--color-accent);
    box-shadow: 0 0 0 5px rgba(232, 161, 90, 0.14);
}

.timeline-year {
    color: var(--color-main);
}

.info-table th {
    color: var(--color-main);
    background-color: rgba(169, 199, 155, 0.16);
}

.info-table tr:nth-child(even) td {
    background-color: rgba(250, 248, 243, 0.7);
}

.site-footer {
    background-color: var(--color-bg-soft);
    background-image: url("assets/images/footer-bg-yuukikai-soft.png");
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: var(--color-text);
    border-top: 0;
    min-height: clamp(620px, 56vw, 768px);
    aspect-ratio: auto;
    padding-top: clamp(15rem, 23vw, 20rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

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

.footer-logo-main {
    color: var(--color-main-dark);
}

[style*="border:2px solid #424242"],
[style*="border:1px solid #424242"] {
    border-color: rgba(127, 167, 123, 0.28) !important;
}

[style*="background:#212121"] {
    background: var(--color-main) !important;
}

[style*="background:#f5f5f5"],
[style*="background:#f0f0f0"],
[style*="background:#f8f8f8"] {
    background: var(--color-bg-soft) !important;
}

.recruit-hero-overlay {
    background: linear-gradient(135deg, rgba(250, 248, 243, 0.86), rgba(241, 247, 237, 0.86));
}

.recruit-hero-overlay p {
    color: var(--color-main-dark) !important;
}

.recruit-hero-overlay h1 {
    color: var(--color-text) !important;
}

.footer-logo-sub,
.footer-heading {
    color: var(--color-main-dark);
}

.footer-links a,
.footer-address {
    color: var(--color-text-sub);
}

.footer-links a:hover {
    color: var(--color-main-dark);
}

.footer-bottom {
    border-top: 0;
    justify-content: center;
    text-align: center;
}

.footer-copyright {
    color: #8a897f;
    width: 100%;
}

@media (max-width: 768px) {
    .site-footer {
        background-position: center bottom;
        background-size: auto 100%;
        min-height: 880px;
        aspect-ratio: auto;
        padding-top: 17rem;
        padding-bottom: 3rem;
    }

    .site-footer .container {
        max-width: 92%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1.5rem;
        margin-bottom: 1.25rem;
    }

    .footer-heading {
        margin-bottom: 0.55rem;
    }

    .footer-links {
        gap: 0.35rem;
    }

    .footer-links a,
    .footer-address,
    .footer-copyright {
        font-size: 0.7rem;
        line-height: 1.65;
    }

    .footer-bottom {
        padding-top: 0.75rem;
    }
}

.hamburger-btn {
    color: var(--color-main);
}

.mobile-menu {
    border-top-color: var(--color-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    color: #46584b;
    border-bottom-color: rgba(229, 226, 217, 0.82);
}

.pagination a:hover,
.pagination .current {
    background-color: var(--color-main);
    border-color: var(--color-main);
}

@media (max-width: 768px) {
    .site-header .header-inner {
        height: 64px;
    }

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

    .footer-logo img {
        height: 52px;
    }

    .fv-section {
        min-height: 0;
        padding-bottom: 1.5rem;
        background: var(--color-bg-soft);
    }

    .fv-placeholder {
        height: clamp(390px, 104vw, 470px);
    }

    .fv-slide {
        background-position: center top;
        background-size: cover;
    }

    .recruit-point-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
    }

    .recruit-point-grid .wf-card,
    .recruit-point-grid .recruit-point-card {
        padding: 0.75rem 0.45rem !important;
        min-width: 0;
        border-radius: 16px;
    }

    .recruit-point-grid .wf-card > p:first-child,
    .recruit-point-grid .recruit-point-card > p:first-child {
        font-size: 1.25rem !important;
        margin-bottom: 0.35rem !important;
    }

    .recruit-point-grid .heading-sm {
        font-size: clamp(0.76rem, 3vw, 0.9rem);
        line-height: 1.35;
    }

    .recruit-point-grid .text-small {
        font-size: clamp(0.64rem, 2.45vw, 0.75rem);
        line-height: 1.5;
    }

    .activity-photo-card-content .text-small {
        white-space: normal;
    }

    .recruit-point-grid .recruit-point-card p:nth-child(2) {
        font-size: clamp(0.68rem, 2.65vw, 0.82rem) !important;
        line-height: 1.35;
    }

    .recruit-point-grid .recruit-point-card p:nth-child(3) {
        font-size: clamp(0.58rem, 2.25vw, 0.68rem) !important;
        line-height: 1.45;
    }

    .fv-overlay {
        position: relative;
        inset: auto;
        width: auto;
        max-width: none;
        transform: none;
        align-items: flex-start;
        text-align: left;
        padding: 0 1.25rem;
        margin-top: -15.5rem;
        pointer-events: none;
    }

    .fv-title {
        width: min(82vw, 24rem);
        max-width: none;
        padding: 1.35rem 1.45rem;
        border-radius: 24px;
        font-size: clamp(1.9rem, 8.2vw, 2.45rem);
        line-height: 1.38;
        letter-spacing: 0.04em;
    }

    .fv-sub {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
        font-size: 1.12rem;
        line-height: 1.9;
    }

    .fv-cta {
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
        pointer-events: auto;
    }

    .fv-cta a,
    .mobile-menu-cta a {
        min-height: 48px;
    }

    .yuukikai-find-game {
        padding-top: 0.75rem;
        padding-bottom: 2rem;
    }

    .recruit-message-photo {
        height: 260px;
        border-radius: 20px;
    }
}

/* 受賞ポスターの拡大ボタン */
.shokuiku-award-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.shokuiku-award-zoom:focus-visible {
    outline: 3px solid var(--color-primary, #557b57);
    outline-offset: 3px;
}
