/**************************************************
 * Foundation
 **************************************************/

html {
  /* 1rem = 10px ベース */
  font-size: 62.5%;
}

body.is-menu-open {
  overflow: hidden;
}

:root {
  /* Colors */
  --color-text-main: #093725;
  --color-bg-base: #ffffff;
  --color-bg-soft: #DBECD0;
  --color-accent-deep: #003b2e;
  --color-brand-deep: #1E4638;
  --hero-overlay-start: rgba(2, 32, 19, 0.1);
  --hero-overlay-end: rgba(1, 26, 37, 0.65);
  --layout-max-width: 112rem;
  --layout-side-padding: clamp(1.6rem, 4.8vw, 4rem);

  /* Typography */
  --font-ja-base: "BIZ UDPMincho", "Hiragino Mincho ProN",
    "Yu Mincho", "游明朝", serif;
  --font-en-script: "Playfair Display", serif;
  --font-en-display: "Playfair Display", serif;

  /* Font sizes (rem) */
  --fs-body: 1.6rem;       /* 16px：本文 */
  --fs-small: 1.4rem;      /* 14px：補足・日付など */
  --fs-button: 1.5rem;     /* 15px：ボタン */
  --fs-title-ja: 2.4rem;   /* 24px：日本語タイトル */
  --fs-title-en: 3.6rem;   /* 34px：英字タイトル */
}

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

body {
  margin: 0;
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  font-family: var(--font-ja-base);
  font-size: var(--fs-body);
  line-height: 1.8;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
}

/**************************************************
 * Layout
 **************************************************/

.l-section {
  padding: 6rem 0;
}

.l-section--soft {
  background-color: var(--color-bg-soft);
}

/**************************************************
 * Typography templates
 **************************************************/

.heading-en {
  font-family: var(--font-en-script);
  font-size: var(--fs-title-en);      /* PC時は 3.4rem */
  font-style: italic;
  letter-spacing: 0.05em;
}


.heading-ja {
  font-family: var(--font-ja-base);
  font-size: var(--fs-title-ja);
  font-weight: 600;
}

.text-body {
  font-size: var(--fs-body);
  line-height: 1.8;
}

.text-small {
  font-size: var(--fs-small);
  line-height: 1.8;
}

.text-button {
  font-size: var(--fs-button);
  font-weight: 500;
}

