/*
Theme Name: Nijiiro Visit Nursing
Theme URI: https://example.com/
Author: ALUTE
Author URI: https://example.com/
Description: 訪問看護ステーション向けの医療・福祉ホームページテーマ。トップページ、投稿ブログ、予約モーダル、レスポンシブ対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: nijiiro-visit-nursing
*/

:root {
  --blue: #1f83c5;
  --deep-blue: #0b4f86;
  --sky: #eaf7ff;
  --green: #62b89d;
  --mint: #effaf6;
  --orange: #f5a623;
  --text: #1c2f3f;
  --muted: #637789;
  --line: #dcebf3;
  --white: #fff;
  --shadow: 0 18px 48px rgba(15, 67, 105, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.85;
  background: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220,235,243,.8);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .04em; }
.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(31,131,197,.25);
}
.logo small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; }
.logo span:last-child { line-height: 1.25; }
.global-nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 14px; }
.global-nav a { position: relative; }
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.global-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.tel-box {
  color: var(--deep-blue);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}
.tel-box small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; box-shadow: 0 12px 28px rgba(31,131,197,.25); }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); background: #fff; }
.menu-toggle { display: none; border: 0; background: var(--sky); border-radius: 12px; padding: 10px; color: var(--deep-blue); font-weight: 800; }

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  overflow: hidden;
  background: linear-gradient(120deg, #f6fcff 0%, #effaf6 100%);
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 4s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 42%, rgba(255,255,255,.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  padding: 56px 0;
}
.hero-copy { max-width: 670px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.18;
  letter-spacing: .04em;
  color: var(--deep-blue);
}
.hero h1 span { color: var(--green); }
.hero-lead { font-size: clamp(16px, 2vw, 20px); color: #355268; margin: 24px 0 30px; font-weight: 600; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  max-width: 780px;
}
.info-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 28px rgba(15,67,105,.08);
}
.info-card b { color: var(--deep-blue); display: block; font-size: 15px; }
.info-card span { color: var(--muted); font-size: 13px; }
.slider-dots { position: absolute; right: 32px; bottom: 32px; z-index: 3; display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(11,79,134,.28); border: 0; padding: 0; cursor: pointer; }
.slider-dot.is-active { width: 34px; background: var(--blue); }

.section { padding: 90px 0; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-en { color: var(--green); font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.section-title { margin: 6px 0 12px; color: var(--deep-blue); font-size: clamp(28px, 4vw, 44px); line-height: 1.3; letter-spacing: .06em; }
.section-desc { color: var(--muted); max-width: 760px; margin: 0 auto; }
.topics-blog { background: #fff; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-title h2 { margin: 0; color: var(--deep-blue); font-size: 24px; }
.more { color: var(--blue); font-weight: 800; font-size: 13px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-top: 1px solid var(--line); padding: 16px 0; }
.news-list li:first-child { border-top: 0; }
.news-date { color: var(--green); font-weight: 800; font-size: 13px; margin-right: 12px; }
.blog-cards { display: grid; gap: 16px; }
.blog-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.blog-thumb { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--sky); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-date { color: var(--green); font-weight: 800; font-size: 13px; }
.blog-title { font-weight: 800; line-height: 1.55; }

.concept { background: linear-gradient(180deg, #f6fcff 0%, #fff 100%); }
.concept-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.concept-image { position: relative; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); }
.concept-image img { width: 100%; height: 540px; object-fit: cover; }
.concept-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 16px 20px;
  color: var(--deep-blue);
  font-weight: 900;
}
.concept-text h2 { color: var(--deep-blue); font-size: clamp(28px, 4vw, 46px); line-height: 1.45; margin: 0 0 22px; }
.concept-text p { color: #40596f; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15,67,105,.08);
}
.feature-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--mint); display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; }
.feature-card h3 { color: var(--deep-blue); font-size: 21px; margin: 0 0 10px; }
.feature-card p { color: var(--muted); margin: 0; }

.faq { background: #fff; }
.service { background: var(--sky); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-item { background: #fff; border-radius: 22px; padding: 24px; border-left: 7px solid var(--green); box-shadow: 0 10px 28px rgba(15,67,105,.08); }
.service-item h3 { margin: 0 0 8px; color: var(--deep-blue); }
.service-item p { margin: 0; color: var(--muted); }

.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: flow; }
.flow-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 20px; box-shadow: 0 10px 28px rgba(15,67,105,.07); }
.flow-card::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); color: var(--green); font-size: 34px; font-weight: 900; line-height: 1; }
.flow-card h3 { color: var(--deep-blue); margin: 14px 0 8px; }
.flow-card p { color: var(--muted); margin: 0; font-size: 14px; }

