:root {
  --base: #f6fbff;
  --white: #FFFFFF;
  --blue: #6C9BD2;
  --blue-light: #9CC5E6;
  --blue-deep: #2E4A73;
  --blue-deeper: #1C3350;
  --accent: #EBCB43;
  --accent-light: #F4DE7A;
  --ink: #2E2E2C;
  --ink-soft: #5C5B57;
  --mist: #E1E4E8;
  --line: rgba(108, 155, 210, 0.35);
  --shadow: 0 24px 60px -30px rgba(28, 51, 80, 0.30);
  /* legacy aliases kept so nothing is missed */
  --navy-deep: var(--blue-deeper);
  --navy: var(--blue-deep);
  --navy-soft: var(--blue);
  --gold: var(--accent);
  --gold-deep: #CBA82E;
  --cream: var(--base);
  --paper: var(--base);
  --sky: var(--blue-light);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
	border-top: 10px solid var(--blue);
}
body {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  color: var(--ink);
  background: var(--base);
  line-height: 1.9;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0;
  color: var(--blue-deeper);
}
/* Accessible/SEO-only text: kept in the DOM for screen readers and
   search engines but removed from visual layout. Used for the page's
   real <h1>, which duplicates the animated hero headline's meaning in
   a single, crawlable, non-decorative heading. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.pc_none {
	display: none;
}
.pc_only {
	display: inline;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap_message {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 82px 82px;
  background-color: var(--white);
  border-radius: 20px;
  position: relative;
}
.wrap_philosophy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width:860px) {
.pc_none {
	display: block;
}
.pc_only {
	display: none;
}
.wrap_message {
  max-width: 95%;
  padding: 28px 20px 20px;
}
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  letter-spacing: .04em;
  font-size: 20px;
  color: #B99A28;
  text-transform: none;
}
.eyebrow .bead {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--accent) 55%, #C7A62E 100%);
  box-shadow: 0 0 0 3px rgba(235, 203, 67, 0.22);
  flex: none;
}
.eyebrow .thread {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
section {
  position: relative;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- Header ---------- */
/* The brand mark scrolls away with the page; the action buttons and
   nav panel are fixed to the viewport independently of it. */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
}
.brand {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  pointer-events: auto;
  background: var(--base);
  padding: 25px 29px 33px 40px;
  border-radius:0 0 20px 0;
}
.brand img {
  height: 52px;
  width: auto;
  display: block;
}
/* ---------- Fixed action buttons (menu / contact) ---------- */
.header-actions {
  position: fixed;
  top: 29px;
  right: 17px;
  z-index: 110;
  display: flex;
  flex-direction: column;
}
.menu-btn, .contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 184px;
  height: 58px;
  font-size: 13px;
  letter-spacing: .16em;
  border: none;
  cursor: pointer;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: 600;
  transition: opacity .3s ease;
}
.menu-btn {
  background: #fff;
  color: var(--blue-deep);
  border: 1px solid var(--blue-light);
  margin-bottom: 2px;
  border-radius:7px;
}
.menu-btn:hover, .contact-btn:hover {
  opacity: .85;
}
.contact-btn {
  background: var(--blue);
  color: #fff;
  border-radius:7px;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--blue-deep);
  transition: .3s;
}
.menu-btn.open .menu-icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-btn.open .menu-icon span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open .menu-icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
.mail-icon {
  font-size: 15px;
  line-height: 1;
}
/* ---------- Off-canvas nav panel (all breakpoints) ---------- */
#site-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  max-width: 82%;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 60px 56px;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  z-index: 130;
}
#site-nav.open {
  transform: translateX(0);
}
#site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  transition: color .3s ease;
}
#site-nav a:hover, #site-nav a.active {
  color: var(--accent-light);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 54, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  z-index: 120;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-toggle {
  display: none;
}
/* ---------- Hero (top page only) ---------- */
/* .hero-frame pads the photo with the page background so the photo
   reads as a mounted print rather than a full-bleed banner.
   .hero-headline overlays the photo; .hero-lead sits just outside the
   frame and is pulled up so it overlaps the photo's lower edge and
   then continues, in the same background colour, into the page below. */
.hero {
  position: relative;
}
.hero-frame {
  position: relative;
  padding: 40px;
  background: var(--base);
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 2.1/1;
  overflow: hidden;
  background: var(--base);
  border-radius:20px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Slideshow: any number of .slide elements may be placed inside
   .hero-photo, each with its own background-image. They stack on top
   of each other and cross-fade slowly via the .active class, which
   script.js cycles automatically. Each slide is sized to the full
   viewport (100vw/100vh) — matching how background-attachment: fixed
   itself sizes a "cover" background — and script.js continuously
   shifts it by the negative of the window's own on-screen position,
   so the photo stays visually pinned to the viewport, framed exactly
   the same way, on every device — including mobile browsers, where
   the native background-attachment: fixed is unreliable. */
.hero-photo .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.8s ease-in-out;
  z-index: 0;
  will-change: transform;
}
@media (max-width:860px) {
.hero-photo .slide {
  width: 100vw;
  height: 70vh;
}
}
.hero-photo .slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-headline {
  position: absolute;
  left: 6%;
  bottom: 9%;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.hero-tag {
  /*background: var(--blue);*/
  color: #ffef7e;
  font-size: 25px;
  /*letter-spacing: .22em;*/
  padding: 0;
  margin-bottom: -5px;
  font-family: 'Pinyon Script', cursive;
}
.hero-line {
  position: relative;
  overflow: hidden;
  color: var(--blue-deep);
  padding: 12px 26px;
  font-size: clamp(20px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
}
/* Carpet: the white pill background, unrolled left-to-right by JS
   (script.js) in sync with this line's characters landing on it. */
.hero-line .line-carpet {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--white);
  z-index: 0;
}
.hero-line .line-carpet.carpet-in {
  width: 100%;
}
.hero-line .line-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}
/* Each character starts hidden/lowered; script.js staggers the
   transition-delay per character, then flips .char-in on all of
   them at once so they land in sequence. */
