/*
 * D2 訪問看護事業部 - Full Scratch Static Site
 * https://hopath-kawasaki.com/
 */

/* ===== CSS Variables ===== */
:root {
  --d2-navy: #1a2744;
  --d2-navy-light: #243352;
  --d2-blue: #2B5DAE;
  --d2-gold: #b8935a;
  --d2-gold-light: #d4c8a0;
  --d2-white: #ffffff;
  --d2-bg: #ffffff;
  --d2-bg-warm: #f8f7f4;
  --d2-bg-section: #faf9f6;
  --d2-text: #333333;
  --d2-text-light: #666666;
  --d2-text-muted: #999999;
  --d2-border: #e5e5e5;
  --d2-salmon: #c87070;
  --d2-salmon-bg: #fdf0f0;
  --d2-tan: #a08c5a;
  --d2-tan-bg: #f5f0e0;
  --d2-red: #c0392b;
  --d2-recruit-bg: #b83232;
  --d2-radius: 4px;
  --d2-radius-lg: 8px;
  --d2-container: 1100px;
  --d2-header-h: 72px;
  --d2-font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --d2-font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--d2-header-h); }
body { font-family: var(--d2-font-sans); color: var(--d2-text); line-height: 1.8; font-size: 15px; background: var(--d2-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--d2-navy); text-decoration: none; }
a:hover { opacity: 0.8; }
ul { list-style: none; }

/* ===== Container ===== */
.d2-container { max-width: var(--d2-container); margin: 0 auto; padding: 0 40px; }

