:root {
    --primary: #1a365d;
    --accent: #e67e22;
    --bg-light: #fdfcf9;
    --text: #333;
    --muted: #546072;
    --border: #eaeaea;
}
* { box-sizing: border-box; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
    margin: 0;
    background-color: #fff;
}
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 10px; background: #fff; padding: 10px 12px; border: 2px solid var(--accent); border-radius: 10px; z-index: 9999; }
.skip-link:focus { left: 10px; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(230,126,34,.55);
  outline-offset: 2px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }
.nowrap{white-space:nowrap;}

/* Typography */
h1, h2, h3 { font-family: 'Noto Serif JP', serif; color: var(--primary); }
h2 { font-size: 2rem; position: relative; padding-left: 18px; margin: 50px 0 30px; border: 0; }
h2::before { content: ''; position: absolute; left: 0; top: 0.18em; width: 5px; height: 1.1em; background: var(--accent); border-radius: 3px; }

.no-accent { padding-left: 0; }
.no-accent::before { display: none; }

/* Header & Nav */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
}

/* ✅修正：ヘッダーのグリッドは「brand / nav / meta / hamburger」を崩さない */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
}

/* ✅修正：brandは「ロゴとテキストが離れない」ようinline-flex固定 */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  width: auto;
  max-width: none;
  text-decoration: none;
}

/* ロゴが縮まない・離れない */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  flex: 0 0 auto;
}

/* brand-textはロゴの直横に固定 */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 520px;
}

/* 見出し3行 */
.logo-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: normal;
}
.logo-main {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.25;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: normal;
}
.logo-owner{
  font-size: .72rem;
  line-height: 1.2;
  color:#6b7280;
}
.logo-owner .owner-link{
  color:#6b7280;
  text-decoration:none;
}
.logo-owner .owner-link:hover{
  text-decoration:underline;
  text-underline-offset: 3px;
}

/* Nav */
.main-nav { justify-self: center; min-width: 0; }
.main-nav ul { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; align-items: center; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: bold; font-size: 0.92rem; white-space: nowrap; }
.main-nav a.is-active { color: var(--accent); }
.nav-cta a { background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 4px; }

/* Meta */
.header-meta { display: grid; gap: 0px; justify-self: end; max-width: 320px; }
.meta-row { display: grid; margin: 0; grid-template-columns: 3.8em 1fr; column-gap: 10px; align-items: start; }
.meta-key { font-size: 0.82rem; color: #546072; font-weight: 800; padding-top: 0px; line-height: 1.05; }
.office-hours {line-height: 1.05; }
.office-hours {display: block;line-height: 1.05; margin: 0;}
.meta-val { font-size: 0.84rem; color: #111; line-height: 1.05; margin: 0; }
.header-meta .header-tel { font-size: 1.0rem; font-weight: 900; color: var(--primary); line-height: 1.05; margin: 0;}
.note { font-size: 0.78rem; color: #334155; opacity: 0.92; display: block;line-height: 1.05; margin: 0;}

/* Hamburger */
.hamburger-menu{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26,54,93,0.18);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger-menu span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.hamburger-menu.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2){ opacity: 0; }
.hamburger-menu.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Breadcrumb */
.breadcrumb { background: #f7f7f7; border-bottom: 1px solid #eee; }
.breadcrumb ol { display: flex; gap: 10px; list-style: none; padding: 12px 0; margin: 0; font-size: 0.85rem; }
.breadcrumb li::after { content: '›'; margin-left: 10px; color: #999; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Hero */
.hero { 
  padding: 72px 0; 
  background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(26,54,93,0.90)); 
  color: #fff; 
  position: relative;
  overflow: hidden;
}
/* ✅追加：ヒーロー背景に souzoku1.png を薄く敷く */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/assets/images/souzoku1.png");
  background-size:cover;
  background-position:center;
  opacity:0.16;
  filter:saturate(.95) contrast(1.05) brightness(1.08);
  transform:scale(1.03);
  z-index:0;
  pointer-events:none;
}
/* ✅追加：ヒーロー中身を前面に */
.hero > .container{
  position:relative;
  z-index:1;
}

.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.0vw, 2.35rem); margin: 0 0 16px; line-height: 1.2; }
.hero h1 span { color: var(--accent); }