.hero-line .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-line .char.char-in {
  opacity: 1;
  transform: translateY(0);
}
.hero-lead {
  font-family: "Shippori Mincho", serif;
  position: absolute;
  right: 10%;
  bottom: -56px;
  z-index: 2;
  max-width: 796px;
  background: var(--base);
  padding: 32px 38px;
  font-weight: 700;
  border-radius:20px;
}
.hero-lead p {
  font-size: 16px;
  font-wight: 600;
  line-height: 2;
  color: var(--blue-deep);
}
/* ---------- Walk scene (illustration + line, above Message) ---------- */
.walk-scene {
  position: relative;
  height: 210px;
  margin: 0 0 40px;
  overflow: hidden;
}
.walk-scene .walk-line {
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 85%;
  height: 10px;
  background: var(--blue);
  border-radius: 0 60px 60px 0;
}
.walk-scene .walk-figures {
  position: absolute;
  left: 230px;
  bottom: 14px;
  width: 640px;
  max-width: 55%;
  height: auto;
}
@media (max-width:860px) {
  .walk-scene {
    height: 140px;
    margin: 70px 0 24px;
  }
  .walk-scene .walk-line {
    left: 0;
    width: 95%;
    bottom: 0;
    height: 6px;
  }
  .walk-scene .walk-figures {
    left: 7%;
    bottom: 6px;
    width: 420px;
    max-width: 82%;
    transform: translateX(-50%);
  }
}

/* ---------- Social mission diagram (top page only) ----------
   A short mission statement followed by three softly-irregular ovals
   (お寺支援 / 公益財団設立支援 / 施工・販売ソリューション事業) strung
   together on a single line, with two small "terminal" dots at each
   end. A point of light travels from the left dot to the right dot
   along the line, as if following a fuse, then pauses and repeats —
   driven entirely by a CSS keyframe animation, no JS required.
   Each oval's wobble/rotation lives on a ::before pseudo-element
   behind the text, so the shape reads as hand-drawn while the
   heading/body copy stays perfectly level. ---------- */
.section-social {
  padding: 40px 0 100px;
}
.social-lead {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 60px;
}
.social-lead-eyebrow {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--blue-deeper);
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.social-lead-text {
  font-size: clamp(22px, 1.9vw, 35px);
  color: var(--blue);
  font-weight: 600;
  line-height: 1.7;
}
.social-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 0;
}
/* The connecting line + the light that runs along it. Sits behind
   the dots/ovals (z-index 0) so it visually disappears "into" each
   shape rather than crossing on top of it. */
.social-track {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blue-light), var(--blue) 50%, var(--blue-light));
  border-radius: 2px;
  z-index: 0;
  overflow: visible;
}
.social-spark {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf6 0%, #ffeec2 40%, #ffe3ae 70%, rgba(255, 227, 174, 0) 100%);
  box-shadow: 0 0 10px 3px rgba(255, 224, 168, .45), 0 0 22px 8px rgba(255, 224, 168, .2);
  opacity: 0;
  animation: socialSparkMove 7s infinite ease-in-out;
}
@keyframes socialSparkMove {
  0%   { left: 0%;   opacity: 0; }
  3%   { opacity: 1; }
  45%  { left: 100%; opacity: 1; }
  50%  { left: 100%; opacity: 0; }
  100% { left: 0%;   opacity: 0; }
}
.social-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--blue) 55%, var(--blue-deep) 100%);
  box-shadow: 0 0 0 6px var(--base);
}
.social-item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
}
/* Each oval's colored blob lives on ::before, wobbled with an uneven
   border-radius and a slight rotation so it feels hand-drawn. The
   oval itself (and therefore the h3/p text inside it) is never
   rotated, so the copy always reads perfectly horizontal. */
