/* ===========================
   CSS Variables
   =========================== */
:root {
  --bg:              #f0ede8;
  --header-bg:       #ffffff;
  --header-radius:   999px;
  --header-height:   68px;
  --header-margin-top:  16px;   /* 常に固定 — 変化しない */
  --container-w:        90vw;
  --container-max-w:    1568px;
  --header-pad-x:       20px;

  --border-default:  1px solid rgba(0, 0, 0, 0.08);
  /* shadow なし — border のみ（元サイト準拠） */

  --logo-w:    110px;
  --logo-h:     28px;
  --btn-ghost-w:  80px;
  --btn-fill-w:  136px;
  --btn-h:        40px;
  --nav-item-h:   20px;
  --nav-gap:      32px;
}

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

/* ===========================
   Body / Page
   =========================== */
body {
  background-color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-anchor: none;
}

/* ===========================
   Header — fixed ラッパー
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;

  transform: translateY(0);
  transition: transform 0.59s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-hidden {
  transform: translateY(-150%);
}

/* ===========================
   Header — 内側バー
   margin-top は固定値のみ（アニメーションなし）
   変化するのは box-shadow だけ
   =========================== */
.header-inner {
  background: var(--header-bg);
  border-radius: var(--header-radius);
  height: var(--header-height);
  padding: 0 var(--header-pad-x);
  width: var(--container-w);
  max-width: var(--container-max-w);
  margin: var(--header-margin-top) auto 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;

  border: var(--border-default);
  box-shadow: none;

}

/* ===========================
   ロゴ（空白プレースホルダー）
   =========================== */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.header-icon {
  width: var(--logo-w);
  height: var(--logo-h);
  flex-shrink: 0;
  background-image: url("/image/site_icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.7;
}

.header-title-logo {
  height: 53px;
  width: 304px;
  flex-shrink: 0;
  background-image: url("/image/site_title.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.8;
  margin-left: 8px;
  margin-top: 3px;
}

/* ===========================
   ナビゲーション（空白プレースホルダー）
   =========================== */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 50px;
}

.header-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.header-nav ul li {
  height: var(--nav-item-h);
}

.header-nav ul li a {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #444444;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}

.header-nav ul li a.is-active {
  font-weight: 300 !important;
}

@media (min-width: 769px) {
  .header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.25);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .header-nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
  }
}

.header-nav ul li a:hover {
  color: #111111;
}

/* ===========================
   アクションボタン（空白プレースホルダー）
   =========================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ghost,
.btn-fill {
  height: var(--btn-h);
  border-radius: 9999px;
  flex-shrink: 0;
}

.btn-ghost {
  width: var(--btn-ghost-w);
  border: 1.5px solid #e0ddd9;
}

.btn-fill {
  width: var(--btn-fill-w);
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dddddd;
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.btn-fill:hover {
  opacity: 0.75;
}

/* ===========================
   ハンバーガー（モバイル）
   =========================== */
.hamburger {
  display: none; /* デスクトップでは非表示 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #222;
  border-radius: 9999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* × 状態 */
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===========================
   モバイルナビ オーバーレイ
   =========================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header-margin-top) + var(--header-height) - 24px);
  left: 50%;
  transform: translateX(-50%);
  width: var(--container-w);
  max-width: var(--container-max-w);
  overflow: hidden;
  padding-bottom: 2px;
  z-index: 998;
}

.mobile-nav-panel {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  padding: 28px 24px 10px;
  transform: translateY(-110%);
  transition: transform 0.6s ease;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links li:last-child a { border-bottom: none; }

.mobile-nav-links li a span { color: rgba(0, 0, 0, 0.3); font-size: 18px; }

/* ===========================
   スライド構成
   =========================== */
.dummy-main {
  /* 幅制約なし — 各スライドがフルブリード */
}

/* slide 1：ビューポートにぴったり合わせる */
.slide--1 {
  height: 100svh;
  position: relative;
}

.slide1-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background-color: #111;
  background-image: url("/image/background_black.png");
  background-position: center;
  background-size: auto;
  background-repeat: repeat;
  z-index: 0;
  will-change: opacity;
  pointer-events: none;
}

.slide1-mobile-bg {
  display: none;
}

