/* ==================
   RESET & ROOT
================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --col-logo: 18%;
  --col-image: 52%;
  --col-text: 30%;
  --bg: #ffffff;
  --ink: #1a1a18;
  --accent: #999999;
  --line: rgba(26,26,24,0.12);
  --header-h: 100px;      /* ヘッダー高さ：ここを変えるだけで全体に反映 */
  --slide-h: calc(100dvh - var(--header-h)); /* dvh=ツールバー含む動的viewport */
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
}

/* ==================
   LAYOUT
================== */
.layout {
  display: grid;
  grid-template-columns: var(--col-logo) var(--col-image) var(--col-text);
  height: var(--slide-h);
  width: 100%;
}

/* ==================
   LEFT: STICKY LOGO
================== */
.col-logo {
  position: relative;
  height: var(--slide-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
  z-index: 10;
}

.logo-mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.logo-divider {
  width: 1px;
  height: 60px;
  background: var(--ink);
  margin: 0 auto 40px;
}

.logo-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  color: var(--ink);
  writing-mode: vertical-rl;
}

.scroll-progress {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  writing-mode: vertical-rl;
}

.progress-bar {
  width: 1px;
  height: 80px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  height: 0%;
  transition: height 0.4s ease;
}

.slide-counter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  writing-mode: vertical-rl;
  margin-top: 8px;
}

/* ==================
   MIDDLE: IMAGE SNAP
================== */
.col-images {
  height: var(--slide-h);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-right: 1px solid var(--line);
}

.col-images::-webkit-scrollbar {
  display: none;
}

.slide-image {
  height: var(--slide-h);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-image:hover img {
  transform: scale(1.03);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  color: rgba(26,26,24,0.08);
  user-select: none;
}

.slide-index-float {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  user-select: none;
}

/* 画像上オーバーレイリンク（PC: 左下）
   inner-slide.is-active 内に配置 → 1枚目のみ表示される */
.img-overlay-link,
.img-overlay-link:link,
.img-overlay-link:visited,
.img-overlay-link:hover,
.img-overlay-link:active,
.img-overlay-link:focus {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'Jost', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  z-index: 5;
  line-height: 1;
  transition: opacity 0.2s;
    opacity: 0.7;
}

.img-overlay-link:hover {
  opacity: 0.7;
}

/* ==================
   RIGHT: TEXT SNAP
================== */
.col-text {
  height: var(--slide-h);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.col-text::-webkit-scrollbar {
  display: none;
}

.slide-text {
  height: var(--slide-h);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px 56px; /* 下に余白を多めに */
  border-bottom: 1px solid var(--line);
  position: relative;
}

.slide-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
  background: var(--accent);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-text.active::before {
  height: 100%;
}

.text-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  letter-spacing: 0.4em;
  color: var(--ink);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease 0.1s;
}

.slide-text.active .text-num {
  opacity: 1;
  transform: translateY(0);
}

.text-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease 0.2s;
}

.slide-text.active .text-title {
  opacity: 1;
  transform: translateY(0);
}

.text-divider {
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin-bottom: 16px;
  opacity: 0;
  transition: all 0.5s ease 0.3s;
}

.slide-text.active .text-divider {
  opacity: 1;
}

.text-body {
  font-size: 1.3rem;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--ink);
  max-width: 400px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease 0.35s;
}

.slide-text.active .text-body {
  opacity: 1;
  transform: translateY(0);
}

/* PC: テキスト内リンクの全状態をink色に統一 */
.text-body a,
.text-body a:link,
.text-body a:visited,
.text-body a:hover,
.text-body a:active,
.text-body a:focus,
.text-body span a,
.text-body span a:link,
.text-body span a:visited,
.text-body span a:hover,
.text-body span a:active,
.text-body span a:focus {
  color: var(--ink);
  text-decoration: none;
}

.text-season {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(26,26,24,0.25);
}

/* ==================
   INNER SLIDER (2枚フェード)
================== */
.inner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.inner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s linear; /* Slickの cssEase: 'linear' と同等 */
  pointer-events: none;
}

.inner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.inner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ドット */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26,26,24,0.2);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}

.slider-dot.is-active {
  background: rgba(26,26,24,0.7);
}