/**************************************************
 * Header
 **************************************************/

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  color: var(--color-brand-deep);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.site-header--prefade {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.site-header--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 2rem var(--layout-side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

.site-header__logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.site-header__nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-header__nav-link {
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--color-brand-deep);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.2rem;
}

.site-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.1rem;
  background-color: var(--color-brand-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after {
  transform: scaleX(1);
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  color: var(--color-brand-deep);
}

.site-header__drawer-sns {
  display: inline-flex;
  align-items: center;
}

.site-header__sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  border: 0.1rem solid rgba(16, 53, 42, 0.22);
  text-decoration: none;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.site-header__instagram:hover,
.site-header__instagram:focus-visible {
  opacity: 0.72;
  border-color: rgba(16, 53, 42, 0.4);
}

.site-header__sns-icon {
  width: 2.2rem;
  height: 2.2rem;
}
/* PCでは非表示 */
.site-header__burger {
  display: none;
}

/**************************************************
 * Hero (Home)
 **************************************************/

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 56rem;
  overflow: hidden;
  color: #ffffff;
  background: #4EA1F4;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.38), transparent 32%),
    rgba(78, 161, 244, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease, background 0.8s ease;
}

.hero__sky,
.hero__building {
  position: absolute;
  inset: 0;
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.95s ease, filter 0.95s ease, transform 0.95s ease;
}

.hero__sky {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.hero__cloud {
  position: absolute;
  inset: auto;
  z-index: 2;
  top: 13vh;
  left: 0;
  width: 200%;
  height: 34vh;
  min-height: 17.6rem;
  opacity: 0.66;
  mix-blend-mode: screen;
  animation: heroCloudDrift 25s linear infinite;
  will-change: transform;
  pointer-events: none;
  display: flex;
  filter: saturate(1.08) brightness(1.14);
  transition: opacity 0.95s ease;
}

.hero__cloud::after {
  content: "";
  flex: 0 0 50%;
  background: url("img/cloud.webp") center/cover no-repeat;
}

.hero__cloud--back {
  z-index: 1;
  top: 5vh;
  left: 22vw;
  width: 170%;
  height: 26vh;
  min-height: 14rem;
  filter: saturate(1.02) brightness(1.08);
  opacity: 0.42;
}

.hero__cloud--back img,
.hero__cloud--back::after {
  transform: scaleY(-1);
  transform-origin: center;
}

.hero__cloud img {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero__building {
  --hero-building-shift: 0px;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: translate3d(0, var(--hero-building-shift), 0);
  transform-origin: center bottom;
}

.hero__flare {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  mix-blend-mode: screen;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.12) translate3d(-2.5%, -2.5%, 0);
  transform-origin: left top;
  filter: brightness(1.55) contrast(1.24) saturate(1.12);
}

.hero__flare.is-active {
  visibility: visible;
  animation: heroFlareFade 2.8s ease-out forwards;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  text-align: center;
  padding: clamp(10rem, 12vw, 18rem) clamp(2rem, 6vw, 8rem);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__content--topleft {
  display: block;
  position: absolute;
  top: clamp(1.5rem, 3vh, 6.5rem);
  left: clamp(2rem, 6vw, 8rem);
  right: auto;
  bottom: auto;
  text-align: left;
  max-width: 60rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero__eyebrow {
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.hero__tagline {
  font-family: var(--font-en-script);
  font-size: clamp(1.6rem, 1.8vw, 2.05rem);
  font-weight: 100;
  font-style: normal;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #ffffff;
  opacity: 0.85;
  white-space: nowrap;
  transition: opacity 1s ease 0.6s;
}

.hero__tagline span {
  display: block;
}

@media (min-width: 769px) {
  .hero__tagline {
    text-align: center;
  }
}

/* 横長PC用：建物の見え方と文字位置を同時に調整 */
@media (min-width: 1400px) and (min-aspect-ratio: 16 / 9) {
  .hero__building {
    object-position: 42% bottom;
  }

  .hero__content--topleft {
    top: clamp(2.4rem, 4.2vh, 5.6rem);
    left: clamp(3.4rem, 4.2vw, 5.8rem);
    width: min(42rem, 28vw);
    max-width: 42rem;
  }

  .hero__eyebrow {
    letter-spacing: 0.12em;
  }

  .hero__tagline {
    text-align: left;
    line-height: 1.5;
  }
}

.hero__content--topleft .hero__eyebrow,
.hero__content--topleft .hero__tagline {
  font-family: "筑紫明朝N", "Tsukushi Mincho N", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", serif;
  font-weight: 300;
}

.hero__content--topleft .hero__tagline span {
  display: inline;
}

.hero__tagline .is-accent {
  display: inline;
  color: #7ecf8e;
  font-style: normal;
}

@media (max-width: 768px) {
  .hero__content--topleft {
    top: clamp(4.6rem, 6.8vh, 9.6rem);
    left: clamp(1.2rem, 3.6vw, 2.4rem);
  }

  .hero__eyebrow {
    margin-bottom: 0.8rem;
    white-space: normal;
  }

  .hero__tagline {
    white-space: normal;
    font-size: clamp(1rem, 3vw, 1.3rem);
    letter-spacing: 0.06em;
    text-align: center;
  }
}

.hero--bg-visible .hero__sky,
html.is-hero-intro-done .hero__sky,
body.is-hero-done .hero__sky,
.hero--bg-visible .hero__building,
html.is-hero-intro-done .hero__building,
body.is-hero-done .hero__building {
  opacity: 1;
  filter: brightness(1) contrast(1) saturate(1.2) blur(0);
  transform: translate3d(0, var(--hero-building-shift, 0px), 0) scale(1);
}

.hero--bg-visible .hero__cloud,
html.is-hero-intro-done .hero__cloud,
body.is-hero-done .hero__cloud {
  opacity: 0.66;
}

.hero--bg-visible .hero__cloud--back,
html.is-hero-intro-done .hero__cloud--back,
body.is-hero-done .hero__cloud--back {
  opacity: 0.42;
}

.hero--text-visible .hero__content,
body.is-hero-text-visible .hero__content,
html.is-hero-intro-done .hero__content,
body.is-hero-done .hero__content {
  opacity: 1;
  transform: translateY(0);
}

/* 削除候補: .hero--text-visible は現在 initHeroIntro() が未呼び出しのため発火経路なし。
   hero intro を再利用する可能性があるため、見た目維持のため残置。 */
.hero--text-visible .hero__content--topleft {
  opacity: 0;
  transform: translateY(6px);
}

.hero--bg-visible .hero__content--topleft,
body.is-hero-text-visible .hero__content--topleft,
html.is-hero-intro-done .hero__content--topleft,
body.is-hero-done .hero__content--topleft {
  opacity: 1;
  transform: translateY(0);
}

body:not(.is-hero-sky-visible):not(.is-hero-done) .hero__sky,
body:not(.is-hero-sky-visible):not(.is-hero-done) .hero__building {
  opacity: 0;
  filter: brightness(1.4) contrast(0.74) saturate(0.92) blur(10px);
  transform: translate3d(0, -5vh, 0) scale(1.05);
}

body:not(.is-hero-sky-visible):not(.is-hero-done) .hero__sky {
  opacity: 0.88;
  filter: brightness(1.32) contrast(0.82) saturate(0.94) blur(8px);
  transform: translate3d(0, -5vh, 0) scale(1.05);
}

body:not(.is-hero-sky-visible):not(.is-hero-done) .hero__building {
  opacity: 0;
}

body:not(.is-hero-sky-visible):not(.is-hero-done) .hero__cloud {
  opacity: 0;
}

body.is-hero-sky-visible:not(.is-hero-bg-clear) .hero__sky {
  opacity: 0.92;
  filter: brightness(1.28) contrast(0.82) saturate(0.96) blur(7px);
  transform: translate3d(0, -5vh, 0) scale(1.05);
  transition: opacity 1s ease, filter 1.25s ease, transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-hero-camera-drop:not(.is-hero-bg-clear) .hero__sky {
  opacity: 1;
  filter: brightness(1.16) contrast(0.9) saturate(1) blur(4px);
  transform: translate3d(0, 0, 0) scale(1.025);
}

body.is-hero-sky-visible:not(.is-hero-camera-drop):not(.is-hero-done) .hero__building {
  opacity: 0;
  filter: brightness(1.42) contrast(0.72) saturate(0.9) blur(12px);
  transform: translate3d(0, 48px, 0) scale(1.035);
  transition: opacity 0.95s ease, filter 1.15s ease, transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-hero-camera-drop:not(.is-hero-clarifying):not(.is-hero-done) .hero__building {
  opacity: 0.14;
  filter: brightness(1.48) contrast(0.76) saturate(0.9) blur(12px);
  transform: translate3d(0, 48px, 0) scale(1.04);
  transition: opacity 1.05s ease, filter 1.3s ease, transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-hero-clarifying:not(.is-hero-bg-clear) .hero__sky {
  opacity: 1;
  filter: brightness(1.08) contrast(0.94) saturate(1.02) blur(2px);
  transform: translate3d(0, 0, 0) scale(1.012);
  transition: opacity 1.25s ease, filter 1.5s ease, transform 1.5s ease;
}

body.is-hero-clarifying:not(.is-hero-bg-clear) .hero__building {
  opacity: 0.82;
  filter: brightness(1.18) contrast(0.92) saturate(1.02) blur(4px);
  transform: translate3d(0, 8px, 0) scale(1.01);
  transition: opacity 1.25s ease, filter 1.5s ease, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-hero-bg-clear .hero__sky,
body.is-hero-bg-clear .hero__building {
  opacity: 1;
  filter: brightness(1) contrast(1) saturate(1) blur(0);
  transform: translate3d(0, var(--hero-building-shift, 0px), 0) scale(1);
  transition: opacity 0.85s ease, filter 1s ease, transform 1s ease;
}

body.is-hero-bg-clear .hero__building {
  filter: brightness(1) contrast(1) saturate(1.0) blur(0);
}

body.is-hero-sky-visible:not(.is-hero-bg-clear) .hero__cloud {
  opacity: 0.18;
  filter: saturate(0.95) brightness(1.24) blur(7px);
}

body.is-hero-camera-drop:not(.is-hero-bg-clear) .hero__cloud {
  opacity: 0.36;
  filter: saturate(1) brightness(1.18) blur(5px);
}

body.is-hero-clarifying .hero__cloud,
body.is-hero-bg-clear .hero__cloud {
  filter: saturate(1.08) brightness(1.14) blur(0);
  transition: opacity 1.35s ease, filter 1.55s ease;
}

body.is-hero-sky-visible:not(.is-hero-bg-clear) .hero::after {
  opacity: 1;
}

.hero.hero--flare-active::after {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.56), transparent 24%),
    linear-gradient(135deg, rgba(8, 28, 48, 0.14), rgba(78, 161, 244, 0.08) 48%, rgba(8, 28, 48, 0.08));
  opacity: 1;
}

body.is-hero-bg-clear .hero::after,
html.is-hero-intro-done .hero::after,
body.is-hero-done .hero::after {
  opacity: 0;
}

body.is-hero-done .hero__sky,
body.is-hero-done .hero__building {
  opacity: 1;
  filter: brightness(1) contrast(1) saturate(1) blur(0);
  transform: scale(1);
  transition: none;
}

body.is-hero-done .hero__building {
  filter: brightness(1) contrast(1) saturate(1.2) blur(0);
}

/* PC Hero text: 高さ700px以上は左建物上の空白中央に配置 */
@media (min-width: 769px) and (min-height: 700px) {
  .hero__content--topleft {
    padding: 0;
    top: clamp(90px, calc((100vh - 600px) / 2), 220px);
    left: clamp(80px, 13vw, 240px);
    width: min(60rem, 44vw);
    max-width: 60rem;
    text-align: left;
    transform: translateY(0);
  }

  .hero__eyebrow {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
  }

  .hero__tagline {
    font-size: clamp(1.6rem, 1.8vw, 2.05rem);
    line-height: 1.6;
    text-align: left;
  }
}

/* PC Hero text: 高さ700px未満でのみ退避フェーズに入る */
@media (min-width: 769px) and (max-height: 699px) {
  .hero__content--topleft {
    padding: 0;
    top: 34vh;
    left: clamp(380px, 36vw, 620px);
    width: min(46rem, 28vw);
    max-width: min(46rem, 28vw);
    text-align: center;
    transform: translateX(-50%);
    transform-origin: top center;
  }

  .hero__eyebrow {
    font-size: clamp(1rem, 1.08vw, 1.35rem);
    letter-spacing: 0.08em;
  }

  .hero__tagline {
    font-size: clamp(0.78rem, 0.88vw, 1rem);
    line-height: 1.34;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-height: 560px) {
  .hero__content--topleft {
    top: 30vh;
    left: clamp(380px, 38vw, 620px);
    width: min(46rem, 30vw);
    max-width: min(46rem, 30vw);
    transform: translateX(-50%);
  }

  .hero__eyebrow {
    font-size: clamp(0.95rem, 1.1vw, 1.3rem);
    letter-spacing: 0.08em;
  }

  .hero__tagline {
    font-size: clamp(0.75rem, 0.9vw, 1rem);
  }
}

@keyframes heroCloudDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes heroFlareFade {
  0% {
    opacity: 0;
  }

  14% {
    opacity: 0.95;
  }

  58% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes heroFlareFadeMobile {
  0% {
    opacity: 0;
  }

  14% {
    opacity: 0.84;
  }

  58% {
    opacity: 0.68;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/**************************************************
 * Copy section 
 **************************************************/
.copy {
  background-color: var(--color-bg-soft);
  padding: 7.2rem 0 8.8rem;
  position: relative;
  overflow: clip;
  --breeze-speed: 1;

  /* 波の周期（px）＝ここが“綺麗な周期”の本丸 */
  --wave-a: 520px;
  --wave-b: 460px;

  /* 波の高さ感（見た目の“うねり”） */
  --wave-height: 70%;
  --wave-top: 15%;
}

.copy__inner {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
  text-align: left;
  position: relative;
  z-index: 1;
}

/* 削除候補: 現在のHTMLでは .copy__lead の使用なし。旧Copy見出し用として残置。 */
.copy__lead {
  font-family: var(--font-en-script);
  font-size: 3.2rem;
  color: var(--color-text-main);
  margin: 0 0 4rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.copy__panel {
  position: relative;
  padding: 5.2rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(4rem, 7vw, 7.6rem);
  align-items: center;
  text-align: left;
}

.copy__panel::before {
  content: none;
}

.copy__panel > * {
  position: relative;
  z-index: 1;
}

/* ===== スマホだけ改行するスイッチ ===== */
.br { display: none; }
@media (max-width: 768px){ .br { display: inline; } }

/* 削除候補: 現在のHTMLでは .sp-only の使用なし。将来のSP専用表示用として残置。 */
.sp-only { display: none; }
@media (max-width: 768px){ .sp-only { display: block; } }

.copy__title {
  margin: 0;
  color: var(--color-text-main);
  font-family: var(--font-ja-base);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 2.8vw, 2rem);
  text-wrap: balance;
}

.copy__text {
  margin: 0;
  max-width: 38ch;
  line-height: 2;
  letter-spacing: 0.02em;
  font-size: 1.6rem;
}

@media (max-width: 768px){
  .copy__panel{
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: left;
    padding: 3.2rem 0;
  }

  .copy__title{
    font-size: clamp(2.3rem, 7vw, 3rem);
    line-height: 1.55;
  }

  .copy__text{
    max-width: 100%;
    line-height: 1.9;
  }
}

/* キャッチコピー背景の波アニメーションは無効化 */
.copy::before,
.copy::after {
  content: none;
}

.copy__title.is-split {
  font-kerning: normal;
}

.copy__title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1s ease-out calc(var(--char-index) * 0.05s),
    transform 1s ease-out calc(var(--char-index) * 0.05s);
  vertical-align: baseline;
  will-change: opacity, transform;
}

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

.copy__text--left { text-align: left; }

.copy__text .copy__quote {
  display: block;
  margin: 0 0 1.2rem;
}

.copy__text .copy__quote:last-of-type {
  margin-bottom: 2.4rem;
}

.copy__text .copy__note {
  display: block;
}

/* 削除候補: 現在のHTMLでは .copy__text--tsukushi の使用なし。旧Copy表現の復元余地として残置。 */
.copy__text--tsukushi {
  font-family: "Tsukushi Mincho", "筑紫明朝", var(--font-ja-base);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* 削除候補: 現在のHTMLでは .br--always の使用なし。既存の改行制御用として残置。 */
.br--always { display: block; height: 0; }

/* =========================
   Loading
========================= */
#loading {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: #4EA1F4;
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease,
    background-color 1.1s ease,
    backdrop-filter 1.1s ease;
  pointer-events: auto;
}

#loading.is-revealing {
  background-color: rgba(78, 161, 244, 0.46);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

#loading.is-final-fade {
  opacity: 0;
}

#loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 中央コンテンツ */
.loading__inner {
  text-align: center;
  transition: opacity 0.6s ease;
}

#loading.is-text-hidden .loading__inner {
  opacity: 0;
}

/* 事務所名 */
.loading__text {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #2f3a33; /* 濃すぎない */
}

/* ドット */
.loading__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.loading__dots span {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #2f3a33;
  opacity: 0.22;
  animation: loadingDotPulse 1.8s ease-in-out infinite;
}

/* 遅延 */
.loading__dots span:nth-child(2) {
  animation-delay: 0.24s;
}
.loading__dots span:nth-child(3) {
  animation-delay: 0.48s;
}

/* アニメーション */
@keyframes loadingDotPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: translateY(0);
  }

  35% {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  55% {
    opacity: 0.45;
    transform: translateY(0);
  }
}

@media (min-width: 769px) {
  .copy {
    padding: 15rem 0 1rem;
  }

  .copy__inner {
    max-width: 110rem;
    padding: 0 clamp(4rem, 8vw, 10rem);
    text-align: left;
  }

  .copy__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3.6rem, 7vw, 7.2rem);
    align-items: center;
    padding: 4.8rem 0;
  }

  .copy__panel::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4rem;
    bottom: 4rem;
    width: 1px;
    background: rgba(15, 74, 54, 0.18);
    transform: translateX(-50%);
  }

  .copy__title {
    margin: 0;
    font-size: clamp(2.8rem, 2.8vw, 3rem);
  }

  .copy__text {
    max-width: 40ch;
    font-size: 1.6rem;
    line-height: 2;
  }

  .copy__text .copy__quote {
    font-size: 1.25em;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
}



/**************************************************
 * Note section
 **************************************************/

.note {
  background-color: #fff; /* 薄い背景（しんゆり会計専用） */
  padding: 6rem 0 0;
  position: relative;
}

.note__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 4rem var(--layout-side-padding) 4.8rem;
}

.note__header {
  margin-bottom: 2.8rem;
}

.note__title-row {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  width: fit-content;
}

.note__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-en-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.note__leaf {
  width: clamp(3.6rem, 5vw, 5.6rem);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  transform: rotate(5deg) translateY(-0.2rem);
  transform-origin: left center;
}

.note__lead {
  margin: 0;
  color: #2F3E37;
}

/* カード一覧（PC基本レイアウト：3列） */
.note__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.2rem;
  align-items: stretch;
}

/* タブレット：2列 */
@media (max-width: 1024px) and (min-width: 769px) {
  .note__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマホ：1列 */
@media (max-width: 768px) {
  .note__list {
    grid-template-columns: 1fr;
  }

  .note__list > article.note-card:nth-of-type(n+4) {
    display: none;
  }

  .note-card.note-card--more {
    min-height: 14rem;
    padding-block: 2rem;
  }
}

/* もっと見るボタンカード */
.note-card.note-card--more {
  background: #ffffff;
  border: 1px solid #E4ECE3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  min-height: 20rem;
  color: #1E4638;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.note-card.note-card--more:hover {
  background: #f4faf5;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(9, 55, 37, 0.08),
    0 4px 12px rgba(9, 55, 37, 0.04);
}

.note-card__more-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #1E4638;
}

.note-card__more-text {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.note-card__more-arrow {
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.note-card.note-card--more:hover .note-card__more-arrow {
  transform: translateX(4px);
}

/* NOTEカード本体 */
.note-card {
  background: #ffffff;
  border-radius: 2rem;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid #E4ECE3;
  padding: 2.8rem 2.4rem 2.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.note-card__link {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* カード上部：日付タグ + NEWバッジ */
.note-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.4rem;
}

/* 日付タグ */
.note-card__date-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #E5EFE9;
  color: #1E4638;
  padding: 0.4rem 1rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
}

.note-card__date-icon {
  font-size: 1.3rem;
}

/* NEWバッジ（基本は非表示。--new が付いたときだけ表示） */
.note-card__badge {
  display: none;
  padding: 0.2rem 0.8rem;
  font-size: 1rem;
  border-radius: 0.8rem;
  font-weight: 700;
}

.note-card__badge--new {
  display: inline-block;
  background:  #003b2e;
  color: #ffffff;
}

/* タイトル */
.note-card__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.5;
  color: #1E4638; /* 濃い緑（ブランドカラー） */
  font-family: "Noto Serif JP", var(--font-ja-base, system-ui);
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 2行まで */
  line-clamp: 2;              /* 標準プロパティ（互換性のため） */
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.note-card__title-link {
  text-decoration: none;
  display: inline-block;
}

/* リード文（説明文） */
.note-card__excerpt {
  margin: 0;
  font-size: 1.4rem;
  color: #2F3E37;
  line-height: 1.7;
  max-height: 3.4em; /* だいたい2行分 */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 続きを読むリンク */
.note-card__more {
  margin-top: auto;
  font-size: 1.3rem;
  color: #1E4638;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.note__archive {
  margin: 3.6rem 0 0;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0;
}

.note__archive-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 2.4rem;
  border-radius: 1.4rem;
  background: rgba(15, 74, 54, 0.92);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.6;
  min-height: 4.4rem;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.note__archive-link span {
  font-size: 1.4rem;
}

.note__archive-link:hover,
.note__archive-link:focus-visible {
  background: rgba(13, 60, 44, 0.98);
  transform: translateY(-1px);
  opacity: 0.92;
}

.note__archive-link:focus-visible {
  outline: 0.2rem solid rgba(15, 74, 54, 0.4);
  outline-offset: 0.2rem;
}

/* ホバー演出（PCメイン） */
.note-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

/* 下部の芝生（既存仕様） */
.note__grass {
  height: clamp(10rem, 12vw, 18rem);
  background-color: var(--color-bg-soft);
  background-image: url("img/kusa1.webp");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.note__grass::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: clamp(4rem, 8vw, 8rem);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #E6F2E6 100%
  );
}


/**************************************************
 * Services section
 **************************************************/

.services {
  position: relative;
  background-color: #E6F2E6;
  background-image:
    linear-gradient(rgba(230, 242, 230, 0.78), rgba(230, 242, 230, 0.84)),
    url("img/serviceswallpaper.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  margin-top: -2px;
  padding: 2rem 0 4rem;
  overflow: visible;
  box-shadow:
    0 -2px 0 #E6F2E6,
    0 2px 0 #E6F2E6;
  --wave-h: clamp(90px, 12vw, 180px);
}

.services::before,
.services::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--wave-h);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.services::before {
  top: 0;
  transform: translateY(calc(var(--wave-h) * -1 + 2px));
  /*
   * 右肩上がりを強めたい場合:
   * - 先頭の M0,154 の y 値を大きくする（左をさらに下げる）
   * - 終端の 1440,48 の y 値を小さくする（右をさらに上げる）
   */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'><defs><linearGradient id='svTopG1' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23BEE4B9'/><stop offset='1' stop-color='%239ECF9A'/></linearGradient><linearGradient id='svTopG2' x1='0' y1='0.15' x2='1' y2='0.95'><stop offset='0' stop-color='%23CAEBC4'/><stop offset='1' stop-color='%23A6D3A0'/></linearGradient><linearGradient id='svTopG3' x1='0.15' y1='0.05' x2='0.95' y2='0.95'><stop offset='0' stop-color='%23D7F0D0'/><stop offset='1' stop-color='%239FCE99'/></linearGradient></defs><path d='M0,154 C210,218 470,198 700,132 C940,64 1160,24 1440,48 L1440,220 L0,220 Z' fill='url(%23svTopG1)' opacity='0.55'/><path d='M0,170 C240,210 510,188 760,124 C1010,58 1230,34 1440,58 L1440,220 L0,220 Z' fill='url(%23svTopG2)' opacity='0.40'/><path d='M0,138 C220,198 500,176 740,114 C980,54 1210,18 1440,40 L1440,220 L0,220 Z' fill='url(%23svTopG3)' opacity='0.30'/><path d='M0,160 C220,226 500,204 742,132 C994,58 1220,24 1440,46 L1440,220 L0,220 Z' fill='%23E3EFE2'/><rect x='0' y='216' width='1440' height='4' fill='%23E3EFE2'/></svg>");
}

.services::after {
  bottom: 0;
  transform: translateY(calc(var(--wave-h) - 2px));
  /*
   * 右肩上がりを弱めたい場合:
   * - 先頭の M0,160 の y 値を小さくする（左を上げる）
   * - 終端の 1440,44 の y 値を大きくする（右を下げる）
   */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'><defs><linearGradient id='svBottomG1' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23C3E6BE'/><stop offset='1' stop-color='%23A3D39D'/></linearGradient><linearGradient id='svBottomG2' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23D4F0CF'/><stop offset='1' stop-color='%23A9D6A3'/></linearGradient><linearGradient id='svBottomG3' x1='0.05' y1='0.1' x2='0.95' y2='0.95'><stop offset='0' stop-color='%23BFE2BA'/><stop offset='1' stop-color='%239ED09A'/></linearGradient></defs><path d='M0,154 C210,214 470,194 702,128 C954,58 1172,20 1440,44 L1440,0 L0,0 Z' fill='url(%23svBottomG1)' opacity='0.55'/><path d='M0,170 C250,206 522,184 770,120 C1020,58 1240,30 1440,50 L1440,0 L0,0 Z' fill='url(%23svBottomG2)' opacity='0.40'/><path d='M0,136 C232,194 508,174 744,112 C984,50 1220,18 1440,40 L1440,0 L0,0 Z' fill='url(%23svBottomG3)' opacity='0.28'/><path d='M0,160 C228,226 504,202 744,128 C988,54 1220,22 1440,46 L1440,0 L0,0 Z' fill='%23E3EFE2'/><rect x='0' y='0' width='1440' height='4' fill='%23E3EFE2'/></svg>");
}

.services__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
  text-align: center;
  position: relative;
  z-index: 2;
}


.services__label {
  margin: 0 0 2.4rem;
  font-family: var(--font-en-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.services__lead {
  margin: 0 0 4.8rem;
}

/* ★ PC 基本：横並び3つ / 折り返し2つを中央揃え */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3.2rem;
  justify-content: center; /* ここで中央揃え */
}

.service-card {
  position: relative;
  flex: 0 0 28rem;
  width: 28rem;
  height: 30rem;
  max-width: 100%;
  border-radius: 2rem;
  color: inherit;
  cursor: pointer;
  perspective: 110rem;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.service-card:focus,
.service-card:focus-within,
.service-card.is-open,
.service-card[aria-expanded="true"] {
  z-index: 1;
}

.service-card:focus .service-card__front,
.service-card:focus-within .service-card__front,
.service-card.is-open .service-card__front,
.service-card[aria-expanded="true"] .service-card__front,
.service-card:focus .service-card__detail,
.service-card:focus-within .service-card__detail,
.service-card.is-open .service-card__detail,
.service-card[aria-expanded="true"] .service-card__detail {
  background-color: #fff;
  border-color: rgba(9, 55, 37, 0.16);
  box-shadow: 0 12px 26px rgba(9, 55, 37, 0.11);
}

.service-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(9, 55, 37, 0.18), 0 12px 26px rgba(9, 55, 37, 0.11);
}

.service-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.service-card:focus .service-card__inner,
.service-card:focus-within .service-card__inner,
.service-card.is-open .service-card__inner,
.service-card[aria-expanded="true"] .service-card__inner {
  transform: rotateY(180deg);
}

.service-card__front,
.service-card__detail {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 55, 37, 0.08);
  border-radius: 2rem;
  box-shadow: 0 6px 18px rgba(9, 55, 37, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3.2rem 2rem;
  transition: background-color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.service-card__detail {
  pointer-events: none;
  padding-bottom: 7.2rem;
  transform: rotateY(180deg);
}

.service-card:focus .service-card__detail,
.service-card:focus-within .service-card__detail,
.service-card.is-open .service-card__detail,
.service-card[aria-expanded="true"] .service-card__detail {
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    z-index: 1;
  }

  .service-card:hover .service-card__front,
  .service-card:hover .service-card__detail {
    background-color: #fff;
    border-color: rgba(9, 55, 37, 0.16);
    box-shadow: 0 12px 26px rgba(9, 55, 37, 0.11);
  }

  .service-card:hover .service-card__inner {
    transform: rotateY(180deg);
  }

  .service-card:hover .service-card__detail {
    pointer-events: auto;
  }
}

.service-card__icon {
  width: 6rem;
  margin: 0 0 2rem;
}

.service-card__title,
.service-card__detail-title {
  margin: 0;
  color: var(--color-brand-deep);
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.service-card__detail-title {
  margin-bottom: 1.5rem;
}

.service-card__text {
  margin: 1.2rem 0 0;
  font-size: 1.72rem;
  line-height: 1.5;
  color: rgba(9, 55, 37, 0.82);
}

.service-card__title::after,
.service-card__detail-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60%;
  height: 0.2rem;
  background: rgba(15, 74, 54, 0.38);
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

.service-card__price-list {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.service-card__price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.5;
}

.service-card__price-list li span {
  color: rgba(9, 55, 37, 0.78);
  min-width: 0;
  text-align: left;
}

.service-card__price-list li strong {
  color: var(--color-brand-deep);
  flex: 0 1 auto;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.45;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
}

.service-card__price-list-item--stack {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.service-card__price-list-item--stack span,
.service-card__price-list-item--stack strong {
  text-align: center;
}

.service-card__supplement {
  margin: -0.2rem 0 1.4rem;
  color: rgba(9, 55, 37, 0.72);
  font-size: 1.14rem;
  line-height: 1.65;
}

.service-card__link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.6rem;
  padding: 1.2rem 4.8rem;
  background: var(--color-brand-deep);
  border-radius: 0 0 2rem 2rem;
  box-shadow: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.service-card__link::after {
  content: "›";
  position: absolute;
  right: 2rem;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.service-card__link:hover {
  background: #1e4638;
  opacity: 0.92;
}

.service-card__link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 0.18rem rgba(255, 255, 255, 0.68);
}

/**************************************************
 * Past blog page
 **************************************************/

.pastblog-body {
  background: var(--color-bg-soft);
  color: var(--color-text-main);
}

.pastblog-skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pastblog-skip:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.8rem 1.6rem;
  margin: 1rem;
  background: #ffffff;
  border: 0.2rem solid #0f4a36;
  border-radius: 999px;
  z-index: 10;
}

.pastblog-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pastblog-header__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 1.6rem var(--layout-side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pastblog-header__logo {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-brand-deep);
  letter-spacing: 0.1em;
}

.pastblog-header__toplink {
  text-decoration: none;
  color: #0f4a36;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pastblog-main {
  padding-bottom: 6rem;
}

.pastblog-hero {
  background: linear-gradient(135deg, rgba(219, 236, 208, 0.8), rgba(255, 255, 255, 0.95));
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.pastblog-hero__inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
  text-align: center;
}

.pastblog-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.pastblog-hero__title {
  margin: 0 0 1.6rem;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
}

.pastblog-hero__lead {
  margin: 0 0 1.6rem;
  font-size: 1.8rem;
}

.pastblog-hero__text {
  margin: 0 auto 2.4rem;
  max-width: 60rem;
}

.pastblog-hero__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0 auto 2.4rem;
  max-width: 78rem;
}

.pastblog-hero__summary-item {
  display: grid;
  gap: 0.4rem;
  padding: 1.6rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 0.1rem solid rgba(15, 74, 54, 0.08);
  box-shadow: 0 1rem 2rem rgba(20, 35, 28, 0.06);
}

.pastblog-hero__summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0f4a36;
}

.pastblog-hero__summary-label {
  font-size: 1.3rem;
  color: #52645b;
}

.pastblog-yearnav {
  display: inline-flex;
  gap: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.6rem 1.2rem;
}

.pastblog-yearnav a {
  text-decoration: none;
  color: #0f4a36;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s ease;
}

.pastblog-yearnav a:hover,
.pastblog-yearnav a:focus-visible {
  background: rgba(15, 74, 54, 0.12);
}

.pastblog-archive {
  max-width: var(--layout-max-width);
  margin: clamp(3rem, 6vw, 6rem) auto 0;
  padding: 0 var(--layout-side-padding);
}

.pastblog-archive__head {
  margin-bottom: 2.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem;
}

.pastblog-archive__head h2 {
  margin: 0;
  font-size: 2.4rem;
}

.pastblog-archive__meta {
  margin: 0.4rem 0 0;
  color: #5a6a60;
  font-size: 1.4rem;
}

.pastblog-archive__hint {
  margin: 0;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(15, 74, 54, 0.08);
  color: #0f4a36;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pastblog-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2.4rem;
}

.pastblog-article {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2.4rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.35, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.35, 1);
}

.pastblog-article:hover,
.pastblog-article:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 2rem 3.6rem rgba(0, 0, 0, 0.08);
}

.pastblog-article__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  background: rgba(15, 74, 54, 0.12);
  color: #0f4a36;
  font-size: 1.2rem;
  font-weight: 600;
  width: fit-content;
}

.pastblog-article__date {
  margin: 0;
  color: #5a6a60;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.pastblog-article__title {
  margin: 0;
  font-size: 1.9rem;
  line-break: strict;
  word-break: break-word;
  text-wrap: balance;
}

.pastblog-article__excerpt {
  margin: 0;
  color: #405048;
  line-height: 1.7;
  line-break: strict;
  word-break: break-word;
  text-wrap: pretty;
}

.pastblog-article__body {
  display: grid;
  gap: 1rem;
  color: #405048;
  line-height: 1.9;
  font-size: 1.5rem;
  line-break: strict;
  word-break: break-word;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.pastblog-article__body p {
  margin: 0;
  letter-spacing: 0.01em;
}

.pastblog-article__body--interview {
  gap: 1.2rem;
}

.pastblog-article__body--interview p {
  padding-left: 0.4rem;
  border-left: 0.2rem solid rgba(15, 74, 54, 0.14);
}

.pastblog-article__body--interview p.pastblog-qa-label,
.pastblog-article__body--interview p.pastblog-section-title {
  padding-left: 0;
  border-left: none;
  font-weight: 700;
  color: #1f322b;
}

.pastblog-article__body--interview .pastblog-divider {
  margin: 0.4rem 0;
  border: 0;
  border-top: 0.1rem dashed rgba(15, 74, 54, 0.28);
}

.pastblog-article__link {
  margin-top: auto;
  text-decoration: none;
  color: #0f4a36;
  font-weight: 600;
  letter-spacing: 0.08em;
  align-self: flex-start;
  position: relative;
}

.pastblog-article__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 0.1rem;
  background: rgba(15, 74, 54, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.pastblog-article__link:hover::after,
.pastblog-article__link:focus-visible::after {
  transform: scaleX(1);
}

.pastblog-articles--horizontal {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 74, 54, 0.28) transparent;
}

.pastblog-articles--horizontal::-webkit-scrollbar {
  height: 0.6rem;
}

.pastblog-articles--horizontal::-webkit-scrollbar-thumb {
  background: rgba(15, 74, 54, 0.24);
  border-radius: 999px;
}

.pastblog-articles--horizontal .pastblog-article {
  flex: 0 0 clamp(24rem, 28vw, 31rem);
  margin: 0;
  padding: 0;
  min-height: 24.8rem;
  max-height: 24.8rem;
  border-radius: 1.8rem;
  border: 0.1rem solid rgba(15, 74, 54, 0.08);
  background: #ffffff;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  overflow: hidden;
}

.pastblog-articles--horizontal .pastblog-article:hover,
.pastblog-articles--horizontal .pastblog-article:focus-within {
  transform: none;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.05);
}

.pastblog-article--thumbnail .pastblog-article__trigger {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.pastblog-article--thumbnail .pastblog-article__trigger:hover,
.pastblog-article--thumbnail .pastblog-article__trigger:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 1.6rem 2.6rem rgba(0, 0, 0, 0.08);
}

.pastblog-article--thumbnail .pastblog-article__trigger:focus-visible {
  outline: 0.2rem solid rgba(15, 74, 54, 0.35);
  outline-offset: -0.2rem;
}

.pastblog-article--thumbnail .pastblog-article__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5.6rem;
  font-size: 1.8rem;
}

.pastblog-article--thumbnail .pastblog-article__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #405048;
  line-height: 1.7;
  min-height: 7.2rem;
}

