/*
Theme Name: Fukushi Care Consultant
Theme URI: https://example.com/
Author: Obori Niigata Office
Description: Corporate WordPress theme for welfare and care business consulting.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: fukushi-care-consultant
*/

:root {
  --green: #3b9d86;
  --green-dark: #1f745f;
  --green-soft: #eef8f5;
  --orange: #e46735;
  --ink: #1e2a2a;
  --muted: #667170;
  --line: #dfe8e5;
  --paper: #ffffff;
  --soft-gray: #f5f7f6;
  --shadow: 0 16px 34px rgba(30, 42, 42, 0.12);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, li, th, td, a { overflow-wrap: anywhere; }
.sp-only { display: none; }

.top-notice {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 10px 16px;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand > span:last-child { min-width: 0; }
.brand-mark { color: var(--orange); font-size: 32px; font-weight: 800; line-height: 1; }
.brand-sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.brand strong { display: block; font-size: 18px; line-height: 1.3; white-space: nowrap; overflow-wrap: anywhere; }

.site-nav { display: flex; justify-content: center; gap: clamp(14px, 2.4vw, 34px); font-weight: 700; font-size: 15px; }
.site-nav ul { display: flex; justify-content: center; gap: inherit; margin: 0; padding: 0; list-style: none; }
.site-nav li { list-style: none; }
.site-nav a { position: relative; padding: 10px 0; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { transform: scaleX(1); }

.phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.phone-icon { display: grid; place-items: center; width: 38px; height: 38px; background: #080808; color: #fff; border-radius: 6px; font-size: 12px; }
.phone strong { display: block; font-size: 24px; line-height: 1; }
.phone small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.nav-toggle span { display: block; height: 2px; margin: 6px 8px; background: var(--ink); }

.home-hero { position: relative; min-height: 480px; overflow: hidden; }
.home-hero img { width: 100%; height: clamp(430px, 52vw, 660px); object-fit: cover; }
.hero-message {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  padding: 44px 34px;
  color: #fff;
  background: rgba(59, 157, 134, 0.94);
  border: 8px solid #fff;
  text-align: center;
}
.hero-message p { margin: 0 0 8px; font-weight: 700; }
.hero-message h1 { margin: 0; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.65; }

.section { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }
.section.narrow { max-width: 980px; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin: 0; color: var(--green); font-size: clamp(24px, 3vw, 34px); }
.section-title h2::after,
.section-title.wide h2::after {
  content: "";
  display: block;
  width: 170px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--orange);
}
.section-title p { margin: 14px 0 0; color: var(--muted); }

.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 58px; }
.strength {
  position: relative;
  min-height: 132px;
  padding: 38px 26px 24px 78px;
  background: var(--soft-gray);
  font-weight: 700;
}
.strength span {
  position: absolute;
  left: -18px;
  top: -18px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: #fff;
  background: var(--green);
  font-size: 28px;
  font-weight: 800;
}
.strength p { margin: 0; }

.soft-band { max-width: none; background: var(--green-soft); }
.soft-band > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -16px auto 36px;
}
.service-tab {
  min-width: 150px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.service-tab:hover,
.service-tab.is-active {
  background: var(--green);
  color: #fff;
}
.service-panel { display: none; }
.service-panel.is-active { display: block; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 44px; }
.service-card {
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 42, 42, 0.08);
  text-align: center;
}
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card div { padding: 18px 16px 20px; }
.service-card h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.service-card strong { display: block; color: var(--orange); font-size: 24px; line-height: 1.3; }
.service-card a, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 0;
  font-weight: 800;
  cursor: pointer;
}
.service-card a { min-height: 30px; padding: 4px 18px; font-size: 13px; }
.button:hover, .service-card a:hover { background: var(--green-dark); }
.button.small { min-height: 36px; padding: 6px 18px; }
.button.ghost { background: #fff; color: var(--green-dark); }
.button.ghost:hover { background: var(--green-soft); }

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  margin: 0 0 44px;
  padding: 24px 28px;
  background: var(--green-soft);
  border-left: 5px solid var(--green);
  font-weight: 700;
}

.intro-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 54px;
  align-items: start;
}

.intro-grid h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.55;
}