.social-oval {
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 0.94;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px;
  color: #fff;
}
.social-oval::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--blue);
}
.social-oval h3,
.social-oval p {
  position: relative;
  z-index: 1;
}
.social-oval-1::before {
  border-radius: 48% 52% 53% 47% / 55% 44% 56% 45%;
  transform: rotate(-2deg);
  animation: socialGlow1 7s infinite ease-in-out;
}
.social-oval-2::before {
  border-radius: 53% 47% 46% 54% / 45% 56% 44% 55%;
  transform: rotate(1.5deg);
  animation: socialGlow2 7s infinite ease-in-out;
}
.social-oval-3::before {
  border-radius: 46% 54% 55% 45% / 54% 46% 53% 47%;
  transform: rotate(-1.2deg);
  animation: socialGlow3 7s infinite ease-in-out;
}
.social-oval h3 {
	color: #f0ee6d;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.social-oval p {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
/* Glow-only flare (no opacity/transparency change) timed to roughly
   match when the spark above passes underneath each oval — ovals
   sit at ~20% / 50% / 80% along the track, and the spark's travel
   occupies the first ~45% of the shared 7s cycle. */
@keyframes socialGlow1 {
  0%, 6%, 16%, 100% { box-shadow: none; }
  10% { box-shadow: 0 0 46px 16px rgba(255, 255, 186, 1.0); }
}
@keyframes socialGlow2 {
  0%, 19%, 29%, 100% { box-shadow: none; }
  24% { box-shadow: 0 0 46px 16px rgba(255, 255, 186, 1.0); }
}
@keyframes socialGlow3 {
  0%, 32%, 42%, 100% { box-shadow: none; }
  37% { box-shadow: 0 0 46px 16px rgba(255, 255, 186, 1.0); }
}
@media (max-width: 860px) {
  .section-social {
    padding: 20px 0 64px;
  }
  .social-lead {
    margin-bottom: 44px;
    padding: 0 8px;
  }
  .social-diagram {
    flex-direction: column;
    gap: 30px;
    padding: 12px 0;
  }
  .social-track {
    left: 50%;
    right: auto;
    top: 18px;
    bottom: 18px;
    height: auto;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--blue-light), var(--blue) 50%, var(--blue-light));
  }
  .social-spark {
    top: 0%;
    left: 50%;
    margin-top: 0;
    margin-left: -8px;
    animation-name: socialSparkMoveVertical;
  }
  @keyframes socialSparkMoveVertical {
    0%   { top: 0%;   opacity: 0; }
    3%   { opacity: 1; }
    45%  { top: 100%; opacity: 1; }
    50%  { top: 100%; opacity: 0; }
    100% { top: 0%;   opacity: 0; }
  }
  .social-oval {
    max-width: 300px;
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .social-spark {
    animation: none;
    opacity: 0;
  }
  .social-oval-1::before, .social-oval-2::before, .social-oval-3::before {
    animation: none;
  }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 190px 24px 50px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(28, 51, 80, 0.35), rgba(28, 51, 80, 0.94) 62%), linear-gradient(200deg, var(--blue-light) 0%, var(--blue) 32%, var(--blue-deep) 64%, var(--blue-deeper) 100%);
}
.page-hero .eyebrow {
  justify-content: center;
  color: var(--accent-light);
}
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: #fff;
  letter-spacing: .08em;
}
.page-hero .lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
/* ---------- Photo band (full-width supporting imagery) ---------- */
.photo-band {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  z-index: 2;
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  letter-spacing: .03em;
  font-size: 22px;
  color: #fff;
  text-transform: none;
}

/* ---------- Hero + photo combined intro ----------
   Shared full-width "hero" used by philosophy.html, business.html and
   profile.html: page title on the left, a full-bleed photo on the
   right, separated by a smooth elliptical curve (SVG clipPath using
   objectBoundingBox so it scales cleanly with any container width).
   On mobile this collapses back to the simpler stacked hero-then-photo
   layout with a plain wave edge, matching the site's other mobile
   treatments. ---------- */
.hero-curve {
  position: relative;
  overflow: hidden;
  background: var(--base);
  min-height: clamp(480px, 42vw, 640px);
}
.hero-curve-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-curve-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: url(#heroCurveClip);
}
.hero-curve-wave {
  display: none;
}
.hero-curve-wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: clamp(480px, 42vw, 640px);
  display: flex;
  align-items: center;
}
.hero-curve-text {
  max-width: 460px;
  padding: 70px 0;
}
.hero-curve-text .eyebrow {
  color: #B99A28;
}
.hero-curve-text h1 {
  margin-top: 18px;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--blue-deeper);
  letter-spacing: .08em;
}
.hero-curve-text .lead {
  margin-top: 22px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  font-weight: 600;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
.visually-hidden-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 860px) {
  .hero-curve {
    min-height: 0;
  }
  .hero-curve-media {
    position: relative;
    inset: auto;
    height: 240px;
  }
  .hero-curve-media img {
    clip-path: none;
  }
  .hero-curve-wave {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
  }
  .hero-curve-wave svg {
    display: block;
    width: 100%;
    height: 52px;
  }
  .hero-curve-wave path {
    fill: var(--base);
  }
  .hero-curve-wrap {
    height: auto;
    min-height: 0;
    display: block;
    padding: 90px 0 0;
  }
  .hero-curve-text {
    max-width: none;
    padding: 0 0 46px;
    text-align: center;
  }
  .hero-curve-text .eyebrow {
    justify-content: center;
  }
}
/* ---------- Generic section spacing ---------- */
.section {
  padding: 72px 0;
}
.section-tight {
  padding: 96px 0;
}
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 5px;
}
.section-head {
  margin-bottom: 26px;
}
/* ---------- Message: flying dove illustration ----------
   Sits above the "ご挨拶" card, top-right. Kept deliberately subtle
   to match the site's calm tone — a gentle fade-in drifting in from
   the right, nothing bouncy. It waits (transition-delay) until the
   surrounding content has already settled from its own scroll-in
   motion, so the dove's own side-entrance still reads clearly rather
   than blending into the rest of the section appearing at once.
   Triggered by the same IntersectionObserver as the other .pop-in
   elements (adds .is-visible once). ---------- */
