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

:root {
  --marquee-h: 50px;
  --sidebar-w: 300px;
  --white: #ffffff;
  --text-white: rgba(255, 255, 255, 0.95);
  --text-white-dim: rgba(255, 255, 255, 1);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   BACKGROUND CANVAS
   ============================================================ */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: fixed;
  left: 0; right: 0;
  height: var(--marquee-h);
  z-index: 20;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-top {
  top: 0;
  mix-blend-mode: overlay;
}
.marquee-bottom {
  bottom: 0;
  mix-blend-mode: overlay;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  font-family: 'Lato', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
}

.marquee-track.reverse {
  animation-direction: reverse;
}

.marquee-track span {
  display: inline-block;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  position: fixed;
  top: var(--marquee-h);
  bottom: var(--marquee-h);
  left: calc(100px + var(--sidebar-w) + 50px); right: 100px;
  display: flex;
  z-index: 10;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: var(--marquee-h);
  bottom: var(--marquee-h);
  left: 100px;
  width: var(--sidebar-w);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  padding: 40px 24px;
  overflow: hidden;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 34px;
}

.logo-img {
  width: 200px;
  height: auto;
}

/* Nav placeholder (sidebar内のスペース確保) */
.nav-placeholder {
  height: 180px;
}

/* Navigation */
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-fixed {
  position: fixed;
  left: 100px;
  width: var(--sidebar-w);
  mix-blend-mode: color-dodge;
  z-index: 16;
}

.nav-item {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #4D3366;
  mix-blend-mode: normal;
  padding: 6px 0;
  position: relative;
  transition: opacity 0.2s;
  cursor: pointer;
}

.nav-item::before {
  content: '●';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 10px;
  color: #4D4D4D;
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-item:hover::before,
.nav-item.active::before {
  transform: translateY(-50%) scale(1);
}

.nav-item:hover { opacity: 1; }
.nav-item.active { opacity: 1; }

/* Widget */
.widget {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.widget-circle {
  position: relative;
  width: 240px;
  height: 240px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 20px 12px;
  text-align: center;
}

.widget-date {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.05em;
}

.widget-weather {
  font-size: 16px;
  color: var(--white);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.widget-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin: 3px 0;
}

.widget-label {
  font-size: 12px;
  color: var(--text-white-dim);
  letter-spacing: 0.05em;
}

.widget-message {
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
  max-width: 200px;
  word-break: break-all;
}

.widget-note {
  font-size: 12px;
  color: var(--text-white-dim);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: -2px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.3s;
}

.lang-btn.active {
  color: var(--white);
  font-weight: 700;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-divider {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* Decorative rings */
.deco-ring {
  display: none;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Mirror frame */
.mirror-frame {
  width: 100%;
  max-width: 100%;
  height: 80%;
  margin: auto;
  position: relative;
  border: none;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0.15) 100%
  );
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  scrollbar-width: none;
  animation: frameBlurIn 1.6s 0.8s ease both;
}

@keyframes frameBlurIn {
  from { opacity: 0; filter: blur(8px); transform: scale(0.97); }
  to   { opacity: 1; filter: blur(0px); transform: scale(1); }
}

.mirror-frame::-webkit-scrollbar { display: none; }

/* コンテンツ内テキストを濃い紫に */
.mirror-frame {
  color: #5a3a7e;
}
.mirror-frame a,
.mirror-frame .work-card-title,
.mirror-frame .work-card-date,
.mirror-frame .work-detail-title,
.mirror-frame .work-detail-date,
.mirror-frame .work-detail-category,
.mirror-frame .work-detail-info,
.mirror-frame .work-detail-label,
.mirror-frame .work-detail-desc,
.mirror-frame .work-back-btn,
.mirror-frame .page-label,
.mirror-frame .about-left-name,
.mirror-frame .about-left-role,
.mirror-frame .about-lead,
.mirror-frame .about-text,
.mirror-frame .about-info-table,
.mirror-frame .about-profile-label,
.mirror-frame .about-profile-row,
.mirror-frame .about-profile-year,
.mirror-frame .about-info-table th,
.mirror-frame .about-info-table td,
.mirror-frame .column-item-title,
.mirror-frame .column-item-date,
.mirror-frame .column-item-category,
.mirror-frame .column-detail-title,
.mirror-frame .column-detail-body,
.mirror-frame .column-back-btn,
.mirror-frame .column-sidebar .page-title,
.mirror-frame .column-filter-btn,
.mirror-frame .contact-lead,
.mirror-frame .form-group label,
.mirror-frame .form-group input,
.mirror-frame .form-group textarea,
.mirror-frame .form-submit {
  color: #5a3a7e;
}

/* Page transition overlay */
.page-transition {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  border-radius: 24px;
}

.page-transition.fade-in {
  opacity: 1;
}

/* Pages */
.page {
  display: none;
  min-height: 100%;
  animation: blurFadeIn 0.6s ease;
}

.page {
  position: relative;
}

.page.active { display: block; }
.page.about-layout.active { display: flex; }
#page-contact.active {
  display: flex;
  flex-direction: column;
}

.page-label {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blurFadeIn {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0px); }
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.work-grid {
  animation: blurFadeIn 0.6s ease;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(250px, 33.33%), 1fr));
  gap: 0;
  padding: 48px;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

/* 罫線 — borderで管理、JSでlast-col/last-rowクラス付与 */
.work-card {
  border-bottom: 1px solid rgba(255,255,255,0.6);
  border-right: 1px solid rgba(255,255,255,0.6);
}

.work-card.work-last-col {
  border-right: none;
}

.work-card.work-last-row {
  border-bottom: none;
}

/* 1列: borderをやめて::afterでパディング内側だけに横線 */
.work-card.work-single-col {
  border-bottom: none;
  border-right: none;
}

.work-card.work-single-col::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.work-card.work-single-col.work-last-row::after {
  display: none;
}


.work-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.work-card .work-card-info {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateY(6px);
  opacity: 0.6;
}

.work-card:hover .work-card-info {
  transform: translateY(0);
  opacity: 1;
}



.work-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px) saturate(0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.work-card:hover .work-card-img::after {
  opacity: 1;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.work-card-info {
  padding: 16px 20px 20px;
}

.work-card-title {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.5;
}

.work-card-date {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-white-dim);
  margin-top: 6px;
}

.work-card-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f4ff 0%, #fff0f5 100%);
  color: #ccc;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ============================================================
   WORK DETAIL
   ============================================================ */

.work-detail {
  padding: 78px;
  animation: blurFadeIn 0.6s ease;
}

.work-back-btn {
  background: none;
  border: none;
  color: var(--text-white-dim);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.work-back-btn:hover {
  color: var(--white);
}

.work-detail-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.work-detail-left {
  flex: 0 0 280px;
  position: sticky;
  top: 78px;
  color: var(--white);
}

.work-detail-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-detail-img {
  border-radius: 12px;
  overflow: hidden;
}

.work-detail-img img {
  width: 100%;
  display: block;
}

.work-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.work-detail-date {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-white-dim);
}

.work-detail-category {
  font-size: 10px;
  color: var(--white);
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 3px 12px;
  letter-spacing: 0.05em;
}

.work-detail-title {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.work-detail-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--white);
}

.work-detail-label {
  color: var(--text-white-dim);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-detail-desc {
  font-size: 16px;
  line-height: 2.2;
  color: var(--white);
}

/* ============================================================
   INNER PAGES (ABOUT / COLUMN / CONTACT)
   ============================================================ */
.inner-page {
  padding: 78px;
  max-width: 100%;
  color: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-title {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 48px;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 40px;
}

/* About - 左右レイアウト */
.about-layout {
  height: 100%;
  position: relative;
}

.about-left {
  flex: 0 0 280px;
  padding: 78px 48px 78px 78px;
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-left-name {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 16px;
}

.about-left-role {
  font-size: 12px;
  color: var(--text-white-dim);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.about-right {
  flex: 1;
  padding: 78px;
  overflow-y: auto;
  scrollbar-width: none;
}

.about-right::-webkit-scrollbar { display: none; }

/* About */
.about-section {
  margin-bottom: 80px;
}

.about-lead {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 32px;
}

.about-text {
  font-size: 16px;
  line-height: 2.2;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 100%;
}

.about-info-table {
  margin-top: 48px;
  border-collapse: collapse;
  width: 100%;
}

.about-info-table th {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  text-align: left;
  padding: 16px 24px 16px 0;
  width: 100px;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  vertical-align: top;
}

.about-info-table td {
  font-size: 14px;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.6);
}

/* Profile */
.about-profile {
  margin-top: 80px;
}

.about-profile-header {
  text-align: left;
  margin-bottom: 78px;
}

.about-profile-name {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 12px;
}

.about-profile-role {
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.06em;
}

.about-profile-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-profile-left {
  flex: 1;
}

.about-profile-block {
  margin-bottom: 32px;
}

.about-profile-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.about-profile-item {
  font-size: 14px;
  line-height: 2;
  color: var(--white);
  margin-bottom: 4px;
}

.about-profile-row {
  display: flex;
  gap: 16px;
  font-size: 14px;
  line-height: 2;
  color: var(--white);
  margin-bottom: 8px;
}

.about-profile-year {
  flex-shrink: 0;
  width: 100px;
}

.about-profile-photo {
  flex: 0 0 240px;
}

.about-profile-photo img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Column - filter */
.column-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.column-filter-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 6px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-white-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.column-filter-btn:hover {
  background: rgba(255,255,255,0.2);
}

.column-filter-btn.active {
  background: rgba(255,255,255,0.85);
  color: #333;
  border-color: transparent;
}

/* Column - grid (WORK と同じスタイル) */
/* Column - page layout: 左カテゴリ固定 + 右スクロール */
#page-column.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.column-page {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  padding: 0;
}

.column-page::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 250px;
  width: 1px;
  background: rgba(255,255,255,0.6);
  z-index: 2;
}

.column-sidebar {
  width: 250px;
  flex-shrink: 0;
  padding: 78px 40px 78px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow: hidden;
}

.column-sidebar .page-title {
  margin-bottom: 0;
  font-size: 36px;
}

.column-filter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.column-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.column-main::-webkit-scrollbar { width: 4px; }
.column-main::-webkit-scrollbar-track { background: transparent; }
.column-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

/* Column - list */
.column-list {
  padding: 0;
}

/* Column - grid */
.column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  animation: blurFadeIn 0.6s ease;
}

.column-item {
  position: relative;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.column-item:nth-child(1),
.column-item:nth-child(2) {
  padding-top: 78px;
}

/*
  コンテンツ枠の枠線ルール:
  - コンテンツ同士の間 → 線あり
  - コンテンツ枠に面する部分 → 線なし
  全2カラム: odd=左列, even=右列
*/

/* サムネ230px以下で1列化（JSで .column-single 付与） */
.column-grid.column-single {
  grid-template-columns: 1fr;
}

/* 罫線 — ::after横線 / ::before縦線（アイキャッチ幅に揃える） */

/* 横線 ::after — 左列は右端まで、右列は左端まで伸ばして繋げる */
.column-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.column-item:nth-child(even)::after {
  left: 0;
  right: 40px;
}

.column-item.col-last-row::after {
  display: none;
}

/* 縦線 ::before — コンテンツ枠100%（パディング除く）、行間は繋がる */
.column-item::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.6);
}