.pastblog-article__more {
  margin-top: auto;
  color: #0f4a36;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.is-modal-open {
  overflow: hidden;
}

.pastblog-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1200;
}

.pastblog-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pastblog-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.pastblog-modal__dialog {
  position: relative;
  width: min(72rem, 100%);
  max-height: min(84vh, 78rem);
  overflow-y: auto;
  background: #fdfdfb;
  border-radius: 1.8rem;
  border: 0.1rem solid rgba(15, 74, 54, 0.14);
  box-shadow: 0 2.2rem 4rem rgba(20, 35, 28, 0.18);
  padding: clamp(2.4rem, 4vw, 3.2rem);
}

.pastblog-modal__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 74, 54, 0.08);
  color: #0f4a36;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.pastblog-modal__date {
  margin: 0 0 0.4rem;
  color: #5a6a60;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.pastblog-modal__title {
  margin: 0;
  padding-right: 3.8rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.45;
}

.pastblog-modal__body {
  margin-top: 1.6rem;
  color: #33433b;
  line-height: 1.85;
  display: grid;
  gap: 0.9rem;
}

.pastblog-modal__body p {
  margin: 0;
}

.pastblog-cta {
  max-width: 60rem;
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  text-align: center;
  padding: 3rem 2rem;
}

.pastblog-cta p {
  margin: 0 0 1.6rem;
  color: #405048;
}

