/*
Theme Name: ひだまり訪問看護
Theme URI:
Author:
Author URI:
Description: 訪問看護ステーション ひだまり の WordPress テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hidamari
*/

/* ============================================================
   訪問看護ステーション ひだまり — Shared Styles
   ============================================================ */

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

:root {
  --cream:        #fcf8f0;
  --cream-2:      #fdfaf4;
  --card:         #fbf3e0;
  --card-2:       #fdf7ea;
  --line-soft:    #f0e7d3;

  --green:        #84b566;
  --green-deep:   #6fa052;
  --green-text:   #6a9b4c;
  --green-bg:     #eef4e6;

  --orange:       #f39b3d;
  --orange-deep:  #ec8b27;
  --orange-soft:  #fbe6c8;

  --line:         #06c755;

  --ink:          #5a5247;
  --ink-soft:     #7d756a;
  --ink-faint:    #a89f92;

  --radius:       16px;
  --radius-lg:    22px;
  --shadow:       0 8px 24px rgba(155, 130, 90, 0.10);
  --shadow-soft:  0 4px 14px rgba(155, 130, 90, 0.08);

  --maxw:         1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sun bullet (section title decoration) --- */
.sun {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: .4em;
  vertical-align: -0.16em;
  background: radial-gradient(circle at center, var(--orange) 0 30%, transparent 31%);
  border-radius: 50%;
  position: relative;
}
.sun::before, .sun::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 0deg,
      var(--orange) 0 6%, transparent 6% 18.5%,
      var(--orange) 18.5% 24.5%, transparent 24.5% 37%,
      var(--orange) 37% 43%, transparent 43% 55.5%,
      var(--orange) 55.5% 61.5%, transparent 61.5% 74%,
      var(--orange) 74% 80%, transparent 80% 92.5%,
      var(--orange) 92.5% 98.5%, transparent 98.5%);
  -webkit-mask: radial-gradient(circle at center, transparent 0 38%, #000 39% 50%, transparent 51%);
          mask: radial-gradient(circle at center, transparent 0 38%, #000 39% 50%, transparent 51%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 60px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 2px;
  transition: color .2s;
  position: relative;
}
.nav a:hover,
.nav a.active { color: var(--green-text); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--line);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(6,199,85,.25);
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.line-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(6,199,85,.32); }
.line-btn .li { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink-soft);
  transition: .25s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 24px 18px;
}
.mobile-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-nav.open { display: flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { width: 22px; height: 22px; }

.btn-tel {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(243,155,61,.32);
}
.btn-tel:hover { background: var(--orange-deep); box-shadow: 0 11px 22px rgba(243,155,61,.4); }

.btn-line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 8px 18px rgba(6,199,85,.28);
}
.btn-line:hover { filter: brightness(1.04); box-shadow: 0 11px 22px rgba(6,199,85,.36); }

.btn-ghost {
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  padding: 13px 30px;
  box-shadow: 0 6px 14px rgba(243,155,61,.28);
}
.btn-ghost:hover { background: var(--orange-deep); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 0; }
.section.alt { background: var(--cream-2); }

.sec-title {
  text-align: center;
  font-size: 30px;
  color: var(--green-text);
  margin-bottom: 44px;
  letter-spacing: .02em;
}
.sec-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 660px;
  margin: 0 auto 44px;
}

/* ============================================================
   PAGE HEAD (sub-pages)
   ============================================================ */
.page-head {
  background: var(--green-bg);
  text-align: center;
  padding: 54px 24px 48px;
  border-bottom: 1px solid #e3ecd6;
}
.page-head h1 {
  font-size: 32px;
  color: var(--green-text);
  margin-bottom: 12px;
}
.page-head p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ============================================================
   PHOTOS
   ============================================================ */