/* slide1 コンテンツ — 壁紙レイヤーの上 */
.slide1-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ヘッダー下端(~84px) とアバター上端(50% - 90px) の中間 = calc(25% - 3px) */
.slide1-tagline {
  position: absolute;
  top: calc(25% - 3px);
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slide1-tagline.is-visible {
  opacity: 1;
}

.slide1-tagline p {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4.5vw, 66px);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.profile-avatar {
  position: absolute;
  top: calc(50% - 15px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 135px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.slide1-links {
  position: absolute;
  top: calc(50% + 140px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 80px;
  white-space: nowrap;
}

.slide1-btn {
  --paper-edge: polygon(0 14%, 3% 13%, 7% 16%, 11% 12%, 16% 15%, 22% 11%, 28% 14%, 35% 13%, 42% 16%, 50% 12%, 59% 14%, 68% 11%, 78% 15%, 88% 12%, 96% 14%, 100% 13%, 100% 90%, 95% 92%, 90% 89%, 84% 93%, 78% 91%, 71% 95%, 64% 92%, 57% 96%, 50% 93%, 43% 95%, 36% 92%, 29% 96%, 22% 94%, 15% 97%, 8% 94%, 0 96%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  width: 260px;
  min-height: 58px;
  padding: 0 22px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #555555;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  letter-spacing: 0.05em;
  text-shadow: none;
  transition: opacity 0.15s;
}

.slide1-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffffff;
  background-color: #ffffff;
  clip-path: var(--paper-edge);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.slide1-btn::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0 16%, transparent 32% 68%, rgba(0, 0, 0, 0.06) 84% 100%);
  clip-path: var(--paper-edge);
  opacity: 0.35;
  pointer-events: none;
}

.slide1-btn:nth-child(2) {
  --paper-edge: polygon(0 13%, 4% 12%, 8% 13%, 12% 12%, 16% 13%, 20% 12%, 24% 13%, 28% 12%, 32% 13%, 36% 12%, 40% 13%, 44% 12%, 48% 13%, 52% 12%, 56% 13%, 60% 12%, 64% 13%, 68% 12%, 72% 13%, 76% 12%, 80% 13%, 84% 12%, 88% 13%, 92% 12%, 96% 13%, 100% 12%, 100% 91%, 96% 91%, 92% 92%, 88% 91%, 84% 92%, 80% 91%, 76% 92%, 72% 91%, 68% 92%, 64% 91%, 60% 92%, 56% 91%, 52% 94%, 48% 95%, 44% 94%, 40% 92%, 36% 91%, 32% 92%, 28% 91%, 24% 92%, 20% 91%, 16% 92%, 12% 91%, 8% 92%, 4% 91%, 0 92%);
}

.slide1-btn:nth-child(1)::before {
  background: url("/image/paper_button_profile.svg") center / 100% 100% no-repeat;
  clip-path: none;
}

.slide1-btn:nth-child(2)::before {
  background: url("/image/paper_button_portfolio.svg") center / 100% 100% no-repeat;
  clip-path: none;
}

.slide1-btn:hover {
  opacity: 0.9;
}

.slide1-btn:active {
  opacity: 0.82;
}

.slide1-btn-mobile {
  display: none;
}

.slide1-btn-label-mobile {
  display: none;
}

.slide1-btn-label-pc {
  display: inline;
}

/* ボタンの下端から24px下 (130px + 50px + 24px) */
.profile-name {
  position: absolute;
  top: calc(50% + 75px);
  left: calc(50% + 3px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.profile-badge {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.slide1-social {
  position: absolute;
  top: calc(50% + 249px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  align-items: center;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}

.social-btn svg {
  width: 28px;
  height: 28px;
}


@media (max-width: 768px) {
  /* slide1: viewport高さ修正 */
  .slide--1 {
    height: 100vh;                  /* 最終フォールバック */
    height: -webkit-fill-available; /* iOS WebKit: ブラウザUIを除いた正確な高さ */
    height: 100svh;                 /* モダン標準 */
    background-color: transparent;
    z-index: 2;                     /* slide--2(z-index:1)の重なりを防ぐ */
    overflow: hidden;
  }

  .slide--1::after {
    content: none;
  }

  .slide--1::before {
    content: none;
  }

  .slide1-mobile-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #fff;
    background-image: url("/image/background_sp.png");
    background-position: center 0px;
    background-repeat: repeat;
    background-size: 100% auto;
    opacity: 1;
    will-change: opacity, transform;
    pointer-events: none;
  }

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

  .slide1-mobile-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
  }

  .slide1-content {
    position: relative;
    z-index: 2;
  }

  /* slide1-bgはモバイルで不要（fixed背景の高さズレ・ジャンクの原因） */
  .slide1-bg {
    display: none;
  }

  /* slide1: flex縦並びレイアウト — コンテンツを下揃え */
  .slide1-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: 100%;
    padding: calc(var(--header-margin-top) + var(--header-height)) 20px 15px;
    box-sizing: border-box;
  }

  .slide1-content::before,
  .slide1-content::after {
    content: "";
    flex: 1 1 0;
    width: 100%;
  }

  .slide1-content::before {
    min-height: 50px;
  }

  .slide1-main-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
  }

  .slide1-avatar-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .slide1-tagline {
    display: none;
  }

  .profile-avatar {
    position: static;
    transform: none;
    width: 105px;
    height: 105px;
    margin-bottom: 10px;
  }

  .profile-name {
    position: static;
    transform: none;
    left: auto;
    margin-bottom: 0;
    font-size: 16px;
  }

  .slide1-links {
    position: static;
    transform: none;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 4svh, 44px);
    align-items: center;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
    white-space: normal;
  }

  .slide1-btn {
    --paper-edge: polygon(0 13%, 3% 12%, 7% 15%, 11% 13%, 16% 16%, 21% 12%, 27% 14%, 33% 13%, 40% 16%, 47% 12%, 55% 14%, 63% 13%, 71% 15%, 80% 12%, 89% 14%, 96% 11%, 100% 13%, 100% 91%, 95% 90%, 90% 93%, 84% 91%, 78% 94%, 72% 92%, 66% 95%, 60% 93%, 54% 96%, 48% 94%, 42% 95%, 36% 93%, 30% 96%, 24% 94%, 18% 97%, 12% 95%, 6% 96%, 0 94%);
    width: min(calc(86vw - 80px), 380px);
    min-height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: visible;
    text-align: center;
    color: #333333;
    border: 0;
    border-radius: 0;
    font-family: "Noto Serif JP", "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    background: transparent;
    box-shadow: none;
  }

  .slide1-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #ffffff;
    clip-path: var(--paper-edge);
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.14));
  }

  .slide1-btn::after {
    content: none;
  }

  .slide1-btn:hover,
  .slide1-btn:active {
    background: transparent;
  }

  .slide1-btn:hover::before,
  .slide1-btn:active::before {
    background: #ffffff;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.14));
  }

  .slide1-btn:nth-child(2) {
    --paper-edge: polygon(0 13%, 3% 15%, 6% 12%, 10% 14%, 14% 11%, 18% 13%, 23% 12%, 28% 15%, 33% 13%, 39% 14%, 45% 11%, 51% 13%, 57% 12%, 64% 15%, 71% 13%, 79% 14%, 87% 11%, 94% 13%, 100% 12%, 100% 91%, 96% 89%, 92% 92%, 87% 90%, 82% 93%, 76% 91%, 70% 94%, 64% 92%, 58% 95%, 52% 93%, 46% 96%, 40% 94%, 34% 95%, 28% 93%, 22% 96%, 16% 94%, 10% 97%, 5% 95%, 0 94%);
  }

  .slide1-btn:nth-child(3) {
    --paper-edge: polygon(0 12%, 4% 11%, 8% 14%, 12% 12%, 17% 15%, 22% 11%, 27% 13%, 33% 12%, 39% 15%, 45% 11%, 52% 13%, 59% 12%, 66% 15%, 74% 11%, 82% 13%, 91% 12%, 100% 14%, 100% 90%, 97% 92%, 93% 89%, 88% 93%, 83% 91%, 77% 94%, 71% 92%, 65% 95%, 59% 93%, 53% 96%, 47% 94%, 41% 95%, 34% 93%, 27% 96%, 20% 94%, 13% 97%, 7% 95%, 0 96%);
  }

  .slide1-btn-mobile {
    display: flex;
  }

  .slide1-btn-label-pc {
    display: none;
  }

  .slide1-btn-label-mobile {
    display: inline;
  }

  .slide1-social .social-btn {
    color: #ffffff;
  }

  .profile-name {
    color: #ffffff;
  }

  .slide1-social {
    position: static;
    transform: none;
    gap: 20px;
  }

  .slide1-social .social-btn {
    width: 36px;
    height: 36px;
  }

  .slide1-social .social-btn svg {
    width: 29px;
    height: 29px;
  }

  /* スマホ: 壁紙なし・黒背景 */
  .slide1-bg {
    background-image: none;
  }

  .slide1-bg::after {
    background: none;
  }
}