.pastblog-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  border: 0.1rem solid rgba(15, 74, 54, 0.3);
  text-decoration: none;
  color: #0f4a36;
  font-weight: 600;
}

.pastblog-footer {
  text-align: center;
  padding: 2.4rem 1.6rem 3.6rem;
  color: #405048;
  font-size: 1.3rem;
}
/* ボタン（共通） */
.button-primary,
.about__button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  padding: 1.3rem 3.6rem;
  border-radius: 999px;
  background: #0f4a36;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow:
    0 12px 28px rgba(5, 24, 19, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.info .info__button-wrap {
  text-align: left;
}

.info .info__button-wrap .about__button {
  display: inline-flex;
  width: auto;
  max-width: max-content;
  margin: 0;
  padding-left: 3.6rem;
  padding-right: 3.6rem;
}

.button-primary::after,
.about__button::after {
  content: "＞";
  font-size: 1.3rem;
  transform: translateX(0);
  transition: transform 0.2s ease;
}


.button-primary:hover,
.about__button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 32px rgba(5, 24, 19, 0.28),
    0 6px 12px rgba(0, 0, 0, 0.14);
  background: #0d3c2c;
}

.button-primary:hover::after,
.about__button:hover::after {
  transform: translateX(0.4rem);
}

.button-primary:active,
.about__button:active {
  transform: translateY(0);
  box-shadow:
    0 10px 20px rgba(5, 24, 19, 0.24),
    0 3px 6px rgba(0, 0, 0, 0.12);
}

