/* =============================================
   DESIGN TOKENS — InsurrKernel brand (海老茶×白)
============================================= */
:root {
  --color-brand: #6d3b47;
  --color-brand-dark: #552f3a;
  --color-brand-light: #8f5562;
  --color-brand-muted: rgba(109, 59, 71, 0.12);
  --color-brand-border: rgba(109, 59, 71, 0.22);
  --color-bg: #ffffff;
  --color-bg-warm: #faf7f5;
  --color-text: #333333;
  --color-text-sub: #4e4e4e;
  --color-border: rgba(109, 59, 71, 0.12);
  --shadow-soft: 0 2px 20px rgba(85, 47, 58, 0.08);
  --shadow-card: 0 14px 36px rgba(85, 47, 58, 0.1);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
ul, ol { list-style: none; }

/* =============================================
   LOGO
============================================= */
.c-logo {
  width: auto;
  height: auto;
  object-fit: contain;
}
.c-logo--header {
  height: 36px;
  width: auto;
}
.c-logo--hero {
  width: min(420px, 88vw);
  height: auto;
}

/* =============================================
   LAYOUT
============================================= */
.l-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   BUTTON
============================================= */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 32px;
  border: 2px solid currentColor;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
  text-decoration: none;
  line-height: 1;
}
.c-btn--primary {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.c-btn--primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #fff;
  opacity: 1;
}
.c-btn--outline {
  background: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.c-btn--outline:hover {
  background: var(--color-brand);
  color: #fff;
  opacity: 1;
}
.c-btn__icon {
  display: inline-flex;
  align-items: center;
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.c-btn__icon svg { width: 100%; height: 100%; }

/* =============================================
   HEADER
============================================= */
.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s;
}
.l-header.is-scrolled { box-shadow: var(--shadow-soft); }
.l-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.l-header__logo a { display: flex; align-items: center; }

.l-header__nav { display: flex; align-items: center; gap: 32px; }
.l-header__nav-item {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: .04em;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}
.l-header__nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-brand);
  transition: width .25s;
}
.l-header__nav-item:hover { color: var(--color-brand); opacity: 1; }
.l-header__nav-item:hover::after { width: 100%; }

.l-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  order: -1;
}
.l-header__hamburger-line {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--color-text-sub);
  transition: transform .3s, opacity .3s;
}
.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(2) { opacity: 0; }
.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.l-header__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(109, 59, 71, .97);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.l-header__mobile-menu.is-open { display: flex; }
.l-header__mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.l-header__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.l-header__mobile-nav-item {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .08em;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  width: 280px;
  text-align: center;
  transition: color .2s;
}
.l-header__mobile-nav-item:first-child { border-top: 1px solid rgba(255, 255, 255, .15); }
.l-header__mobile-nav-item:hover { color: rgba(255, 255, 255, .75); opacity: 1; }

/* =============================================
   HERO
============================================= */
.p-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.p-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, var(--color-bg-warm) 55%, #fff 100%);
}
.p-hero__bg::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-brand-muted) 0%, transparent 68%);
  top: -120px; right: -100px;
  pointer-events: none;
}
.p-hero__bg::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 59, 71, .06) 0%, transparent 68%);
  bottom: 10%; left: 5%;
  pointer-events: none;
}
.p-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 59, 71, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 59, 71, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.p-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 40px 100px;
}
.p-hero__brand {
  margin-bottom: 12px;
  line-height: 0;
}
.p-hero__logo-sub {
  font-size: .875rem;
  color: var(--color-text-sub);
  letter-spacing: .12em;
  margin-bottom: 40px;
}
.p-hero__tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.55;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.p-hero__desc {
  font-size: .9375rem;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: .04em;
  margin-bottom: 44px;
  max-width: 640px;
}
.p-hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.p-hero__scroll-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .625rem;
  color: var(--color-brand-light);
  letter-spacing: .22em;
}
.p-hero__scroll-bar {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--color-brand-light), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* =============================================
   SECTION COMMON
============================================= */
.p-section { padding: 88px 0; }
.p-section__head {
  text-align: center;
  margin-bottom: 60px;
}
.p-section__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .08em;
  line-height: 1.4;
}
.p-section__title-en {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-brand);
  letter-spacing: .08em;
  line-height: 1.05;
  margin-top: 4px;
  opacity: .85;
}