.slide1-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(255, 255, 255, 0.3) 100%);
}

.slide--2 {
  height: 100svh;
  background-color: #1E1E1E;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* 右側の明るいエリア（斜め分割） */
.slide--2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0eeeb 0%, #e8e5e0 100%);
  clip-path: polygon(67% 0%, 100% 0%, 100% 100%, 33% 100%);
}

/* 斜線セパレーター */
.slide--2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(160, 135, 95, 0.55);
  clip-path: polygon(67% 0%, 67.1% 0%, 33.1% 100%, 33% 100%);
}

.slide2-content {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
  z-index: 1;
  transform: translateY(15px);
}

.slide2-title {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 200;
  letter-spacing: 0.5em;
  color: #ffffff;
  margin-bottom: 12px;
}

.slide2-subtitle {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.slide2-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
}

.slide2-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide2-text p {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.slide2-right {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 0 8%;
  z-index: 2;
  transform: translateX(0px) translateY(15px);
}

.slide2r-title {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 200;
  letter-spacing: 0.5em;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

.slide2r-subtitle {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
}

.slide2r-divider {
  width: 40px;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  margin: 0 auto 32px;
}

.slide2r-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 35px;
  padding-right: 35px;
}

.slide2r-text p {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.slide--3 {
  min-height: 100svh;
  background-color: #DFDBD6;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.slide3-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.slide3-title {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 200;
  letter-spacing: 0.5em;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.slide3-subtitle {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.slide3-divider {
  width: 40px;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
}

.slide3-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(90vw, 640px);
  margin: 0 auto;
}

.slide3-text p {
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* ===========================
   Footer — 共通
   =========================== */
.site-footer {
  height: auto;
  background-color: #1E1E1E;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 0;
}

.ft-inner {
  width: var(--container-w);
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 50px 0 0;
}

.ft-main {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  max-width: 1080px;
  margin: 0 auto;
}

.ft-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -5px;
  margin-bottom: 15px;
  width: fit-content;
  color: inherit;
  text-decoration: none !important;
}

.ft-logo:visited,
.ft-logo:hover,
.ft-logo:active,
.ft-logo:focus,
.ft-logo .ft-site-name {
  text-decoration: none !important;
}

.ft-icon {
  width: 47px;
  height: 47px;
  object-fit: contain;
}

.ft-site-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 1.43vw, 22px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.ft-col-left {
  padding-left: 30px;
}

.ft-col-mid {
  padding: 0 63px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ft-col-right {
  padding-left: 30px;
}

.ft-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2.1;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.ft-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: #1a1a1a;
  margin-top: 15px;
  padding: 15px 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  max-width: 300px;
  border-radius: 5px;
  transition: opacity 0.2s;
}

.ft-cta:hover {
  opacity: 0.85;
}

.ft-heading {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.ft-sitemap {
  display: flex;
  flex-direction: column;
}

.ft-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}

.ft-link:hover {
  color: #ffffff;
}

.ft-link-arr {
  color: rgba(255, 255, 255, 0.35);
  font-size: 27px;
  margin-bottom: 5px;
}

.ft-social {
  display: flex;
  gap: 28px;
  margin-left: 30px;
  margin-top: 50px;
}

.ft-social-icon {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  text-decoration: none;
}

.ft-social-icon:hover {
  color: #ffffff;
}

.ft-social-icon svg {
  width: 33px;
  height: 33px;
}

.ft-cta-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ft-cta-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  line-height: 2.1;
  margin-bottom: 16px;
}

.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ft-copy {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

/* ===========================
   Breadcrumb — 共通
   =========================== */
.breadcrumb {
  margin-top: calc(var(--header-margin-top) + var(--header-height) + 12px);
  padding: 0 calc(5vw + 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.breadcrumb a,
.breadcrumb-current,
.breadcrumb-sep {
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.breadcrumb a:hover { color: rgba(0, 0, 0, 0.75); }
.breadcrumb-current { color: rgba(0, 0, 0, 0.65); }

@media (min-width: 769px) {
  .breadcrumb {
    transform: translateX(25px);
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 768px) {
  :root {
    --container-w:        calc(100% - 24px);
    --header-margin-top:  10px;
    --header-pad-x:       14px;
    --header-height:       48px;
  }

  /* メニュー開放時：ヘッダー下部の角丸とボーダーを消してパネルと一体化 */
  .site-header.menu-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
  }


  /* 横スクロール完全防止・慣性スクロール時の背景色 */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    background-color: #fff;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* ヘッダーロゴ幅をモバイル向けに縮小 */
  .header-title-logo {
    width: 178px;
    height: 49px;
    margin-left: 2px;
  }

  /* ヘッダーアクションボタンを非表示（ナビも非表示のため不要） */
  .header-actions {
    display: none;
  }

  /* === slide2: モバイル縦積みレイアウト === */
  .slide--2 {
    height: auto;
    min-height: 100svh;
  }

  /* PC斜め装飾・区切り線を非表示 */
  .slide--2::before,
  .slide--2::after {
    display: none;
  }

  /* モバイル用：PROFILEセクション */
  .slide2-content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    padding: 64px 28px 48px;
  }

  .slide2-text p {
    font-size: 16px;
  }

  .slide2-table dt,
  .slide2-table dd {
    font-size: 15px;
  }

  /* 右辺中点→底辺中点の三角に白50% */
  .slide2-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(100% 50%, 100% 100%, 50% 100%);
    pointer-events: none;
  }

  .slide2-right {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    transform: none;
    padding: 48px 28px 60px;
    background: #EAE8E4;
  }

  /* 上辺中点→左辺中点の三角に白20% */
  .slide2-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(0% 0%, 50% 0%, 0% 50%);
    pointer-events: none;
  }

  .slide2r-text {
    width: calc(100% + 10px);
    max-width: calc(100% + 10px);
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
  }

  .slide2r-title-text {
    white-space: normal;
  }

  .slide2r-title {
    text-align: left;
  }

  .slide2r-subtitle {
    text-align: left;
  }

  .slide2r-divider {
    margin: 0 0 32px;
  }

  .slide2r-more {
    align-self: center !important;
    margin-top: 50px !important;
  }

  .slide2-more {
    align-self: center;
  }

  /* slide3: 左寄せ */
  .slide3-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 28px;
    padding-right: 28px;
  }

  .slide3-divider {
    margin-left: 0;
  }

  /* フッター：モバイル縦積み */
  .ft-inner { padding-top: 30px; }
  .ft-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding-bottom: 36px;
    text-align: center;
  }
  .ft-col-left  { padding-left: 15px; order: 2; text-align: left; width: 100%; }
  .ft-col-mid   { display: none; }
  .ft-col-right { padding-left: 15px; order: 1; align-self: flex-start; text-align: left; }
  .ft-social    { margin-left: 0; margin-top: 24px; justify-content: flex-start; }
  .ft-logo      { justify-content: flex-start; }
  .ft-cta       { max-width: 200px; padding: 11px 20px; font-size: 13px; }
}


/* ===========================
   Home page styles
   =========================== */
.slide2r-post {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 0 10px 0 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(90, 76, 58, 0.13);
  text-decoration: none;
  overflow: hidden;
}
.slide2r-thumb {
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.05);
  overflow: visible;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide2r-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px 0 0 22px;
}
.slide2r-thumb svg {
  width: 28px;
  height: 28px;
  color: rgba(0, 0, 0, 0.2);
}
.slide2r-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.slide2r-date {
  font-size: clamp(10px, 0.7vw, 11px);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.slide2r-title-text {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.72);
  letter-spacing: 0.03em;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.42;
  transition: color 0.2s;
}
.slide2r-excerpt {
  display: none;
  font-size: clamp(11px, 0.78vw, 12px);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.45;
  letter-spacing: 0.03em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide2r-cat {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 12px 3px;
  border-radius: 999px;
  background: rgba(178, 170, 122, 0.35);
  color: rgba(0, 0, 0, 0.52);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.4;
}
.slide2r-arrow {
  color: rgba(0, 0, 0, 0.28);
  font-size: 28px;
  font-weight: 200;
  flex-shrink: 0;
}
.slide2r-post:hover .slide2r-title-text { color: rgba(0, 0, 0, 0.9); }
.slide2r-post--no-thumb .slide2r-body {
  padding-left: 20px;
}

@media (max-width: 768px) {
  .slide2r-post {
    gap: 12px;
    min-height: 102px;
    padding: 0 10px 0 0;
    border-radius: 16px;
  }
  .slide2r-thumb {
    width: 102px;
    border-radius: 16px;
  }
  .slide2r-body {
    padding: 12px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "cat date"
      "title title";
    align-content: center;
    column-gap: 10px;
    row-gap: 6px;
  }
  .slide2r-thumb img {
    border-radius: 16px 0 0 16px;
  }
  .slide2r-date {
    grid-area: date;
    align-self: center;
    font-size: 10px;
  }
  .slide2r-title-text {
    grid-area: title;
    font-size: 13px;
  }
  .slide2r-cat {
    grid-area: cat;
    align-self: center;
    margin-top: 0;
    white-space: nowrap;
    font-size: 10px;
  }
  .slide2r-arrow {
    font-size: 24px;
  }
  .slide2r-more {
    margin-top: 24px;
  }
}

.slide2-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 32px;
  padding: 12px 32px;
  border: 1px solid #ccc;
  border-radius: 9999px;
  background: transparent;
  color: #ccc;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: transparent;
}
.slide2-more:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  border: 1px solid #eee;
}