.column-item.col-first-row::before {
  top: 40px;
}

.column-item.col-last-row::before {
  bottom: 40px;
}

.column-item.col-last-col::before {
  display: none;
}

/* 1列時: 縦線なし、横線は左右パディング内側 */
.column-item.col-single-col::before {
  display: none;
}

.column-item.col-single-col::after {
  left: 40px;
  right: 40px;
}

.column-item:hover .column-item-info {
  transform: translateY(0);
  opacity: 1;
}

/* 最新記事：フル幅 */
.column-item.featured {
  grid-column: 1 / -1;
}

.column-item-eyecatch {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.column-item-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.column-item-info {
  padding: 16px 0 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.column-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.column-item-date {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: var(--text-white-dim);
  letter-spacing: 0.08em;
}

.column-item-category {
  font-size: 10px;
  color: var(--white);
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 2px 10px;
  letter-spacing: 0.05em;
}

.column-item-title {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.5;
}

.column-item.featured .column-item-title {
  font-size: 18px;
}

.column-item-body {
  font-size: 13px;
  color: var(--text-white-dim);
  margin-top: 6px;
  line-height: 1.8;
}

/* Column - detail */
.column-detail {
  padding: 40px;
  animation: blurFadeIn 0.6s ease;
}

.column-back-btn {
  background: none;
  border: none;
  color: var(--text-white-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.column-back-btn-bottom {
  margin-top: 60px;
  margin-bottom: 0;
}

.column-back-btn:hover {
  color: var(--white);
}

.column-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.column-detail-title {
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
}

.column-detail-eyecatch {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.column-detail-eyecatch img {
  width: 100%;
  display: block;
}

.column-detail-body {
  font-size: 16px;
  color: var(--white);
  line-height: 2.2;
}

.column-detail-body h1,
.column-detail-body h2,
.column-detail-body h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.column-detail-body h2 { font-size: 22px; }
.column-detail-body h3 { font-size: 18px; }

.column-detail-body p {
  margin-bottom: 20px;
}

.column-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

.column-detail-body blockquote {
  border-left: 3px solid rgba(255,255,255,0.6);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--text-white-dim);
  font-style: italic;
}

.column-detail-body a {
  color: rgb(222,214,92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.column-detail-body ul,
.column-detail-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.column-detail-body li {
  margin-bottom: 8px;
}

/* Contact */
.contact-lead {
  font-size: 24px;
  line-height: 2;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-white-dim);
  min-height: 20px;
}

.contact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  margin-top: 16px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-white-dim);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.6);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(255,255,255,0.9);
  color: #333;
  border: none;
  border-radius: 30px;
  padding: 12px 36px;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Confirm overlay */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.25s ease;
  padding: 40px;
  overflow: hidden;
}

.confirm-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 40px;
  width: 460px;
  color: var(--white);
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  display: flex;
  flex-direction: column;
}

.confirm-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.confirm-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.confirm-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-white-dim);
}