.message-dove {
  position: absolute;
  top: -54px;
  right: 36px;
  width: clamp(130px, 15vw, 220px);
  height: auto;
  pointer-events: none;
  z-index: 3;
  --dove-fly-x: 90px;
}
.message-dove.pop-in {
  opacity: 0;
  transform: translateX(var(--dove-fly-x));
  transition: opacity .8s ease .5s, transform .8s cubic-bezier(.25, .46, .32, 1) .5s;
}
.message-dove.pop-in.is-visible {
  opacity: 1;
  transform: translateX(0);
}
/* ---------- Message ---------- */
.message-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.message-photo {
  border-radius: 10px;
  overflow: hidden;
  /*box-shadow: var(--shadow);*/
}
.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message-body p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 1.4em;
  font-weight: 600;
  font-family: 'Zen Kurenaido', "Shippori Mincho", serif;
  letter-spacing: .04em;
  line-height: 2.1;
}
.message-sign {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.message-sign .rule {
  width: 40px;
  height: 1px;
  background: var(--gold-deep);
}
.message-sign span {
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  /*letter-spacing: .1em;*/
  color: var(--blue-deeper);
}
@media (max-width:860px) {
.message-dove {
  top: -20px;
  right: 31px;
  width: clamp(88px, 37vw, 170px);
  --dove-fly-x: 54px;
}
.message-body p {
  font-size: 16px;
  margin-bottom: 0.8em;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.8;
}
.message-sign span {
  font-size: 14px;
}
}
/* ---------- Philosophy ---------- */
.philo {
  background: var(--blue-deeper);
  color: #fff;
}
.philo .eyebrow {
  color: var(--accent-light);
}
.philo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.philo-card {
  background: var(--blue-deeper);
  padding: 56px 48px;
  position: relative;
}
.philo-card:first-child {
  background: var(--blue-deep);
}
.philo-card h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 22px;
  letter-spacing: .1em;
}
.philo-card .tag {
  display: inline-block;
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  letter-spacing: .03em;
  font-size: 19px;
  color: var(--accent-light);
  margin-bottom: 16px;
  text-transform: none;
}
.philo-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 2;
}
.philo-photo {
  margin-top: 28px;
  border-radius: 2px;
  overflow: hidden;
  height: 160px;
  filter: saturate(0.9);
}
.philo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- Pillars (three domains) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}
.pillar-card {
  position: relative;
  background: #fff;
  border: 6px solid var(--blue);
  border-radius: 2px;
  padding: 44px 32px 38px;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
  border-radius: 20px;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.pillar-kanji {
  position: absolute;
  bottom: -15px;
  right: -9px;
  width: 112px;
  height: auto;
  opacity: .2;
  z-index: 0;
  pointer-events: none;
}
.pillar-arrow-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 76px;
  height: 25px;
  background: var(--blue);
  border-radius: 999px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.pillar-arrow-badge img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: auto;
  transform: translate(30%, -50%);
}
.pillar-card:hover .pillar-arrow-badge img {
  animation: pillarArrowSlide 1.1s ease-in-out infinite;
}
@keyframes pillarArrowSlide {
  0%, 100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  45% {
    transform: translate(calc(-50% + 42px), -50%);
    opacity: 0;
  }
  55% {
    transform: translate(calc(-50% - 42px), -50%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pillar-card:hover .pillar-arrow-badge img {
    animation: none;
  }
}
.pillar-card h3 {
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  color: var(--blue);
  line-height: 1.3;
  position: relative;
  z-index: 1;
  font-size: 25px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.pillar-card p {
  color: var(--ink-soft);
  font-weight: 600;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.9;
}
/* Small corner illustration, layered above the kanji watermark but
   clear of the heading/body text (which sits top-left). */
.pillar-chara {
  position: absolute;
  right: 4px;
  bottom: 0;
  z-index: 1;
  width: 76px;
  height: auto;
  pointer-events: none;
}
.converge {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 40px;
  border: 1px solid var(--line);
  background: var(--white);
  background-image: linear-gradient(rgba(239, 243, 246, 0.9), rgba(239, 243, 246, 0.9)), url('../images/img-003.png');
  background-size: cover;
  background-position: center;
}
.converge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold-deep));
  transform: translateX(-50%);
}
.converge .tag {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  letter-spacing: .03em;
  font-size: 19px;
  color: #B99A28;
  text-transform: none;
  display: block;
  margin-bottom: 14px;
}
.converge h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.converge p {
  font-size: 14px;
  color: var(--ink-soft);
}
/* ---------- Business overview cards ---------- */
.biz-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--mist);
  border-left: 1px solid var(--mist);
  margin-bottom: 80px;
}
.biz-ov-card {
  border-right: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  padding: 40px 32px;
  background: #fff;
}
.biz-ov-num {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  color: #B99A28;
  font-size: 22px;
  letter-spacing: .03em;
  margin-bottom: 18px;
  display: block;
}
.biz-ov-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: .06em;
}
.biz-ov-card p {
  font-size: 13px;
  color: var(--ink-soft);
}
/* ---------- Business detail (thread list) ---------- */
.biz-detail {
  margin-bottom: 78px;
}
.biz-detail-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 36px;
}
.biz-detail-head h2 {
  font-size: 28px;
  letter-spacing: .06em;
}
@media (max-width:860px) {
.biz-detail-head h2 {
  font-size: 18px;
  letter-spacing: .06em;
}
}
.biz-detail-head .en {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;

  color: #B99A28;
  font-size: 20px;
  letter-spacing: .03em;
  text-transform: none;
}
.biz-detail-photo {
  float: right;
  width: 280px;
  margin: 0 0 24px 32px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.biz-detail-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.biz-detail-photo.is-illustration {
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: 1px solid var(--mist);
}
.biz-detail-photo.is-illustration img {
  width: auto;
  height: 160px;
  object-fit: contain;
  margin: 20px auto;
}
.thread-list {
  position: relative;
  padding-left: 34px;
}
.thread-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--mist));
}
.thread-item {
  position: relative;
  padding-bottom: 34px;
}
.thread-item:last-child {
  padding-bottom: 0;
}
.thread-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--base);
}
.thread-item h3 {
  font-size: 18px;
  color: var(--blue-deeper);
  margin-bottom: 8px;
  letter-spacing: .04em;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
}
.thread-item p {
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.95;
}
.outlook {
  margin-top: 40px;
  padding: 30px 34px;
  background: var(--white);
  border-left: 3px solid var(--blue);
  clear: both;
}
.outlook .en {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  letter-spacing: .03em;
  font-size: 19px;
  color: #B99A28;
  text-transform: none;
}
.outlook p {
  margin-top: 8px;
  font-size: 18px;
  color: var(--ink-soft);
}
/* ---------- Company profile ---------- */
.profile {
  background: var(--base);
}
.profile-photo {
  margin-bottom: 56px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--mist);
}
.profile-table tr {
  border-bottom: 1px solid var(--mist);
}
.profile-table tr:last-child {
  border-bottom: none;
}
.profile-table th, .profile-table td {
  text-align: left;
  padding: 22px 28px;
  font-size: 14px;
  font-weight: 400;
  vertical-align: top;
}