.banner-photo,
.svc-photo,
.map-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #e9f1de 0%, #dcebcb 100%);
  padding: 48px 0 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: flex-start;
}
.footer-brand img { height: 50px; margin-bottom: 14px; }
.footer-brand .addr {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-left: auto;
  align-content: flex-start;
}
.footer-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--green-deep); }
.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding: 16px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 0 0 30px;
  background: url('https://sonosannworks.github.io/Home-nursing-care/wp-content/themes/hidamari/image/photo_01_nurse_elder_smile.png') right center / cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 560px;
  align-self: flex-end;
  margin-top: auto;
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  padding-right: 5%;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.45;
  color: var(--green-text);
  margin-bottom: 22px;
  letter-spacing: .01em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.hero p { font-size: 18px; color: white; margin: 0; text-shadow: 1px 1px 4px rgba(80,80,80,0.8); }
.hero-cta {
  background: var(--card);
  padding: 28px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hero-cta-inner {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.feature .badge {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(155,130,90,.12);
  color: var(--orange);
}
.feature .badge svg { width: 38px; height: 38px; }
.feature h3 { font-size: 19px; color: var(--green-text); margin-bottom: 12px; }
.feature p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.8; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .18s, box-shadow .2s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc .badge {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-deep);
}
.svc .badge svg { width: 32px; height: 32px; }
.svc h3 { font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.svc p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* ============================================================
   NEWS
   ============================================================ */
.news-wrap { max-width: 760px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 28px;
  align-items: baseline;
  padding: 18px 6px;
  border-bottom: 1px dashed var(--line-soft);
}
.news-item .date {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--green-deep);
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.news-item .txt { font-size: 15px; color: var(--ink); }
.news-item .txt a { transition: color .2s; }
.news-item .txt a:hover { color: var(--green-text); }
.news-more { text-align: right; max-width: 760px; margin: 18px auto 0; }
.news-more a { font-size: 14px; color: var(--green-deep); font-weight: 500; }
.news-more a:hover { text-decoration: underline; }

/* ============================================================
   BANNER
   ============================================================ */
.banner { background: var(--green-bg); }
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.banner h2 { font-size: 26px; color: var(--green-text); margin-bottom: 16px; }
.banner p { color: var(--ink); margin: 0; font-size: 15px; }
.banner-photo { height: 230px; border-radius: var(--radius); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: flex; align-items: center; }
  .header-inner { height: 64px; gap: 10px; }
  .logo img { height: 48px; }
  .line-btn { font-size: 12px; padding: 8px 12px; }
  .section { padding: 52px 0; }
  .sec-title { font-size: 24px; }
  .page-head h1 { font-size: 26px; }
  .footer-nav { margin-left: 0; width: 100%; }

  .hero { padding: 60px 0 70px; min-height: 380px; background-position: center center; position: relative; }
  .hero::before { background: none; }
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 12px; }
  .hero-grid {
    margin-left: auto;
    margin-right: 0;
    font-size: 14px;
    margin-top: auto;
    width: 70%;
    position: absolute;
    bottom: 30px;
    right: 0;
    left: auto;
  }

  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature {
    display: grid;
    grid-template-columns: 76px 1fr;
    text-align: left;
    align-items: center;
    gap: 8px 20px;
    padding: 22px;
  }
  .feature .badge { margin: 0; }
  .feature h3 { grid-column: 2; margin-bottom: 4px; }
  .feature p { grid-column: 2; }

  .services { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .banner-grid { grid-template-columns: 1fr; }
  .banner-photo { order: -1; height: 190px; }
}

@media (max-width: 460px) {
  .services { grid-template-columns: 1fr; }
}

/* ============================================================
   SUB-PAGES — SERVICE
   ============================================================ */
.svc-list { display: flex; flex-direction: column; gap: 22px; max-width: 820px; margin: 0 auto; }
.svc-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.svc-row .svc-photo { height: 130px; border-radius: var(--radius); }
.svc-row h3 { font-size: 20px; color: var(--green-text); margin-bottom: 8px; }
.svc-row p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.area-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 34px 36px;
  text-align: center;
}
.area-box .big { font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.area-box .note { font-size: 13px; color: var(--ink-faint); margin: 0; }

.insurance { display: flex; justify-content: center; gap: 40px; margin: 12px 0 18px; }
.ins-item { text-align: center; }
.ins-item .badge {
  width: 72px; height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-deep);
}
.ins-item .badge svg { width: 34px; height: 34px; }
.ins-item span { font-size: 15px; font-weight: 500; color: var(--ink); }

