/* ============================================
   保険百科FP事務所 - Encyclopedia Style
   Colors: #111 and #FFF only
   Font: Noto Sans JP 200/400/800
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
  color: #111;
  background: #fff;
  line-height: 2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #111;
  text-decoration: none;
}

strong {
  font-weight: 800;
}

/* ===== Sample Banner ===== */
.sample-banner {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 6px 16px;
  letter-spacing: 0.08em;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #111;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #111;
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.hamburger span:first-child { top: 4px; }
.hamburger span:last-child { bottom: 4px; }

.hamburger.active span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.hamburger.active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 80px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: #111;
  margin: 40px auto;
}

.hero-sub {
  font-size: 0.9375rem;
  font-weight: 200;
  line-height: 2.2;
  color: #111;
}

/* ===== Entry Sections (Encyclopedia Style) ===== */
.entry {
  padding: 80px 24px;
}

.entry-inner {
  max-width: 720px;
  margin: 0 auto;
}

.entry-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #111;
}

.entry-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  color: #111;
}

.entry-header h2 {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.entry-body {
  /* text column */
}

/* Definition block */
.entry-definition {
  margin-bottom: 40px;
  padding: 32px;
  border: 1px solid #111;
}

.entry-definition dt {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.entry-definition dd {
  font-size: 0.9375rem;
  font-weight: 200;
  line-height: 2;
}

/* Body text */
.entry-text p {
  font-size: 0.9375rem;
  margin-bottom: 24px;
  text-align: justify;
}

.entry-text p:last-child {
  margin-bottom: 0;
}

/* Footnote reference */
.note-ref {
  font-size: 0.75rem;
  font-weight: 400;
  cursor: help;
  border-bottom: 1px dotted #111;
}

.note-ref:hover::after {
  content: attr(data-note);
  position: absolute;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 200;
  padding: 12px 16px;
  max-width: 320px;
  line-height: 1.6;
  margin-top: 4px;
  margin-left: -160px;
  z-index: 10;
}

/* Aside / Reference box */
.entry-aside {
  margin-top: 40px;
  padding: 24px 32px;
  border-left: 2px solid #111;
  background: #fff;
}

.entry-aside h4 {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.entry-aside p {
  font-size: 0.8125rem;
  font-weight: 200;
  line-height: 2;
}

/* ===== Section Divider ===== */
.section-divider {
  max-width: 720px;
  margin: 0 auto;
  height: 1px;
  background: #111;
  opacity: 0.15;
}

/* ===== Comparison Table ===== */
.comparison-table {
  margin: 40px 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #111;
  font-weight: 200;
  vertical-align: top;
}

.comparison-table th {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  border-bottom-width: 2px;
  white-space: nowrap;
}

.comparison-table td:first-child {
  font-weight: 400;
  white-space: nowrap;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 2px solid #111;
}

/* ===== Case Studies ===== */
.case {
  margin-bottom: 56px;
}

.case:last-of-type {
  margin-bottom: 0;
}

.case-header {
  margin-bottom: 24px;
}

.case-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  border: 1px solid #111;
  padding: 2px 12px;
  margin-bottom: 12px;
}

.case-header h3 {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.6;
}

.case-body {
  padding-left: 24px;
  border-left: 1px solid #111;
}

.case-profile {
  margin-bottom: 20px;
}

.case-profile p {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.case-analysis,
.case-result {
  margin-bottom: 20px;
}

.case-analysis:last-child,
.case-result:last-child {
  margin-bottom: 0;
}

.case-analysis h4,
.case-result h4 {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.case-analysis p,
.case-result p {
  font-size: 0.9375rem;
  line-height: 2;
}

/* ===== Profile ===== */
.profile-block {
  margin-bottom: 40px;
}

.profile-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.profile-name rt {
  font-weight: 200;
  font-size: 0.5em;
}

.profile-title {
  font-size: 0.875rem;
  font-weight: 200;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

/* Timeline */
.profile-timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  align-items: baseline;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  flex-shrink: 0;
  width: 48px;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.timeline-item p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Profile quote */
.profile-quote {
  font-size: 0.9375rem;
  font-weight: 200;
  line-height: 2.2;
  padding: 32px;
  border: 1px solid #111;
  font-style: normal;
  text-align: justify;
}

/* ===== Contact ===== */
.contact-intro {
  margin-bottom: 48px;
}

.contact-intro p {
  font-size: 0.9375rem;
  line-height: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  font-size: 0.875rem;
}

.contact-details dt {
  font-weight: 400;
}

.contact-details dd {
  font-weight: 200;
}

.contact-details a {
  border-bottom: 1px solid #111;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
  font-size: 0.9375rem;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #111;
  background: transparent;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group textarea {
  border: 1px solid #111;
  padding: 12px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #111;
  box-shadow: none;
}

.form-submit {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  padding: 16px 48px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.form-submit:hover {
  background: #fff;
  color: #111;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid #111;
  padding: 48px 24px 0;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 0.8125rem;
  font-weight: 200;
  line-height: 1.8;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-right a {
  font-size: 0.8125rem;
  font-weight: 200;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0;
  border-top: 1px solid #111;
  font-size: 0.75rem;
  font-weight: 200;
  text-align: center;
  opacity: 0.5;
}

/* ===== Animations ===== */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #111;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding: 64px 24px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .entry {
    padding: 56px 20px;
  }

  .entry-header h2 {
    font-size: 1.375rem;
  }

  .entry-definition {
    padding: 24px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-body {
    padding-left: 16px;
  }

  .profile-quote {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-year {
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }

  .hero-sub br {
    display: none;
  }

  .entry-definition {
    padding: 20px;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }
}