.feature-list,
.reason-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-list article,
.reason-grid article,
.summary-grid article,
.access-panel {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-list article,
.summary-grid article,
.access-panel {
  box-shadow: 0 8px 24px rgba(30, 42, 42, 0.06);
}

.feature-list h3,
.reason-grid h3,
.summary-grid h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 20px;
}

.feature-list p,
.reason-grid p,
.summary-grid p,
.access-panel p {
  margin: 0 0 12px;
}

.summary-grid a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.center-action { text-align: center; margin: 28px 0 0; }

.reason-grid {
  grid-template-columns: repeat(5, 1fr);
}

.reason-grid article {
  background: var(--soft-gray);
}

.reason-grid span {
  display: block;
  color: var(--orange);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.align-left {
  text-align: left;
}

.align-left h2::after {
  margin-left: 0;
}

.news-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.news-list article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.news-list time,
.article-meta,
.article-list time,
.article-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.news-list a {
  color: var(--ink);
  font-weight: 800;
}

.access-panel {
  background: var(--green-soft);
}

.access-panel.wide {
  max-width: none;
  margin: 0;
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.archive-tools a,
.pagination a,
.prev-next a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.archive-tools a:hover,
.pagination a:hover,
.pagination a[aria-current="page"],
.prev-next a:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-list article {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 42, 42, 0.06);
}

.article-list h2 {
  margin: 8px 0 8px;
  color: var(--green-dark);
  font-size: 24px;
}

.article-list p,
.article-body p {
  margin-top: 0;
}

.pagination,
.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.article-body h2,
.policy h2 {
  margin: 42px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--green-dark);
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.consent {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.consent input {
  width: auto;
}

.consent a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 24px;
  font-weight: 800;
}
.footer-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: inherit; margin: 0; padding: 0; list-style: none; }
.footer-nav li { list-style: none; }

.footer-nav a {
  color: var(--green-dark);
}

.flow-list { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.flow-list li { display: grid; grid-template-columns: 70px 1fr; align-items: start; gap: 20px; padding: 24px; border-top: 1px solid var(--line); background: #fff; }
.flow-list span { display: grid; place-items: center; width: 56px; height: 56px; background: var(--green-soft); color: var(--green); font-size: 24px; font-weight: 800; }
.flow-list h3 { margin: 0 0 4px; }
.flow-list p { margin: 0; color: var(--muted); }

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 54px clamp(24px, 8vw, 120px);
  background: #26373a;
  color: #fff;
}
.contact-band h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 34px); }
.contact-band p { margin: 0; color: #dbe5e2; }

.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 300px;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86); }
.page-hero h1 {
  position: relative;
  min-width: min(460px, calc(100% - 48px));
  margin: 0;
  padding: 20px 44px;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
}
.breadcrumb { max-width: 980px; margin: 0 auto; padding: 16px 24px; color: var(--muted); font-size: 13px; }
.breadcrumb a::after { content: " > "; color: var(--green); padding: 0 8px; font-weight: 800; }