.access { background: linear-gradient(135deg, #fff, #f4fbff); }
.access-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.access-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 14px 0; text-align: left; vertical-align: top; }
.info-table th { width: 120px; color: var(--deep-blue); }
.map-box { min-height: 420px; border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.cta { padding: 80px 0; background: linear-gradient(135deg, var(--deep-blue), var(--blue)); color: #fff; }
.cta-box { text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 16px; }
.cta p { margin: 0 auto 26px; max-width: 720px; opacity: .9; }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.65); background: transparent; }

.site-footer { background: #073a61; color: #fff; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; opacity: .9; }
.copy { border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 22px; color: rgba(255,255,255,.7); font-size: 13px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-bg { position: absolute; inset: 0; background: rgba(4, 26, 43, .55); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  top: 50%;
  transform: translateY(-46%) scale(.96);
  background: #fff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  transition: transform .25s ease;
}
.modal.is-open .modal-panel { transform: translateY(-50%) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; border: 0; background: var(--sky); border-radius: 999px; width: 42px; height: 42px; cursor: pointer; font-size: 22px; color: var(--deep-blue); }
.modal h2 { color: var(--deep-blue); margin: 0 0 8px; }
.reserve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.reserve-card { background: var(--sky); border-radius: 18px; padding: 18px; text-align: center; font-weight: 800; color: var(--deep-blue); }
.form-grid { display: grid; gap: 14px; }
.form-grid label { font-weight: 800; color: var(--deep-blue); }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fbfeff; }
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.archive-header { background: var(--sky); padding: 70px 0; text-align: center; }
.archive-title { color: var(--deep-blue); margin: 0; font-size: clamp(30px, 5vw, 48px); }
.post-content { max-width: 860px; margin: 0 auto; padding: 70px 16px; }
.post-content h1 { color: var(--deep-blue); line-height: 1.4; }
.post-meta { color: var(--green); font-weight: 800; }
.post-content img { border-radius: 22px; margin: 26px 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .global-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .global-nav.is-open {
    display: grid;
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
  }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-content { min-height: auto; padding: 70px 0 46px; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.84) 70%, rgba(255,255,255,.52) 100%); }
  .hero-info, .news-grid, .concept-grid, .feature-grid, .service-list, .flow-grid, .access-grid, .footer-grid { grid-template-columns: 1fr; }
  .concept-image img { height: 360px; }
  .section { padding: 64px 0; }
  .reserve-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { width: min(100% - 24px, 1180px); height: 72px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo span:last-child { font-size: 14px; }
  .global-nav.is-open { top: 72px; }
  .hero h1 { font-size: clamp(28px, 8.7vw, 34px); letter-spacing: .02em; }
  .hero-lead { font-size: 15px; }
  .hero-kicker { font-size: 12px; padding: 7px 12px; }
  .hero-buttons .btn { width: 100%; }
  .hero-info { gap: 10px; }
  .slider-dots { right: 18px; bottom: 18px; }
  .panel { padding: 22px; }
  .blog-card { grid-template-columns: 92px 1fr; gap: 12px; }
  .news-date { display: block; margin: 0 0 4px; }
  .access-card { padding: 22px; }
  .modal-panel { width: calc(100% - 24px); max-height: calc(100dvh - 32px); padding: 28px 18px; border-radius: 22px; margin: 16px auto; }
  .footer-nav { display: grid; }
}

@media (max-width: 390px) {
  .container, .hero-content, .header-inner { width: calc(100% - 20px); }
  .logo span:last-child { font-size: 13px; }
  .btn { padding: 12px 16px; }
  .hero-info .info-card { padding: 13px; }
}