.profile-table th {
  width: 190px;
  color: var(--blue-deeper);
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--base);
}
.profile-table td {
  color: var(--ink-soft);
}
.tbd {
  color: #A7A49C;
  font-style: italic;
}
/* ---------- CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(28, 51, 80, 0.88), rgba(46, 74, 115, 0.90) 60%), url('../images/img-007.jpg');
  background-size: cover;
  background-position: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 40deg at 80% 0%, rgba(235, 203, 67, 0.08) 0 3deg, transparent 3deg 12deg);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
}
.cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 40px;
  line-height: 2;
}
.btn-gold {
  display: inline-block;
  padding: 16px 46px;
  background: var(--accent);
  color: var(--blue-deeper);
  font-size: 13px;
  letter-spacing: .2em;
  border-radius: 2px;
  transition: all .35s ease;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: 600;
}
.btn-gold:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5);
}
/* ---------- Contact form ---------- */
.contact-section {
  padding: 0 0 120px;
}
.form-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.8;
  color: var(--blue);
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
.contact-card,
.thanks-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 4px;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 44px;
}
.form-banner {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.9;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
.form-banner[hidden] {
  display: none;
}
.form-banner-success {
  background: rgba(108, 155, 210, .12);
  border: 1px solid var(--blue-light);
  color: var(--blue-deeper);
}
.form-banner-error {
  background: #FCEFEF;
  border: 1px solid #E4A9A9;
  color: #9B2C2C;
}
.form-group {
  margin-bottom: 30px;
}
.form-group:last-of-type {
  margin-bottom: 0;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-label {
  color: var(--blue);
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-required,
.badge-optional {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
.badge-required {
  background: var(--blue);
  color: #fff;
}
.badge-optional {
  background: var(--base);
  color: var(--ink-soft);
  border: 1px solid var(--mist);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mist);
  border-radius: 2px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(108, 155, 210, .18);
}
textarea.form-control {
  min-height: 190px;
  line-height: 1.9;
  resize: vertical;
}
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236C9BD2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}
.form-note.is-error {
  color: #B3261E;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  margin-top: 44px;
  text-align: center;
}
button.btn-gold {
  border: none;
  cursor: pointer;
  font-size: 14px;
  min-width: 220px;
}
.form-privacy {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
.thanks-card {
  text-align: center;
  padding: 68px 44px;
}
.thanks-card[hidden] {
  display: none;
}
.thanks-card h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  margin-bottom: 18px;
  color: var(--blue-deeper);
}
.thanks-card p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  margin-bottom: 34px;
}
@media (max-width: 700px) {
.form-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 14px;
  line-height: 1.8;
}
  .contact-card,
  .thanks-card {
    padding: 36px 22px;
  }
  .form-row-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
.form-label {
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: .03em;
}
}