.flow { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 26px;
}
.flow-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.flow-step h3 { font-size: 17px; color: var(--ink); margin: 4px 0; }
.flow-step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.center-cta { text-align: center; margin-top: 36px; }

/* ============================================================
   SUB-PAGES — PRICING
   ============================================================ */
.price-block { max-width: 760px; margin: 0 auto 34px; }
.price-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  color: #fff;
  background: var(--green);
  padding: 14px 24px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.price-table tr { border-bottom: 1px solid var(--line-soft); }
.price-table tr:last-child { border-bottom: 0; }
.price-table td { padding: 18px 24px; font-size: 15px; }
.price-table td.label { color: var(--ink); }
.price-table td.value {
  text-align: right;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 17px;
  white-space: nowrap;
}
.notes { max-width: 760px; margin: 0 auto; }
.notes p { font-size: 13px; color: var(--ink-faint); margin: 6px 0; }

/* ============================================================
   SUB-PAGES — STAFF
   ============================================================ */
.staff-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.staff-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  align-items: center;
}
.staff-photo { height: 150px; width: 150px; border-radius: 12px; object-fit: cover; display: block; flex-shrink: 0; }
.staff-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.staff-head .name { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 21px; color: var(--ink); }
.staff-head .kana { font-size: 13px; color: var(--ink-faint); }
.staff-role { display: inline-block; font-size: 13px; color: var(--green-deep); background: var(--green-bg); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.staff-word .lbl { font-size: 12px; color: var(--orange-deep); font-weight: 700; font-family: "Zen Maru Gothic", sans-serif; }
.staff-word p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }

.recruit {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.recruit h3 { font-size: 21px; color: var(--green-text); margin-bottom: 18px; }

/* ============================================================
   SUB-PAGES — CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto 24px; }
.contact-box {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.contact-box h3 { font-size: 18px; color: var(--green-text); margin-bottom: 16px; }
.tel-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--orange-deep);
}
.tel-num img { width: 30px; height: 30px; display: inline; }
.contact-box .hours { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.line-mark { width: 64px; height: 64px; margin: 0 auto 12px; display: block; }
.contact-box p.desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }

.form-box {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow-soft);
}
.form-box h3 { font-size: 20px; color: var(--green-text); margin-bottom: 24px; text-align: center; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: #d9744a; font-size: 12px; margin-left: 6px; }
.field input,
.field textarea {
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid #e4dcc9;
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field textarea { resize: vertical; min-height: 120px; }
.form-submit { text-align: center; margin-top: 8px; }
.form-sent {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  color: var(--green-text);
  font-weight: 700;
  margin-bottom: 24px;
}
.form-error { color: #d9744a; font-size: 14px; margin-bottom: 16px; }

.access-box { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.access-box h3 { font-size: 20px; color: var(--ink); margin-bottom: 14px; }
.access-box p { margin: 4px 0; font-size: 14px; color: var(--ink-soft); }

.btn-sm { font-size: 14px; padding: 10px 22px; }

/* ============================================================
   SUB-PAGES RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr; gap: 14px; }
  .svc-row .svc-photo { height: 160px; }
  .insurance { gap: 18px; }
  .area-box { padding: 26px 20px; }
  .price-table td { padding: 14px 16px; font-size: 14px; }
  .price-block h3 { font-size: 17px; padding: 12px 16px; }
  .staff-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .staff-head { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-box { padding: 28px 22px; }
  .access-box { grid-template-columns: 1fr; }
  .access-box .map-photo { order: -1; }
}