.bar-title {
  margin: 42px 0 30px;
  padding: 12px 18px;
  background: var(--green);
  color: #fff;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
}
.split { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: 34px; align-items: center; margin-bottom: 72px; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.price { color: var(--orange); font-size: 24px; font-weight: 800; }

.table-wrap { overflow-x: auto; margin-bottom: 26px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 17px 20px; border: 6px solid #fff; background: #eef6f3; text-align: left; vertical-align: top; }
th { background: #e8eeee; text-align: center; }
td:nth-child(2) { background: #f0f0f0; text-align: center; white-space: nowrap; }
.compact td:nth-child(2) { white-space: normal; }
.note { color: var(--muted); font-size: 14px; }

.check-list { margin: 0 0 56px; padding-left: 1.2em; }
.check-list li { margin-bottom: 10px; }
.jump-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; margin-bottom: 54px; }
.jump-grid a { display: block; padding: 14px 18px; background: var(--soft-gray); border-left: 4px solid var(--green); font-weight: 800; }
.accent-heading { display: flex; align-items: center; gap: 14px; margin: 28px 0 18px; font-size: 22px; }
.accent-heading::before { content: ""; width: 38px; height: 38px; background: var(--orange); flex: 0 0 auto; }

.profile { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 60px; align-items: center; }
.profile h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.7; }
.profile figure { margin: 0; position: relative; }
.profile figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.profile figcaption { position: absolute; right: 0; bottom: 24px; padding: 20px 28px; background: var(--green); color: #fff; font-weight: 700; }
.outline-table { max-width: 760px; margin: 0 auto; border-top: 1px solid #8a9a97; }
.outline-table dl { display: grid; grid-template-columns: 180px 1fr; margin: 0; border-bottom: 1px solid #8a9a97; }
.outline-table dt, .outline-table dd { padding: 18px 20px; margin: 0; }
.outline-table dt { color: var(--muted); font-weight: 800; }

.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.contact-box, .contact-form { background: var(--green-soft); padding: 34px; }
.contact-box a { display: block; color: var(--orange); font-size: 32px; font-weight: 800; line-height: 1.2; }
.contact-form { display: grid; gap: 16px; }
.contact-form h2, .contact-box h2 { margin: 0 0 12px; }
label { display: grid; gap: 8px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.site-footer { padding: 42px 24px; background: #f2f4f3; text-align: center; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .phone { grid-column: 1 / -1; justify-self: end; }
  .site-nav { order: 3; grid-column: 1 / -1; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list, .summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .top-notice { font-size: 11px; padding-left: 8px; padding-right: 8px; word-break: break-all; }
  .sp-only { display: inline; }
  .top-notice,
  .site-header,
  main,
  .home-hero,
  .soft-band,
  .contact-band,
  .site-footer {
    width: 100vw;
    max-width: 100vw;
  }
  .site-header { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 72px 14px 16px; width: 100vw; }
  .brand { max-width: calc(100vw - 88px); overflow: hidden; }
  .brand strong { white-space: normal; font-size: 15px; }
  .brand-mark { font-size: 26px; }
  .nav-toggle { display: block; position: fixed; right: 16px; top: 78px; z-index: 30; transform: none; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .phone { display: none; }
  .home-hero { min-height: 420px; overflow: hidden; }
  .home-hero img { width: 100vw; height: 420px; }
  .hero-message { left: 24px; right: auto; width: calc(100vw - 48px); transform: translateY(-50%); padding: 30px 18px; border-width: 6px; }
  .hero-message h1 { font-size: 20px; overflow-wrap: anywhere; }
  .section { width: 100vw; max-width: 100vw; padding: 58px 18px; overflow: hidden; }
  .strength-grid, .service-grid, .jump-grid, .profile, .contact-layout, .intro-grid, .two-column, .reason-grid, .feature-list, .summary-grid { grid-template-columns: 1fr; }
  .service-tabs { flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .service-tab { width: 100%; min-width: 0; }
  .strength-grid { gap: 34px; }
  .strength { width: calc(100vw - 36px); padding: 72px 18px 22px; font-size: 14px; line-height: 1.75; }
  .strength span { left: 0; top: 0; }
  .strength span { width: 58px; height: 58px; font-size: 24px; }
  .strength p { word-break: break-all; }
  .section-title h2 { font-size: 19px; line-height: 1.55; word-break: break-all; }
  .intro-grid, .two-column { gap: 28px; }
  .intro-grid h2 { font-size: 22px; }
  .lead { padding: 18px; }
  .feature-list article, .reason-grid article, .summary-grid article, .access-panel { padding: 20px; }
  .news-list article { grid-template-columns: 1fr; gap: 4px; }
  .article-list article { padding: 20px; }
  .article-list h2 { font-size: 20px; }
  .archive-tools a, .pagination a, .prev-next a { width: 100%; justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
  .contact-band { display: grid; padding: 42px 20px; }
  .flow-list li { grid-template-columns: 52px 1fr; padding: 18px; }
  .flow-list span { width: 46px; height: 46px; }
  .page-hero { height: 240px; }
  .page-hero h1 { padding: 16px 20px; }
  .outline-table dl { grid-template-columns: 1fr; }
  .outline-table dt { padding-bottom: 0; }
  .contact-box, .contact-form { padding: 24px 18px; }
  .contact-box a { font-size: 26px; }
}
