@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #f38200; /* Bright Orange from Logo */
  --secondary-color: #6b4c3a; /* Warm Brown (Requested) */
  --text-main: #3d3530; /* Soft Dark Brown */
  --text-light: #8c7b70;
  --bg-color: #fdfbf9; /* Warm off-white */
  --white: #ffffff;
  --header-height: 80px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-desktop a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-desktop a:hover::after, .nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover, .nav-desktop a.active {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transition: var(--transition);
  z-index: 999;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile a {
  font-size: 18px;
  font-weight: 500;
}

/* Hero Section */
.hero {
  margin-top: var(--header-height);
  height: 80vh;
  background: linear-gradient(rgba(107, 76, 58, 0.4), rgba(107, 76, 58, 0.4)), url('../images/home-main.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeUp 1s ease;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeUp 1.2s ease;
}

/* Sections */
section {
  padding: 80px 5%;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 15px auto 0;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Feature Zigzag (Home) */
.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-img {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(107,76,58,0.1);
}
.feature-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}
.feature-row:hover .feature-img img {
  transform: scale(1.05);
}
.feature-text {
  flex: 1;
}
.feature-num {
  font-size: 60px;
  font-weight: 700;
  color: rgba(243, 130, 0, 0.15);
  line-height: 1;
  display: block;
  margin-bottom: -15px;
  text-align: left;
}
.feature-sub {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.feature-main {
  font-size: 26px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}
.feature-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}

/* Corporate Message Section (Reference Inspired) */
.ceo-message {
  margin: 80px auto;
  max-width: 1000px;
}
.msg-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.msg-left {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.msg-right {
  flex: 1;
}

/* Image */
.msg-img {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.msg-img img {
  width: 100%;
  display: block;
}

/* Greeting Text Content */
.msg-title {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 1px;
  line-height: 1.5;
}
.msg-body {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-main);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}
.msg-sign {
  text-align: right;
  font-size: 16px;
  color: var(--secondary-color);
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.msg-sign strong {
  display: inline-block;
  margin-left: 10px;
  letter-spacing: 2px;
}

/* Career Info Box */
.career-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.career-row {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 15px;
}
.career-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.career-label {
  flex: 0 0 80px;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 14px;
}
.career-val {
  flex: 1;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Page Header (Ultra clean & Modern) */
.page-header {
  margin-top: var(--header-height);
  height: 260px;
  background: linear-gradient(135deg, #ff9e22, var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 70px;
}
/* Subtle light overlay pattern */
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 15px);
  z-index: 1;
}
.page-header h1 {
  font-size: 40px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 8px;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* HORIZONTAL FLOW STEPS (Pricing) */
.horizontal-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto 160px;
}
.h-flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 150px;
}
.h-flow-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #f6d2ad;
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--white);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(243, 130, 0, 0.2);
}
.h-flow-icon {
  width: 100%;
  aspect-ratio: 1;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #f0ebe6;
  color: var(--primary-color);
}
.h-flow-icon svg {
  width: 50%;
  height: 50%;
}
.h-flow-title {
  color: #a04000;
  font-weight: 700;
  font-size: 16px;
}
.h-flow-arrow {
  position: absolute;
  top: 30px;
  right: -25px;
  transform: translateY(-50%);
  color: #f6d2ad;
  font-size: 34px;
  font-weight: bold;
  z-index: 1;
}

/* Vertical Flow Steps (Restored & Updated) */
.flow-steps {
  max-width: 800px;
  margin: 0 auto 40px;
}
.flow-step {
  display: flex;
  background: var(--white);
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(107,76,58,0.05);
  overflow: hidden;
  border: 1px solid #f0ebe6;
  flex-direction: row;
  align-items: stretch;
}
.step-num {
  background: var(--primary-color);
  color: var(--white);
  font-size: 42px;
  font-weight: 700;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  flex-shrink: 0;
}
.step-content {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step-content h4 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 8px;
  font-weight: 700;
}

/* PRICING INTRO (Open & Spacious layout) */
.pricing-intro {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.pricing-intro-text {
  flex: 1.2;
  font-size: 18px;
  line-height: 2.2;
}
.pricing-intro-img {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(107,76,58,0.08);
}
@media (max-width: 768px) {
  .pricing-intro {
    flex-direction: column;
    gap: 30px;
  }
}

.pricing-flex-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 50px;
}
.pricing-card-img {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(107,76,58,0.08);
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}
.pc-head-title {
  color: var(--primary-color);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 20px;
  letter-spacing: 2px;
}
.pc-head-title.red {
  color: #f15b5b;
}
.pc-head-sub {
  background: var(--primary-color);
  color: white;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 8px; /* Reduced vertical padding */
  letter-spacing: 4px;
}
.pc-head-sub.dark-orange {
  background: #e67a00; /* More intense orange */
}
.pc-head-sub.red {
  background: #f15b5b;
}
@media (max-width: 900px) {
  .pricing-flex-container {
    flex-direction: column;
    align-items: center;
  }
  .pricing-card-img {
    width: 100%;
    max-width: 600px;
  }
}
.pc-list {
  padding: 30px 40px;
}
.pc-list li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  font-size: 19px;
  border-bottom: 1px dashed #eee;
}
.pc-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.pc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f38200; /* Consistency with orange header */
  margin-right: 15px;
  flex-shrink: 0;
}
/* Bullet colors matching headers as requested */
.pricing-card-img:nth-child(2) .pc-dot {
  background: #f15b5b; /* Pink/Red to match 2-person header */
}

