@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Old+Mincho:wght@500;600;700;900&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,900&display=swap');

:root {
  --blue: #3A6EA5;
  --paper: #FFFFFF;
  --ink: #1E1E1E;
  --gray: #8A8A8A;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── ロゴ ── */
.mark-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: 48px 48px 56px;
  position: relative;
  z-index: 2;
}

.mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  transition: opacity 400ms var(--ease-out);
}

.mark-word {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: var(--blue);
  white-space: nowrap;
}

.mark-tagline {
  font-family: 'Zen Old Mincho', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
}

.mark:hover {
  opacity: 0.7;
}

/* ── メタ情報行 ── */
.meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.meta-col p { margin: 0 0 2px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.nav-links a {
  position: relative;
  font-family: 'Zen Old Mincho', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease-spring);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── スクロール出現 ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}

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

/* ── トップのヒーロー写真 ── */
.hero-photo {
  position: relative;
  height: 62vh;
  min-height: 380px;
  max-height: 640px;
  margin: -40px 0 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

/* 上端をページ背景色へ溶かし、ヘッダーとの境界を消す */
.hero-photo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(255, 255, 255, 0.92) 14%, rgba(255, 255, 255, 0.5) 38%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 30, 30, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.hero-statement {
  position: relative;
  z-index: 1;
  padding: 0 48px 48px;
  max-width: 800px;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.hero-headline {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.45;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ── recruit：H1とページ内ジャンプ（本文と左端を揃える） ── */
.recruit-h1,
.recruit-jump {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.recruit-h1 {
  padding-top: 8px;
  padding-bottom: 12px;
}

.recruit-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E3E1DA;
}

.recruit-jump a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  transition: color 300ms var(--ease-out);
}

.recruit-jump a:hover {
  color: var(--blue);
}

@media (max-width: 640px) {
  .recruit-h1,
  .recruit-jump {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── メイン（2カラム：本文＋sticky写真） ── */
main.layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
  padding: 40px 48px 200px;
  max-width: 1440px;
  margin: 0 auto;
}

.content {
  min-width: 0;
}

.visual {
  position: sticky;
  top: 48px;
  height: 560px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border-radius: 8px;
  overflow: hidden;
}

.visual-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1000ms var(--ease-out);
}

.visual-layer.active {
  opacity: 1;
}

.block {
  margin-bottom: 140px;
}

.block-label {
  font-family: 'Zen Old Mincho', serif;
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  color: var(--blue);
  margin: 0 0 28px;
}

.block-note {
  font-size: 13px;
  color: var(--gray);
  margin: -12px 0 20px;
}

.statement,
.statement-placeholder {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 20px;
}

.lead {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.7;
}

/* ── 軌跡（カードグリッド） ── */
.chapters-section {
  max-width: 1440px;
  margin: 0 auto 140px;
  padding: 0 48px;
}

.chapter-group-label {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray);
  margin: 0 0 20px;
}

.chapter-group-label + .chapters {
  margin-bottom: 44px;
}

/* ── 私について：末尾のプロフィール箇条書き ── */
.about-facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #E3E1DA;
}

.about-facts li {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
}

/* ── 私について：顔写真（任意・確保枠） ── */
.about-portrait {
  margin: 0 0 28px;
  max-width: 320px;
  border-radius: 8px;
  overflow: hidden;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.chapter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.chapter-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}

.chapter-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 500ms var(--ease-spring);
}

.chapter:hover .chapter-thumb-img {
  transform: scale(1.03);
}

.chapter-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 17px;
  transition: color 300ms var(--ease-out);
}

.chapter:hover .chapter-title {
  color: var(--blue);
}

/* ── トップページ内リンクセクション ── */
.links-section {
  max-width: 1440px;
  margin: 0 auto 140px;
  padding: 0 48px;
}

.links-section .link-list {
  max-width: 640px;
  margin: 40px 0 0;
}

/* ── フッター（著作権表記） ── */
.site-footer {
  padding: 40px 48px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

/* ── Linksページ ── */
.links-hero {
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 48px;
}

.links-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

.link-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  transition: background 450ms var(--ease-out), transform 450ms var(--ease-spring);
}

.link-list a:hover {
  background: rgba(58, 110, 165, 0.06);
  transform: translateX(6px);
}

.link-icon {
  display: flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.link-icon svg {
  width: 100%;
  height: 100%;
}

.link-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-text {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  font-size: 19px;
  transition: color 300ms var(--ease-out);
}

.link-list a:hover .link-text {
  color: var(--blue);
}

.link-desc {
  font-size: 13px;
  color: var(--gray);
}

/* ── 特定商取引法テーブル ── */
.legal-main {
  max-width: 960px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 16px 12px;
  border-top: 1px solid #E3E1DA;
  vertical-align: top;
}

.legal-table th {
  width: 260px;
  white-space: nowrap;
  color: var(--gray);
  font-weight: 500;
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  main.layout {
    grid-template-columns: 1fr;
  }
  .visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .mark-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 28px;
    gap: 14px;
  }
  .mark-word {
    font-size: 32px;
  }
  .nav-links {
    gap: 14px 20px;
  }
  .nav-links a {
    font-size: 15px;
  }
  .links-hero {
    margin: 0 24px;
  }
  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
    white-space: normal;
    padding: 4px 0;
  }
  .legal-table th {
    border-top: 1px solid #E3E1DA;
    padding-top: 16px;
    color: var(--ink);
    font-weight: 700;
  }
  .legal-table td {
    border-top: none;
    padding-bottom: 8px;
  }
}