/* ---------- Footer ---------- */
footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 34px;
  /*margin-top: 50px;*/
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  height: 46px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, 0.85);
}
.footer-nav a:hover {
  color: var(--blue-deeper);
}
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .08em;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}
/* ---------- Responsive ---------- */
@media (max-width:860px) {
.footer-brand img {
  height: 34px;
}
  .brand {
    padding: 14px 18px;
  }
  .brand img {
    height: 38px;
  }
  .header-actions {
    top: 16px;
    right: 16px;
  }
  .menu-btn, .contact-btn {
    width: 132px;
    height: 50px;
    font-size: 11px;
    gap: 6px;
  }
  .menu-btn span:last-child, .contact-btn span:last-child {
    display: none;
  }
  .menu-icon {
    width: 16px;
  }
  .mail-icon {
    font-size: 17px;
  }
  #site-nav {
    padding: 50px 40px;
    width: 300px;
  }
  .hero {
    margin-bottom: 64px;
  }
  .hero-frame {
    padding: 20px;
  }
  .hero-photo {
    aspect-ratio: 3/4;
  }
  .hero-headline {
    left: 8%;
    bottom: 14%;
    gap: 4px;
  }
  .hero-tag {
    font-size: 14px;
    padding: 0;
  }
  .hero-line {
    font-size: clamp(17px, 5.2vw, 24px);
    padding: 9px 18px;
    white-space: normal;
  }

  .hero-lead {
    left: 8%;
    right: 8%;
    max-width: none;
    bottom: -40px;
    padding: 22px 24px;
  }
  .hero-lead p {
    font-size: 12.5px;
  }
  .message-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .philo-grid {
    grid-template-columns: 1fr;

  }


  .pillars {
    grid-template-columns: 1fr;
  }
  .biz-overview {
    grid-template-columns: 1fr;

  }
  .biz-detail-photo {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
  .biz-detail-photo img {
    height: 180px;
  }
  .section {
    padding: 38px 0 48px;
  }
  .profile-table th {
    width: 130px;
    padding: 16px;
    font-size: 12.5px;
  }
  .profile-table td {
    padding: 16px;
    font-size: 12.5px;
  }
}
@media (max-width:480px) {
  .brand {
    padding: 15px 15px 20px;
  }
  .brand img {
    height: 30px;
  }
  .header-actions {
    top: 16px;
    right: 6px;
  }
  .menu-btn, .contact-btn {
    width: 60px;
    height: 44px;
  }
  .hero-frame {
    padding: 12px;
  }
  .hero-headline {
    left: 5%;
    bottom: 7%;
  }
  .hero-line {
    padding: 7px 14px;
  }
  .hero-lead {
    padding: 18px 18px;
    bottom: -130px;
  }
}

/* =====================================================================
   REVISION — blue used only as an accent (never as a large flat
   background) everywhere except the nav panel / contact button /
   footer. Base colour is #eff3f6 throughout.
   ===================================================================== */
.page-hero {
  background: var(--base);
  color: var(--ink);


}
.page-hero .eyebrow {
  color: #B99A28;
}
.page-hero h1 {
  color: var(--blue-deeper);
}
.page-hero .lead {
  color: var(--ink-soft);
}

.philo {
  background: transparent;
  color: var(--ink);
}
.philo .eyebrow {
  color: #B99A28;
}
.philo-grid {
  background: var(--mist);
}
.philo-card,
.philo-card:first-child {
  background: #fff;
}
.philo-card h3 {
  color: var(--blue-deeper);
}
.philo-card .tag {
  color: #B99A28;
}
.philo-card p {
  color: var(--ink-soft);
}
.philo-photo {
  filter: none;
}

.cta {
  background:
    linear-gradient(150deg, rgba(239, 243, 246, 0.92), rgba(239, 243, 246, 0.82) 60%), url('../images/img-007.jpg');
  background-size: cover;
  background-position: center;
  color: var(--ink);
}
.cta::before {
  background: repeating-conic-gradient(from 40deg at 80% 0%, rgba(108, 155, 210, 0.10) 0 3deg, transparent 3deg 12deg);
}
.cta h2 {
  color: var(--blue-deeper);
}
.cta p {
  color: var(--ink-soft);
}

/* =====================================================================
   SCROLL REVEAL — the hero keeps its original first-view composition
   (mounted photo frame, overlapping headline/lead) and scrolls away
   normally. Only .section panels get the soft, semi-transparent
   frosted-glass treatment as they slide into view.
   ===================================================================== */
.section {
  position: relative;
  z-index: 1;
  background: var(--base);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Message CTA pill (links to Profile) ---------- */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 57px;
  margin-top: 56px;
  padding: 6px 9px 6px 28px;
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 999px;
  /*box-shadow: 0 16px 34px -18px rgba(28, 51, 80, 0.35);*/
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--blue);
  transition: box-shadow .3s ease, transform .3s ease;
}
.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(28, 51, 80, 0.4);
}
.cta-pill-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

/* ---------- Curved divider: Message → Explore ----------
   A soft wave sits above the Explore section's own top edge,
   overlapping only the empty bottom padding of the Message section
   above it (never real content), so it always reads as a clean
   curve rather than clipping text or the CTA button. ---------- */
#message {
  padding-bottom: 250px;
}
.section-explore {
  background: #fff;
  overflow: visible;
}