/* ===== Header ===== */
.d2-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--d2-white); height: var(--d2-header-h);
  border-bottom: 1px solid var(--d2-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.d2-header-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.d2-header-logo-icon {
  width: 40px; height: 40px; background: var(--d2-navy);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
}
.d2-header-logo-text { display: flex; flex-direction: column; }
.d2-header-logo-text .main { font-size: 16px; font-weight: 700; color: var(--d2-navy); letter-spacing: 0.05em; }
.d2-header-logo-text .sub { font-size: 10px; color: var(--d2-text-muted); letter-spacing: 0.15em; text-transform: uppercase; }

.d2-nav { display: flex; align-items: center; gap: 4px; }
.d2-nav a {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; font-size: 13px; color: var(--d2-text);
  text-decoration: none; transition: color 0.2s; position: relative;
}
.d2-nav a .en { font-size: 9px; color: var(--d2-text-muted); margin-top: 2px; letter-spacing: 0.05em; }
.d2-nav a:hover { color: var(--d2-navy); }
.d2-nav a::before { content: "—"; font-size: 10px; color: var(--d2-text-muted); position: absolute; left: -4px; top: 50%; transform: translateY(-50%); }
.d2-nav a:first-child::before { display: none; }

.d2-header-cta {
  background: var(--d2-navy); color: white; padding: 10px 24px;
  border-radius: 50px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em; transition: opacity 0.2s; text-decoration: none; white-space: nowrap;
}
.d2-header-cta:hover { opacity: 0.85; color: white; }

/* ===== Hamburger (mobile) ===== */
.d2-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.d2-hamburger span { display: block; width: 24px; height: 2px; background: var(--d2-navy); transition: 0.3s; }
.d2-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.d2-hamburger.open span:nth-child(2) { opacity: 0; }
.d2-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.d2-mobile-nav { display: none; }

/* ===== Hero Slider ===== */
.d2-hero {
  position: relative; height: 90vh; min-height: 600px;
  margin-top: var(--d2-header-h); overflow: hidden;
}
.d2-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.d2-hero-slide.active { opacity: 1; }
.d2-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 100%);
}
.d2-hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; padding: 0 80px;
}
.d2-hero-text { color: white; max-width: 600px; }
.d2-hero-text h2 {
  font-family: var(--d2-font-serif); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500; line-height: 1.6; letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4), 0 0 40px rgba(0,0,0,0.2);
  margin-bottom: 24px;
}
.d2-hero-line {
  width: 80px; height: 1px; background: var(--d2-gold);
  margin-bottom: 24px; opacity: 0.8;
}
.d2-hero-text p {
  font-size: clamp(13px, 1.4vw, 15px); line-height: 2;
  opacity: 0.9; text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.d2-hero-dots {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; gap: 12px;
}
.d2-hero-dots span {
  width: 32px; height: 3px; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: 0.3s;
}
.d2-hero-dots span.active { background: rgba(255,255,255,0.95); }

/* ===== Recruit Sidebar ===== */
.d2-recruit-side {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 900; background: var(--d2-recruit-bg); color: white;
  writing-mode: vertical-rl; padding: 20px 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2em;
  border-radius: 6px 0 0 6px; cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.d2-recruit-side:hover { background: #a02828; color: white; }

/* ===== Info Bar ===== */
.d2-infobar {
  background: var(--d2-navy); color: white;
  display: flex; justify-content: center; align-items: center;
  gap: 40px; padding: 16px 24px; flex-wrap: wrap;
}
.d2-infobar-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.d2-infobar-badge {
  border: 1px solid rgba(255,255,255,0.5); padding: 3px 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  border-radius: 2px;
}

/* ===== Section Heading ===== */
.d2-section { padding: 100px 0; }
.d2-section.alt { background: var(--d2-bg-section); }
.d2-section-head { text-align: center; margin-bottom: 60px; }
.d2-section-head .en {
  font-family: var(--d2-font-serif); font-size: clamp(28px, 3vw, 38px);
  color: var(--d2-navy); letter-spacing: 0.05em; font-weight: 400;
}
.d2-section-head .ja {
  font-size: 13px; color: var(--d2-text-muted);
  letter-spacing: 0.15em; margin-top: 4px;
}
.d2-section-head-line {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 8px;
}
.d2-section-head-line::before,
.d2-section-head-line::after {
  content: ""; width: 80px; height: 1px; background: var(--d2-gold);
}

/* ===== News Section ===== */
.d2-news-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 40px;
}
.d2-news-tab {
  padding: 8px 24px; border-radius: 50px; font-size: 14px;
  cursor: pointer; border: 1px solid var(--d2-border);
  background: white; color: var(--d2-text); transition: 0.2s;
}
.d2-news-tab.active {
  background: var(--d2-navy); color: white; border-color: var(--d2-navy);
}
.d2-news-list { max-width: 800px; margin: 0 auto; }
.d2-news-item {
  border-bottom: 1px solid var(--d2-border); padding: 20px 0;
  cursor: pointer;
}
.d2-news-item-header { display: flex; align-items: center; gap: 16px; }
.d2-news-date { font-size: 14px; color: var(--d2-text-muted); min-width: 100px; }
.d2-news-cat {
  font-size: 11px; padding: 3px 14px; border-radius: 2px;
  font-weight: 500; letter-spacing: 0.05em;
}
.d2-news-cat.recruit { background: var(--d2-salmon-bg); color: var(--d2-salmon); }
.d2-news-cat.info { background: var(--d2-tan-bg); color: var(--d2-tan); }
.d2-news-cat.notice { background: #e8edf5; color: var(--d2-navy); }
.d2-news-body a { color: var(--d2-navy); text-decoration: underline; }
.d2-news-title { font-size: 15px; color: var(--d2-text); flex: 1; }
.d2-news-new {
  background: var(--d2-red); color: white; font-size: 10px;
  padding: 2px 8px; border-radius: 2px; font-weight: 700;
}
.d2-news-toggle {
  color: var(--d2-text-muted); font-size: 18px; transition: 0.3s;
  margin-left: auto;
}
.d2-news-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  font-size: 14px; color: var(--d2-text-light); line-height: 1.9;
}
.d2-news-item.open .d2-news-body { max-height: 500px; padding-top: 12px; }
.d2-news-item.open .d2-news-toggle { transform: rotate(180deg); }

/* ===== Philosophy ===== */
.d2-philosophy-text {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-family: var(--d2-font-serif); font-size: 20px;
  line-height: 2.2; color: var(--d2-navy); letter-spacing: 0.05em;
}
.d2-philosophy-body {
  max-width: 680px; margin: 40px auto 0; text-align: center;
  font-size: 15px; line-height: 2; color: var(--d2-text-light);
}
.d2-philosophy-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 680px; margin: 60px auto 0;
}
.d2-philosophy-card {
  background: var(--d2-bg-warm); padding: 32px; border-radius: var(--d2-radius-lg);
  text-align: center;
}
.d2-philosophy-card .label { font-size: 12px; color: var(--d2-text-muted); margin-bottom: 8px; }
.d2-philosophy-card .value {
  font-family: var(--d2-font-serif); font-size: 17px;
  color: var(--d2-navy); line-height: 1.8;
}

/* ===== Guidelines ===== */
.d2-guidelines-intro {
  text-align: center; max-width: 680px; margin: 0 auto 60px;
  font-size: 15px; color: var(--d2-text-light); line-height: 2;
}
.d2-guideline-list { max-width: 800px; margin: 0 auto; }
.d2-guideline-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px;
  padding: 40px 0; border-bottom: 1px solid var(--d2-border);
}
.d2-guideline-num {
  font-family: var(--d2-font-serif); font-size: 32px;
  color: var(--d2-navy); font-weight: 300; line-height: 1;
  padding-top: 4px;
}
.d2-guideline-title {
  font-size: 18px; font-weight: 700; color: var(--d2-navy);
  margin-bottom: 8px;
}
.d2-guideline-desc { font-size: 14px; color: var(--d2-text-light); line-height: 1.9; }
.d2-guideline-question {
  font-size: 13px; color: var(--d2-gold); margin-top: 12px;
  font-style: italic;
}
.d2-guideline-return {
  background: var(--d2-bg-warm); border-radius: var(--d2-radius-lg);
  padding: 48px; margin-top: 60px; text-align: center;
}
.d2-guideline-return h3 {
  font-family: var(--d2-font-serif); font-size: 18px;
  color: var(--d2-navy); letter-spacing: 0.3em; margin-bottom: 32px;
}
.d2-guideline-return ol {
  list-style: none; counter-reset: gr;
  max-width: 500px; margin: 0 auto; text-align: left;
}
.d2-guideline-return ol li {
  counter-increment: gr; padding: 12px 0;
  font-size: 15px; color: var(--d2-text); display: flex; gap: 12px;
}
.d2-guideline-return ol li::before {
  content: counter(gr); font-family: var(--d2-font-serif);
  color: var(--d2-navy); font-size: 18px; min-width: 20px;
}

