/* Kirakupo — palette & motion aligned with Advocatenkantoor Bram Elyn (Weblounge) */

:root {
  /* Core (from theme main.min.css) */
  --color-navy: #2a394c;
  --color-navy-panel: rgb(44 58 76 / 0.97);
  --color-navy-deep: #2c3a4c;
  --color-slate: #9dabb3;
  --color-section-light: #eaedee;
  --color-wash: #f2f5f7;
  --color-text: #2a394c;
  --color-muted: #647e95;
  --color-accent: #9ca9b1;
  --color-link-hover: #4a6278;

  --font-display: "Montserrat", "Hiragino Sans", sans-serif;
  --font-body: "Mulish", "Hiragino Sans", sans-serif;

  --header-h: 4.25rem;
  --ease-soft: cubic-bezier(0.15, 0.41, 0.69, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --hero-veil: linear-gradient(
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-wash);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-link-hover);
}

/* —— Header（トップは透明 → スクロールでネイビー） —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.45s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.45s var(--ease-out);
}

.site-header--transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-header--solid {
  background: rgba(42, 57, 76, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f6f8;
  text-decoration: none;
}

.site-logo span {
  display: block;
  font-size: 0.58rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-top: 0.2rem;
}

.site-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #f4f6f8;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav-list a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(244, 246, 248, 0.92);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
}

.site-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 0;
  height: 1px;
  background: var(--color-slate);
  transition: width 0.35s var(--ease-out);
}

.site-nav-list a:hover {
  color: #fff;
}

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

.site-nav-list a.is-current {
  color: #fff;
  pointer-events: none;
}

.site-nav-list a.is-current::after {
  width: 100%;
}

/* —— Hero：参照サイトどおり写真が画面全体を覆う（slideshow / 単画像） —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) clamp(1rem, 4vw, 2.5rem) 4.5rem;
  background: var(--color-navy);
}

/* フェードキャルーセル（トップ用） */
.hero--slideshow .hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.35s ease-in-out;
  z-index: 0;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide-inner {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
}

.hero__slide.is-active .hero__slide-inner {
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* 単一画像ヒーロー（写真は HTML の .hero__bg に background-image で直接指定） */
.hero:not(.hero--slideshow) .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroKenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--hero-veil);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 52rem;
  display: flex;
  justify-content: center;
}

.hero__panel {
  width: 100%;
  padding: 0 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero__content {
  max-width: 40rem;
  margin: 0 auto;
  animation: heroFadeUp 1.1s var(--ease-out) both;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(232, 240, 245, 0.95);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.15;
  color: #f4f6f8;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 3px 40px rgba(0, 0, 0, 0.55);
}

.hero__lead {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  color: rgba(244, 246, 248, 0.95);
  margin: 0 0 2rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.btn--primary {
  background: transparent;
  color: #f4f6f8;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.hero .btn--primary {
  box-shadow: none;
}

.btn--ghost {
  border: 1px solid rgba(157, 171, 179, 0.6);
  color: var(--color-slate);
  background: transparent;
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* 参照サイトと同様のスクロール用マウスアイコン */
.hero__mouse {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.hero__mouse:hover {
  opacity: 1;
}

.hero__mouse-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.55);
}

.hero__mousey {
  width: 12px;
  padding: 6px 4px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-sizing: content-box;
}

.hero__mousey-dot {
  width: 2px;
  height: 8px;
  border-radius: 30%;
  background-color: #fff;
  margin: 0 auto;
  animation: mouseScroll 2.2s var(--ease-soft) infinite;
}

/* —— ライトセクション（参照: .sectionLight） —— */
.section-light {
  background: var(--color-section-light);
  border: none;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.page-wrap--wide {
  max-width: 1100px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.section-lede {
  font-size: 1.03rem;
  color: var(--color-muted);
  margin-bottom: 2.75rem;
  max-width: 40rem;
}

/* CTAリンク（参照: .callToActionLink） */
.cta-row {
  text-align: center;
  margin: 2rem 0 3rem;
}

.link-cta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.link-cta::before {
  content: "";
  display: inline-block;
  height: 2px;
  width: 20px;
  margin-right: 1rem;
  background: var(--color-slate);
  vertical-align: middle;
}

.link-cta:hover {
  color: var(--color-navy);
}

.link-cta:hover::before {
  background: var(--color-navy);
}

.card-grid {
  display: grid;
  gap: 2.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 3rem;
}

.card {
  background: transparent;
  border: none;
  padding: 0 0 0.25rem;
  box-shadow: none;
}

.card:hover {
  transform: none;
  box-shadow: none;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--color-navy);
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-muted);
}

.media-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 3rem 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.media-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s ease-in-out;
}

.media-strip img:hover {
  transform: scale(1.08);
}

.two-col {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid rgba(42, 57, 76, 0.12);
  padding: 1.35rem 0;
}

.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}

.faq-a {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid rgba(42, 57, 76, 0.14);
  padding: 0.75rem 1rem;
  text-align: left;
}

.pricing-table th {
  background: rgba(42, 57, 76, 0.08);
  color: var(--color-navy);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--color-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(42, 57, 76, 0.15);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 2px;
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  cursor: pointer;
  border: none;
  margin-top: 0.35rem;
  background: var(--color-navy);
  color: #f4f6f8;
  border: 1px solid transparent;
}

.contact-form button[type="submit"]:hover {
  background: var(--color-navy-deep);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: transparent;
  border: none;
  padding: 0 0 2rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(42, 57, 76, 0.1);
  box-shadow: none;
}

.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-post:hover {
  transform: none;
  box-shadow: none;
}

.blog-post img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
}

.blog-post h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--color-navy);
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--color-slate);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--color-navy);
  color: rgba(244, 246, 248, 0.78);
  padding: 3.5rem 1.5rem;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  font-size: 0.9rem;
}

.site-footer strong {
  font-family: var(--font-display);
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.site-footer a {
  color: rgba(244, 246, 248, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(157, 171, 179, 0.35);
}

.site-footer a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-copy {
  text-align: center;
  padding: 2.25rem 1rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(244, 246, 248, 0.45);
}

/* スクロールイン（AOS 未読込時のフォールバック） */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
}

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

@keyframes heroKenBurns {
  0% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.14);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mouseScroll {
  10%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .media-strip {
    grid-template-columns: 1fr;
  }

  .media-strip img {
    height: 200px;
  }

  .blog-post {
    grid-template-columns: 1fr;
  }

  .blog-post img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .site-nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav.is-open {
    max-height: 360px;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.35rem;
    gap: 1rem;
  }

}

[data-aos] {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero:not(.hero--slideshow) .hero__bg,
  .hero__slide-inner {
    animation: none !important;
    transform: scale(1.06);
  }

  .hero__content {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__mousey-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .blog-post:hover,
  .media-strip img:hover {
    transform: none;
  }
}
