@charset "UTF-8";

/* ============================================================
   訪問看護ページ 固有スタイル
   ============================================================ */
:root {
  --text-main: #333333;
  --text-sub: #555555;
  --text-muted: #777777;
  --primary-color: #f0b800;
  --primary-light: #fffcf0;
  --accent-green: #06c755;
  --accent-green-dark: #05b54d;
  --accent-orange: #d64a00;
  --bg-base: #fdfdfd;
  --bg-gray: #f4f7f9;
  --bg-light: #eeeeee;
  --border-color: #e0e0e0;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --radius-base: 16px;
  --radius-pill: 50px;
  --arrow-bottom-base: 24px;
  --arrow-bottom-move: 14px;
}

body {
  margin: 0; padding: 0; background: var(--bg-base);
  color: var(--text-main); line-height: 1.8;
  font-family: 'Noto Sans JP', sans-serif; padding-top: 74px;
}

main * { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; }
section { padding: 80px 0; }
section:nth-of-type(even) { background-color: var(--bg-gray); }

/* パンくずリスト */
.breadcrumb-nav { padding: 15px 0; font-size: 0.9em; background: var(--bg-base); }
.breadcrumb-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb-list li { color: var(--text-muted); }
.breadcrumb-list li a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-list li a:hover { text-decoration: underline; }
.breadcrumb-list li:not(:last-child)::after { content: '>'; margin-left: 8px; font-size: 0.8em; }

/* 見出し */
h1.page-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 20px;
  text-align: center; font-weight: 800; color: var(--text-main);
}
h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.0rem); margin-bottom: 50px;
  text-align: center; color: var(--text-main); font-weight: 700; position: relative;
}
h2.section-title::after {
  content: ''; display: block; width: 100px; height: 4px;
  background: var(--primary-color); margin: 15px auto 0; border-radius: 2px;
}
.section-desc { text-align: center; margin-bottom: 40px; color: var(--text-sub); }

/* ヒーローエリア */
.hero-section {
  background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
  padding: 60px 20px 80px; border-bottom: 1px solid var(--border-color);
}
.hero-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; max-width: 1000px; margin: 0 auto;
}
.hero-content { flex: 1; }
.hero-visual { flex: 1; max-width: 450px; }
.hero-visual img {
  width: 100%; border-radius: 20px 50px 20px 20px;
  box-shadow: 0 10px 30px rgba(240, 184, 0, 0.2);
}
.hero-lead-note {
  font-size: 0.85em; font-weight: normal; margin-top: 12px; display: block; color: var(--text-muted);
}
.lead-box {
  font-size: 1.1rem; font-weight: bold; color: var(--text-sub);
  margin-bottom: 30px; background: rgba(255, 255, 255, 0.6);
  padding: 15px; border-radius: var(--radius-base); display: inline-block;
}

/* カード */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.card {
  background: #fff; border-radius: var(--radius-base); padding: 0;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-color);
  transition: transform 0.3s; height: 100%; display: flex; flex-direction: column;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); }

.card-img-area { width: 100%; height: 200px; overflow: hidden; background: var(--bg-light); }
.card-img-area img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img-area img { transform: scale(1.05); }

.card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-body-center { align-items: center; }

.card-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 15px;
  color: var(--text-main); display: flex; align-items: center; gap: 10px;
}
.card.soft-yellow { background: var(--primary-light); border-color: var(--primary-color); }
.card.soft-yellow .card-body { background: var(--primary-light); }

.check-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 8px; font-weight: 500; color: var(--text-sub);
}
.check-list li::before {
  content: '✔'; position: absolute; left: 0; top: 0;
  color: var(--accent-green); font-weight: 900; font-size: 1.1em;
}