/* =============================================
   ABOUT
============================================= */
.p-about { background: var(--color-bg); }
.p-about__inner { max-width: 780px; margin: 0 auto; }
.p-about__dl { border-top: 1px solid var(--color-border); }
.p-about__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.p-about__dt {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-brand);
  letter-spacing: .05em;
  padding-top: 3px;
}
.p-about__dd {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.85;
}
.p-about__dd-sub {
  display: block;
  font-size: .875rem;
  color: var(--color-text-sub);
}
.p-about__link {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   BUSINESS
============================================= */
.p-business { background: var(--color-bg); }
.p-business__cards {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.p-business__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  border: 1px solid var(--color-brand-border);
  background: var(--color-brand-muted);
  text-align: center;
  transition: border-color .25s, background .25s;
}
.p-business__card:hover {
  border-color: rgba(109, 59, 71, .45);
  background: rgba(109, 59, 71, .08);
}
.p-business__card-icon {
  font-size: 1.75rem;
  color: var(--color-brand);
  opacity: .8;
}
.p-business__card-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: .04em;
  line-height: 1.6;
}
.p-business__body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 2;
  padding: 32px 40px;
  border-left: 4px solid var(--color-brand);
  background: var(--color-brand-muted);
}
.p-business__body p + p { margin-top: 1em; }
@media (max-width: 768px) {
  .p-business__cards { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .p-business__card { padding: 20px 12px; }
  .p-business__card-icon { font-size: 1.375rem; }
  .p-business__card-label { font-size: .75rem; }
  .p-business__body { padding: 24px 20px; }
}

/* =============================================
   OFFICERS
============================================= */
.p-officers { background: var(--color-bg-warm); }
.p-officers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.p-officers__card {
  background: var(--color-bg);
  padding: 36px 20px;
  text-align: center;
  border-bottom: 3px solid var(--color-brand);
  transition: transform .25s, box-shadow .25s;
}
.p-officers__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.p-officers__role {
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: .06em;
  line-height: 1.7;
  margin-bottom: 14px;
}
.p-officers__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.p-officers__name-en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .75rem;
  color: var(--color-text-sub);
  letter-spacing: .06em;
}

/* =============================================
   ACCESS
============================================= */
.p-access { background: var(--color-bg); padding-bottom: 0; }
.p-access__info {
  max-width: 780px;
  margin: 0 auto 52px;
}
.p-access__address {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 20px;
}
.p-access__map { line-height: 0; }
.p-access__map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  filter: grayscale(10%);
}

/* =============================================
   FOOTER
============================================= */
.l-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.l-footer__copy {
  text-align: center;
  padding: 20px 40px;
}
.l-footer__copy p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .75rem;
  color: var(--color-brand);
  letter-spacing: .1em;
}

/* =============================================
   SCROLL FADE
============================================= */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.js-fade.is-visible { opacity: 1; transform: translateY(0); }
.js-fade[data-delay="1"] { transition-delay: .1s; }
.js-fade[data-delay="2"] { transition-delay: .2s; }
.js-fade[data-delay="3"] { transition-delay: .3s; }
.js-fade[data-delay="4"] { transition-delay: .4s; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .p-officers__grid { grid-template-columns: repeat(2, 1fr); }
  .l-header__nav { gap: 20px; }
}

@media (max-width: 768px) {
  .l-header__inner { padding: 0 20px; height: 60px; }
  .l-header__hamburger { display: flex; }
  .l-header__nav { display: none; }
  .c-logo--header { height: 30px; }

  .p-hero__content { padding: 100px 24px 90px; }
  .p-hero__desc { font-size: .875rem; }

  .l-container { padding: 0 24px; }
  .p-section { padding: 60px 0; }
  .p-section__head { margin-bottom: 40px; }

  .p-about__row { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }

  .p-officers__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-officers__card { padding: 28px 16px; }

  .p-access__map iframe { height: 300px; }
}

@media (max-width: 480px) {
  .p-officers__grid { grid-template-columns: 1fr; }
}
