@charset "utf-8";

/* CSS Reset
============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Margin reset */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Media */
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Quotes */
blockquote,
q {
  quotes: none;
}

/* Layout
============================================ */

:root {
  --yellow: #ffad00;
  --red: #f03260;
  --blue: #009ff0;
  --green: #00ba66;
  --dark: #314350;
  --gray: #8a94a6;
  --light: #f7f9fc;
  --white: #ffffff;
  --border: #d0d5dc;
  --max-w: 1280px;
  --px: clamp(24px, 5vw, 80px);
  --nav-h:64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(54, 67, 85, 0.08);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-h);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 160px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links > a {
  font-size: 0.9rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links > a:hover {
  color: var(--dark);
}
.nav-right {
  display: flex;
  align-items: center;
}
.nav-cta {
  background: var(--dark);
  color: #fff;
  padding: 9px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.nav-cta:hover {
  background: #2196f3;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top:var(--nav-h);
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px var(--px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1rem;
  color: var(--dark);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-top:var(--nav-h);
  background: var(--light);
  border-bottom: 1px solid rgba(54, 67, 85, 0.08);
  padding: 64px var(--px) 48px;
  text-align: center;
}
.page-header-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 14px;
}
.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.page-header-sub {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== MAIN LAYOUT ===== */
.pp-wrap {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 56px clamp(24px, 4vw, 40px) 100px;
  box-sizing: border-box;
}
.pp-wrap *,
.pp-wrap *::before,
.pp-wrap *::after {
  overflow-wrap:anywhere;;
}

.pp-meta {
  text-align: right;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.pp-intro {
  background: var(--light);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.9;
}
.pp-intro a {
  color: var(--blue);
  text-decoration: none;
}
.pp-intro a:hover {
  text-decoration: underline;
}
.pp-chapter {
  display: flex; align-items: center; gap: 16px;
  margin: 52px 0 20px;
}
.pp-chapter-label {
  font-size: .7rem; 
  font-weight: 700; 
  letter-spacing: .12em;
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 3px 14px;
  white-space: nowrap;
}
.pp-chapter-line {
  flex: 1; height: 1px; background: var(--border);
}

/* ===== ARTICLES ===== */
.pp-article {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.pp-article.visible {
  opacity: 1;
  transform: translateY(0);
}

.pp-article h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 18px;
  background: var(--light);
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-article h2 .art-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

.pp-article p {
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.95;
  margin-bottom: 12px;
}
.pp-article p:last-child {
  margin-bottom: 0;
}

.pp-article ol,
.pp-article ul {
  padding-left: 0;
  margin: 10px 0 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-article ol li,
.pp-article ul li {
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.8;
  padding-left: 28px;
  position: relative;
}
.pp-article ol {
  counter-reset: pp-counter;
}
.pp-article ol li::before {
  counter-increment: pp-counter;
  content: counter(pp-counter);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 159, 240, 0.12);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 3px;
}
.pp-article ol.sub-num {
  margin: 6px 0 2px 0;
  counter-reset: sub-counter;
  padding-left: 0;
}
.pp-article ol.sub-num li {
  font-size: .88rem;
  color: var(--dark);
  padding-left: 1.8em;
}
.pp-article ol.sub-num li::before {
  counter-increment: sub-counter;
  content: '(' counter(sub-counter) ')';
  position: absolute;
  left: 0;
  top: 0;
  width: auto; 
  height: auto;
  background: none;
  color: var(--dark);
  font-size: .82rem;
  font-weight: 700;
  border-radius: 0;
}
.pp-article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
}

/* Table */
.pp-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 4px;
  font-size: 0.88rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pp-article table th {
  background: var(--light);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.pp-article table td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  line-height: 1.8;
}
.pp-article table tr:last-child td {
  border-bottom: none;
}

/* Contact box */
.contact-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.95;
}
.contact-box strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.contact-box a {
  color: var(--blue);
  text-decoration: none;
}
.contact-box a:hover {
  text-decoration: underline;
}

/* Divider */
.pp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 48px;
}

/* Revision note */
.pp-revision {
  text-align: right;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo img {
  width: 112px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== iPhone対応 (〜393px) ===== */
@media (max-width: 430px) {
  /* ナビ */
  .nav-inner {
    padding: 0 16px;
  }
  .nav-logo svg {
    height: 32px;
  }

  /* ページヘッダー */
  .page-header {
    padding: 40px 20px 28px;
  }
  .page-header h1 {
    font-size: 1.6rem;
    letter-spacing: -0.3px;
  }
  .page-header-sub {
    font-size: 0.82rem;
  }

  /* 本文エリア */
  .pp-wrap {
    padding: 32px 20px 64px;
  }

  /* イントロ */
  .pp-intro {
    padding: 16px 16px;
    font-size: 0.88rem;
  }

  /* 条文見出し */
  .pp-article h2 {
    font-size: 0.92rem;
    padding: 12px 14px;
  }
  .pp-article h2 .art-num {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  /* 条文本文 */
  .pp-article p,
  .pp-article ol li,
  .pp-article ul li {
    font-size: 0.86rem;
    line-height: 1.85;
  }

  /* テーブル：縦積みに変換 */
  .pp-article table,
  .pp-article table thead,
  .pp-article table tbody,
  .pp-article table tr,
  .pp-article table th,
  .pp-article table td {
    display: block;
    width: 100%;
  }
  .pp-article table thead {
    display: none;
  }
  .pp-article table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
  }
  .pp-article table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
  }
  .pp-article table tr:last-child td:last-child {
    border-bottom: none;
  }

  /* お問い合わせボックス */
  .contact-box {
    padding: 16px 16px;
    font-size: 0.86rem;
  }

  /* フッター */
  footer {
    padding: 28px 20px;
    gap: 12px;
  }
  footer svg {
    height: 22px;
  }
  .footer-copy {
    font-size: 0.72rem;
  }
}