.confirm-value {
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

.confirm-message {
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  padding-right: 8px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.confirm-back {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  padding: 10px 28px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-back:hover {
  background: rgba(255, 255, 255, 0.25);
}

.confirm-send {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-send:hover {
  background: #fff;
}

.confirm-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.confirm-result-text {
  font-size: 13px;
  line-height: 2;
  color: var(--text-white-dim);
  margin: 24px 0 32px;
}

.confirm-close-btn {
  margin: 0 auto;
}

/* ============================================================
   MOBILE NAV — 共通（960px以下で表示）
   body.nav-A = フルスクリーンオーバーレイ
   body.nav-B = ガラスドロップダウン
   body.nav-C = ボトムナビ
   ============================================================ */

/* デフォルト: 全モバイルナビ非表示 */
.mobile-burger,
.mobile-overlay,
.mobile-dropdown,
.mobile-bottom-nav,
.mobile-header-nav,
.mobile-typo-overlay {
  display: none;
}

/* デフォルト: Liquid Glass ウィジェット非表示（モバイルのみ表示） */
.mobile-widget-glass {
  display: none;
}

/* ============================================================
   RESPONSIVE — 1200px（小さめデスクトップ）
   サイドバー縮小、余白調整
   ============================================================ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 240px; }

  .sidebar { left: 60px; padding: 32px 20px; }
  .nav-fixed { left: 60px; width: var(--sidebar-w); }
  .layout { left: calc(60px + var(--sidebar-w) + 40px); right: 60px; }

  .logo-img { width: 170px; }
  .nav-item { font-size: 22px; }
  .nav-item::before { font-size: 8px; left: -18px; }

  .widget-circle { width: 210px; height: 210px; }
  .widget-date { font-size: 14px; }
  .widget-weather { font-size: 14px; }
  .widget-message { font-size: 14px; max-width: 170px; }

  /* WORK */
  .work-grid { padding: 40px; }
  .work-card { padding: 30px; }
  .work-card.work-single-col { padding-top: 40px; padding-bottom: 18px; }
  .work-detail { padding: 48px; }
  .work-detail-left { flex: 0 0 240px; top: 48px; }
  .work-detail-body { gap: 36px; }

  /* ABOUT */
  .about-left { flex: 0 0 240px; padding: 70px 36px 70px 70px; }
  .about-left-name { font-size: 28px; }
  .about-right { padding: 70px; }

  /* COLUMN */
  .column-sidebar { padding: 48px 32px; width: 220px; }
  .column-page::before { left: 220px; }
  .column-main { margin-left: 0; }
  .column-list { padding: 0; }
  .column-item { padding: 32px; }
  .column-item::after { left: 32px; right: 0; }
  .column-item:nth-child(even)::after { left: 0; right: 32px; }
  .column-item.col-single-col::after { left: 32px; right: 32px; }
  .column-item.col-first-row::before { top: 32px; }
  .column-item.col-last-row::before { bottom: 32px; }
  .column-item:nth-child(1),
  .column-item:nth-child(2) { padding-top: 48px; }

  /* CONTACT */
  .inner-page { padding: 70px; }
}

/* ============================================================
   RESPONSIVE — 960px（タブレット）
   サイドバーを上部に移動、コンテンツ全幅
   ============================================================ */
@media (max-width: 960px) {
  :root {
    --sidebar-w: 100%;
    --marquee-h: 40px;
  }

  /* サイドバー → 上部ヘッダー */
  .sidebar {
    position: fixed;
    top: var(--marquee-h);
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    z-index: 15;
    overflow: visible;
  }

  .mirror-frame {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(255, 255, 255, 0.15),
      10px 4px 16px rgba(0, 0, 0, 0.08);
  }

  .logo-img { width: 160px; }
  .nav-placeholder { display: none; }
  .widget { display: none; }
  .deco-ring { display: none; }
  .lang-toggle { margin-top: 0; margin-left: auto; margin-right: 0; }

  /* ナビ → サイドバー内に横並び */
  .nav-fixed {
    position: static;
    width: auto;
    mix-blend-mode: normal;
  }

  .nav {
    flex-direction: row;
    gap: 24px;
  }

  .nav-item {
    font-size: 13px;
    letter-spacing: 0.06em;
    mix-blend-mode: normal;
    color: var(--white);
  }

  .nav-item::before {
    font-size: 6px;
    left: 50%;
    top: -10px;
    transform: translateX(-50%) scale(0);
    color: var(--white);
  }

  .nav-item:hover::before,
  .nav-item.active::before {
    transform: translateX(-50%) scale(1);
  }

  .nav-item:hover,
  .nav-item.active {
    opacity: 1;
  }

  /* レイアウト → 上部ヘッダーの下にフル幅 */
  .layout {
    left: 40px;
    right: 40px;
    top: calc(var(--marquee-h) + 88px);
    bottom: calc(var(--marquee-h) - 10px);
  }

  /* コンテンツ枠 */
  .mirror-frame {
    height: 90%;
    border-radius: 16px;
  }

  /* マーキー */
  .marquee { height: var(--marquee-h); }
  .marquee-track { font-size: 10px; }

  /* WORK */
  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 32px 40px;
  }
  .work-card { padding: 20px; padding-bottom: 18px; }
  .work-card.work-single-col::after { left: 20px; right: 20px; }
  .work-detail { padding: 40px; }
  .work-detail-body { gap: 32px; }
  .work-detail-left { flex: 0 0 220px; top: 40px; }
  .work-detail-title { font-size: 26px; }

  /* ABOUT → 縦積み、sticky解除 */
  .about-left {
    flex: none;
    position: static;
    padding: 60px 60px 0;
  }
  .about-left-name { font-size: 24px; }
  .about-left-role { font-size: 11px; }
  .about-right { padding: 60px; }
  .about-lead { font-size: 18px; }
  .about-text { font-size: 14px; line-height: 2; }
  .about-section { margin-bottom: 48px; }
  .about-info-table th { font-size: 13px; padding: 12px 16px 12px 0; }
  .about-info-table td { font-size: 13px; padding: 12px 0; }
  .about-profile { margin-top: 48px; }
  .about-profile-body { flex-direction: column; gap: 24px; }
  .about-profile-left { flex: none; }
  .about-profile-label { font-size: 13px; }
  .about-profile-row { font-size: 13px; }
  .about-profile-year { width: 80px; }
  .page.about-layout.active { display: block; }

  /* COLUMN → サイドバーなし、1カラム */
  #page-column.active {
    display: block;
    height: auto;
    overflow: visible;
  }
  .column-page {
    flex-direction: column;
    flex: none;
    min-height: 0;
  }
  .column-page::before { display: none; }
  .column-sidebar {
    width: 100%;
    position: static;
    height: auto;
    padding: 40px 40px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }
  .column-main {
    overflow-y: visible;
    margin-left: 0;
  }
  .column-sidebar .page-title { font-size: 22px; width: 100%; margin-bottom: 0; }
  .column-filter { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .column-filter-btn { font-size: 12px; padding: 5px 14px; }
  .column-list { padding: 0; }
  .column-grid { grid-template-columns: repeat(2, 1fr); }
  .column-item { padding: 40px; }
  .column-item:nth-child(1),
  .column-item:nth-child(2) { padding-top: 20px; }
  .column-item-title { font-size: 13px; }
  .column-detail { padding: 40px; }
  .column-detail-title { font-size: 20px; }
  .column-detail-body { font-size: 14px; line-height: 2; }
  .column-back-btn { font-size: 12px; }

  /* CONTACT */
  .inner-page { padding: 60px; }
  .contact-lead { font-size: 20px; }

  /* 確認ダイアログ */
  .confirm-overlay { padding: 24px; }
  .confirm-box { width: 100%; max-width: 420px; padding: 32px; }

  /* ============================
     Liquid Glass モバイルウィジェット
     ============================ */
  .mobile-widget-glass {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    bottom: calc(var(--marquee-h) + 6px);
    right: 16px;
    z-index: 40;

    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1.5px solid rgba(255,255,255,0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    cursor: pointer;
    overflow: hidden;
  }


  /* 光の反射エフェクト */
  .mobile-widget-glass::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    right: 15%;
    height: 30%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .mobile-widget-glass.expanded::before {
    top: 5%;
    left: 20%;
    right: 20%;
    height: 20%;
  }

  .mobile-glass-icon {
    font-size: 22px;
    transition: opacity 0.2s ease;
    color: var(--white);
    -webkit-text-stroke: 0;
  }

  /* SVG天気アイコンサイズ */
  .mobile-glass-icon svg {
    width: 24px;
    height: 24px;
  }

  /* 展開アニメーション */
  @keyframes glassExpand {
    from { width: 70px; height: 70px; right: 16px; }
    to   { width: 180px; height: 180px; right: calc(50% - 90px); }
  }
  @keyframes glassCollapse {
    from { width: 180px; height: 180px; right: calc(50% - 90px); }
    to   { width: 70px; height: 70px; right: 16px; }
  }

  /* 展開状態 */
  .mobile-widget-glass.expanded {
    width: 180px;
    height: 180px;
    right: calc(50% - 90px);
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    animation: glassExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  /* 閉じるアニメーション */
  .mobile-widget-glass.collapsing {
    animation: glassCollapse 0.4s cubic-bezier(0.34, 1, 0.64, 1) both;
  }

  .mobile-widget-glass.expanded .mobile-glass-icon {
    opacity: 0;
    position: absolute;
  }

  .mobile-glass-expanded {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    padding: 12px;
    opacity: 0;
    color: var(--white);
    transition: opacity 0.3s 0.2s ease;
    pointer-events: none;
  }

  .mobile-widget-glass.expanded .mobile-glass-expanded {
    opacity: 1;
    color: #6b5b95;
  }

  .mobile-glass-date {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .mobile-glass-weather {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.03em;
  }

  .mobile-glass-divider {
    width: 32px;
    height: 1px;
    background: rgba(107,91,149,0.3);
    margin: 2px 0;
  }

  .mobile-glass-label {
    font-size: 10px;
    color: rgba(107,91,149,0.6);
    letter-spacing: 0.05em;
  }

  .mobile-glass-message {
    font-size: 13px;
    line-height: 1.4;
    max-width: 150px;
  }

  /* ボトムナビ使用時は位置を上げる */
  body.nav-C .mobile-widget-glass {
    bottom: 76px;
  }

  /* ============================
     パターンA/B共通: ハンバーガー表示、PCナビ非表示
     ============================ */
  body.nav-A .nav-fixed,
  body.nav-B .nav-fixed {
    display: none;
  }

  body.nav-A .mobile-burger,
  body.nav-B .mobile-burger {
    display: flex;
    position: fixed;
    top: calc(var(--marquee-h) + 14px);
    right: 40px;
    z-index: 60;
    width: 32px;
    height: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .mobile-burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* ハンバーガー → × 変形 */
  body.mobile-open .mobile-burger span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  body.mobile-open .mobile-burger span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  /* ============================
     パターンA: フルスクリーンオーバーレイ
     ============================ */
  body.nav-A .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  body.nav-A.mobile-open .mobile-overlay {
    opacity: 1;
    visibility: visible;
  }

  .mobile-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0;
    padding: 80px 40px 40px;
  }

  .mobile-nav-item {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 36px;
    letter-spacing: 0.12em;
    color: var(--white);
    padding: 20px 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
    text-decoration: none;
    position: relative;
  }

  .mobile-nav-item::before {
    content: '●';
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 10px;
    color: var(--white);
    transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .mobile-nav-item:hover::before,
  .mobile-nav-item.active::before {
    transform: translateY(-50%) scale(1);
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    opacity: 1;
  }

  body.nav-A.mobile-open .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* スタガーアニメーション */
  body.nav-A.mobile-open .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
  body.nav-A.mobile-open .mobile-nav-item:nth-child(2) { transition-delay: 0.1s; }
  body.nav-A.mobile-open .mobile-nav-item:nth-child(3) { transition-delay: 0.15s; }
  body.nav-A.mobile-open .mobile-nav-item:nth-child(4) { transition-delay: 0.2s; }

  /* 閉じるとき即座にリセット */
  body.nav-A:not(.mobile-open) .mobile-nav-item { transition-delay: 0s; }

  .mobile-overlay-widget {
    margin-top: 48px;
    text-align: center;
    color: var(--text-white-dim);
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.4s 0.25s ease;
  }

  body.nav-A.mobile-open .mobile-overlay-widget {
    opacity: 1;
  }

  .mobile-widget-date {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    margin-bottom: 4px;
  }

  .mobile-widget-message {
    margin-top: 8px;
    font-size: 13px;
    color: var(--white);
  }

  /* ============================
     パターンB: ガラスドロップダウン
     ============================ */
  body.nav-B .mobile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: calc(var(--marquee-h));
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 72px 32px 32px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s ease;
  }

  body.nav-B.mobile-open .mobile-dropdown {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-dd-item {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--white);
    padding: 14px 0;
    text-decoration: none;
    transition: opacity 0.2s;
  }

  .mobile-dd-item.active {
    opacity: 0.5;
  }

  /* ============================
     パターンC: ボトムナビ
     ============================ */
  body.nav-C .nav-fixed { display: none; }
  body.nav-C .mobile-burger { display: none; }

  body.nav-C .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: space-around;
    align-items: center;
    padding: 14px 0;
  }

  body.nav-C .layout {
    bottom: 50px;
  }

  body.nav-C .marquee-bottom {
    display: none;
  }

  .mobile-bottom-item {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
    padding: 4px 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .mobile-bottom-item.active {
    opacity: 1;
    border-bottom: 1px solid var(--white);
    padding-bottom: 3px;
  }

  /* ============================
     パターンD: ロゴ左＋右メニュー横並び
     ============================ */
  body.nav-D .nav-fixed { display: none; }
  body.nav-D .mobile-burger { display: none; }

  body.nav-D .sidebar {
    justify-content: flex-start;
    gap: 24px;
  }

  body.nav-D .mobile-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .mobile-header-item {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
    position: relative;
    cursor: pointer;
  }

  .mobile-header-item::before {
    content: '●';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    font-size: 5px;
    color: var(--white);
    transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .mobile-header-item:hover::before,
  .mobile-header-item.active::before {
    transform: translateY(-50%) scale(1);
  }

  .mobile-header-item:hover,
  .mobile-header-item.active {
    opacity: 1;
  }

  /* ============================
     パターンE: タイポシャッフル
     ============================ */
  body.nav-E .nav-fixed { display: none; }

  body.nav-E .mobile-burger {
    display: flex;
    position: fixed;
    top: calc(var(--marquee-h) + 14px);
    right: 40px;
    z-index: 60;
    width: 32px;
    height: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  body.nav-E .mobile-typo-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
    will-change: opacity;
    transition: opacity 0.5s ease;
  }

  body.nav-E.mobile-open .mobile-typo-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .typo-shuffle-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .typo-word {
    display: flex;
    cursor: pointer;
    padding: 12px 0;
    text-decoration: none;
  }

  .typo-word.active .typo-char {
    opacity: 0.4;
  }

  .typo-char {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 42px;
    letter-spacing: 0.2em;
    color: var(--white);
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
  }

  /* フェードイン完了 */
  .typo-char.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SP SPLASH — ロゴ＋背景の出���アニメーション（4パターン）
   body.splash-active で発動、終了後に自動で外す
   切替: setSplash('A') / 'B' / 'C' / 'D'
   ============================================================ */

/* スプラッシュ中は本体を隠す（transitionなしで即非表示） */
body.splash-active .sidebar,
body.splash-active .layout,
body.splash-active .mobile-burger,
body.splash-active .mobile-widget-glass,
body.splash-active .marquee {
  opacity: 0 !important;
  transition: none !important;
}

/* フェーズ2: 全コンテンツをふわっと表示（ロゴ含む） */
body.splash-phase2 .sidebar,
body.splash-phase2 .layout,
body.splash-phase2 .mobile-burger,
body.splash-phase2 .mobile-widget-glass,
body.splash-phase2 .marquee {
  opacity: 1;
  transition: opacity 1.8s ease 0.6s;
}


/* スプラッシュオーバーレイ */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

body.splash-active .splash-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.splash-logo {
  width: 160px;
  opacity: 0;
}

/* パターンA: フ��ードイン */
body.splash-A .splash-logo {
  animation: splashFadeIn 0.9s ease 0.2s forwards;
}

@keyframes splashFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* パターンB: スケールイン */
body.splash-B .splash-logo {
  transform: scale(0.5);
  animation: splashScaleIn 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s forwards;
}

@keyframes splashScaleIn {
  0%   { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* パターンC: ブラーイン */
body.splash-C .splash-logo {
  filter: blur(12px);
  transform: scale(0.95);
  animation: splashBlurIn 1.4s ease 0.3s forwards;
}

@keyframes splashBlurIn {
  0%   { opacity: 0; filter: blur(12px); transform: scale(0.95); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* パターンD: スライドダウン */
body.splash-D .splash-logo {
  transform: translateY(-40px);
  animation: splashSlideDown 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards;
}

@keyframes splashSlideDown {
  0%   { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* スプラッシュフェードアウト */
.splash-overlay.fade-out {
  animation: splashFadeOut 0.6s ease forwards;
}

@keyframes splashFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ============================================================
   RESPONSIVE — 640px（スマホ）
   1カラム化、コンパクト表示
   ============================================================ */
@media (max-width: 640px) {
  :root { --marquee-h: 36px; }

  /* ヘッダー */
  .sidebar {
    padding: 12px 20px;
    gap: 8px;
    justify-content: center;
  }

  .logo-img { width: 130px; }

  .nav { display: none; }
  .nav-item { font-size: 13px; }

  /* レイアウト */
  .layout {
    left: 20px;
    right: 20px;
    top: 110px;
  }

  .mirror-frame {
    height: 92%;
    border-radius: 12px;
  }

  .marquee-track { font-size: 9px; }

  /* ページ遷移 */
  .page-transition { border-radius: 12px; }

  /* WORK */
  .work-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .work-card { padding: 36px; padding-bottom: 18px; }
  .work-card.work-single-col::after { left: 36px; right: 36px; }
  .work-card-title { font-size: 14px; }
  .work-card-date { font-size: 11px; }

  .work-detail { padding: 36px; }
  .work-detail-body { flex-direction: column; gap: 24px; }
  .work-detail-left { flex: none; position: static; }
  .work-detail-title { font-size: 22px; }
  .work-detail-desc { font-size: 14px; line-height: 2; }
  .work-back-btn { margin-bottom: 20px; }

  /* ABOUT */
  .about-left { padding: 36px 36px 0; }
  .about-left-name { font-size: 24px; }
  .about-left-role { font-size: 11px; }
  .about-right { padding: 36px; }
  .about-lead { font-size: 16px; }
  .about-text { font-size: 14px; line-height: 2; }
  .about-section { margin-bottom: 48px; }
  .about-info-table th { font-size: 13px; padding: 12px 16px 12px 0; }
  .about-info-table td { font-size: 13px; padding: 12px 0; }
  .about-profile { margin-top: 48px; }
  .about-profile-body { flex-direction: column; gap: 24px; }
  .about-profile-left { flex: none; }
  .about-profile-label { font-size: 13px; }
  .about-profile-row { font-size: 13px; }
  .about-profile-year { width: 80px; }

  /* COLUMN */
  .column-sidebar { padding: 36px 36px 0; flex-wrap: wrap; }
  .column-sidebar .page-title { font-size: 22px; width: 100%; }
  .column-filter-btn { font-size: 12px; padding: 5px 14px; }
  .column-main { margin-left: 0; }
  .column-list { padding: 0 0 36px; }
  .column-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .column-item { padding: 24px 36px; }
  .column-item::after { left: 36px; right: 0; }
  .column-item:nth-child(even)::after { left: 0; right: 36px; }
  .column-item.col-single-col::after { left: 36px; right: 36px; }
  .column-item.col-first-row::before { top: 24px; }
  .column-item.col-last-row::before { bottom: 24px; }
  .column-item:nth-child(1),
  .column-item:nth-child(2) { padding-top: 24px; }
  .column-item-title { font-size: 13px; }
  .column-detail { padding: 36px; }
  .column-detail-title { font-size: 20px; }
  .column-detail-body { font-size: 14px; line-height: 2; }
  .column-back-btn { font-size: 12px; }

  /* CONTACT */
  .inner-page { padding: 36px; max-width: 100%; overflow-x: hidden; }
  .contact-lead { font-size: 18px; line-height: 1.8; }
  .contact-form { gap: 16px; max-width: 100%; }
  .form-group input,
  .form-group textarea { font-size: 14px; padding: 10px 14px; border-radius: 8px; }
  .form-submit { padding: 10px 28px; font-size: 13px; }

  /* 確認ダイアログ */
  .confirm-overlay { padding: 16px; }
  .confirm-box { padding: 24px; border-radius: 12px; }
  .confirm-title { font-size: 16px; margin-bottom: 20px; }

  /* モバイルナビ スマホ微調整 */
  body.nav-A .mobile-burger,
  body.nav-B .mobile-burger {
    right: 20px;
    top: calc(var(--marquee-h) + 10px);
  }

  .mobile-nav-item { font-size: 28px; padding: 16px 0; }
  .mobile-nav-item::before { font-size: 8px; left: -22px; }
  .mobile-dd-item { font-size: 16px; padding: 12px 0; }
  .mobile-dropdown { padding: 60px 24px 24px; }
  .mobile-bottom-item { font-size: 11px; }

  /* パターンD: スマホ対応 */
  body.nav-D .sidebar {
    justify-content: flex-start;
    gap: 24px;
  }

  body.nav-D .mobile-header-nav {
    gap: 16px;
  }

  .mobile-header-item {
    font-size: 11px;
  }

  .mobile-header-item::before {
    font-size: 4px;
    left: -10px;
  }

  /* パターンE: スマホ対応 */
  body.nav-E .mobile-burger {
    right: 20px;
    top: calc(var(--marquee-h) + 10px);
  }

  .typo-char {
    font-size: 32px !important;
    letter-spacing: 0.15em !important;
  }
}
