@charset "UTF-8";
/* =========================================================
 * NAWANO プライバシーポリシー専用CSS（body.nawano-privacy のときだけ読み込み）
 * ========================================================= */

.nawano-privacy {
  --np-green:      #2f4a3a;
  --np-green-soft: #5f7f5a;
  --np-cream:      #f6f1e6;
  --np-paper:      #fffdf8;
  --np-accent:     #c96a3a;
  --np-rope:       #c9a46a;
  --np-text:       #2b2b28;
  --np-muted:      #6e6c64;
  --np-line:       rgba(47, 74, 58, .15);
  --np-radius:     14px;
  --np-ease:       cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Cocoon の枠を全幅に ---------- */
body.nawano-privacy .content { margin-top: 0; }
body.nawano-privacy .content-in.wrap,
body.nawano-privacy #content-in { width: 100%; max-width: none; padding: 0; }
body.nawano-privacy #main,
body.nawano-privacy .content .main {
  width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: var(--np-cream);
}
body.nawano-privacy #sidebar { display: none; }

/* ---------- 共通 ---------- */
.np { color: var(--np-text); background: var(--np-cream); line-height: 1.9; }
.np *, .np *::before, .np *::after { box-sizing: border-box; }
.np h1, .np h2, .np p, .np ul, .np ol, .np dl, .np dd { margin: 0; padding: 0; border: 0; background: none; }
.np h1::before, .np h1::after, .np h2::before, .np h2::after { content: none; }
.np ul, .np ol { list-style: none; }
.np li { margin: 0; }
.np a { color: var(--np-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.np a:hover { color: var(--np-accent); }
.np-inner { width: min(1080px, 100% - 48px); margin-inline: auto; }

/* ---------- 読んだ量を示す縄のバー ---------- */
.np-progress {
  position: fixed;
  z-index: 9990;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  height: 5px;
  pointer-events: none;
}
.np-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  /* ねじった縄のような斜めの縞 */
  background: repeating-linear-gradient(115deg, var(--np-rope) 0 6px, #e0c08c 6px 12px);
  border-radius: 0 3px 3px 0;
}

/* =========================================================
 * ページ上部
 * ========================================================= */
.np-hero {
  position: relative;
  padding: clamp(72px, 11vw, 124px) 0 clamp(72px, 9vw, 100px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 106, 58, .28) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(111, 143, 99, .55) 0, transparent 45%),
    var(--np-green);
}
.np-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 44px;
  background: var(--np-cream);
  clip-path: ellipse(70% 100% at 50% 100%);
}
.np-hero__label {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .2em;
}
.np .np-hero__title { margin-top: 16px; font-size: clamp(28px, 4.6vw, 46px); font-weight: 700; letter-spacing: .06em; color: #fff; line-height: 1.4; }
.np .np-hero__lead { max-width: 36em; margin-top: 14px; font-size: clamp(14px, 1.6vw, 16px); opacity: .95; }
.np .np-hero__date { margin-top: 14px; font-size: 13px; opacity: .8; letter-spacing: .04em; }

.np-in { opacity: 0; transform: translateY(20px); animation: np-in .9s var(--np-ease) forwards; animation-delay: var(--d, 0s); }
@keyframes np-in { to { opacity: 1; transform: none; } }

/* =========================================================
 * かんたんまとめ
 * ========================================================= */
.np-summary { padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.np .np-summary__title {
  margin-bottom: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--np-green);
  letter-spacing: .06em;
}
.np-summary__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.np-sum {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: var(--np-radius);
  background: var(--np-paper);
  border: 1px solid var(--np-line);
}
.np-sum__icon { font-size: 28px; line-height: 1; }
.np-sum__title { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--np-green); line-height: 1.5; }
.np-sum__text { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--np-muted); }

/* =========================================================
 * 本文＋目次
 * ========================================================= */