/* ===== Stations ===== */
.d2-stations-intro {
  text-align: center; max-width: 680px; margin: 0 auto 60px;
  font-size: 15px; color: var(--d2-text-light);
}
.d2-stations-count { text-align: center; margin-bottom: 40px; }
.d2-stations-count .num {
  font-family: var(--d2-font-serif); font-size: 14px;
  color: var(--d2-navy); letter-spacing: 0.1em;
}
.d2-station-card {
  background: white; border: 1px solid var(--d2-border);
  border-radius: var(--d2-radius-lg); overflow: hidden;
  margin-bottom: 32px;
}
.d2-station-card-header {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 300px;
}
.d2-station-img {
  background: #e8e8e8; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 12px;
}
.d2-station-info { padding: 32px; }
.d2-station-name {
  font-size: 18px; font-weight: 700; color: var(--d2-navy); margin-bottom: 4px;
}
.d2-station-area {
  font-size: 11px; color: var(--d2-text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
}
.d2-station-detail {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  font-size: 13px;
}
.d2-station-detail dt { color: var(--d2-text-muted); font-weight: 500; }
.d2-station-detail dd { color: var(--d2-text); }

/* ===== Service ===== */
.d2-services-intro {
  text-align: center; max-width: 680px; margin: 0 auto 60px;
  font-size: 15px; color: var(--d2-text-light);
}
.d2-service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.d2-service-card {
  background: white; border: 1px solid var(--d2-border);
  border-radius: var(--d2-radius-lg); padding: 28px 20px;
  text-align: center; transition: box-shadow 0.2s;
}
.d2-service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.d2-service-num {
  font-family: var(--d2-font-serif); font-size: 12px;
  color: var(--d2-gold); margin-bottom: 12px;
}
.d2-service-title {
  font-size: 15px; font-weight: 700; color: var(--d2-navy);
  margin-bottom: 10px;
}
.d2-service-desc { font-size: 13px; color: var(--d2-text-light); line-height: 1.8; text-align: left; }
.d2-service-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--d2-navy); text-decoration: underline; text-align: left; }