/* ==================
   FIRST SLIDE HERO
================== */
.slide-image.hero {
  background: var(--bg);
  overflow: hidden;
}

/* 2枚横並びヒーロー */
.hero-dual {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0;
}

.hero-dual-img {
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.hero-dual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 中央の余白 */
.hero-dual-gap {
  flex: 0 0 0;
  background: var(--bg);
}

.hero-content {
  text-align: center;
  color: var(--bg);
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  color: rgba(245,243,239,0.5);
  text-transform: uppercase;
}

.hero-bg-text {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 300;
  color: rgba(245,243,239,0.03);
  user-select: none;
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ==================
   SCROLL HINT
================== */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.5s both;
  z-index: 5;
}

.scroll-hint span {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--ink);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: rgba(26,26,24,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  animation: slideDown 1.5s ease infinite;
}

/* Hero内のscroll-hint は白基調で上書き */
.slide-image.hero .scroll-hint {
  /* position は SP で上書きされるためここでは記述しない */
}

.slide-image.hero .scroll-hint span {
  color: rgba(255, 255, 255, 0.85);
}

.slide-image.hero .scroll-arrow {
  background: rgba(255, 255, 255, 0.25);
}

.slide-image.hero .scroll-arrow::after {
  background: rgba(255, 255, 255, 0.9);
}

@keyframes slideDown {
  to { top: 100%; }
}

/* SP専用要素はPCで非表示 */
.sp-slide-text {
  display: none;
}

.sp-title-overlay {
  display: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.block-header-top {
  display: none;
}

/* ==================
   PAGE FOOTER SECTION
================== */
.page-footer-section {
  width: 100%;
  background: var(--bg);
}

.footer-rule {
  border: none;
  margin: 0 auto;
  width: calc(100% - 80px);
  max-width: 900px;
}

.author-block {
  display: grid;
  grid-template-columns: 176px 1fr;
  grid-template-rows: auto auto;
  gap: 0 32px;
  padding: 20px 40px;
  max-width: 900px;
  margin: 10% auto;
  align-items: start;
}

/* PC: author-block-top（画像+名前/役職）は1列目に画像、2列目に名前/役職 */
.author-block-top {
  display: contents; /* gridの子として画像とauthor-infoを直接配置 */
}

.author-img {
  width: 176px;
  height: 176px;
  object-fit: cover;
  grid-column: 1;
  grid-row: 1 / 3; /* 画像は2行分にまたがって左側に配置 */
}

.author-info {
  padding-top: 8px;
  grid-column: 2;
  grid-row: 1;
}

.author-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 8px;
}

.author-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 24px;
}

.author-bio {
  font-size: 1.1rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--ink);
  max-width: 520px;
  grid-column: 2;
  grid-row: 2;
}