/* 特徴（Zig-Zag）デザイン */
.zig-zag-container { display: flex; flex-direction: column; gap: 60px; }
.zigzag-item { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.zigzag-item:nth-child(even) { flex-direction: row-reverse; }
.zigzag-content { flex: 1; }
.zigzag-title {
  display: inline-block; background: linear-gradient(transparent 60%, #fff3b8 60%);
  font-weight: 700; font-size: 1.3em; margin-bottom: 20px; color: var(--text-main);
}
.zigzag-image {
  flex: 0 0 300px; height: 200px; border-radius: var(--radius-base);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.zigzag-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* お客様の声 */
.voice-list { display: flex; flex-direction: column; gap: 40px; max-width: 840px; margin: 0 auto; }
.voice-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); border: 1px solid var(--border-color);
  display: flex; flex-direction: row; padding: 30px; gap: 35px; align-items: center;
  position: relative; transition: transform 0.3s;
}
.voice-card:hover { transform: translateY(-3px); }
.voice-card::after {
  content: '“'; position: absolute; bottom: -40px; right: 20px; font-size: 14rem;
  color: var(--primary-color); opacity: 0.1; font-family: serif; line-height: 1; pointer-events: none; z-index: 0;
}
.voice-card-img { width: 220px; flex-shrink: 0; position: relative; height: 160px; }
.voice-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: block;
}
.voice-body { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; padding: 0; }
.voice-header { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--border-color); }
.voice-avatar {
  font-size: 1.8rem; background: #fff4d1; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.voice-title { font-weight: bold; font-size: 1rem; color: var(--text-main); line-height: 1.4; }
.voice-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; font-weight: normal; }
.voice-text { font-size: 0.95rem; line-height: 1.8; color: var(--text-main); }
.voice-headline {
  display: inline; font-weight: bold; color: var(--text-main); font-size: 1.05em; line-height: 1.8;
  background: linear-gradient(transparent 65%, #fff4d1 65%); box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.voice-headline-spacer { display: block; margin-bottom: 12px; }

/* 制度表・フロー・エリア */
.system-table-wrap { overflow-x: auto; border-radius: var(--radius-base); box-shadow: var(--shadow-card); margin: 30px auto 0; max-width: 650px; }
.system-table { width: 100%; border-collapse: collapse; min-width: 600px; background: #fff; }
.system-table th, .system-table td { padding: 20px; border: 1px solid #eee; vertical-align: middle; }
.system-table th { background: var(--primary-color); color: var(--text-main); width: 25%; font-weight: bold; text-align: center; }
.system-table td strong { color: var(--accent-orange); font-size: 1.1em; }
.system-table tr:hover { background: #fffcf0; }

.step-list { list-style: none; padding: 0; max-width: 700px; margin: 0 auto; position: relative; }
.step-list::before {
  content: ''; position: absolute; top: 20px; bottom: 20px; left: 24px; width: 4px; background: #e0e0e0; z-index: 0;
}
.step-item {
  display: flex; align-items: flex-start; margin-bottom: 30px; position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius-base); padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.step-num {
  flex-shrink: 0; width: 50px; height: 50px; background: var(--primary-color); color: #fff;
  font-weight: 800; font-size: 1.4rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-right: 20px; border: 4px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.step-note { color: var(--accent-orange); font-weight: bold; }

.area-list { list-style:none; padding:0; text-align:left; display: inline-block; }
.area-list li:first-child { margin-bottom: 20px; }
.area-note { color: var(--text-muted); }
.icon-large { font-size: 1.5em; }

/* FAQ */
details.faq-details {
  background: #fff; border-radius: var(--radius-base); margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid #eee; transition: all 0.3s;
}
details.faq-details[open] { box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-color: var(--primary-color); }
summary.faq-summary {
  padding: 20px; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 50px; display: flex; align-items: baseline;
}
summary.faq-summary::-webkit-details-marker { display: none; }
summary.faq-summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary-color); font-weight: 300;
}
details[open] summary.faq-summary::after { content: '-'; }
.faq-q-mark { background: var(--primary-color); color: #333; padding: 2px 10px; border-radius: 4px; font-size: 0.8em; margin-right: 12px; }
.faq-content { padding: 0 20px 20px 20px; color: var(--text-sub); line-height: 1.7; border-top: 1px dashed #eee; margin-top: -10px; padding-top: 20px; }

/* CTA */
.cta-area {
  background: linear-gradient(135deg, #fffcf0 0%, #fff 100%); padding: 60px 20px; text-align: center;
  border-radius: var(--radius-base); border: 4px solid var(--primary-color); margin-top: 40px; box-shadow: var(--shadow-card);
}
.cta-title { border: none; margin: 0 0 15px; font-size: 1.6em; text-align: center; }
.cta-desc { margin-bottom: 30px; }

.btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn-group-left { justify-content: flex-start; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 16px 45px;
  border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; font-size: 1.1rem;
  transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 2px solid transparent;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-line { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }
.btn-primary { background: var(--primary-color); color: var(--text-main); border-color: var(--primary-color); }

/* Scroll Down */
.scroll-down {
  position: fixed; bottom: var(--arrow-bottom-base); left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 24px; height: 24px; border-right: 3px solid #333; border-bottom: 3px solid #333; opacity: .85;
  animation: hint 1.6s infinite; z-index: 1000; transition: opacity .3s; pointer-events: auto; cursor: pointer;
}
.scroll-down.is-hidden { opacity: 0; pointer-events: none; }
@keyframes hint { 0%, 100% { bottom: var(--arrow-bottom-base); } 50% { bottom: var(--arrow-bottom-move); } }

/* Mobile Sticky CTA */
.mobile-sticky-cta { display: none; }

/* ============================================================
   メディアクエリの集約
   ============================================================ */
@media (max-width: 768px) {
  .hero-wrapper { flex-direction: column-reverse; text-align: center; }
  .hero-visual { max-width: 100%; margin-bottom: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .zigzag-item, .zigzag-item:nth-child(even) { flex-direction: column; gap: 20px; }
  .zigzag-image { flex: auto; width: 100%; height: auto; max-height: 250px; }
  .voice-card { flex-direction: column; padding: 25px 20px; gap: 20px; }
  .voice-card-img { width: 100%; height: 200px; }
  .voice-card::after { font-size: 10rem; bottom: -20px; right: 5px; }
  .btn-group-left { justify-content: center; }
}

@media (max-width: 600px) {
  :root {
    --arrow-bottom-base: 95px;
    --arrow-bottom-move: 85px;
  }
  body { padding-bottom: 70px; }
  .mobile-sticky-cta {
    position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 950; display: flex; gap: 8px; height: 60px;
  }
  .cta-item {
    border-radius: 8px; text-decoration: none; display: flex; flex-direction: column; justify-content: center;
    align-items: center; line-height: 1.1; font-size: 12px; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.2); flex: 1; position: relative; overflow: hidden;
  }
  .cta-sub { flex: 0 0 35%; background: var(--accent-green); color: #fff; border: 1px solid var(--accent-green-dark); }
  .cta-sub .icon { font-size: 1.2em; margin-bottom: 2px; }
  .cta-main { flex: 1; background: var(--primary-color); color: #333; border: 2px solid #fff; font-size: 13px; }
  .cta-main .icon { display: none; }
  .badge-recruit {
    position: absolute; top: 0; left: 0; background: #ff3b30; color: #fff; font-size: 9px; padding: 2px 6px;
    border-bottom-right-radius: 6px; font-weight: 800;
  }
  .arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2em; opacity: 0.6; }
}