.button-primary:focus-visible,
.about__button:focus-visible {
  outline: none;
  box-shadow:
    0 18px 32px rgba(5, 24, 19, 0.28),
    0 0 0 0.2rem rgba(9, 55, 37, 0.4);
}

.button-primary {
  margin-top: 2rem;
}

/* 右下の銅像画像 */
.services__statue {
  position: absolute;
  right: clamp(1.6rem, 6vw, 8rem);
  bottom: 0;
  width: 20rem;
  pointer-events: none;
}

/**************************************************
 * Branch divider
 **************************************************/

.branch-divider {
  position: relative;
  height: 0;
  z-index: 3;
}

.branch-divider__image {
  position: absolute;
  left: 0;
  top: -30rem;
  width: clamp(14rem, 22vw, 34rem);
  height: auto;
  display: block;
  pointer-events: none;
}

/**************************************************
 * About section
 **************************************************/

.about {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(6rem, 10vw, 10rem) 0;
  z-index: 1;
  background-image:
    linear-gradient(
      to right,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.97) 30%,
      rgba(255, 255, 255, 0.92) 55%,
      rgba(255, 255, 255, 0.70) 75%,
      rgba(255, 255, 255, 0.45) 100%
    ),
    url("img/office.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.about__overlay {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
}

.about__inner {
  max-width: 70rem;
  padding: 4.8rem 4rem;
  position: relative;
  z-index: 6;
}