/* ===== Flow ===== */
.d2-flow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-bottom: 60px;
}
.d2-flow-step { text-align: center; position: relative; }
.d2-flow-step::after {
  content: ""; position: absolute; top: 32px; right: -12px;
  width: 24px; height: 1px; background: var(--d2-border);
}
.d2-flow-step:last-child::after { display: none; }
.d2-flow-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--d2-navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--d2-font-serif); font-size: 22px;
  margin: 0 auto 16px;
}
.d2-flow-num .small { font-size: 10px; display: block; letter-spacing: 0.1em; }
.d2-flow-title { font-size: 16px; font-weight: 700; color: var(--d2-navy); margin-bottom: 8px; }
.d2-flow-desc { font-size: 13px; color: var(--d2-text-light); line-height: 1.8; text-align: left; }

/* ===== Partners ===== */
.d2-partners-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.d2-partners-list li {
  padding: 8px 0; font-size: 14px; color: var(--d2-text);
  border-bottom: 1px dotted var(--d2-border);
}
.d2-partners-cta {
  background: var(--d2-bg-warm); padding: 32px; border-radius: var(--d2-radius-lg);
}
.d2-partners-cta h3 { font-size: 17px; color: var(--d2-navy); margin-bottom: 12px; }
.d2-partners-cta p { font-size: 14px; color: var(--d2-text-light); line-height: 1.9; }

/* ===== Recruit ===== */
.d2-recruit-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.d2-recruit-stat {
  background: var(--d2-navy); color: white; padding: 32px 20px;
  border-radius: var(--d2-radius-lg); text-align: center;
}
.d2-recruit-stat .label {
  font-size: 11px; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 8px;
}
.d2-recruit-stat .value {
  font-family: var(--d2-font-serif); font-size: 28px; font-weight: 500;
  margin-bottom: 4px;
}
.d2-recruit-stat .unit { font-size: 16px; }
.d2-recruit-stat .note { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.d2-recruit-stat.highlight { background: var(--d2-recruit-bg); }

.d2-recruit-note {
  text-align: center; font-size: 13px; color: var(--d2-text-muted);
  max-width: 680px; margin: 0 auto 60px; line-height: 1.9;
}
.d2-recruit-table { max-width: 800px; margin: 0 auto; }
.d2-recruit-row {
  display: grid; grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--d2-border); font-size: 14px;
}
.d2-recruit-row dt {
  padding: 16px 20px; background: var(--d2-bg-warm);
  color: var(--d2-navy); font-weight: 500;
}
.d2-recruit-row dd { padding: 16px 20px; color: var(--d2-text); }

/* ===== FAQ ===== */
.d2-faq-list { max-width: 800px; margin: 0 auto; }
.d2-faq-item { border-bottom: 1px solid var(--d2-border); cursor: pointer; }
.d2-faq-q {
  padding: 20px 0; font-size: 15px; font-weight: 500;
  color: var(--d2-text); display: flex;
  justify-content: space-between; align-items: center;
}
.d2-faq-q::before { content: "Q."; color: var(--d2-navy); font-weight: 700; margin-right: 12px; }
.d2-faq-toggle { font-size: 18px; color: var(--d2-text-muted); transition: 0.3s; }
.d2-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  font-size: 14px; color: var(--d2-text-light); line-height: 1.9;
  padding-left: 28px;
}
.d2-faq-item.open .d2-faq-a { max-height: 300px; padding-bottom: 20px; }
.d2-faq-item.open .d2-faq-toggle { transform: rotate(180deg); }

/* ===== Company ===== */
.d2-company-table { max-width: 800px; margin: 0 auto; }
.d2-company-row {
  display: grid; grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--d2-border); font-size: 14px;
}
.d2-company-row dt {
  padding: 16px 20px; background: var(--d2-bg-warm);
  color: var(--d2-navy); font-weight: 500;
}
.d2-company-row dd { padding: 16px 20px; color: var(--d2-text); line-height: 1.9; }