.pc-list li .label {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 20px;
  flex: 1;
}
.pc-list li .price {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-main);
}
.pc-total {
  border-top: 1px solid #bbb;
  margin: 0 40px; /* Shorten the line by adding horizontal margins */
  padding: 25px 0; /* Adjust padding since margins are now used for sides */
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
}
.pc-total-label {
  font-size: 22px;
  color: #921717;
  font-weight: 700;
}
.pc-total-price {
  font-size: 44px;
  color: #921717;
  font-weight: 700;
}

/* LIFE */
.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}
.life-grid:nth-child(even) {
  direction: rtl;
}
.life-grid:nth-child(even) .life-text {
  direction: ltr;
}
.life-img img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(107,76,58,0.1);
}
.life-text h3 {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--primary-color);
  display: block;
  padding-bottom: 8px;
}

/* Flexible & Premium Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* RECRUIT BENEFITS (Clean List Style) */
.benefits-list {
  max-width: 700px;
  margin: 0 auto 50px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(107,76,58,0.08);
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #f0ebe6;
}
.benefits-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.benefits-list li:first-child {
  padding-top: 0;
}
.benefit-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.benefit-check::after {
  content: '✓';
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
}
.benefit-txt {
  font-size: 18px;
  color: var(--text-main);
  line-height: 1.6;
}

/* CTA Stylish Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(135deg, #f69422, #e56d00);
  color: var(--white);
  padding: 20px 50px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(229, 109, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-cta::after {
  content: '→';
  transition: transform 0.3s ease;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(229, 109, 0, 0.4);
  color: white;
}
.btn-cta:hover::after {
  transform: translateX(5px);
}

/* Footer Contact (Updated to Pill Style) */
.footer-contact-block {
  background: var(--white);
  color: var(--text-main);
  padding: 50px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: translateY(-40px);
}
.footer-contact-block h3 {
  background: var(--primary-color);
  color: var(--white);
  display: inline-block;
  padding: 10px 60px;
  border-radius: 50px;
  font-size: 32px;
  margin-bottom: 25px;
  letter-spacing: 6px;
  font-weight: 700;
}
.footer-contact-block p {
  font-size: 18px;
  color: #4b3621;
  line-height: 1.8;
  letter-spacing: 1px;
}
.footer-phone-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 10px;
}
.footer-phone-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-phone-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--white);
}
.footer-contact-block .phone {
  font-size: 54px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 4px;
  margin: 0;
}
.footer-contact-block .hours {
  color: var(--secondary-color);
  font-size: 22px;
  font-weight: 700;
}