.about__label {
  margin: 0 0 2.4rem;
}

.about__intro {
  margin: 0 0 1.6rem;
  font-size: clamp(1.6rem, 1.4vw, 1.8rem);
  letter-spacing: 0.08em;
}

.about__message {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.about__message-line {
  width: 0.3rem;
  background-color: var(--color-text-main);
  border-radius: 0.2rem;
  flex-shrink: 0;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 68rem;
  text-align: left;
}

.about__values-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2rem;
}

.about__values-list li {
  margin: 0;
  position: relative;
  padding-left: 0;
  font-size: clamp(1.9rem, 2.1vw, 2.4rem);
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-break: strict;
}

.br-sp {
  display: none;
}

.br-pc {
  display: inline;
}

@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }

  .br-pc {
    display: none;
  }

  .about__values {
    max-width: 100%;
  }

  .about__values-list {
    gap: 1.6rem;
  }

  .about__values-list li {
    line-height: 1.8;
  }
}

.about__text {
  margin: 0 0 3.2rem;
  font-size: clamp(1.5rem, 1.4vw, 1.7rem);
  line-height: 2;
  letter-spacing: 0.04em;
}

/**************************************************
 * Info section
 **************************************************/

.info {
  background-color: #eff5ef;
  padding: 8rem 0 5rem;
}

.info__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
  display: grid;
  gap: 2.4rem;
  align-items: stretch;
}

.info__box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  padding: clamp(2.2rem, 3vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 246, 0.72)),
    radial-gradient(circle at 0% 0%, rgba(201, 219, 203, 0.18), transparent 40%);
  border: 0.1rem solid rgba(9, 55, 37, 0.06);
  border-radius: 2.4rem;
  box-shadow: 0 1.4rem 3.2rem rgba(9, 55, 37, 0.07);
  position: relative;
}

.info__profile-layout {
  display: grid;
  grid-template-columns: minmax(22rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2.4rem, 3.6vw, 4.2rem);
  align-items: center;
}

.info__portrait {
  position: relative;
  margin: 0;
  min-height: clamp(28rem, 30vw, 38rem);
  max-width: 36rem;
  border-radius: 1.8rem;
  overflow: hidden;
  background-color: rgba(233, 241, 232, 0.82);
  box-shadow: 0 1.2rem 2.8rem rgba(9, 55, 37, 0.1);
}

.info__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 55, 37, 0.04), rgba(9, 55, 37, 0.12)),
    linear-gradient(90deg, rgba(239, 245, 239, 0.1), transparent 34%);
  pointer-events: none;
}

.info__portrait-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  filter: brightness(0.9) saturate(0.92);
}

.info__profile-content {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.info__profile-heading {
  display: grid;
  gap: 0.8rem;
}

.info__title {
  margin: 0;
  color: var(--color-brand-deep);
}

.info__lead {
  width: fit-content;
  margin: 0;
  padding: 0.35rem 1rem;
  background-color: rgba(15, 74, 54, 0.08);
  border: 0.1rem solid rgba(15, 74, 54, 0.12);
  border-radius: 999px;
  color: var(--color-brand-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info__name {
  margin: 0;
  color: #123c2f;
  font-size: clamp(2.25rem, 2.35vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.info__meta {
  margin: 0;
  color: rgba(9, 55, 37, 0.78);
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-size: 1.4rem;
}

.info__summary {
  margin: 0;
  max-width: 62ch;
  color: rgba(9, 55, 37, 0.94);
  line-height: 1.9;
}

.info__cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.info__card {
  background-color: #ffffff;
  border: 0.1rem solid rgba(9, 55, 37, 0.08);
  border-radius: 1.6rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(9, 55, 37, 0.06);
  display: grid;
  gap: 1.2rem;
}

.info__card-title {
  margin: 0;
  color: var(--color-brand-deep);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.info__card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.info__card-list li {
  margin: 0;
  padding-left: 1.8rem;
  line-height: 1.75;
  color: rgba(9, 55, 37, 0.86);
  position: relative;
  font-size: 1.4rem;
}

.info__card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--color-brand-deep);
  font-size: 0.9rem;
  line-height: 1;
}

/**************************************************
 * Access section
 **************************************************/

.access {
  position: relative;
  min-height: 70vh;
  background-image:
    linear-gradient(rgba(6, 42, 31, 0.06), rgba(6, 42, 31, 0.12)),
    url("img/acsess.webp");
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  overflow: hidden;
}

.access::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(5, 48, 38, 0.82) 0%,
      rgba(5, 48, 38, 0.72) 22%,
      rgba(5, 48, 38, 0.48) 48%,
      rgba(5, 48, 38, 0.24) 72%,
      rgba(5, 48, 38, 0.12) 100%
    ),
    radial-gradient(circle at 18% 42%, rgba(0, 30, 23, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.08), rgba(5, 35, 28, 0.08));
  border-radius: 0;
  pointer-events: none;
}

.access__inner {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding:
    clamp(7rem, 9vw, 10rem)
    clamp(3rem, 8vw, 14rem)
    clamp(7rem, 9vw, 10rem)
    max(var(--layout-side-padding), calc((100vw - var(--layout-max-width)) / 2 + var(--layout-side-padding)));
}

.access__content {
  color: #fffaf0;
  width: min(68rem, 100%);
}

.access__title {
  margin: 0 0 clamp(2rem, 3vw, 3rem);
  color: #fffaf0;
  line-height: 1.35;
}

.access__text {
  display: grid;
  gap: 1.8rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
  font-family: var(--font-ja-base);
  font-size: clamp(1.55rem, 1.45vw, 1.72rem);
  letter-spacing: 0.04em;
  line-height: 2.05;
}

.access__text p {
  margin: 0;
}

.access__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
  min-height: 4.8rem;
  padding: 1.1rem 2.2rem;
  background: rgba(255, 250, 240, 0.94);
  border-radius: 999px;
  color: var(--color-brand-deep);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.access__button::after {
  content: "→";
  margin-left: 0.7rem;
  transition: transform 0.2s ease;
}

.access__button:hover,
.access__button:focus-visible {
  background: #fffdf6;
  transform: translateY(-1px);
}

.access__button:hover::after,
.access__button:focus-visible::after {
  transform: translateX(0.3rem);
}

/**************************************************
 * Contact
 **************************************************/

.contact-page-main {
  padding-top: clamp(9.6rem, 12vw, 13rem);
  background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 38%);
}

.contact-page-header {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.4rem, 4vw, 3.6rem);
}

.contact-page-header__inner,
.contact-form-section__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
}

.contact-page-header__title {
  margin: 0 0 1.6rem;
  font-size: clamp(3.2rem, 5vw, 4.2rem);
  color: var(--color-brand-deep);
}

.contact-page-header__intro {
  margin: 0;
  letter-spacing: 0.02em;
}

.contact-form-section {
  padding: 0 0 clamp(8rem, 12vw, 12rem);
}