/* ===== Contact ===== */
.d2-contact-intro {
  text-align: center; max-width: 680px; margin: 0 auto 48px;
  font-size: 15px; color: var(--d2-text-light); line-height: 2;
}
.d2-contact-phones {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.d2-contact-phone {
  text-align: center; padding: 24px; border: 1px solid var(--d2-border);
  border-radius: var(--d2-radius-lg);
}
.d2-contact-phone .name { font-size: 14px; color: var(--d2-navy); font-weight: 500; margin-bottom: 8px; }
.d2-contact-phone .number {
  font-family: var(--d2-font-serif); font-size: 24px;
  color: var(--d2-navy); letter-spacing: 0.05em;
}
.d2-contact-phone .hours { font-size: 12px; color: var(--d2-text-muted); margin-top: 4px; }

/* ===== Footer ===== */
.d2-footer {
  background: var(--d2-navy); color: white; padding: 60px 0 24px;
}
.d2-footer-inner {
  max-width: var(--d2-container); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.d2-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.d2-footer-nav a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
.d2-footer-nav a:hover { color: white; }
.d2-footer-info { text-align: right; }
.d2-footer-info .name { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.d2-footer-info .address { font-size: 12px; opacity: 0.7; line-height: 1.8; }
.d2-footer-copy {
  text-align: center; font-size: 12px; opacity: 0.5;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--d2-container); margin-left: auto; margin-right: auto;
  padding-left: 40px; padding-right: 40px;
}

/* ===== Buttons ===== */
.d2-btn {
  display: inline-block; padding: 14px 32px;
  border-radius: var(--d2-radius); font-size: 15px;
  font-weight: 500; text-decoration: none; transition: 0.2s;
  letter-spacing: 0.05em; text-align: center;
}
.d2-btn-primary { background: var(--d2-navy); color: white; }
.d2-btn-primary:hover { opacity: 0.85; color: white; }
.d2-btn-outline { border: 1px solid var(--d2-navy); color: var(--d2-navy); background: transparent; }
.d2-btn-outline:hover { background: var(--d2-navy); color: white; }

/* ===== Utility ===== */
.d2-text-center { text-align: center; }
.d2-mt-40 { margin-top: 40px; }
.d2-mt-60 { margin-top: 60px; }

/* ================================================================
   RESPONSIVE - Mobile (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  .d2-nav { display: none; }
  .d2-header-cta { display: none; }
  .d2-hamburger { display: flex; }
  .d2-header { height: 60px; padding: 0 16px; }

  .d2-mobile-nav {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: white; z-index: 999;
    display: none; flex-direction: column; padding: 24px;
    overflow-y: auto;
  }
  .d2-mobile-nav.open { display: flex; }
  .d2-mobile-nav a {
    padding: 14px 0; font-size: 16px; color: var(--d2-text);
    border-bottom: 1px solid var(--d2-border); text-decoration: none;
    display: flex; justify-content: space-between; align-items: center;
  }
  .d2-mobile-nav a .en { font-size: 11px; color: var(--d2-text-muted); }
  .d2-mobile-nav .d2-btn { margin-top: 24px; }

  .d2-hero { margin-top: 60px; height: auto; min-height: auto; overflow: visible; background: #fff; }
  .d2-hero-slide { height: 50vh; min-height: 280px; bottom: auto; }
  .d2-hero-overlay { height: 50vh; min-height: 280px; bottom: auto; background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.5) 75%, #fff 100%); }
  .d2-hero-inner { height: auto; padding: calc(50vh - 30px) 20px 32px; align-items: flex-start; }
  .d2-hero-text { color: var(--d2-text); max-width: 100%; }
  .d2-hero-text h2 { color: var(--d2-navy); text-shadow: none; font-size: 22px; line-height: 1.6; }
  .d2-hero-line { background: var(--d2-gold); }
  .d2-hero-text p { color: var(--d2-text-light); text-shadow: none; opacity: 1; font-size: 14px; }
  .d2-hero-dots { position: absolute; top: calc(50vh - 36px); bottom: auto; }
  .d2-hero-dots span { background: rgba(255,255,255,0.6); }
  .d2-hero-dots span.active { background: #fff; }

  .d2-recruit-side { display: none; }
  .d2-infobar { flex-direction: column; gap: 12px; padding: 20px 16px; font-size: 13px; }
  .d2-container { padding: 0 20px; }
  .d2-section { padding: 60px 0; }

  .d2-service-grid { grid-template-columns: 1fr 1fr; }
  .d2-flow-steps { grid-template-columns: 1fr 1fr; }
  .d2-flow-step::after { display: none; }
  .d2-recruit-stats { grid-template-columns: 1fr 1fr; }
  .d2-partners-grid { grid-template-columns: 1fr; }
  .d2-contact-phones { grid-template-columns: 1fr; }
  .d2-philosophy-cards { grid-template-columns: 1fr; }
  .d2-station-card-header { grid-template-columns: 1fr; }
  .d2-station-img { min-height: 200px; }

  .d2-footer-inner { grid-template-columns: 1fr; }
  .d2-footer-info { text-align: left; }

  .d2-recruit-row { grid-template-columns: 1fr; }
  .d2-recruit-row dt { padding: 12px 16px 4px; }
  .d2-recruit-row dd { padding: 4px 16px 12px; }
  .d2-company-row { grid-template-columns: 1fr; }
  .d2-company-row dt { padding: 12px 16px 4px; }
  .d2-company-row dd { padding: 4px 16px 12px; }

  /* スマホでは日付・分類・NEW・開閉を1行目、タイトルを2行目に全幅で出す
     （同じ行に並べるとタイトル欄が狭く、1行に4〜5文字しか入らなかった） */
  .d2-news-item-header { flex-wrap: wrap; row-gap: 8px; }
  .d2-news-date { min-width: 0; }
  .d2-news-title { order: 10; flex: 0 0 100%; line-height: 1.7; }
  .d2-news-body { padding-left: 0; }
  .d2-guideline-item { grid-template-columns: 40px 1fr; gap: 16px; }
  .d2-guideline-num { font-size: 24px; }
}

@media (max-width: 480px) {
  .d2-service-grid { grid-template-columns: 1fr; }
  .d2-flow-steps { grid-template-columns: 1fr; }
  .d2-recruit-stats { grid-template-columns: 1fr; }
  .d2-news-item-header { gap: 8px; }
}

/* ===== Section Visual Images ===== */
.d2-philosophy-visual,
.d2-guidelines-visual,
.d2-flow-visual,
.d2-recruit-visual {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--d2-radius-lg);
  overflow: hidden;
}
.d2-philosophy-img,
.d2-guidelines-img,
.d2-flow-img,
.d2-recruit-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--d2-radius-lg);
}
.d2-recruit-visual {
  max-width: 700px;
}