.section-curve {
  position: absolute;
  left: 0;
  top: -150px;
  width: 100%;
  height: 150px;
  line-height: 0;
  pointer-events: none;
}
.section-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}
.section-curve path {
  fill: #fff;
}
/* ---------- Curved divider: Temple → Foundation → Construction ----------
   Same overlap trick as above, but the white Foundation section needs
   a curve on BOTH edges since it's sandwiched between two
   default-background sections. Each curve belongs to the section it
   introduces and is filled with that section's own background, so it
   always paints over whatever is behind it — the Foundation section
   owns the white curve at its top, and the Construction section owns
   the (default-background) curve at its top that closes Foundation
   out. Temple/Foundation get extra bottom padding so the curve below
   them always overlaps empty space, never real copy. ---------- */
#temple {
  padding-bottom: 190px;
}
#foundation {
  padding-bottom: 190px;
  overflow: visible;
}
#construction {
  overflow: visible;
}
.section-curve-base path {
  fill: var(--base);
}

/* ---------- Generic "pop" reveal (scroll-triggered) ----------
   Used for decorative character illustrations that should bounce in
   with a spring-like scale, rather than the plain fade+slide of
   .reveal. Triggered by the same IntersectionObserver, just looking
   for the .pop-in class instead. ---------- */
.pop-in {
  opacity: 0;
  transform: scale(.4);
  transition: opacity .55s ease, transform .65s cubic-bezier(.34, 1.56, .64, 1);
}
.pop-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Explore: waving family illustration ----------
   Sits above the card row, straddling the curve so it reads as
   standing on the wave — the same overlap trick as .section-curve
   (positioned relative to the section's own .wrap so it lines up
   with the right edge of the cards below it). ---------- */
.section-explore > .wrap {
  position: relative;
}
.explore-chara-family {
  position: absolute;
  right: 15px;
  top: -76px;
  width: clamp(190px, 37vw, 400px);
  height: auto;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Explore: sliding card track ----------
   Philosophy/Business keep their original two-up size and position;
   any further cards (Profile, and whatever gets added later) sit
   off to the right and are reached by the arrow buttons on desktop
   or a native swipe on touch devices — no card count is hardcoded. */
.explore-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}
.explore-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.explore-viewport::-webkit-scrollbar {
  display: none;
}
.explore-grid {
  display: flex;
  gap: 56px;
}
.explore-card {
  display: block;
  flex: 0 0 calc(50% - 28px);
  scroll-snap-align: start;
}
.explore-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue-deep);
  font-size: 22px;


  line-height: 1;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.explore-nav:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(28, 51, 80, 0.45);
}
.explore-nav:disabled {
  opacity: .35;
  cursor: default;
  background: #fff;
  color: var(--blue-deep);
  box-shadow: none;
}
.explore-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 10px;
}
.explore-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.explore-card:hover .explore-photo img {
  transform: scale(1.05);
}
.explore-eyebrow {
  display: block;
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  letter-spacing: .03em;
  font-size: 18px;
  color: #B99A28;
  text-transform: none;
  margin-bottom: -6px;
}
.explore-title {
  font-size: 24px;
  margin-bottom: 6px;
}
.explore-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  font-weight: 600;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
}
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  font-size: 14px;

  color: var(--blue-deep);
}
.explore-link .arrow {
  font-style: normal;
  transition: transform .3s ease;
}
.explore-card:hover .arrow {
  transform: translateX(6px);
}