.slide2r-more {
  display: inline-block;
  align-self: center;
  margin-top: 0;
  padding: 12px 32px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.8);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.slide2r-more:hover {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
}

.slide2-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 769px) {
  .slide2-inner {
    height: 510px;
  }
  .slide2-more,
  .slide2r-more {
    margin-top: auto;
  }
}

/* ---- slide3 card grid ---- */
.s3-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: min(90vw, 1100px);
  margin: 0 auto;
}
.s3-card {
  background-color: #fefefe;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.s3-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.s3-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e4e0db;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.s3-card-image img { width: 100%; height: 100%; object-fit: cover; }
.s3-card-placeholder { width: 32px; height: 32px; opacity: 0.2; }
.s3-card-body { padding: 16px 20px 20px; }
.s3-card-tag {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.s3-card-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.s3-card-desc {
  margin-top: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.7;
  letter-spacing: 0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s3-more {
  display: inline-block;
  margin: 36px auto 0;
  padding: 12px 32px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.8);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.s3-more:hover {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
}

/* ---- slide2 profile table ---- */
.slide2-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
}
.slide2-table dt {
  white-space: nowrap;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.slide2-table dd {
  margin: 0 0 0 -10px;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .slide2-content,
  .slide2-right {
    padding-bottom: 60px;
  }

  .slide--3 {
    padding-bottom: 60px;
    background-color: #d8d4cf;
  }

  .slide2-more {
    align-self: center;
    margin-top: 50px;
  }

  .slide2-more,
  .slide2r-more,
  .s3-more {
    padding-left: 47px;
    padding-right: 47px;
  }

  .s3-more {
    margin-top: 50px;
  }

  .slide2-table dt,
  .slide2-table dd {
    font-size: 15px;
  }

  .s3-card-grid {
    grid-template-columns: 1fr;
    width: min(90vw, 100%);
  }

  .s3-card-image {
    height: calc((100vw - 56px) * 0.5625);
    aspect-ratio: unset;
  }

  /* ポートフォリオ：モバイルは3件まで表示 */
  .s3-card-grid .s3-card:nth-child(n+4) { display: none; }

  .s3-card-desc {
    display: none;
  }
}