/* ===== Station Slider ===== */
.d2-station-slider {
  padding: 0 0 24px;
  margin-top: -8px;
}
.d2-station-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--d2-radius);
  background: var(--d2-bg-warm);
}
.d2-station-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.d2-station-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.d2-station-slide img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.d2-station-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--d2-navy);
  cursor: pointer;
  transition: background 0.2s ease;
}
.d2-station-slider-btn:hover {
  background: var(--d2-white);
}
.d2-station-slider-btn:focus-visible {
  outline: 2px solid var(--d2-gold);
  outline-offset: 2px;
}
.d2-station-slider-btn.prev { left: 12px; }
.d2-station-slider-btn.next { right: 12px; }
.d2-station-slider-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(26, 39, 68, 0.72);
  color: var(--d2-white);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .d2-station-slide img { height: 260px; }
  .d2-station-slider-btn { width: 38px; height: 38px; }
  .d2-station-slider-btn.prev { left: 8px; }
  .d2-station-slider-btn.next { right: 8px; }
  .d2-philosophy-visual,
  .d2-guidelines-visual,
  .d2-flow-visual,
  .d2-recruit-visual { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .d2-station-slide img { height: 200px; }
}

/* 写真が未提供の拠点 */
.d2-station-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d2-bg-warm);
  color: var(--d2-text-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ===== Contact Form ===== */
.d2-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  background: var(--d2-bg-warm);
  border-radius: var(--d2-radius-lg);
}
.d2-form-head { text-align: center; margin-bottom: 40px; }
.d2-form-head .en {
  font-size: 12px; letter-spacing: 0.2em; color: var(--d2-gold);
  text-transform: uppercase; margin-bottom: 8px;
}
.d2-form-head .ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; color: var(--d2-navy); font-weight: 500;
}
.d2-form-head .lead {
  margin: 16px auto 0; max-width: 560px;
  font-size: 14px; line-height: 2; color: var(--d2-text-light);
}

