:root {
  --bg: #f8f8f6;
  --text: #1f2b33;
  --subtext: #4f5f69;
  --line: #6e9bb3;
  --accent: #4d89a8;
  --card: rgba(255, 255, 255, 0.62);
  --max-width: 1180px;
  --transition: 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif JP", serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景の罫線 */
.page-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.line {
  position: absolute;
  background: var(--line);
  opacity: 0.85;
}

.line-top {
  top: 118px;
  left: 0;
  width: 100%;
  height: 1px;
}

.line-mid {
  top: 49vh;
  left: 0;
  width: 100%;
  height: 1px;
}

.line-bottom {
  bottom: 88px;
  left: 58%;
  width: 42%;
  height: 1px;
}

.line-right {
  top: 0;
  right: 84px;
  width: 1px;
  height: 100%;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 28px 32px 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-small {
  text-decoration: none;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

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

.nav a {
  text-decoration: none;
  color: var(--subtext);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 40px;
}

/* 線を少し弱める */
.line {
  opacity: 0.35;
}

/* 英字見出し・ロゴ */
.hero-lead,
.mark-en,
.mark-ja {
  display: inline;
  background: var(--bg);
  padding: 0 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* メイン見出し */
.hero h1 {
  display: inline-block;
  background: var(--bg);
  padding: 0.08em 0.18em;
  line-height: 1.55;
}

.hero-copy {
  padding-bottom: 10vh;
  max-width: 720px;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.45;
  font-weight: 500;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 36px;
  color: var(--subtext);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  color: var(--accent);
  background: transparent;
}

.hero-mark {
  display: flex;
  align-items: end;
  justify-content: end;
  min-height: 70vh;
}

.hero-mark-inner {
  text-align: center;
  color: var(--accent);
  transform: translateY(18vh);
}

.mark-en {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.05;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line);
}

.mark-cross {
  margin: 8px 0 4px;
  font-size: 1.6rem;
  line-height: 1;
}

.mark-ja {
  display: inline-block;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.15;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 32px;
}

.section-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.section-label {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  position: sticky;
  top: 120px;
}

.section-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 500;
  line-height: 1.5;
}

.section p {
  margin: 0 0 18px;
  color: var(--subtext);
  font-size: 1rem;
}

.cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid rgba(77, 137, 168, 0.35);
  background: var(--card);
  backdrop-filter: blur(6px);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
}

.card p {
  margin: 0;
}

.section-vision blockquote {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.9;
}

.contact-box {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(77, 137, 168, 0.35);
  max-width: 520px;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
}

.contact-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6a7780;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 32px 60px;
  color: #6a7780;
  font-size: 0.92rem;
}

/* アニメーション */
.fade-up,
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.fade-up.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

.delay-3 {
  transition-delay: 360ms;
}

/* レスポンシブ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-mark {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-mark-inner {
    transform: none;
    text-align: left;
    margin-top: 30px;
  }

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

  .section-label {
    position: static;
    margin-bottom: 4px;
  }

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

  .line-right {
    right: 32px;
  }

  .line-bottom {
    left: 40%;
    width: 60%;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 22px 20px 0;
  }

  .header-inner {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero,
  .section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero h1 {
    line-height: 1.6;
  }

  .mark-en,
  .mark-ja {
    font-size: 1.9rem;
  }

  .line-top {
    top: 100px;
  }

  .line-right {
    right: 20px;
  }
}