.footer {
  background: var(--white);
  color: var(--text-main);
  padding: 0 5% 20px; 
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-info h2 {
  font-size: 24px;
  margin-bottom: 15px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: var(--text-light);
}

/* Adjust mobile title size so it doesn't break */
@media (max-width: 768px) {
  .page-header h1 { font-size: 28px; letter-spacing: 4px; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive (Tablet/Desktop is preserved above 768px) */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  /* 三本線とモバイルナビの文字色を茶色に */
  .menu-toggle span { background: var(--secondary-color); }
  .nav-mobile a { color: var(--secondary-color) !important; font-weight: 700; }

  /* ページヘッダー（下層ページ）の高さを短縮とサイズバランス調整 */
  .page-header { height: 140px !important; margin-bottom: 40px !important; }
  .page-header h1 { font-size: 28px !important; letter-spacing: 4px !important; }

  /* 「ハグライフ南摂津 ４つの特徴」とその上の写真の間に余白を作る */
  .intro-section { margin-bottom: 80px !important; }

  /* セクション見出しの統一サイズ（絶対に改行させない） */
  .pricing-intro h2, .ceo-message h2, .section-title, h2.container-title, .recruit-page h2 { 
    font-size: 24px !important; /* 大きくする */
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px !important; 
    margin-bottom: 25px !important;
  }

  /* ヒーロータイトルの縮小（一行に収める） */
  .hero-content h1 { font-size: 22px; letter-spacing: 0; white-space: nowrap; }

  /* 施設長挨拶と特徴の間に更なる大幅な余白を追加 */
  .ceo-message { padding-top: 80px !important; margin-top: 100px !important; }

  /* 4つの特徴のタイトルを改行しない範囲で大きく、上のタイトルを小さく */
  .feature-main { white-space: nowrap !important; font-size: 20px !important; letter-spacing: 0 !important; }
  .feature-sub { font-size: 14px !important; }

  /* スマホで見やすさ優先の縦並び（一部を除外） */
  .msg-grid,
  .life-grid, .life-grid:nth-child(even),
  .feature-row, .feature-row:nth-child(even),
  .pricing-intro {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .msg-left, .feature-img, .pricing-intro-img {
    width: 100% !important;
    flex: auto !important;
    margin-bottom: 10px;
  }
  .feature-img img { height: 200px; }

  /* 専門スタッフの画像（上部が切れる問題）への対応（2番目のfeature要素） */
  .feature-row:nth-child(3) .feature-img img { object-position: center 25% !important; }

  /* 「年間イベント」セクションの上下の白地余白を追加（キャッシュ対策のため隣接セレクタを使用） */
  .life-section-container + section.container { padding-top: 120px !important; padding-bottom: 120px !important; padding-left: 20px !important; padding-right: 20px !important; }

  /* 施設長ご挨拶の装飾（心穏やかな毎日を…と統一）と、本文の左右余白 */
  .msg-title { 
    font-size: 21px !important; 
    color: var(--secondary-color) !important; 
    border-left: 5px solid var(--primary-color) !important; 
    padding-left: 15px !important; 
    letter-spacing: 0.5px !important; 
  }
  .msg-body { padding: 0 15px !important; }

  /* フッターお問い合わせエリアの固定と刷新 */
  .footer-contact-block { padding: 40px 0; width: 100vw; margin-left: calc(-1 * (100vw - 100%) / 2); }
  .footer-contact-block h3 { 
    border-radius: 0 !important; 
    width: 100% !important; 
    font-size: 24px !important; 
    padding: 15px !important; 
    margin-bottom: 25px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    letter-spacing: 5px !important; /* さらに広く */
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  .footer-contact-block p { font-size: 14px; white-space: nowrap; margin-bottom: 15px; }
  .footer-phone-icon { width: 30px !important; height: 30px !important; }
  .footer-phone-icon svg { width: 16px !important; height: 16px !important; }
  .footer-phone-wrapper { flex-direction: row !important; gap: 10px !important; justify-content: center; align-items: center; }
  .footer-contact-block .phone { font-size: 28px; line-height: 1; letter-spacing: 1px; }

  /* ご入居フローを絶対横並び（縮小して対応） */
  .horizontal-flow {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 5px !important;
    padding: 0 5px;
  }
  .h-flow-step { width: auto; flex: 1; min-width: 0; }
  .h-flow-num { width: 30px; height: 30px; font-size: 16px; margin-bottom: 5px; border-width: 2px; }
  .h-flow-icon { font-size: 24px; margin-bottom: 5px; }
  .h-flow-title { font-size: 10px; white-space: nowrap; letter-spacing: 0; }
  .h-flow-arrow { font-size: 12px; transform: none !important; margin: 0; position: static; }

  /* 年間イベントを縦並び（アイコン左・テキスト右） */
  .features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: none !important;
  }
  .feature-card { 
    padding: 20px !important; 
    width: 100% !important; 
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    text-align: left !important;
  }
  .feature-icon { font-size: 36px !important; margin-bottom: 0 !important; flex-shrink: 0; width: 50px; text-align: center; }
  .feature-card-content { flex: 1; }
  .feature-card h3 { font-size: 17px !important; margin-bottom: 4px !important; }
  .feature-card p { font-size: 13px !important; line-height: 1.5 !important; margin-bottom: 0 !important; }

  /* 料金案内ページの調整 */
  .horizontal-flow { margin: 0 auto 30px !important; }
  .step-num { font-size: 20px; width: 60px; padding: 10px; }
  .career-val { font-size: 13px !important; line-height: 1.5 !important; }
  .pricing-intro { margin-top: 80px !important; }
  .pricing-intro h2 { margin-bottom: 25px !important; }

  /* 料金表の横並び維持 */
  .pc-list li { flex-wrap: nowrap !important; justify-content: space-between; font-size: 14px; }
  .pc-list li .price { white-space: nowrap; margin-left: auto; }

  .step-num { font-size: 20px; width: 60px; padding: 10px; }
}

/* Tablet header transition */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

/* Footer Category Label (Service Type) */
.footer-service-type {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: var(--text-light);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .recruit-page h2 { font-size: 6vw !important; } /* 最大限大きく */
    .recruit-page section h3 { font-size: 22px !important; color: var(--primary-color) !important; margin-top: 60px !important; }
    .recruit-page section h3.primary-heading { margin-top: 15px !important; } /* 追加：文字下の余白を大幅に削減 */

    /* ④キャッチコピーをh2より小さく */
    .recruit-page .recruit-intro-sub { font-size: 18px !important; line-height: 1.5 !important; }

    /* モバイル版：本文・メッセージを統一サイズに */
    .recruit-page section p { font-size: 13px !important; line-height: 1.8 !important; }
    .recruit-page .recruit-final-section p { font-size: 13px !important; line-height: 1.8 !important; }

    /* ②福利厚生リストを15pxに */
    .recruit-page .benefit-txt { font-size: 15px !important; line-height: 1.6 !important; }
    .recruit-page .benefits-list li { font-size: 15px !important; line-height: 1.5 !important; padding: 12px 10px !important; font-weight: normal !important; }

    /* ③「当施設が誇る最大の魅力」ラベルをさらに大きく、下余白削減・上余白に加算 */
    .recruit-page div.recruit-heading { font-size: 20px !important; line-height: 1.2 !important; letter-spacing: 0.5px !important; margin-top: 60px !important; margin-bottom: 0 !important; }

    /* 横スクロール防止の最終守護者 */
    body { overflow-x: hidden; position: relative; width: 100%; }
    .container { width: 100% !important; padding: 0 15px !important; box-sizing: border-box !important; }
}







@media (max-width: 768px) {
  .life-intro-h3 { font-size: 16px !important; line-height: 1.8 !important; margin-top: 10px !important; }
  .life-grid h3 { font-size: 18px !important; margin-bottom: 12px !important; }
  .life-section-container { padding-top: 80px !important; }
  .life-intro-p, .flow-detail-text { font-size: 13px !important; line-height: 1.5 !important; }
}

/* Pricing Intro H3 Responsive */
.pricing-intro-h3 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
}

.accent-price {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 900;
    margin: 0 4px;
}
@media (max-width: 768px) {
    .pricing-intro-h3 { font-size: 5.5vw !important; white-space: nowrap !important; }
    .accent-price { font-size: 26px !important; }
}


/* Recruit Section Headings (Uniform large size) */
.recruit-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.recruit-page h3.primary-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
}
@media (max-width: 768px) {
    .recruit-heading { font-size: 6vw !important; white-space: nowrap !important; }
    .recruit-page h3.primary-heading { font-size: 24px !important; }
}

/* Features Grid (Annual Events in life.html) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.features-grid .feature-card {
    text-align: center;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .features-grid .feature-card {
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 20px !important;
        gap: 15px !important;
    }
    .features-grid .feature-icon {
        font-size: 40px !important;
        flex-shrink: 0 !important;
    }
}


/* Recruit Team Image Adjustment */
.recruit-team-img {
    max-width: 700px !important;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .recruit-team-img { max-width: 100% !important; }
}

/* 採用情報ページ：写真下余白と最終セクション余白の制御 */
.recruit-team-img + div .recruit-heading,
.recruit-heading-below-img {
    margin-top: 80px !important;
}
.recruit-final-section {
    padding-top: 10px !important;
    margin-top: 0 !important;
}


/* Device Specific Line Breaks */
.br-sp { display: none; }
.br-pc { display: block; }
@media (max-width: 768px) {
    .br-sp { display: block !important; }
    .br-pc { display: none !important; }
}