/* ハニーポット。人間には見せない */
.d2-form-hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.d2-form-row { margin-bottom: 24px; }
.d2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.d2-form-label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 700; color: var(--d2-navy);
}
.d2-form-label .req {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  border-radius: 2px; background: var(--d2-salmon); color: var(--d2-white);
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  vertical-align: 1px;
}
.d2-form-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--d2-border); border-radius: var(--d2-radius);
  background: var(--d2-white); color: var(--d2-text);
  font-family: inherit; font-size: 15px; line-height: 1.7;
  transition: border-color 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
select.d2-form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a2744' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
.d2-form-input:focus {
  outline: none; border-color: var(--d2-blue);
  box-shadow: 0 0 0 3px rgba(43, 93, 174, 0.12);
}
.d2-form-input::placeholder { color: var(--d2-text-muted); }
.d2-form-textarea { resize: vertical; min-height: 150px; }

.d2-form-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.d2-form-choice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--d2-border); border-radius: var(--d2-radius);
  background: var(--d2-white);
  font-size: 14px; color: var(--d2-text); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.d2-form-choice:hover { border-color: var(--d2-blue); }
.d2-form-choice input { accent-color: var(--d2-blue); margin: 0; }
.d2-form-choice:has(input:checked) {
  border-color: var(--d2-blue);
  background: rgba(43, 93, 174, 0.06);
}

.d2-form-recruit {
  margin: 8px 0 24px; padding: 24px 24px 4px;
  border-radius: var(--d2-radius);
  background: var(--d2-white);
  border: 1px solid var(--d2-border);
}
.d2-form-recruit-head {
  margin-bottom: 20px; padding-left: 10px;
  border-left: 3px solid var(--d2-gold);
  font-size: 14px; font-weight: 700; color: var(--d2-navy);
}

.d2-form-agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 8px 0 32px; padding: 16px 18px;
  border-radius: var(--d2-radius);
  background: var(--d2-white); border: 1px solid var(--d2-border);
  font-size: 14px; line-height: 1.8; cursor: pointer;
}
.d2-form-agree input { margin-top: 4px; accent-color: var(--d2-blue); }
.d2-form-agree a { color: var(--d2-blue); text-decoration: underline; }

.d2-form-actions { text-align: center; }
.d2-form-button {
  min-width: 240px; padding: 16px 40px;
  border: none; border-radius: var(--d2-radius);
  background: var(--d2-navy); color: var(--d2-white);
  font-family: inherit; font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; cursor: pointer;
  transition: background 0.2s ease;
}
.d2-form-button:hover { background: var(--d2-navy-light); }
.d2-form-button:disabled { opacity: 0.5; cursor: default; }
.d2-form-note {
  margin-top: 16px; font-size: 13px; color: var(--d2-text-light);
}

.d2-form-result {
  margin-top: 24px; padding: 18px 20px;
  border-radius: var(--d2-radius);
  font-size: 15px; line-height: 1.9;
}
.d2-form-result.ok  { background: var(--d2-tan-bg); color: var(--d2-tan); }
.d2-form-result.ng  { background: var(--d2-salmon-bg); color: var(--d2-salmon); }
.d2-form-result ul { margin: 8px 0 0; padding-left: 20px; }

@media (max-width: 768px) {
  .d2-form-wrap { padding: 32px 20px 28px; }
  .d2-form-grid { grid-template-columns: 1fr; gap: 0; }
  .d2-form-recruit { padding: 20px 16px 4px; }
  .d2-form-button { width: 100%; min-width: 0; }
}

/* 拠点カードから各拠点ページへの導線 */
.d2-station-more {
  display: inline-block; margin-top: 18px; padding: 10px 22px;
  border: 1px solid var(--d2-navy); border-radius: var(--d2-radius);
  color: var(--d2-navy); text-decoration: none;
  font-size: 14px; font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.d2-station-more:hover { background: var(--d2-navy); color: var(--d2-white); }

/* カード全体をクリックできることを示す */
.d2-station-card.is-linked { cursor: pointer; transition: box-shadow 0.2s ease; }
.d2-station-card.is-linked:hover { box-shadow: 0 4px 20px rgba(26, 39, 68, 0.1); }
.d2-station-card.is-linked:hover .d2-station-more { background: var(--d2-navy); color: var(--d2-white); }