.contact-form {
  max-width: 74rem;
  margin: 2.4rem auto 0;
  padding: clamp(2.4rem, 4.4vw, 4rem);
  border-radius: 2.4rem;
  background-color: rgba(255, 255, 255, 0.92);
  border: 0.1rem solid rgba(30, 70, 56, 0.14);
  box-shadow: 0 2rem 4rem rgba(10, 42, 32, 0.08);
}

.contact-form-section__lead {
  margin: 0;
}

.contact-form__group {
  margin-bottom: 2.2rem;
}

.contact-form__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-required {
  display: inline-block;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 70, 56, 0.12);
  color: var(--color-brand-deep);
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact-form__field {
  width: 100%;
  border: 0.1rem solid rgba(30, 70, 56, 0.28);
  border-radius: 1.2rem;
  background-color: #fff;
  padding: 1.2rem 1.4rem;
  font: inherit;
  line-height: 1.7;
  color: var(--color-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field--textarea {
  resize: vertical;
  min-height: 14rem;
}

.contact-form__field:focus-visible {
  outline: none;
  border-color: var(--color-brand-deep);
  box-shadow: 0 0 0 0.25rem rgba(30, 70, 56, 0.16);
}

.contact-form__error {
  min-height: 1.8rem;
  margin: 0.6rem 0 0;
  font-size: 1.2rem;
  color: #9b3636;
}

.contact-form__actions {
  padding-top: 1.2rem;
}

.contact-form__submit {
  border: none;
  cursor: pointer;
}

/**************************************************
 * Footer
 **************************************************/

.site-footer {
  background:
    linear-gradient(180deg, #f7faf6 0%, #eef6ef 100%);
  color: var(--color-brand-deep);
  padding: clamp(3.8rem, 5.6vw, 5.6rem) 0 clamp(2.4rem, 3.6vw, 3.6rem);
  text-align: center;
}

.site-footer__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-side-padding);
  display: grid;
  justify-items: center;
  gap: 1.8rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem clamp(2rem, 4vw, 4rem);
}

.site-footer__nav-link {
  color: rgba(9, 55, 37, 0.86);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
  color: var(--color-brand-deep);
  transform: translateY(-1px);
}

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

.site-footer__external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 4rem;
  padding: 0.9rem 1.8rem;
  border: 0.1rem solid rgba(9, 55, 37, 0.18);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.76);
  color: var(--color-brand-deep);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__external-link:hover,
.site-footer__external-link:focus-visible {
  background-color: #ffffff;
  border-color: rgba(9, 55, 37, 0.32);
  transform: translateY(-1px);
}

.site-footer__brand {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.site-footer__logo {
  width: clamp(8rem, 12vw, 11rem);
  height: auto;
  display: block;
}
.site-footer__credit {
  margin-top: 1.2rem;
  color: rgba(9, 55, 37, 0.54);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

/**************************************************
 * Floating contact CTA
 **************************************************/

.floating-contact-cta {
  position: fixed;
  right: max(2.4rem, calc(env(safe-area-inset-right) + 2.4rem));
  bottom: max(2.4rem, calc(env(safe-area-inset-bottom) + 2rem));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7vw;
  height: 7vw;
  max-width: calc(100vw - 3.2rem);
  background: transparent;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(0.8rem);
  transition:
    opacity 0.42s ease,
    transform 0.42s ease,
    filter 0.25s ease;
}

.floating-contact-cta__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.floating-contact-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-contact-cta:hover,
.floating-contact-cta:focus-visible {
  filter: drop-shadow(0 0.6rem 1.4rem rgba(9, 55, 37, 0.12));
}

.floating-contact-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(9, 55, 37, 0.16);
}

body.is-menu-open .floating-contact-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.8rem);
}

@media (max-width: 60rem) {
  .floating-contact-cta {
    right: max(1.4rem, calc(env(safe-area-inset-right) + 1.4rem));
    bottom: max(1.6rem, calc(env(safe-area-inset-bottom) + 1.2rem));
    width: 8.2rem;
    height: 8.2rem;
  }
}
/**************************************************
 * Responsive
 **************************************************/