.footer-cta {
  padding: 0 40px 56px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-cta-btn {
  display: block;
  width: 100%;
  padding: 28px 0;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

/* リンクの全状態をリセット（CMSのデフォルトスタイルを上書き） */
.footer-cta-btn,
.footer-cta-btn:link,
.footer-cta-btn:visited,
.footer-cta-btn:hover,
.footer-cta-btn:active,
.footer-cta-btn:focus {
  color: var(--ink);
  text-decoration: none;
}

.footer-cta-btn:hover {
  opacity: 0.7;
}

.mar_T100 {margin: 75px 0px 0px 0px;}

/* ==================
   SP LAYOUT (768px以下)
================== */
@media (max-width: 768px) {

  :root {
    --header-h: 100px;     /* CMSヘッダー高さ */
    --slide-h: calc(100dvh - var(--header-h));
    --sp-image-ratio: 65%; /* スライド内の画像エリア比率 */
    --sp-text-ratio: 35%;  /* スライド内のテキストエリア比率 */
  }

  /* レイアウトを縦1列に */
  .layout {
    display: block;
    height: auto;
    width: 100%;
  }

  /* タイトル帯（.col-logo）はSPでは非表示 */
  .col-logo {
    display: none;
  }

  /* ==================
     画像カラム
  ================== */
  .col-images {
    height: var(--slide-h);
    width: 100%;
    margin-top: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    border-right: none;
  }

  .slide-image {
    height: var(--slide-h);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    background: #fff;
    position: relative;
  }

  /* 画像エリア */
  .inner-slider {
    width: 100%;
    flex: 0 0 var(--sp-image-ratio);
    height: var(--sp-image-ratio);
    min-height: 0;
  }

  /* ヒーロースライド */
  .slide-image.hero {
    flex-direction: column;
    justify-content: flex-start;
    background: var(--bg);
    position: relative;
  }

  .slider-dots {
    display: none;
  }

  /* SP: hero-dual を縦並びに変更 */
  .hero-dual {
    flex: 0 0 var(--sp-image-ratio);
    height: var(--sp-image-ratio);
    flex-direction: column; /* 縦並び */
  }

  .hero-dual-img {
    flex: 1;
    height: auto;
    min-height: 0;
  }

  .hero-dual-gap {
    flex: 0 0 0; /* 縦の隙間 */
  }

  /* SP用トリミング位置（center top / center center / center 30% 等で調整） */
  .hero-dual-img--left img {
    object-position: center 45%;
  }

  .hero-dual-img--right img {
    object-position: center 30%;
  }

  .slide-image.hero .scroll-hint {
    position: absolute;
    bottom: calc(var(--sp-text-ratio) + 16px);
      display: none;
  }

  .slide-image img,
  .inner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-index-float {
    display: none;
  }

  /* SP: オーバーレイリンクを右下・テキストエリアの上に */
  .img-overlay-link,
  .img-overlay-link:link,
  .img-overlay-link:visited,
  .img-overlay-link:hover,
  .img-overlay-link:active,
  .img-overlay-link:focus {
    bottom: 3%;
    left: auto;
    right: 16px;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }

  /* テキストカラムを非表示 */
  .col-text {
    display: none;
  }

  /* ==================
     スライド上部オーバーレイタイトル
     画像の上に白テキストで固定表示
  ================== */
  .sp-title-overlay {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .sp-title-overlay.hidden {
    opacity: 0;
  }

  .sp-title-overlay .sp-title-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  }

  .sp-title-overlay .sp-title-line {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,0.6);
    flex-shrink: 0;
  }

  /* ==================
     SPスライド内テキストエリア（下部）
  ================== */
  /* テキストエリア：縦並びレイアウト */
  .sp-slide-text {
    width: 100%;
    flex: 0 0 var(--sp-text-ratio);
    height: var(--sp-text-ratio);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px 20px 20px;
    gap: 6px;
    border-top: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* ヒーロースライドのSPテキストは絶対配置でスライド下部に固定 */
  .sp-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--sp-text-ratio);
  }

  /* 上段：番号＋タイトルを横並び */
  .sp-slide-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
  }

  .sp-slide-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--ink);
    white-space: nowrap;
  }

  .sp-slide-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.1em;
    color: var(--ink);
  }

  /* 下段：本文テキスト */
  .sp-slide-right {
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
      margin-top: 2%;
  }

  .sp-slide-links {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: var(--ink);
    opacity: 0.6;
      margin-top: 5%;
  }

  /* SP: リンクの全状態をink色に統一 */
  .sp-slide-links a,
  .sp-slide-links a:link,
  .sp-slide-links a:visited,
  .sp-slide-links a:hover,
  .sp-slide-links a:active,
  .sp-slide-links a:focus {
    color: var(--ink);
    text-decoration: none;
  }

  /* ==================
     フッターセクション
  ================== */
  .author-block {
    display: flex;
    flex-direction: column;
    /*margin: 100px auto 50px auto; */
    gap: 16px;
  }

  /* SP: author-block-top を横並びに（画像＋名前・役職） */
  .author-block-top {
    display: flex !important; /* PC の display:contents を上書き */
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .author-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    grid-column: unset;
    grid-row: unset;
  }

  .author-info {
    padding-top: 4px;
    grid-column: unset;
    grid-row: unset;
  }

  .author-name {
    font-size: 2rem;
  }

  .author-role {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .author-bio {
    width: 100%;
    font-size: 1.2rem;
    grid-column: unset;
    grid-row: unset;
  }

  .footer-cta {
    padding: 0 20px 40px;
  }

  .footer-rule {
    width: calc(100% - 40px);
  }

  .scroll-progress {
    display: none;
  }
    
#header_top {
  padding: 0;
  margin: 0;
}
    
footer {
 background: #062A43;
    }

}