/* ---------- Responsive ---------- */
@media (max-width:860px) {
  #message {
    padding-bottom: 148px;
  }
  .section-curve {
    top: -88px;
    height: 88px;
  }
  #temple {
    padding-bottom: 118px;
  }
  #foundation {
    padding-bottom: 118px;
  }

  .explore-slider {
    gap: 0;
  }
  .explore-nav {
    display: none;
  }
  .explore-grid {
    gap: 20px;
    padding: 4px 20px 4px 0;
  }
  .explore-card {
    flex: 0 0 80%;
  }
  .explore-chara-family {
    top: -45px;
    right: 6%;
  }
}
@media (max-width:600px) {
  .cta-pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Vision Venn diagram (philosophy page) ----------
   Deliberately NOT using the shared ".section" class — this block
   owns its own background/blur/reveal-animation/spacing so it can be
   tuned independently without touching (or being affected by) the
   generic .section rules used elsewhere on the site. ---------- */
.vision-venn {
  position: relative;
  z-index: 1;
  background: var(--base);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  padding: 0 0 100px 0;
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.vision-venn.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.vision-venn .section-head {
  text-align: center;
  margin-bottom: 48px;
}
.vision-venn .eyebrow {
  justify-content: center;
  color: #B99A28;
}
.vision-venn .section-title {
  /*margin-top: 10px;*/
  color: var(--blue-deeper);
}
.venn-figure {
  position: relative;
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
}
.venn-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ---------- Venn illustration characters ----------
   Positioned as absolute points relative to .venn-figure using the
   same 700x600 coordinate space as the SVG viewBox (left/top and
   width all in % or clamp()), so the characters stay lined up with
   the circles — and clear of the text — at every screen size,
   mobile included. Each one is pulled in so it overlaps its circle
   for a sense of unity with the diagram, while its bounding box is
   checked to stay clear of the nearby label text. ---------- */
.venn-chara {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  height: auto;
  /*filter: drop-shadow(0 10px 18px rgba(28, 51, 80, 0.20));*/
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  transition: opacity .55s ease var(--pop-delay, 0s),
              transform .65s cubic-bezier(.34, 1.56, .64, 1) var(--pop-delay, 0s);
}
.vision-venn .venn-figure.chara-ready .venn-chara {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.chara-family {
  left: 78%;
  top: 10%;
  width: clamp(64px, 23%, 190px);
  --pop-delay: .20s;
}
.chara-business {
  left: 8%;
  top: 48%;
  width: clamp(64px, 21%, 205px);
  --pop-delay: .48s;
}
.chara-temple {

  left: 90%;
  top: 87%;
  width: clamp(56px, 26%, 224px);
  --pop-delay: .76s;
}
.venn-circle {
  mix-blend-mode: multiply;
}
.venn-circle-navy {
  fill: var(--blue-deep);
}
.venn-circle-gold {
  fill: var(--accent);
}
.venn-circle-sky {
  fill: var(--blue-light);
}
.venn-center-circle {
  fill: #fff;
  filter: drop-shadow(0 18px 34px rgba(28, 51, 80, 0.22));
}
.venn-label-title {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  fill: #fff;
  letter-spacing: .06em;
}
.venn-label-sub {
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.98);
  letter-spacing: 0.04em;
}
.venn-center-title {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  fill: var(--blue-deeper);
}
.venn-center-body {
  font-family: fot-tsukuardgothic-std,"MyYuGothicM",MyYuGothicM,"游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","メイリオ",Meiryo,sans-serif;
  font-weight: 600;
  fill: var(--ink-soft);
}
@media (max-width:860px) {
  .vision-venn {
    padding: 72px 0 46px;
  }
  .venn-figure {
    max-width: 100%;
  }
.chara-family {
  left: 76%;
  top: 8%;
}
.chara-business {
  left: 14%;
  top: 47%;
}
.chara-temple {
  left: 80%;
  top: 93%;
}
}
/* =====================================================================
   PHILOSOPHY PAGE — mission-vision card brush-up
   Scoped to body.page-philosophy so other subpages keep their own
   card styling if they ever add similar grids.
   ===================================================================== */

/* ---------- Mission / Vision cards: a shared section head for
   hierarchy, lifted rounded cards with a soft shadow, a brand-colour
   top edge, and a large pale kanji watermark per card so each principle
   reads as a distinct idea instead of two flat text blocks ---------- */
.page-philosophy .philo {
  position: relative;
  padding: 92px 0 100px;
}
.page-philosophy .philo-head {
  text-align: center;
  margin-bottom: 46px;
}
.page-philosophy .philo-head .eyebrow {
  justify-content: center;
  color: #B99A28;
}
.page-philosophy .philo-head .section-title {
  color: var(--blue-deeper);
}
.page-philosophy .philo-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  align-items: stretch;
}
.page-philosophy .philo-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--accent) 55%, #C7A62E 100%);
  box-shadow: 0 0 0 7px var(--base), 0 10px 18px -6px rgba(28, 51, 80, 0.35);
  z-index: 3;
}
.page-philosophy .philo-card {
  background: #fff;
  border-radius: 16px;
  padding: 50px 44px 46px;
  box-shadow: 0 22px 46px -30px rgba(28, 51, 80, 0.32);
  border-top: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.page-philosophy .philo-card:first-child {
  background: #fff;
  border-top-color: var(--blue);
}
.page-philosophy .philo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 56px -28px rgba(28, 51, 80, 0.38);
}
.page-philosophy .philo-card .tag,
.page-philosophy .philo-card h3,
.page-philosophy .philo-card p {
  position: relative;
  z-index: 1;
}
.page-philosophy .philo-card .tag {
  color: #B99A28;
}
.page-philosophy .philo-card h3 {
  color: var(--blue-deeper);
}
.page-philosophy .philo-card p {
  color: var(--ink-soft);
}
.page-philosophy .philo-mark {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 190px;
  height: auto;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .page-philosophy .philo {
    padding: 64px 0 72px;
  }
  .page-philosophy .philo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-philosophy .philo-grid::before {
    display: none;
  }
  .page-philosophy .philo-card {
    padding: 40px 30px 36px;
  }
  .page-philosophy .philo-card:hover {
    transform: none;
  }
  .page-philosophy .philo-mark {
    width: 140px;
  }
}
/* =====================================================================
   FOOTER ILLUSTRATION BAND
   A full-width town illustration bridging the page content and the
   footer, used on every page. The PNGs are transparent above the
   rooftops, so a plain background-colour panel behind them (matching
   the site's near-white base tone) keeps the join looking the same
   whether the section above happens to be pure white (index.html) or
   the site's usual --base tint (every other page). Generous top
   padding keeps it from ever crowding the content above it.
   ===================================================================== */
.footer-illustration {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 20px;
}
.footer-illustration img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-illustration .fi-sp {
  display: none;
}

@media (max-width: 860px) {
  .footer-illustration {
    padding-top: 20px;
  }
  .footer-illustration .fi-pc {
    display: none;
  }
  .footer-illustration .fi-sp {
    display: block;
  }
}
.footer-illustration_top {
  background-color: var(--white);
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 20px;
}
.footer-illustration_top img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-illustration_top .fi-sp {
  display: none;
}

@media (max-width: 860px) {
  .footer-illustration_top {
    padding-top: 20px;
  }
  .footer-illustration_top .fi-pc {
    display: none;
  }
  .footer-illustration_top .fi-sp {
    display: block;
  }
}