@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* ==========================================
   カラー変数の設定（テーマで切り替わります）
   ========================================== */
:root {
  --bg-color: #FFFDF9;
  --bg-green-light: #F4F9EF;
  --bg-yellow-light: #FFF9E6;
  --main-green: #8AC752;
  --dark-green: #6DA838;
  --sub-yellow: #FFDC33;
  --accent-orange: #FF8C00;
  --text-color: #333333;
  --white: #FFFFFF;
  --border-color: #E2F0D9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 🌟 横揺れ防止の徹底 */
html, body {
  overflow-x: hidden;
  width: 100%;
}
html { scroll-behavior: smooth; }

/* 🌟 文字サイズ一括変更 */
html.text-normal { font-size: 100%; }    
html.text-large { font-size: 112.5%; }   
html.text-xlarge { font-size: 125%; }    

body {
  font-family: 'Zen Maru Gothic', "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  position: relative; 
  transition: background-color 0.3s, color 0.3s;
}

body::before {
  content: ""; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70vw; height: 70vw; min-width: 500px;  
  background-image: url('images/かぼ助の顔.svg');
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0.08; z-index: -1; pointer-events: none; 
}

img { max-width: 100%; height: auto; }
.container { width: 90%; max-width: 1000px; margin: 0 auto; padding: 50px 0; }
.text-center { text-align: center; }

/* ==========================================
   🌟 アクセシビリティ関連
   ========================================== */
*:focus-visible { outline: 3px solid var(--accent-orange); outline-offset: 2px; border-radius: 4px; }

@media (min-width: 768px) {
  a[href^="tel:"] { pointer-events: none; cursor: default; }
}

/* 青テーマ */
body.theme-blue {
  --bg-color: #002b5e;
  --bg-green-light: #003a7a;
  --bg-yellow-light: #003a7a;
  --text-color: #ffffff;
  --dark-green: #66b2ff;
  --main-green: #3399ff;
  --sub-yellow: #ffcc00;
  --border-color: #004d99;
  --white: #003a7a;
}
body.theme-blue .hero-title-green, body.theme-blue .section-title, body.theme-blue .category-title { color: #66b2ff; text-shadow: none; }
body.theme-blue .header-logo-img, body.theme-blue .drawer-logo img { filter: brightness(0) invert(1); }
body.theme-blue .feature-card, body.theme-blue .service-card, body.theme-blue .job-card, body.theme-blue .form-container, body.theme-blue .sns-embed-card, body.theme-blue .access-info-box { background-color: #003a7a; color: #fff; border-color: #004d99; }
body.theme-blue .a11y-label { color: #fff; text-shadow: none; }
body.theme-blue .text-btn { background-color: #002b5e; border-color: #3399ff; color: #fff; }
body.theme-blue .text-btn.active { background-color: var(--main-green); color: #fff; border-color: var(--main-green); }
body.theme-blue .hamburger-line { background-color: #fff; }
body.theme-blue .drawer-menu { background-color: #002b5e; color: #fff; }
body.theme-blue .drawer-close { color: #fff; }
body.theme-blue .drawer-nav li a { color: #fff; border-color: #004d99; }
body.theme-blue .drawer-sub-item a { background-color: rgba(255,255,255,0.05); }
body.theme-blue .drawer-sub-item a::before { color: #999; }

/* 黒テーマ */
body.theme-black {
  --bg-color: #121212;
  --bg-green-light: #242424;
  --bg-yellow-light: #242424;
  --text-color: #ffffff;
  --dark-green: #ffff66;
  --main-green: #ffcc00;
  --sub-yellow: #ffff00;
  --border-color: #444444;
  --white: #242424;
}
body.theme-black .hero-title-green, body.theme-black .section-title, body.theme-black .category-title { color: #ffff66; text-shadow: none; }
body.theme-black .header-logo-img, body.theme-black .drawer-logo img { filter: brightness(0) invert(1); }
body.theme-black .feature-card, body.theme-black .service-card, body.theme-black .job-card, body.theme-black .form-container, body.theme-black .sns-embed-card, body.theme-black .access-info-box { background-color: #242424; color: #fff; border-color: #444; }
body.theme-black .a11y-label { color: #fff; text-shadow: none; }
body.theme-black .text-btn { background-color: #242424; border-color: #ffff66; color: #fff; }
body.theme-black .text-btn.active { background-color: var(--main-green); color: #333; border-color: var(--main-green); }
body.theme-black .hamburger-line { background-color: #fff; }
body.theme-black .drawer-menu { background-color: #242424; color: #fff; }
body.theme-black .drawer-close { color: #fff; }
body.theme-black .drawer-nav li a { color: #fff; border-color: #444; }
body.theme-black .drawer-sub-item a { background-color: rgba(255,255,255,0.05); }
body.theme-black .drawer-sub-item a::before { color: #999; }

/* ==========================================
   🌟 ヘッダー ＆ ハンバーガーメニュー
   ========================================== */
.header { position: sticky; top: 0; background-color: rgba(255, 253, 249, 0.95); backdrop-filter: blur(8px); border-bottom: 2px solid var(--border-color); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); z-index: 100; transition: background-color 0.3s; }
body.theme-blue .header { background-color: rgba(0, 43, 94, 0.95); }
body.theme-black .header { background-color: rgba(36, 36, 36, 0.95); }

.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 4%; position: relative; z-index: 10; }

.logo-area a { display: flex; align-items: center; text-decoration: none; transition: transform 0.3s; }
.logo-area a:hover { transform: translateY(-5px); }
.header-logo-img { height: 38px; width: auto; display: block; transition: height 0.3s; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.btn-head { padding: 8px 12px; font-size: 0.85rem; border-radius: 22px; text-decoration: none; font-weight: bold; white-space: nowrap; }
.btn-text-pc { display: none; }
.btn-text-sp { display: inline; }
.btn-phone { background: linear-gradient(135deg, var(--main-green), var(--dark-green)); color: #fff !important; border: none; }
.btn-contact { background-color: var(--sub-yellow); color: #333 !important; border: none; }

.btn-phone-pc { display: none; }
.btn-phone-sp { display: inline-block; }

.header-a11y { display: flex; gap: 15px; align-items: center; }
.a11y-group { display: flex; align-items: center; gap: 4px; }

.a11y-label { 
  font-size: 0.75rem; font-weight: bold; color: var(--dark-green); margin-right: 4px; 
  text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff, 1px -1px 2px #fff, -1px 1px 2px #fff;
}

.a11y-btn {
  background: var(--white); border: 1px solid #aaa; color: #333; padding: 3px 8px; border-radius: 6px;
  font-size: 0.8rem; cursor: pointer; font-weight: bold; transition: all 0.2s; white-space: nowrap;
}
.a11y-btn:hover { border-color: var(--main-green); }
.text-btn.active { background-color: var(--main-green); color: #fff; border-color: var(--main-green); }

.theme-btn[data-theme="white"] { background-color: #ffffff !important; color: #333333 !important; border: 2px solid #dddddd !important; }
.theme-btn[data-theme="blue"] { background-color: #0056b3 !important; color: #ffffff !important; border: 2px solid #0056b3 !important; }
.theme-btn[data-theme="black"] { background-color: #121212 !important; color: #ffffff !important; border: 2px solid #121212 !important; }

.theme-btn.active {
  border-color: var(--sub-yellow) !important;
  box-shadow: inset 0 0 0 1px var(--sub-yellow), 0 0 8px rgba(255, 220, 51, 0.7) !important;
  transform: none !important;
}

.hamburger-btn { display: flex; flex-direction: column; justify-content: space-between; width: 32px; height: 22px; background: none; border: none; cursor: pointer; margin-left: 8px; z-index: 1002; }
.hamburger-line { width: 100%; height: 3px; background-color: var(--dark-green); border-radius: 2px; transition: 0.3s; }

/* ==========================================
   🌟 ドロワーメニュー
   ========================================== */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer-overlay.is-active { opacity: 1; pointer-events: auto; }

.drawer-menu { position: fixed; top: 0; right: -350px; width: 350px; max-width: 85vw; height: 100%; background-color: #FFFFFF; z-index: 1001; transition: right 0.3s ease; overflow-y: auto; box-shadow: -4px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; color: #333; }
.drawer-menu.is-active { right: 0; }

.drawer-header { display: flex; justify-content: flex-end; padding: 15px 20px 5px; background-color: #FFFFFF; }
.drawer-close { background: none; border: none; font-size: 2.5rem; color: #333; cursor: pointer; line-height: 1; transition: transform 0.2s; }
.drawer-close:hover { transform: scale(1.1); }

.drawer-logo { text-align: center; padding: 15px 20px; background-color: #FFFFFF; border-radius: 10px; margin: 0 20px; }
.drawer-logo img { height: 45px; width: auto; }

.drawer-footer-img { text-align: center; padding: 20px; margin-top: auto; background-color: #FFFFFF; }
.drawer-footer-img img { width: 130px; height: auto; }

.drawer-a11y-section { padding: 15px 20px; background-color: #FFFFFF; border-top: 1px dashed var(--main-green); display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
.drawer-a11y-row { display: flex; justify-content: space-between; align-items: center; }
.drawer-a11y-title { font-size: 0.9rem; font-weight: bold; color: var(--dark-green); }
.drawer-a11y-buttons { display: flex; gap: 6px; }

.drawer-nav { padding: 0; background-color: var(--sub-yellow); border-top: 1px dashed var(--main-green); }
.drawer-nav ul { list-style: none; }
.drawer-nav li a { display: block; padding: 15px 30px; font-size: 1.1rem; font-weight: bold; color: #333; text-decoration: none; border-bottom: 1px dashed var(--main-green); transition: background-color 0.2s; }
.drawer-nav li a:hover { background-color: rgba(255, 255, 255, 0.4); }

.drawer-nav li.drawer-sub-item a { padding-left: 45px; font-size: 0.95rem; background-color: rgba(255, 255, 255, 0.25); position: relative; }
.drawer-nav li.drawer-sub-item a::before { content: "↳"; position: absolute; left: 22px; color: #666; font-weight: normal; }
.drawer-nav li.drawer-sub-item a:hover { background-color: rgba(255, 255, 255, 0.5); }

/* ==========================================
   🌟 共通コンポーネント・装飾
   ========================================== */
.title-en { display: block; font-size: 0.85rem; color: var(--main-green); letter-spacing: 2px; font-weight: bold; text-transform: uppercase; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 35px; color: var(--dark-green); position: relative; }
.section-title::after { content: ""; display: block; width: 40px; height: 3px; background: linear-gradient(90deg, var(--main-green), var(--sub-yellow)); margin: 8px auto 0; border-radius: 2px; }

.micro-bounce, .sns-link-btn { transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important; will-change: transform, box-shadow; }
.micro-bounce:hover, .sns-link-btn:hover { transform: translateY(-5px) !important; box-shadow: 0 12px 25px rgba(138, 199, 82, 0.35) !important; }
.micro-bounce:active, .sns-link-btn:active { transform: translateY(2px) scale(0.98) !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; }

.micro-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.micro-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(138, 199, 82, 0.3); border-color: var(--main-green); }

.scroll-reveal { animation: revealOnScroll linear forwards; animation-timeline: view(); animation-range: entry 10% cover 30%; }
@keyframes revealOnScroll { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }

.fix-kabosuke-btn { position: fixed; bottom: 20px; right: 20px; background-color: var(--white); border: 2px solid var(--main-green); border-radius: 50px; padding: 6px 14px; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-color); font-weight: bold; font-size: 0.8rem; box-shadow: 0 4px 12px rgba(138, 199, 82, 0.3); z-index: 90; will-change: transform; }
.fix-kabosuke-btn img { width: 28px; height: 28px; object-fit: contain; }

.btn-main { display: inline-block; padding: 14px 28px; border-radius: 30px; text-decoration: none; font-weight: bold; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: none; cursor: pointer; }
.btn-green { background: linear-gradient(135deg, var(--main-green), var(--dark-green)); color: #fff !important; }
.btn-yellow { background-color: var(--sub-yellow); color: #333 !important; font-weight: bold; }

/* 🌟 アコーディオンのスタイル */
.dx-accordion-btn {
  background-color: var(--white); color: var(--dark-green); border: 2px solid var(--main-green);
  padding: 14px 24px; border-radius: 30px; font-weight: bold; font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.dx-accordion-btn:hover { background-color: var(--bg-green-light); }
.dx-accordion-content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: var(--white); border-radius: 12px; border: 0px solid var(--border-color);
  text-align: left; margin: 0 auto; max-width: 800px;
}
.dx-accordion-content.is-open {
  max-height: 3000px; padding: 30px; border: 2px solid var(--border-color);
  margin-top: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 🌟 サービスカードのホバー統一 */
.service-card, .service-card-green, .service-card-yellow {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease !important;
}
.service-card:hover {
  transform: translateY(-8px) !important; box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* ==========================================
   🌟 各セクション（トップページ用）
   ========================================== */
.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #14230A; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: fadeSlider4 24s infinite; }
.slide-1 { background-image: url('images/hero01.jpg'); animation-delay: 0s; }
.slide-2 { background-image: url('images/hero02.jpg'); animation-delay: 6s; }
.slide-3 { background-image: url('images/hero03.jpg'); animation-delay: 12s; }
.slide-4 { background-image: url('images/hero04.jpg'); animation-delay: 18s; }
@keyframes fadeSlider4 { 0% { opacity: 0; transform: scale(1); } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: scale(1.04); } 100% { opacity: 0; } }

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 35, 10, 0.45); z-index: 1; opacity: 0; animation: heroOverlayFade 1.0s ease-out forwards; animation-delay: 6s; }
@keyframes heroOverlayFade { 0% { opacity: 0; } 100% { opacity: 1; } }

.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; width: 100%; }
.hero-sub, .hero-text, .hero-btn-group { opacity: 0; animation: heroSubContentFade 1.0s ease-out forwards; animation-delay: 6.8s; }
.hero-sub { display: inline-block; background-color: rgba(255, 220, 51, 0.85); backdrop-filter: blur(4px); color: #333; padding: 6px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; margin-bottom: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.hero-title { font-size: 2.2rem; line-height: 1.3; font-weight: bold; margin-bottom: 15px; }

.hero-title-green {
  color: var(--dark-green);
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.9), -1px -1px 0px rgba(255, 255, 255, 0.9), 1px -1px 0px rgba(255, 255, 255, 0.9), -1px 1px 0px rgba(255, 255, 255, 0.9), 0px 2px 10px rgba(255, 255, 255, 0.95), 0px 5px 25px rgba(255, 255, 255, 0.7);
  opacity: 0; animation: greenTitleFade 1.0s ease-out forwards; animation-delay: 6s;
}
.hero-text { max-width: 600px; margin: 0 auto 30px; font-size: 1rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.hero-btn-group { display: flex; flex-direction: column; gap: 15px; max-width: 300px; margin: 0 auto; }

@keyframes greenTitleFade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes heroSubContentFade { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

.news-section { background-color: rgba(255, 255, 255, 0.9); }
body.theme-blue .news-section, body.theme-black .news-section { background-color: transparent; }
.news-list { list-style: none; }
.news-item { padding: 14px; border-bottom: 1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-radius: 8px; transition: background-color 0.2s ease; }
.news-item:hover { background-color: var(--bg-green-light); }
.news-date { font-size: 0.85rem; color: #777; }
.news-category { background-color: #E2F0D9; color: #6DA838; font-size: 0.75rem; padding: 3px 10px; border-radius: 4px; font-weight: bold; }
.news-text { text-decoration: none; color: var(--text-color); font-weight: bold; }

.feature-section { background-color: rgba(244, 249, 239, 0.85); }
body.theme-blue .feature-section, body.theme-black .feature-section { background-color: transparent; }
.feature-grid, .service-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card, .service-card { background-color: var(--white); padding: 28px; border-radius: 14px; border: 2px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0, 0.08); }
.feature-card h4, .service-card h4 { font-size: 1.25rem; margin-bottom: 10px; color: var(--dark-green); }

.service-link-card { text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; color: inherit; }
.service-link-card h4 { color: var(--dark-green); margin-bottom: 10px; }
.service-link-card p { margin-bottom: 20px; }
.service-card-btn { text-align: right; margin-top: auto; }
.btn-service-detail { display: inline-block; background-color: var(--sub-yellow); color: #333; font-size: 0.85rem; font-weight: bold; padding: 8px 16px; border-radius: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); transition: transform 0.2s ease; }
.service-link-card:hover .btn-service-detail { transform: translateY(-2px); }

.service-card-green { border-color: var(--main-green) !important; }
.service-card-yellow { border-color: var(--sub-yellow) !important; }
.card-badge { background: linear-gradient(135deg, var(--main-green), var(--dark-green)); color: #fff; font-size: 0.75rem; padding: 4px 12px; border-radius: 12px; font-weight: bold; display: inline-block; margin-bottom: 10px; }
.card-badge-yellow { background: var(--sub-yellow) !important; color: #333 !important; }
.btn-service-detail-green { background: linear-gradient(135deg, var(--main-green), var(--dark-green)) !important; color: #fff !important; }

.feature-lead-container, .service-lead-container, .sns-lead-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }

.opening-kabosuke-img { width: 120px; height: auto; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15)); opacity: 0; animation: fadeInKabosuke 1s ease-out forwards; }
.feature-kabosuke-img { width: 120px; height: auto; }
.service-kabosuke-img { width: 140px; height: auto; }
.sns-kabosuke-img { width: 140px; height: auto; }
.recruit-kabosuke-img { width: 120px; height: auto; margin-top: 15px; display: block; margin-left: auto; margin-right: auto; } 

.recruit-section { background: linear-gradient(135deg, rgba(255, 253, 249, 0.9), rgba(255, 249, 230, 0.9)); border-top: 4px solid var(--sub-yellow); border-bottom: 4px solid var(--sub-yellow); padding: 60px 0; }
body.theme-blue .recruit-section, body.theme-black .recruit-section { background: transparent; }
.recruit-inner { display: flex; flex-direction: column; gap: 35px; align-items: center; text-align: center; }
.recruit-text-area { max-width: 500px; }
.recruit-main-title { color: var(--dark-green); font-size: 1.8rem; margin-top: 8px; margin-bottom: 15px; }
.recruit-desc { margin-bottom: 25px; font-size: 1rem; line-height: 1.7; }
.recruit-photo-collage { position: relative; width: 100%; max-width: 480px; height: 320px; margin: 20px auto 0; }
.collage-photo { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border: 4px solid var(--white); transition: transform 0.4s; }
.collage-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-photo.photo-1 { width: 280px; height: 190px; top: 0; left: 0; transform: rotate(-3deg); z-index: 2; }
.collage-photo.photo-2 { width: 260px; height: 175px; bottom: 0; right: 0; transform: rotate(4deg); z-index: 3; }

.sns-section { background-color: rgba(244, 249, 239, 0.85); }
body.theme-blue .sns-section, body.theme-black .sns-section { background: transparent; }
.sns-lead { text-align: center; margin-bottom: 0; font-weight: bold; color: var(--dark-green); }
.sns-embed-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sns-embed-card { background-color: var(--white); padding: 20px; border-radius: 14px; border: 2px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; }
.sns-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.sns-header-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark-green); font-weight: bold; font-size: 1.05rem; }
.sns-header-logo { height: 26px; width: auto; object-fit: contain; }
.embed-container { width: 100%; border-radius: 8px; overflow: hidden; background-color: #FAFAFA; }

.access-section { background-color: rgba(255, 255, 255, 0.9); border-top: 2px solid var(--border-color); }
body.theme-blue .access-section, body.theme-black .access-section { background: transparent; }
.access-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.access-info-box { background: var(--white); padding: 30px; border-radius: 14px; border: 2px solid var(--border-color); }
.access-info-box h4 { font-size: 1.3rem; color: var(--dark-green); margin-bottom: 15px; border-bottom: 1px dashed var(--main-green); padding-bottom: 10px; }
.access-info-box p { margin-bottom: 15px; line-height: 1.8; }
.access-info-box a { color: var(--dark-green); font-weight: bold; text-decoration: none; }
.access-info-box a:hover { text-decoration: underline; }
.access-map-box { border-radius: 14px; overflow: hidden; border: 2px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* ==========================================
   🌟 下層ページ（サブページ・フォーム・求人）
   ========================================== */
.subpage-hero { background: linear-gradient(135deg, var(--main-green), var(--dark-green)); color: #fff; text-align: center; padding: 80px 20px; margin-bottom: 50px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.subpage-title { font-size: 2.5rem; letter-spacing: 2px; margin-bottom: 10px; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.15); font-family: "Helvetica Neue", Arial, sans-serif; }
.subpage-subtitle { font-size: 1.1rem; font-weight: bold; opacity: 0.95; }
.subpage-main { position: relative; z-index: 2; }
.page-section { padding: 20px 0 60px; }

/* 🌟 求人カード */
.category-title { font-size: 1.5rem; color: var(--dark-green); border-bottom: 2px solid var(--main-green); padding-bottom: 8px; margin-bottom: 25px; font-weight: bold; }
.job-cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
.job-card { background-color: var(--white); padding: 25px; border-radius: 14px; border: 2px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.06); position: relative; }
.job-card h4 { font-size: 1.2rem; color: var(--dark-green); margin-bottom: 8px; }
.badge-hiring { display: inline-block; background-color: var(--main-green); color: white; font-size: 0.75rem; font-weight: bold; padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; }
.job-details { list-style: none; font-size: 0.95rem; display: flex; flex-direction: column; gap: 8px; }
.job-details li { line-height: 1.5; }

/* 🌟 フォーム関連 */
.form-group { margin-bottom: 28px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 10px; color: var(--dark-green); }
.badge-req { background: #FF4B4B; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle; }
.badge-opt { background: #999; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle; }
.kabosu-form input[type="text"], .kabosu-form input[type="email"], .kabosu-form input[type="tel"], .kabosu-form select, .kabosu-form textarea { width: 100%; padding: 14px; border: 2px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s; background-color: var(--white); color: var(--text-color); }
.kabosu-form input:focus, .kabosu-form select:focus, .kabosu-form textarea:focus { border-color: var(--main-green); outline: none; }

/* ==========================================
   🌟 フッター
   ========================================== */
.footer { background-color: #2D3825; color: white; padding-top: 45px; padding-bottom: 0; position: relative; z-index: 2; overflow: hidden; }
.footer::before { content: ""; position: absolute; bottom: -20px; right: -25px; width: 250px; height: 250px; background-image: url('images/かぼ助の顔.svg'); background-repeat: no-repeat; background-size: contain; opacity: 0.14; pointer-events: none; z-index: 0; }
.footer-container { padding-top: 10px; padding-bottom: 45px; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; gap: 25px; text-align: center; }
.footer-info h3 { color: var(--sub-yellow); margin-bottom: 10px; font-size: 1.3rem; }
.footer-ceo { font-size: 0.9rem; font-weight: bold; color: #C3E2B2; margin-bottom: 4px; }
.footer-hours { font-size: 0.85rem; color: #AAA; margin-top: 6px; }
.footer-tel-link { color: #FFFFFF; text-decoration: none; font-weight: bold; display: inline-block; transition: color 0.2s ease, transform 0.2s ease; }
.footer-tel-link:hover { color: var(--sub-yellow); transform: translateY(-2px); }
.footer-sns-icons { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.footer-sns-icons a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background-color: var(--bg-color); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.3s ease; text-decoration: none; }
.footer-sns-icons a:hover { transform: translateY(-5px); background-color: var(--sub-yellow); }
.footer-sns-icons img { width: 22px; height: 22px; object-fit: contain; display: block; }
.copyright { text-align: center; font-size: 0.8rem; padding: 18px 0; background-color: #212B1B; color: #99B28A; position: relative; z-index: 1; }

.framed-photo { border-radius: 14px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border: 6px solid var(--white); overflow: hidden; display: inline-block; background-color: var(--white); transition: transform 0.3s ease; }
.framed-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.photo-rotate-left { transform: rotate(-2deg); }
.photo-rotate-right { transform: rotate(1.5deg); }
.framed-photo:hover { transform: rotate(0deg) scale(1.02); }

.staff-block { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.staff-photo { flex: 1 1 300px; }
.staff-text { flex: 2 1 400px; line-height: 1.8; font-size: 1.05rem; }

/* ==========================================
   PC向けレスポンシブ
   ========================================== */
@media (min-width: 768px) {
  .header-inner { padding: 15px 4%; }
  .header-logo-img { height: 56px; } 
  
  .header-right { flex-direction: row; align-items: center; gap: 20px; }
  .header-a11y { margin-right: 10px; }

  .btn-phone-pc { display: inline-block; }
  .btn-phone-sp { display: none; }

  .btn-head { padding: 10px 20px; font-size: 0.95rem; border-radius: 28px; } 
  .btn-text-pc { display: inline; }
  .btn-text-sp { display: none; }
  .hamburger-btn { width: 36px; height: 26px; margin-left: 15px; }

  .hero-btn-group { flex-direction: row; max-width: none; justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .sns-embed-grid { grid-template-columns: repeat(3, 1fr); }
  .job-cards { grid-template-columns: repeat(2, 1fr); }
  .recruit-inner { flex-direction: row; text-align: left; justify-content: space-between; gap: 40px; }
  .recruit-text-area { text-align: left; }
  .recruit-kabosuke-img { margin-left: 0; }
  .recruit-photo-collage { max-width: 520px; height: 350px; }
  .collage-photo.photo-1 { width: 310px; height: 210px; }
  .collage-photo.photo-2 { width: 290px; height: 195px; }
  .sns-lead-container, .feature-lead-container, .service-lead-container { flex-direction: row; gap: 20px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .footer-sns-icons { justify-content: flex-start; }
  .access-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================
   スマホ向けレスポンシブ
   ========================================== */
@media (max-width: 767px) {
  .staff-block { flex-direction: column; gap: 20px; }
  .header-a11y { display: none; } 
  .header-inner { padding: 10px 3%; }
  .header-logo-img { height: 32px; } 
  
  .header-cta { gap: 5px; }
  .btn-head { padding: 5px 9px; font-size: 0.72rem; border-radius: 14px; } 
  
  .hamburger-btn { width: 26px; height: 18px; margin-left: 5px; }

  /* 🌟 スマホ版：飛ぶかぼ助（サイズ拡大・横揺れ防止） */
  .flying-kabosuke {
    display: block !important;
    position: fixed;
    top: 90px;
    left: 0;
    width: 110px;
    height: auto;
    z-index: 101;
    pointer-events: none;
    will-change: transform;
  }

  /* RECRUITセクションの写真の裏に隠れるかぼ助を非表示にする */
  .recruit-kabosuke-img {
    display: none !important;
  }
}

/* ==========================================
   アニメーション周り
   ========================================== */
.kabosuke-opening { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-color); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 1; animation: whiteoutScreenFade 7.2s ease forwards; pointer-events: none; }
.kabosuke-pop { position: absolute; text-align: center; animation: kabosukeFadeOut 0.5s ease-in forwards; animation-delay: 3.0s; }
.opening-balloon { position: absolute; top: -65px; left: 50%; transform: translateX(-50%); background-color: var(--sub-yellow); color: #333; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 0.95rem; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.1); opacity: 0; animation: fadeInBalloon 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 1.5s; }
.opening-balloon::after { content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border-width: 8px 8px 0; border-style: solid; border-color: var(--sub-yellow) transparent; }
.opening-hero-clone { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.opening-hero-content { text-align: center; padding: 0 20px; width: 100%; }
.opening-sub-dummy { display: inline-block; padding: 6px 18px; font-size: 0.9rem; font-weight: bold; margin-bottom: 15px; opacity: 0; visibility: hidden; }
.opening-catch-title { font-size: 2.2rem; line-height: 1.3; font-weight: bold; color: var(--dark-green); margin-bottom: 15px; opacity: 0; animation: blackTitleFade 3.3s ease-in-out forwards; animation-delay: 3.5s; }
@keyframes fadeInKabosuke { 0% { opacity: 0; transform: scale(0.9) translateY(15px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeInBalloon { 0% { opacity: 0; transform: translateX(-50%) scale(0.6) translateY(10px); } 100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); } }
@keyframes kabosukeFadeOut { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.95); } }
@keyframes blackTitleFade { 0% { opacity: 0; } 30% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes whiteoutScreenFade { 0% { opacity: 1; visibility: visible; } 90% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

.is-visited .kabosuke-opening { display: none !important; }
.is-visited .hero-overlay { opacity: 1 !important; animation: none !important; }
.is-visited .hero-title-green { opacity: 1 !important; animation: none !important; }
.is-visited .hero-sub, .is-visited .hero-text, .is-visited .hero-btn-group { opacity: 1 !important; animation: none !important; transform: none !important; }

/* 飛ぶかぼ助（PC版アニメーション設定） */
@keyframes flyWobble { 0%, 100% { margin-top: 0px; } 50% { margin-top: -7px; } }

@media (min-width: 768px) {
  .flying-kabosuke { 
    position: fixed; 
    top: 45px; 
    left: 400px; 
    width: 90px; 
    z-index: 1; 
    pointer-events: none; 
    animation: flyHeaderPC 25s ease-in-out infinite, flyWobble 2.5s ease-in-out infinite; 
    will-change: transform;
  }
  @keyframes flyHeaderPC { 
    0% { transform: translateY(-50%) translateX(0px) scaleX(-1); } 
    48% { transform: translateY(-50%) translateX(calc(100vw - 1230px)) scaleX(-1); } 
    50% { transform: translateY(-50%) translateX(calc(100vw - 1230px)) scaleX(1); } 
    98% { transform: translateY(-50%) translateX(0px) scaleX(1); } 
    100% { transform: translateY(-50%) translateX(0px) scaleX(-1); } 
  }
}

/* 飛ぶかぼ助（スマホ用アニメーション：向き反転とゆっくり移動） */
@media (max-width: 767px) {
  @keyframes flyHeaderSP {
    0% { transform: translateX(calc(-100vw - 120px)) scaleX(-1); }
    100% { transform: translateX(calc(100vw + 120px)) scaleX(-1); }
  }

  @keyframes flyHeaderSPReverse {
    0% { transform: translateX(calc(100vw + 120px)) scaleX(1); }
    100% { transform: translateX(calc(-100vw - 120px)) scaleX(1); }
  }

  @keyframes flyWobbleSP {
    0%, 100% { margin-top: 0; }
    25% { margin-top: -5px; }
    50% { margin-top: 3px; }
    75% { margin-top: -4px; }
  }
}