.hero-sub { padding: 64px 0; background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(26,54,93,0.90)); color: #fff; }
.hero-sub h1 { color: #fff; font-size: 2.2rem; margin: 0 0 12px; }
.hero-sub h1 span { color: var(--accent); }
.hero-sub p { margin: 0; opacity: 0.95; }

/* Hero-sub: use same background as top hero (for 任意後見 / 福祉・介護) */
.hero-sub--topbg{
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hero-sub--topbg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/assets/images/souzoku1.png");
  background-size:cover;
  background-position:center;
  opacity:0.16;
  filter:saturate(.95) contrast(1.05) brightness(1.08);
  transform:scale(1.03);
  z-index:0;
  pointer-events:none;
}
.hero-sub--topbg > .container{
  position:relative;
  z-index:1;
}
.hero-sub--topbg h1{
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  margin: 0 0 16px;
}
.hero-sub--topbg .lead{
  font-size: 1.06rem;
}
.hero-sub--topbg .hero-media img{
  max-height: 360px;
}
@media (max-width: 900px){
  .hero-sub--topbg{ padding: 56px 0; }
}

.hero-grid { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 28px; align-items: center; }
.hero-copy { text-align: left; }
.hero-media { justify-self: end; }
.hero-media img { width: 100%; max-width: 380px; height: auto; max-height: 260px; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,0.25); object-fit: cover; display: block; }
.hero-cta { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }

.hero-cta-sub{ margin-top: 10px; }
.text-link{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover{ opacity: .92; }

.hero .badge-row, .hero-sub .badge-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.badge { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 6px 10px; border-radius: 999px; font-size: 0.85rem; }

/* Slideshow (hero) */
.slideshow{ border-radius: 18px; overflow: hidden; min-height: 360px; position: relative; }
.slide{ min-height: 360px; display: none; background-size: cover; background-position: center; position: relative; }
.slide.active{ display: flex; align-items: flex-end; }
.slide::before{ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.56) 100%); }
.slide-content{ position: relative; padding: 18px; color: #fff; width: 100%; }
.slide-content h3{ margin: 0 0 6px; font-size: 1.15rem; color: #fff; }
.slide-content p{ margin: 0; opacity: 0.95; }
@media (max-width: 768px){
  .slideshow{ min-height: 240px; }
  .slide{ min-height: 240px; }
  .slide-content{ padding: 14px; }
}

/* ✅追加：サービスメニューのカード画像 */
.service-card__img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 0 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Common Layout */
.section-padding { padding: 56px 0; }
.snuggle-box { background: var(--bg-light); padding: 28px; border-radius: 14px; margin-bottom: 28px; border: 1px solid #eee; }

.lead { font-size: 1.05rem; }
.hero .lead{font-size:1.0rem; line-height:1.75;}
.hero .check-list li{font-size:.98rem; line-height:1.6;}


@media (max-width: 768px) {
  .section-padding { padding: 38px 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 800; line-height: 1.2; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid rgba(26,54,93,0.35); }
.btn-line{ background:#06C755; color:#fff; border:2px solid rgba(6,199,85,.55); }
.btn-line:hover{ filter: brightness(.98); }
.hero .btn-line, .hero-sub .btn-line, .site-footer .btn-line{ border-color: rgba(255,255,255,.15); }
.btn-outline--on-dark{ background: transparent; color:#fff; border:2px solid rgba(255,255,255,.65); }
.btn-outline--on-dark:hover{ background: rgba(255,255,255,.10); }
.btn-outline--on-dark:focus-visible{ outline: 3px solid rgba(255,255,255,.45); outline-offset: 2px; }
/* Auto: make outline buttons readable on dark sections */
.hero .btn-outline, .hero-sub .btn-outline, .site-footer .btn-outline{ background: transparent; color:#fff; border-color: rgba(255,255,255,.65); }
.hero .btn-outline:hover, .hero-sub .btn-outline:hover, .site-footer .btn-outline:hover{ background: rgba(255,255,255,.10); }

.btn-ghost { background: transparent; color: var(--primary); border: 1px solid rgba(26,54,93,0.35); }
.btn-ghost:hover { background: rgba(26,54,93,0.04); }
.btn-ghost--on-dark { color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost--on-dark:hover { background: rgba(255,255,255,0.08); }

.btn .icon { width: 18px; height: 18px; }
.btn.btn-accent .icon, .btn.btn-outline .icon, .btn.btn-ghost--on-dark .icon { filter: none; }

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.icon-lg { width: 36px; height: 36px; }

/* Content blocks */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.card h3 { margin-top: 0; }

.card--icon h3 { display: flex; gap: 10px; align-items: center; }
.card--icon h3 .icon { flex: 0 0 auto; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 26px; position: relative; margin: 8px 0; line-height: 1.6; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0.15em; color: var(--accent); font-weight: 900; }

.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px 18px 18px 54px; margin: 14px 0; position: relative; }
.step-list li::before { content: attr(data-step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* Generic sections used by some pages */
.section { padding: 30px 0; }
.section-muted { background: #fafafa; }
.section-head { margin-bottom: 14px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Compact hero variant used on some pages */
.hero--compact { padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 28px; align-items: center; }
.hero-kicker { font-weight: 900; opacity: .95; margin: 0 0 10px; }
.hero-lead { margin: 0; opacity: .95; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { background: #f7f7f7; color: var(--primary); text-align: left; font-weight: 900; }
.price-table tr:last-child td { border-bottom: none; }

/* Standard tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: #f7f7f7; text-align: left; font-weight: 900; color: var(--primary); }
.table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; }
.form-legal { font-size: 0.85rem; text-align: center; margin: 0 0 16px; }
.contact-big a { font-size: 1.6rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.small { font-size: 0.85rem; color: #666; }
.notice { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; background:#f5f7fb; border:1px solid #e6e8ee; }
.notice-success { background: #e7f7ee; border: 1px solid #bde9cf; }
.notice-error { background: #fff0f0; border: 1px solid #f2b7b7; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Contact Form */
.contact-area { background: #f4f4f4; padding: 80px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; }
.submit-btn { background: var(--accent); color: #fff; border: none; padding: 20px 40px; font-size: 1.2rem; cursor: pointer; display: block; margin: 0 auto; border-radius: 5px; }

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 50px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.footer-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 22px; }
.footer-title { color: #fff; border: none; padding: 0; margin: 0 0 10px; }
.footer-title a { color: inherit; text-decoration: none; }
.footer-title a:hover { text-decoration: underline; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-cta .btn-ghost { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.footer-copy { text-align: center; margin-top: 28px; font-size: 0.85rem; opacity: 0.8; }
.map-embed iframe { width: 100%; height: 260px; border-radius: 12px; }
.floating-cv { position: fixed; bottom: 0; width: 100%; display: flex; z-index: 2000; }
.floating-cv a { flex: 1; text-align: center; padding: 18px 12px; color: #fff; text-decoration: none; font-weight: 900; display: flex; gap: 8px; align-items: center; justify-content: center; }
.floating-cv a .icon { width: 18px; height: 18px; }

/* Floating CTA: hidden by default, slide up on scroll */
.floating-cv{ transform: translateY(110%); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
.floating-cv.is-visible{ transform: translateY(0); opacity: 1; pointer-events: auto; }
.floating-cv.is-hidden{ transform: translateY(110%); opacity: 0; pointer-events: none; }
body.is-modal-open .floating-cv{ transform: translateY(110%); opacity: 0; pointer-events: none; }
.cv-form { background: var(--accent); }
.cv-tel { background: #00529b; }
.cv-mail { background: #0f172a; }
.cv-line { background: #06C755; }

.hamburger-menu{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26,54,93,0.18);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger-menu span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.hamburger-menu.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2){ opacity: 0; }
.hamburger-menu.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .header-inner{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand hamburger"
      "meta meta"
      "nav nav";
    align-items: start;
    gap: 12px;
  }
  .brand{ grid-area: brand; max-width: none; }
  .header-meta{ grid-area: meta; justify-self: start; width: 100%; max-width: none; }
  .hamburger-menu{ grid-area: hamburger; display: inline-flex; justify-self: end; }

  .main-nav{
    grid-area: nav;
    width: 100%;
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
  }
  .main-nav.active{ display: block; }
  .main-nav ul{ flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav a{ width: 100%; padding: 12px 10px; }
  .nav-cta a{ width: 100%; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Tables (comparison) */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.simple-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.simple-table th, .simple-table td { padding: 14px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
.simple-table th { background: #f7f7f7; color: #1a365d; font-weight: 800; text-align: left; }
.simple-table tr:last-child td { border-bottom: none; }
.simple-table td { color: #222; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
  .simple-table { min-width: 640px; }
}

@media (max-width: 1100px) {
  .header-inner{
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand nav"
      "meta meta";
  }
  .brand{ grid-area: brand; }
  .main-nav{ grid-area: nav; justify-self: end; }
  .header-meta{ grid-area: meta; justify-self: start; max-width: none; width: 100%; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
}

@media (max-width: 768px) {
  .header-meta { justify-self: start; width: 100%; }
  .meta-row { grid-template-columns: 4.2em 1fr; }
}

/* ボックスレイアウト */
.blog-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-table th,
.blog-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.blog-table th {
    background-color: #f2f2f2;
}

.blog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.blog-row:hover {
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clickable-row:hover {
    background-color: #f9f9f9;
}
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-list {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.blog-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    background-color: #fff;
    transition: background-color 0.2s;
    color: inherit;
}

.blog-list-item:hover {
    background-color: #f5f5f5;
}

.blog-category {
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
}

.blog-title {
    flex: 1;
    font-weight: bold;
    padding: 0 16px;
}

.blog-date {
    font-size: 0.85rem;
    color: #666;
    min-width: 110px;
    text-align: right;
}

.blog-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.blog-list-header h2 {
    margin: 0;
}

.blog-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.blog-search-form input[type="text"],
.blog-search-form select,
.blog-search-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.blog-search-form button {
    background: #4caf50;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.blog-search-form button:hover {
    background: #45a047;
}

/* ==============================
   やさしいにほんご（外国人向け3行まとめ）
   ============================== */
.easyjp{--easyjp-bg:#f0fdf4;margin:16px 0 24px;background:var(--easyjp-bg);border:1px solid rgba(34,197,94,.28);border-left:7px solid rgba(34,197,94,.75);border-radius:14px;padding:16px 16px 14px;color:#0f172a;box-shadow:0 10px 24px rgba(2,6,23,.08);position:relative}
.easyjp:after{content:'';position:absolute;top:-10px;left:28px;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid var(--easyjp-bg);filter:drop-shadow(0 2px 2px rgba(2,6,23,.10))}
.easyjp--dark{--easyjp-bg:rgba(240,253,244,.14);background:var(--easyjp-bg);border-color:rgba(34,197,94,.40);color:#fff}
.easyjp--dark:after{border-bottom-color:var(--easyjp-bg)}
.easyjp__head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.easyjp__tag{display:inline-block;background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.30);padding:5px 10px;border-radius:999px;font-weight:900;font-size:.95rem;letter-spacing:.01em}
.easyjp--dark .easyjp__tag{background:rgba(34,197,94,.28);border-color:rgba(34,197,94,.44);color:#eafff3}
.easyjp__sub{font-size:.9rem;font-weight:800;opacity:.95}
.easyjp__list{margin:0;padding-left:1.25rem}
.easyjp__list li{margin:.28rem 0;line-height:1.6;font-size:1.02rem}

/* ==============================
   不安 → 安心（感情導入）
   ============================== */
.emotion{margin:14px 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.emotion__col{background:rgba(255,255,255,.92);border:1px solid rgba(2,6,23,.10);border-radius:12px;padding:12px 12px 10px;box-shadow:0 8px 18px rgba(2,6,23,.06)}
.emotion--dark .emotion__col{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18);color:#fff;box-shadow:none}
.emotion__label{font-weight:900;font-size:.86rem;letter-spacing:.01em;margin-bottom:6px}
.emotion__list{margin:0;padding-left:1.15rem;font-size:.95rem;line-height:1.55}
.emotion__list li{margin:.22rem 0}
.emotion__col--concern{border-left:6px solid var(--accent)}
.emotion__col--benefit{border-left:6px solid rgba(34,197,94,.75)}
.emotion__col--concern .emotion__label{color:var(--accent)}
.emotion__col--benefit .emotion__label{color:rgba(34,197,94,.95)}
.emotion--dark .emotion__col--concern .emotion__label{color:#ffd1a3}
.emotion--dark .emotion__col--benefit .emotion__label{color:#baf7cf}
@media (max-width: 820px){.emotion{grid-template-columns:1fr}}

/* ==============================
   カットイン
   ============================== */
.cutin{margin:22px 0;background:#fff;border:1px solid rgba(2,6,23,.08);border-left:6px solid var(--accent);border-radius:14px;padding:18px;box-shadow:0 10px 24px rgba(2,6,23,.08)}
.cutin__title{margin:0 0 8px;font-size:1.1rem}
.cutin__lead{margin:0 0 14px}
.cutin__cta{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cutin__cta .btn{margin:0}

/* 目次（自動生成） */
.toc-box { margin: 18px auto 8px; max-width: 1060px; }
.toc-box .toc-title { font-weight: 900; margin: 0 0 10px; }
.toc-box .toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; list-style: none; padding: 0; margin: 0; }
.toc-box .toc-list a { color: #0f172a; text-decoration: none; font-weight: 700; }
.toc-box .toc-list a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .toc-box .toc-list { grid-template-columns: 1fr; }
}

/* 読み進み（モバイル用インジケーター） */
.reading-indicator { position: fixed; right: 14px; bottom: 86px; z-index: 2500; background: rgba(255,255,255,0.96); border: 1px solid rgba(15,23,42,0.12); border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,0.12); padding: 10px 12px; display: none; max-width: calc(100% - 28px); }
.reading-indicator__text { font-size: 0.84rem; font-weight: 900; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reading-indicator__sub { font-size: 0.72rem; opacity: 0.8; margin-top: 2px; }
@media (max-width: 768px) {
  .reading-indicator { display: block; }
}

/* Quick overview pills (non-invasive) */
.pill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.pill-card{display:block;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;box-shadow:0 6px 14px rgba(0,0,0,.04)}
.pill-card:hover{transform:translateY(-1px)}
/* ==============================
   Accessibility tweaks (senior-friendly)
   ============================== */
body{ letter-spacing: .02em; }
.section-head h2{ line-height: 1.35; }
@media (max-width: 420px){
  .floating-cv a{ font-size: .95rem; padding: 12px 10px; }
}

/* ==============================
   Compatibility helpers (section/hero variants)
   ============================== */
.hero--compact{ padding:56px 0; }
.hero-inner{ display:grid; grid-template-columns:1fr minmax(240px,420px); gap:28px; align-items:center; }
.hero-kicker{ margin:0 0 8px; font-weight:900; opacity:.95; }
.hero-lead{ margin:0 0 10px; font-size:1.05rem; opacity:.95; }
.section{ padding:30px 0; }
.section-muted{ background:#fafafa; }

/* ==============================
   FIX: Header brand balance & readability
   ============================== */
.brand{ text-decoration:none; max-width: 640px; }
.brand:hover{ opacity: .97; }
.brand:hover .logo-sub, .brand:hover .logo-main{ text-decoration: none; }
.brand-text{ min-width:0; max-width:none; }
.logo-sub{ font-size: .82rem; color:#4b5563; line-height:1.25; word-break: keep-all; overflow-wrap: normal; }
.logo-main{ font-size: 1.08rem; font-weight: 900; color: var(--primary); line-height:1.25; text-decoration:none; word-break: keep-all; overflow-wrap: normal; }
/* ★追加：ヘッダー3行目（運営リンク） */
.logo-owner{ font-size: .72rem; line-height: 1.2; color:#6b7280; }
.logo-owner .owner-link{ color:#6b7280; text-decoration:none; }
.logo-owner .owner-link:hover{ text-decoration:underline; text-underline-offset: 3px; }
@media (max-width: 768px){
  .brand{ max-width: none; }
  .logo-main{ font-size: 1.02rem; }
}

/* ==============================
   FIX: Contrast in light cards placed on dark sections
   ============================== */
.card, .snuggle-box, .cutin, .pill-card{ color: var(--text); }
.card p, .snuggle-box p, .cutin p{ color: var(--text); }

/* ==============================
   FIX: Typography scale (avoid oversized headings)
   ============================== */
html{ font-size: 16px; }
h1, h2, h3{ line-height: 1.35; }
h2{ font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
h3{ font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
.hero h1{ font-size: clamp(1.9rem, 3.2vw, 2.45rem); }
.hero-sub h1{ font-size: clamp(1.75rem, 3.0vw, 2.25rem); }

/* ==============================
   FIX: Tap targets (senior-friendly) without inflating all links
   ============================== */
.btn, .submit-btn, .floating-cv a, .main-nav a{ min-height: 44px; }
.main-nav a{ padding: 8px 6px; border-radius: 8px; }
.main-nav a:hover{ background: rgba(26,54,93,0.05); }

/* Ensure readability: light cards inside dark hero */
.hero .snuggle-box, .hero-sub .snuggle-box{ background:#fff; color: var(--text); }
.hero .snuggle-box .muted, .hero-sub .snuggle-box .muted{ color: var(--muted); }
.hero .snuggle-box a{ color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive spacing */
@media (max-width: 768px){
  .section-padding{ padding: 38px 0; }
  .snuggle-box{ padding: 18px; }
  .hero{ padding: 56px 0; }
  .hero-sub{ padding: 52px 0; }
}

.brand-logo, .brand-home { text-decoration: none; }

/* Fixed CTA (mobile) */
.fixed-cta{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:flex;gap:8px;padding:10px;background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(10px);border-top:1px solid #e6e8ee;}
.fixed-cta__btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;border-radius:12px;font-weight:700;text-decoration:none;line-height:1;color:#fff;}
.fixed-cta__btn img{width:18px;height:18px;filter:brightness(0) invert(1);} 
.fixed-cta__btn--form{background:#0f3d6b;}
.fixed-cta__btn--tel{background:#2b4b66;}
.fixed-cta__btn--line{background:#06C755;}
@media (min-width: 961px){.fixed-cta{display:none;}}
@media (max-width: 960px){body{padding-bottom:78px;}}

/* FAQ */
.faq-grid{display:grid;grid-template-columns:1fr;gap:12px;}
@media(min-width: 900px){.faq-grid{grid-template-columns:1fr 1fr;}}
details.faq-item{border:1px solid #e6e8ee;border-radius:14px;padding:12px 14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06);}
details.faq-item summary{cursor:pointer;font-weight:800;list-style:none;}
details.faq-item summary::-webkit-details-marker{display:none;}
.faq-item__body{margin-top:10px;color:#334155;line-height:1.8;}

/* Pricing cards */
.price-card{position:relative;}
.price-card__tag{display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;font-weight:800;
  background:#eff6ff;color:#0b2a5b;margin-bottom:8px;}
.price-card__note{margin-top:10px;font-size:.9rem;color:#475569;}

/* Cards grid (for situation navigation and cases) */
.cards{display:grid;gap:14px;}
.cards-3{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width: 960px){.cards-3{grid-template-columns:1fr;}}
.card--link{display:flex;gap:12px;align-items:flex-start;text-decoration:none;color:inherit;}
.card--link:hover{transform:translateY(-1px);}
.card__icon{flex:0 0 auto;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f1f5f9;}
.card__icon img{width:22px;height:22px;}
.card__body{min-width:0;}
.card__title{font-weight:900;}
.card__text{margin:6px 0 0;color:#475569;line-height:1.65;}
.case-img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;display:block;}
.case-card{display:flex;flex-direction:column;gap:10px;}
.toc-box{display:none !important;}

/* ==============================
   追記（shukatsu.phpの安定化／不足クラス補完）
   ============================== */

/* Hero variant (shukatsu) */
.hero--shukatsu::before{
  background-image:url("/assets/images/shukatsu_hero.jpg");
  opacity:0.14;
}

/* section title helper */
.section-title{ margin-bottom: 14px; }
.section-title p{ margin: 6px 0 0; }

/* simple list (used in shukatsu.php) */
.list{ margin: 10px 0 0; padding-left: 1.2rem; }
.list li{ margin: 6px 0; line-height: 1.65; }

/* cards-2 */
.cards-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px){ .cards-2{ grid-template-columns: 1fr; } }

/* pill hover transition */
.pill-card{ transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }

/* contact form hints & errors */
.form-hint{ margin-top: 6px; font-size: .85rem; color: #64748b; line-height: 1.45; }
.form-error-summary{ background:#fff0f0; border:1px solid #f2b7b7; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; color:#7f1d1d; font-weight:800; }
.field-error{ margin-top: 6px; font-size: .9rem; color:#b91c1c; font-weight: 800; }
.is-invalid{ border-color: rgba(185,28,28,.65) !important; background: rgba(254,226,226,.45); }

/* ==============================
   TL;DR / 要点カード（index.php / yuigon.php）
   ============================== */

.tldr-grid{
  display:grid;
  gap:14px;
  margin-top: 18px;
}

/* default: 1col on mobile, 2col on tablet+ */
@media (min-width: 768px){
  .tldr-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 3 columns on wide screens (opt-in) */
@media (min-width: 1100px){
  .tldr-grid.tldr-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tldr-card{
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.tldr-card h3{
  font-size: 1.15rem;
  margin: 0 0 10px;
  padding-left: 14px;
  position: relative;
}

.tldr-card h3::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 4px;
  height: 1.05em;
  background: var(--accent);
  border-radius: 4px;
}

.tldr-list{
  margin: 0;
  padding-left: 1.15rem;
}

.tldr-list li{
  margin: 6px 0;
  line-height: 1.65;
}

.tldr-note{
  margin: 10px 0 0;
  font-size: .92rem;
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 768px){
  .tldr-card{ padding: 14px 14px 12px; }
  .tldr-card h3{ font-size: 1.08rem; }
}

/* Step4 shared skeleton patch */
.site-network-strip{background:#eef3fb;border-bottom:1px solid rgba(20,47,102,.12);font-size:.92rem;}
.site-network-strip__inner{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;padding:.55rem 0;}
.site-network-strip__label{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;background:#d8e5fb;color:#163a7b;font-weight:700;}
.site-network-strip a{color:#163a7b;text-decoration:none;font-weight:600;}
.site-network-strip a:hover{text-decoration:underline;}
.brand-operator--label{font-weight:700;color:#1f4d9a;}
@media (max-width: 768px){.site-network-strip__inner{gap:.4rem .6rem;padding:.5rem 0;}.site-network-strip__label{font-size:.82rem;}}

/* phaseD mobile readability */
@media (max-width:980px){
  html{scroll-padding-top:140px;}
  body{padding-bottom:90px;}
  .container{padding-left:16px;padding-right:16px;}
  .section-padding{padding-top:56px;padding-bottom:56px;}
  .cutin__cta{flex-direction:column;align-items:stretch;}
  .cutin__cta .btn{width:100%;}
  .table-wrap,.price-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .price-anchor-nav,.price-anchor-menu{display:flex;flex-wrap:nowrap;overflow:auto;gap:10px;padding-bottom:4px;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-inline:16px;}
  .price-anchor-nav::-webkit-scrollbar,.price-anchor-menu::-webkit-scrollbar{display:none;}
  .price-anchor-nav a,.price-anchor-menu a{flex:0 0 auto;scroll-snap-align:start;}
}
@media (max-width:767px){
  .fixed-cta{gap:6px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));}
  .fixed-cta__btn{min-height:44px;padding:10px 8px;font-size:.82rem;border-radius:10px;}
  .fixed-cta__btn img{width:16px;height:16px;}
  .simple-table th,.simple-table td{padding:12px 12px;}
  .cards-2,.cards-3,.card-grid{grid-template-columns:1fr;}
  .price-card,.card,.snuggle-box,.cutin{border-radius:16px;}
}
@media (max-width:520px){
  .section-head h1,.section-head h2,.price-page-head h1{font-size:clamp(1.55rem,7vw,1.9rem);line-height:1.3;}
}


/* phaseD2 content typography */
body > section.section-padding,
body > .section-padding,
body > .price-page-main,
body > .section-head{
  font-family:'Noto Sans JP',sans-serif;
  font-size:16px;
  line-height:1.75;
}
body > section.section-padding :where(p,li,dt,dd,th,td,label,input,textarea,select,summary),
body > .section-padding :where(p,li,dt,dd,th,td,label,input,textarea,select,summary),
body > .price-page-main :where(p,li,dt,dd,th,td,label,input,textarea,select,summary),
body > .section-head :where(p,li,dt,dd,th,td,label,input,textarea,select,summary){
  font-family:'Noto Sans JP',sans-serif;
  font-size:1rem;
  line-height:1.75;
}
body > section.section-padding :where(h2,.section-head h1,.price-page-head h1),
body > .section-padding :where(h2,.section-head h1,.price-page-head h1),
body > .price-page-main :where(h2,.section-head h1,.price-page-head h1),
body > .section-head :where(h2,.section-head h1,.price-page-head h1){
  font-family:'Noto Serif JP',serif;
  font-size:clamp(1.6rem,2.1vw,1.85rem);
  line-height:1.35;
}
body > section.section-padding h3,
body > .section-padding h3,
body > .price-page-main h3,
body > .section-head h3{
  font-family:'Noto Serif JP',serif;
  font-size:clamp(1.08rem,1.45vw,1.22rem);
  line-height:1.45;
}
body > section.section-padding .lead,
body > .section-padding .lead,
body > .price-page-main .lead,
body > .section-head .lead{
  font-size:1rem;
  line-height:1.72;
}