.np-body { padding: clamp(24px, 4vw, 40px) 0 clamp(72px, 10vw, 112px); }
.np-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 目次 */
.np-toc { position: sticky; top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); }
.np-toc__box {
  padding: 20px 18px;
  border-radius: var(--np-radius);
  background: var(--np-paper);
  border: 1px solid var(--np-line);
}
.np-toc__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--np-accent);
  cursor: pointer;
  list-style: none;
}
.np-toc__title::-webkit-details-marker { display: none; }
.np-toc__list { margin-top: 10px; max-height: calc(100vh - 140px); overflow-y: auto; }
.np .np-toc__list a {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--np-text);
  text-decoration: none;
  transition: background .3s, color .3s;
}
.np .np-toc__list a:hover { background: rgba(95, 127, 90, .08); color: var(--np-green); }
.np-toc__num { flex: 0 0 1.4em; font-weight: 700; color: var(--np-muted); }
/* 今読んでいる章 */
.np .np-toc__list a.is-current { background: var(--np-green); color: #fff; }
.np .np-toc__list a.is-current .np-toc__num { color: #f0b48f; }

/* 本文 */
.np-doc {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--np-line);
  box-shadow: 0 24px 50px -40px rgba(47, 74, 58, .6);
}
.np .np-intro { font-size: 15px; line-height: 2.05; padding-bottom: 28px; border-bottom: 1px solid var(--np-line); }

.np-sec { padding-top: 40px; scroll-margin-top: calc(20px + var(--wp-admin--admin-bar--height, 0px)); }
.np .np-sec__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--np-green);
}
.np-sec__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--np-cream);
  border: 2px solid var(--np-rope);
  font-size: 14px;
  color: var(--np-green);
}
.np .np-p { font-size: 15px; line-height: 2; }
.np .np-p + .np-p { margin-top: 12px; }
.np .np-ul { margin: 12px 0; }
.np .np-ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.9;
}
.np .np-ul li + li { margin-top: 6px; }
.np .np-ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--np-green-soft);
}
.np .np-dl { margin: 14px 0; border-top: 1px solid var(--np-line); }
.np .np-dl > div {
  display: grid;
  grid-template-columns: 15em minmax(0, 1fr);
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--np-line);
}
.np .np-dl dt { font-size: 14px; font-weight: 700; color: var(--np-green); line-height: 1.8; }
.np .np-dl dd { font-size: 14.5px; line-height: 1.85; }
.np .np-note {
  margin: 16px 0 0;
  padding: 16px 18px 16px 48px;
  position: relative;
  border-radius: 10px;
  background: var(--np-cream);
  font-size: 14px;
  line-height: 1.9;
}
.np .np-note::before {
  content: "i";
  position: absolute;
  left: 16px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--np-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
}

/* 外部送信の一覧 */
.np-ext { display: grid; gap: 12px; margin: 16px 0; }
.np-ext__item {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--np-line);
  background: var(--np-paper);
}
.np .np-ext__service { font-size: 15.5px; font-weight: 700; color: var(--np-green); }
.np .np-ext__dl { margin-top: 10px; display: grid; gap: 6px; }
.np .np-ext__dl > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px; }
.np .np-ext__dl dt { font-size: 12.5px; font-weight: 700; color: var(--np-muted); line-height: 1.8; }
.np .np-ext__dl dd { font-size: 13.5px; line-height: 1.8; }
.np .np-ext__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.np .np-ext__links a::after { content: " ↗"; text-decoration: none; display: inline-block; }

.np .np-end {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--np-line);
  text-align: right;
  font-size: 13.5px;
  color: var(--np-muted);
  line-height: 1.9;
}
.np .np-top {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 10px 22px;
  border: 1.5px solid var(--np-green);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.np .np-top:hover { background: var(--np-green); color: #fff; }

.np a:focus-visible, .np summary:focus-visible { outline: 3px solid var(--np-accent); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
 * スクロールで表示
 * ========================================================= */
.nawano-js .np [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s var(--np-ease) var(--reveal-delay, 0s),
    transform .9s var(--np-ease) var(--reveal-delay, 0s);
}
.nawano-js .np [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
 * レスポンシブ
 * ========================================================= */
@media (max-width: 960px) {
  .np-summary__grid { grid-template-columns: repeat(2, 1fr); }
  .np-layout { grid-template-columns: 1fr; gap: 20px; }
  .np-toc { position: static; }
  .np-toc__title::after { content: "（タップで開閉）"; margin-left: 8px; font-size: 11px; letter-spacing: 0; color: var(--np-muted); font-weight: 500; }
  .np-toc__list { max-height: none; columns: 2; column-gap: 12px; }
  .np-toc__list li { break-inside: avoid; }
}
@media (max-width: 600px) {
  .np-inner { width: calc(100% - 32px); }
  .np-summary__grid { grid-template-columns: 1fr; gap: 10px; }
  .np-sum { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 16px; }
  .np-sum__icon { grid-row: span 2; align-self: center; }
  .np-sum__title { margin-top: 0; }
  .np-toc__list { columns: 1; }
  .np-doc { padding: 24px 18px; border-radius: 14px; }
  .np .np-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .np .np-ext__dl > div { grid-template-columns: 1fr; gap: 0; }
  .np .np-p, .np .np-ul li { font-size: 14.5px; }
}

/* 印刷するときは本文だけ */
@media print {
  .np-progress, .np-toc, .np-top, .np-summary, #header-container, .nwm, footer { display: none !important; }
  .np-hero { background: none; color: #000; padding: 0 0 20px; }
  .np-hero::after { display: none; }
  .np .np-hero__title { color: #000; }
  .np-layout { display: block; }
  .np-doc { border: 0; box-shadow: none; padding: 0; }
  .nawano-js .np [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .np *, .np *::before, .np *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .np-in, .nawano-js .np [data-reveal] { opacity: 1; transform: none; }
}