@media (max-width: 60rem) { /* 600px以下：スマホ */

  .site-header {
    z-index: 1300;
  }

  /* ヘッダー縦並び */
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.6rem;
  }

  .site-header__logo {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
  }

  /* ハンバーガーボタン */
  .site-header__burger {
    position: relative;
    z-index: 1302;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--color-brand-deep);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header__burger:focus-visible {
    outline: 0.2rem solid rgba(14, 67, 50, 0.45);
    outline-offset: 0.2rem;
  }

  .site-header__burger span {
    position: absolute;
    width: 2.4rem;
    height: 0.2rem;
    background-color: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.28s ease, opacity 0.2s ease;
  }

  .site-header__burger span:nth-child(1) {
    transform: translateY(-0.72rem);
  }

  .site-header__burger span:nth-child(2) {
    transform: translateY(0);
  }

  .site-header__burger span:nth-child(3) {
    transform: translateY(0.72rem);
  }

  /* active状態（クロスになる） */
  .site-header__burger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }

  .site-header__burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(0) scaleX(0.65);
  }

  .site-header__burger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
  }

  /* ドロワーメニュー本体 */
  .site-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 33rem);
    height: 100dvh;
    padding: 10.8rem 2.4rem 4rem;
    background-color: #fbfdfb;
    box-shadow: -1.6rem 0 3.8rem rgba(11, 36, 24, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateX(102%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.22s ease, visibility 0.22s ease;
    z-index: 1301;
    overflow-y: auto;
  }

  .site-header__nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ナビのリスト縦並び */
  .site-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }

  .site-header__nav-link {
    display: inline-block;
    padding: 0.6rem 0;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.6;
  }

  .site-header__drawer-sns {
    width: 100%;
    margin-top: 3.2rem;
    padding-top: 2.4rem;
    justify-content: center;
    border-top: 0.1rem solid rgba(16, 53, 42, 0.14);
  }

  .site-header__drawer-sns .site-header__sns {
    width: 3.8rem;
    height: 3.8rem;
  }

  .site-header__drawer-sns .site-header__sns-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  /* オーバーレイ（背景暗くなる） */
  .site-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 35, 24, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1299;
  }

  .site-header__overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .contact-page-main {
    padding-top: 8.4rem;
  }

  .contact-page-header {
    padding-top: 3.2rem;
  }

  .contact-form {
    border-radius: 1.8rem;
    padding: 2.2rem 1.6rem;
  }

  .contact-form__group {
    margin-bottom: 2rem;
  }

  /* =========================
   * note：1列レイアウト（スマホ）
   * ======================= */

  .note__inner {
    padding: 3.2rem 1.6rem 4rem;
  }

  .note__list {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .note-card {
    padding: 2rem 1.6rem 2.8rem;
    border-radius: 1.6rem;
  }

  .note-card__title {
    font-size: 1.8rem;
  }

  .note-card__excerpt {
    font-size: 1.3rem;
  }

  .note-card__more {
    font-size: 1.2rem;
  }

  .note-card.note-card--more {
    min-height: 11rem;
    padding-block: 1.4rem;
  }

  .note__grass {
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    left: 0;
    transform: none;
  }
  .note__archive {
    justify-content: center;
    padding: 2.4rem 0 0;
  }

  .note__archive-link {
    width: 100%;
    line-height: 1.7;
    padding: 1.4rem 2.4rem;
  }

  /* services：料金が読みやすい1列カード */
  .services__grid {
    gap: 1.6rem;
  }

  .service-card {
    flex: 0 1 min(100%, 32rem);
    width: min(100%, 32rem);
    height: 23.2rem;
  }

  .service-card__front,
  .service-card__detail {
    padding: 1.55rem 1.5rem;
  }

  .service-card__detail {
    padding-top: 1.15rem;
    padding-bottom: 4.85rem;
  }

  .service-card__icon {
    width: 3.9rem;
    margin-bottom: 0.8rem;
  }

  .service-card__title,
  .service-card__detail-title {
    font-size: 1.95rem;
  }

  .service-card__text {
    font-size: 1.48rem;
    line-height: 1.45;
  }

  .service-card__detail-title {
    margin-bottom: 0.55rem;
  }

  .service-card__price-list {
    gap: 0.3rem;
    margin-bottom: 0;
  }

  .service-card__price-list li {
    font-size: 1.18rem;
    line-height: 1.36;
  }

  .service-card__price-list li strong {
    font-size: 1.18rem;
  }

  .service-card__supplement {
    margin-bottom: 0.15rem;
    font-size: 1.04rem;
    line-height: 1.5;
  }

  .service-card__link {
    min-height: 4.6rem;
    padding-block: 0.78rem;
  }

  /* 銅像のサイズ＆位置（右下寄せ） */
  .services__statue {
    width: 14rem;
    right: 0;
    bottom: -2rem;
  }

  .branch-divider {
    display: none;
  }

  .pastblog-header__inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .pastblog-hero__inner {
    text-align: left;
  }

  .pastblog-hero__summary {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pastblog-hero__summary-item {
    padding: 1.4rem;
  }

  .pastblog-yearnav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.8rem;
    gap: 0.8rem;
    scroll-snap-type: x proximity;
  }

  .pastblog-yearnav a {
    flex: 0 0 auto;
    min-width: 7.2rem;
    text-align: center;
    padding: 0.9rem 1.2rem;
    scroll-snap-align: start;
  }

  .pastblog-archive__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.6rem;
  }

  .pastblog-archive__hint {
    white-space: normal;
  }

  .pastblog-articles {
    grid-template-columns: 1fr;
  }

  .pastblog-article {
    padding: 2rem 1.6rem;
  }

  .pastblog-articles--horizontal {
    gap: 1.2rem;
    padding: 0 0.4rem 1rem;
    margin: 0 -0.4rem;
    scroll-padding-left: 0.4rem;
  }

  .pastblog-articles--horizontal .pastblog-article {
    flex-basis: min(88vw, 28rem);
    min-height: 22.8rem;
    max-height: none;
  }

  .pastblog-article--thumbnail .pastblog-article__trigger {
    padding: 1.8rem 1.6rem;
  }

  .pastblog-article--thumbnail .pastblog-article__title {
    min-height: auto;
    font-size: 1.7rem;
  }

  .pastblog-article--thumbnail .pastblog-article__excerpt {
    min-height: auto;
    -webkit-line-clamp: 4;
  }

  .pastblog-modal__dialog {
    max-height: 88vh;
    border-radius: 1.4rem;
  }

  .pastblog-cta {
    padding: 2.4rem 1.6rem;
  }

  /* About：スマホは背景画像＋白レイヤーで薄く表示 */
  .about {
    position: relative;
    height: auto;
    background-image: url("img/office.webp");  
    background-size: cover;
    background-position: left -90px center;
    background-repeat: no-repeat;
  }

  /* 背景写真を薄くするレイヤー（SP限定） */
  .about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
  }

  /* テキストはレイヤーより前面へ */
  .about__overlay,
  .about__inner {
    position: relative;
    z-index: 2;
  }

  .about__inner {
    width: 100%;
    max-width: none;
    padding: 3.2rem 2rem 4rem;
  }

  .about__intro {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
  }

  .about__message {
    gap: 1.2rem;
  }

  .about__values-list {
    gap: 0.8rem;
  }

  .about__values-list li {
    font-size: 1.8rem;
    line-height: 1.65;
  }

  .about__break {
    display: block;
  }

  .about__text {
    font-size: 1.5rem;
    line-height: 2.05;
  }

  /* Info：1カラム＋カード間余白 */
  .info__inner {
    grid-template-columns: 1fr;
    padding: 0;
    position: relative;
    z-index: 1;
  }

  .info {
    position: relative;
    padding-bottom: 4rem;
  }

  .info::after {
    content: none;
  }

  .info__box {
    padding: 0 var(--layout-side-padding);
    gap: 1.8rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 246, 0.9)),
      radial-gradient(circle at 50% 0%, rgba(201, 219, 203, 0.3), transparent 46%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .info__profile-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info__portrait {
    width: min(100%, 30rem);
    min-height: 30rem;
    max-height: 36rem;
    margin: 0 auto;
    border-radius: 1.8rem;
  }

  .info__portrait-image {
    object-position: center 18%;
  }

  .info__profile-content {
    gap: 1.6rem;
  }

  .info__name {
    font-size: clamp(2.25rem, 6vw, 2.8rem);
  }

  .info .info__button-wrap {
    text-align: center;
  }

  .info .info__button-wrap .about__button {
    margin: 0 auto;
  }

  .info__cards-grid {
    grid-template-columns: 1fr;
  }

  .info__card {
    padding: 1.6rem;
  }

  .access {
    min-height: 62rem;
    background-attachment: scroll;
  }

  .access::before {
    width: 100%;
    border-radius: 0;
    background:
      linear-gradient(
        180deg,
        rgba(5, 48, 38, 0.78) 0%,
        rgba(5, 48, 38, 0.7) 44%,
        rgba(5, 48, 38, 0.34) 72%,
        rgba(5, 48, 38, 0.16) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 48, 38, 0.52) 0%,
        rgba(5, 48, 38, 0.26) 56%,
        rgba(5, 48, 38, 0.12) 100%
      );
  }

  .access__inner {
    min-height: 62rem;
    padding: 5.6rem var(--layout-side-padding);
  }

  .access__title {
    margin-bottom: 1.6rem;
    font-size: 2.4rem;
  }

  .access__text {
    gap: 1.4rem;
    font-size: 1.5rem;
    line-height: 1.95;
  }

  .site-footer__inner {
    gap: 2rem;
  }

  .site-footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .site-footer__external {
    width: 100%;
  }

  /* ヒーロー調整 */
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
  }

  .hero__cloud {
    top: 2vh;
    left: -48vw;
    width: 250%;
    height: 70vh;
    min-height: 40rem;
    animation-duration: 40s;
  }

  .hero__cloud--back {
    top: 12vh;
    left: -1vw;
    width: 200%;
    height: 62vh;
    min-height: 35rem;
    animation-duration: 45s;
  }

  .hero__cloud img {
    object-fit: contain;
    object-position: center;
  }

  .hero__cloud::after {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero--bg-visible .hero__cloud,
  html.is-hero-intro-done .hero__cloud,
  body.is-hero-done .hero__cloud {
    opacity: 0.54;
  }

  .hero--bg-visible .hero__cloud--back,
  html.is-hero-intro-done .hero__cloud--back,
  body.is-hero-done .hero__cloud--back {
    opacity: 0.34;
  }

  .hero__content {
    padding: 10rem 1.6rem;
  }

  .hero__content--topleft {
    left: 50%;
    right: auto;
    width: calc(100vw - 3.2rem);
    max-width: calc(100vw - 3.2rem);
    text-align: center;
    transform: translateX(-50%);
  }

  .hero--bg-visible .hero__content--topleft,
  body.is-hero-text-visible .hero__content--topleft,
  html.is-hero-intro-done .hero__content--topleft,
  body.is-hero-done .hero__content--topleft {
    transform: translateX(-50%);
  }

  .hero__eyebrow {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
  }

  .hero__tagline {
    font-size: 1rem;
    line-height: 1.35;
  }

  .hero__flare.is-active {
    animation-name: heroFlareFadeMobile;
  }

  .hero__sky {
    object-position: center bottom;
  }

  .hero__building {
    top: auto;
    bottom: 0;
    object-position: center bottom;
  }

  .hero--bg-visible .hero__building,
  html.is-hero-intro-done .hero__building,
  body.is-hero-done .hero__building {
    --hero-building-scale: 1.01;
    --hero-building-shift: 0px;
  }

  /* Copy セクション（キャッチコピー） */
  .copy {
    padding: 5.6rem 0 6.4rem;
  }

  .copy__inner {
    padding: 0 1.6rem;
  }

  .copy__lead {
    font-size: 2.4rem;
    line-height: 1.4;
    margin-bottom: 2.8rem;
  }

  .copy__panel {
    padding: 3.2rem 0;
  }

  .copy__title {
    font-size: clamp(2.3rem, 7vw, 2.5rem);
    line-height: 1.55;
    margin: 0;
  }

  .copy__text {
    font-size: 1.5rem;
    line-height: 1.9;
  }

  .br {
    display: block;
    height: 0;
  }

  /* 英語タイトル共通（note / services / About など） */
  .heading-en {
    font-size: 2.4rem;
    line-height: 1.3;
  }

}


/**************************************************
 * Scroll reveal motion
 **************************************************/
.scroll-reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.note-card.scroll-reveal {
  transform: translateY(2.6rem) scale(0.985);
}

.note-card.scroll-reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero__sky,
  .hero__cloud,
  .hero__building,
  .hero__content,
  .copy__title-char {
    transition: none !important;
  }

  .hero__cloud {
    animation: none !important;
    transform: none !important;
  }

  .hero__flare {
    display: none !important;
  }

  .hero__building {
    --hero-building-shift: 0px !important;
  }

  .service-card,
  .service-card__icon,
  .service-card__title::after,
  .pastblog-article,
  .pastblog-article__link::after,
  .copy__title-char,
  .scroll-reveal {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

}
