/* =========================================================
   hikkou.css - 筆耕サービスハブページ
   Scope: hikkou.php
   ========================================================= */

/* =========================================================
   Custom Properties (All :root consolidated)
   ========================================================= */
:root {
  /* Intro */
  --c-intro-bg: #f5f3ef;

  /* Service List (atmos) */
  --g-gold-text: linear-gradient(135deg, #c9a55c 0%, #f0d77b 50%, #c9a55c 100%);
  --g-gold-fade: linear-gradient(
    90deg,
    #c9a55c 0%,
    #f0d77b 50%,
    transparent 100%
  );

  /* Related */
  --related-bg: rgba(248, 246, 242, 0.75);
  --related-warm-gray: #c8c0b5;
  --related-sumi: #6b635a;
  --related-gold: #c5a059;
  --related-ink: #2b2b2b;
}

/* =========================================================
   Intro Section (.s-hikkou-intro)
   ========================================================= */

.s-hikkou-intro {
  position: relative;
  padding-top: var(--s-8);
  padding-bottom: 40px;
  overflow: hidden;
}

/* Flow 1: Ambient Flow */
.s-hikkou-intro__ambient-flow {
  position: absolute;
  inset: 0;
  /* 中央を明るくして「道」を通す */
  background: radial-gradient(circle at 50% 30%, #fff 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

/* Flow 2: Flow Guide SVG */
.s-hikkou-intro__flow-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.s-hikkou-intro__flow-svg {
  width: 100%;
  height: 100%;
}
/* アニメーション（任意）：ゆっくり描画される */
.flow-path-l,
.flow-path-r {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawFlow 2s ease-out forwards;
}
@keyframes drawFlow {
  to {
    stroke-dashoffset: 0;
  }
}

.s-hikkou-intro__container {
  position: relative;
  z-index: 10;
}

/* Header */
.s-hikkou-intro__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--s-7);
}

.s-hikkou-intro__kicker {
  display: inline-block;
  font-family: sans-serif;
  font-size: 0.75rem;
  color: var(--c-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--s-3);
  position: relative;
  padding: 0 var(--s-4);
}
.s-hikkou-intro__kicker::before,
.s-hikkou-intro__kicker::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--c-gold);
  opacity: 0.5;
}
.s-hikkou-intro__kicker::before {
  left: 0;
}
.s-hikkou-intro__kicker::after {
  right: 0;
}

.s-hikkou-intro__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-4);
}
.s-hikkou-intro__subtitle {
  font-size: 1.0625rem;
  color: var(--c-text);
  line-height: 1.9;
  letter-spacing: 0.05em;
}

/* Cards (PC Layout) */
.s-hikkou-intro__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

.c-intro-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-1);
  transition: all 0.3s var(--ease-smooth);
  /* ガラス感 */
  backdrop-filter: blur(10px);
}
.c-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--c-gold);
}
.c-intro-card::before {
  /* Top border accent */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold) 0%, transparent 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.c-intro-card:hover::before {
  opacity: 1;
}

.c-intro-card__icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  background: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-smooth);
}
.c-intro-card:hover .c-intro-card__icon-wrap {
  transform: scale(1.1) rotate(5deg);
}
.c-intro-card__icon {
  color: var(--c-gold);
  font-size: 1.5rem;
}

.c-intro-card__title {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-3);
  letter-spacing: 0.05em;
}
.c-intro-card__text {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.8;
}

.s-hikkou-intro__footer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.s-hikkou-intro__note {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.8;
  padding: var(--s-4);
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--r-md);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Flow 3: Bottom Curve */
.s-hikkou-intro__bottom-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}
.s-hikkou-intro__curve-svg {
  display: block;
  width: 100%;
  height: 80px; /* PC height */
}

/* =========================================================================
   SP Optimizations (Compact List & Flow Integration)
   ========================================================================= */
@media (max-width: 768px) {
  .s-hikkou-intro {
    padding-top: var(--s-6);
    padding-bottom: 40px; /* カーブの余白 */
  }

  .s-hikkou-intro__header {
    margin-bottom: var(--s-5);
  }

  .s-hikkou-intro__subtitle {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  /* カーブの高さを調整 */
  .s-hikkou-intro__curve-svg {
    height: 50px;
  }

  /* Cards -> Compact List */
  .s-hikkou-intro__cards {
    grid-template-columns: 1fr;
    gap: var(--s-2); /* 隙間を詰める */
    margin-bottom: var(--s-4);
  }

  .c-intro-card {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    /* 余白を圧縮 */
    padding: var(--s-3) var(--s-3) var(--s-3) var(--s-2);

    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;

    /* 左ボーダーで区切り感 */
    border-left: 3px solid rgba(197, 160, 89, 0.3);
  }

  .c-intro-card:hover {
    transform: none;
    box-shadow: none;
    border-left-color: var(--c-gold);
  }
  /* 不要な装飾削除 */
  .c-intro-card::before {
    display: none;
  }

  /* アイコン周り調整 */
  .c-intro-card__icon-wrap {
    flex-shrink: 0;
    width: 32px; /* 小さく */
    height: 32px;
    margin-bottom: 0;
    background: rgba(197, 160, 89, 0.15);
    margin-top: 2px; /* テキストとのベースライン調整 */
  }
  .c-intro-card__icon {
    font-size: 0.9rem;
  }

  .c-intro-card__content {
    flex: 1;
  }

  .c-intro-card__title {
    font-size: 1rem;
    margin-bottom: 4px; /* タイトル下を詰める */
    display: flex;
    align-items: center;
  }

  .c-intro-card__text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--c-muted);
  }

  /* Footer Note も控えめに */
  .s-hikkou-intro__note {
    font-size: 0.8rem;
    padding: var(--s-2);
    background: transparent;
    border: none;
  }
}

/* =========================================================
   Service List Section (.s-atmos-stream)
   ========================================================= */

/* Section Base */
.s-atmos-stream {
  position: relative;
  background: transparent;
  overflow: hidden;
}

/* Header */
.s-atmos-stream__header {
  text-align: center;
  margin-bottom: var(--s-10);
  position: relative;
  z-index: 2;
}
.s-atmos-stream__label {
  font-family: var(--ff-serif);
  font-size: 0.8rem;
  color: var(--c-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.s-atmos-stream__title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--c-ink);
  margin-bottom: var(--s-4);
  font-feature-settings: "palt";
}
.s-atmos-stream__lead {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--c-text);
  opacity: 0.85;
}

/* Flow Container */
.s-atmos-stream__flow {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   Board with SVG Curved Border
   ========================================================= */
.c-atmos-row {
  position: relative;
  width: 100%;
}

.c-atmos-row__board {
  position: absolute;
  top: 50%;
  left: 0;
  height: 360px;
  width: 55%;

  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-top-right-radius: 180px;
  border-bottom-right-radius: 360px;

  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  z-index: 0;

  transform: translateY(-50%);
  overflow: visible;
}

.c-atmos-row__border {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
}

.c-atmos-row--reverse .c-atmos-row__board {
  left: auto;
  right: 0;
  border-radius: 0;
  border-top-left-radius: 180px;
  border-bottom-left-radius: 360px;
}

/* =========================================================
   Card Layout
   ========================================================= */
.c-atmos-row__inner {
  position: relative;
  z-index: 1;
}

.c-atmos-card {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-8) 0;
  justify-content: flex-start;
}

.c-atmos-card--reverse {
  justify-content: flex-end;
}

.c-atmos-card__text {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.c-atmos-card__visual {
  display: block;
  margin: 0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-decoration: none;
  width: 580px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: visible;
}

.c-atmos-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.c-atmos-card__visual:hover img {
  transform: translateY(-8px) scale(1.025);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.14));
}

/* =========================================================
   Heading
   ========================================================= */
.c-atmos-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.c-atmos-num-large {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--g-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.c-atmos-head__divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--c-gold),
    transparent
  );
  opacity: 0.5;
}

.c-atmos-head__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-atmos-en {
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--g-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.c-atmos-title {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  font-feature-settings: "palt";
}

.c-atmos-head__underline {
  width: 100%;
  max-width: 200px;
  height: 2px;
  background: var(--g-gold-fade);
  margin-top: 8px;
  border-radius: 1px;
}

/* =========================================================
   Description
   ========================================================= */
.c-atmos-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-muted);
  margin-bottom: var(--s-4);
}

/* =========================================================
   Button with ::after pseudo-element arrow
   ========================================================= */
.c-atmos-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 9999px;

  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);

  color: var(--c-ink);
  text-decoration: none;
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  font-weight: 500;

  transition: transform 0.25s var(--ease-smooth, ease), background 0.25s,
    border-color 0.25s, box-shadow 0.25s;
  max-width: fit-content;
}

.c-atmos-btn::after {
  content: "→";
  margin-left: 0.6em;
  font-family: sans-serif;
  transition: transform 0.25s var(--ease-smooth, ease);
}

.c-atmos-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: var(--sh-2, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.c-atmos-btn:hover::after {
  transform: translateX(3px);
}

/* =========================================================
   Watermark
   ========================================================= */
.c-atmos-watermark {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 220px;
  height: 220px;
  background: var(--c-gold);
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.c-atmos-card--reverse .c-atmos-watermark {
  right: auto;
  left: 0;
}

/* =========================================================
   Responsive: Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .c-atmos-card__visual {
    width: 480px;
  }

  .c-atmos-card {
    gap: var(--s-4);
    padding: var(--s-6) 0;
  }

  .c-atmos-row__board {
    height: 320px;
  }
}

/* =========================================================
   Responsive: SP
   ========================================================= */
@media (max-width: 899px) {
  .s-atmos-stream__header {
    margin-bottom: var(--s-10);
  }

  .s-atmos-stream__flow {
    gap: var(--s-10);
    padding: 0 var(--l-gutter);
  }

  .c-atmos-row__board {
    display: none;
  }

  .c-atmos-card,
  .c-atmos-card--reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    padding: 0;
  }

  .c-atmos-card__visual {
    order: 1;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .c-atmos-card__visual img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
    max-height: 360px;
  }

  .c-atmos-card__text {
    order: 2;
    max-width: none;
    width: 100%;
    padding: var(--s-2) 0;
  }

  .c-atmos-num-large {
    font-size: 1.8rem;
  }

  .c-atmos-head__divider {
    height: 40px;
    opacity: 0.4;
  }

  .c-atmos-head__content {
    gap: 4px;
  }

  .c-atmos-en {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .c-atmos-title {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .c-atmos-head__underline {
    max-width: 120px;
    margin-top: 6px;
  }

  .c-atmos-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--s-3);
  }

  .c-atmos-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
  }

  .c-atmos-watermark {
    width: 140px;
    height: 140px;
    bottom: 40px;
    right: -20px;
    opacity: 0.06;
  }
  .c-atmos-card--reverse .c-atmos-watermark {
    right: -20px;
    left: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .c-atmos-card__visual,
  .c-atmos-btn,
  .c-atmos-btn::after {
    transition: none !important;
  }
}

/* =========================================================
   Related Section (.s-related)
   ========================================================= */

/* =========================================================
   Pavilion Roof (from v8)
   ========================================================= */

.s-related__roof {
  position: relative;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248, 246, 242, 0.5) 100%
  );
  z-index: 2;
}

.s-related__roof-beam {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 850px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--related-gold) 25%,
    var(--related-gold) 75%,
    transparent 100%
  );
  opacity: 0.4;
  border-radius: 2px;
}

.s-related__lantern {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--related-gold);
  font-size: 0.75rem;
  z-index: 3;
}

.s-related__lantern-glow {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(197, 160, 89, 0.2) 0%,
    transparent 70%
  );
  animation: lantern-pulse 4s ease-in-out infinite;
}

@keyframes lantern-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* =========================================================
   Section Base (Transparent Background)
   ========================================================= */

.s-related {
  position: relative;
  padding: var(--s-8) 0 var(--s-14);
  overflow: hidden;
}

/* =========================================================
   Background Ink Ripples (from v11)
   ========================================================= */

.s-related__waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.s-related__wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  opacity: 0;
  animation: ink-ripple 24s cubic-bezier(0.16, 0.6, 0.4, 1) infinite;
}

.s-related__wave--1 {
  animation-delay: 0s;
}
.s-related__wave--2 {
  animation-delay: 8s;
}
.s-related__wave--3 {
  animation-delay: 16s;
}

@keyframes ink-ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
    border-width: 1px;
    border-style: dashed;
  }
  30% {
    opacity: 0.06;
    border-style: solid;
  }
  100% {
    transform: scale(20);
    opacity: 0;
    border-width: 0.3px;
  }
}

/* =========================================================
   Texture Overlay
   ========================================================= */

.s-related__texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Handwritten Calligraphy Watermark (from v11)
   ========================================================= */

.s-related__watermark {
  position: absolute;
  bottom: -5%;
  right: 3%;
  width: 20vw;
  max-width: 250px;
  min-width: 130px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.s-related__watermark img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
}

/* =========================================================
   Header
   ========================================================= */

.s-related__header {
  text-align: center;
  margin-bottom: var(--s-5);
  position: relative;
  z-index: 2;
}

.s-related__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  color: var(--related-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.s-related__dot {
  width: 4px;
  height: 4px;
  background: var(--related-gold);
  border-radius: 50%;
  opacity: 0.6;
}

.s-related__title {
  font-family: var(--ff-serif);
  font-size: 2rem;
  color: var(--related-ink);
  margin-bottom: var(--s-4);
  font-feature-settings: "palt";
}

.s-related__lead {
  font-size: 0.95rem;
  line-height: 2;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================================
   Central Ink Drop
   ========================================================= */

.s-related__center {
  position: relative;
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--s-4);
  z-index: 2;
}

.s-related__drop {
  width: 5px;
  height: 5px;
  background: var(--related-warm-gray);
  border-radius: 50%;
  opacity: 0.25;
}

/* =========================================================
   Cards Grid
   ========================================================= */

.s-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  z-index: 2;
}

/* =========================================================
   Card Component
   ========================================================= */

.c-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.c-related-card__inner {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(74, 69, 64, 0.06);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s ease, background 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.c-related-card:hover .c-related-card__inner {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(74, 69, 64, 0.12);
  background: #fff;
}

/* Visual */
.c-related-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.c-related-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.c-related-card:hover .c-related-card__visual img {
  transform: scale(1.1);
}

/* Overlay on Hover */
.c-related-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(3px);
  z-index: 1;
}

.c-related-card:hover .c-related-card__overlay {
  opacity: 1;
}

.c-related-card__viewmore {
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.c-related-card:hover .c-related-card__viewmore {
  transform: translateY(0);
}

/* External Icon */
.c-related-card__external-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(74, 69, 64, 0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.c-related-card:hover .c-related-card__external-icon {
  opacity: 1;
  transform: scale(1);
}

/* Body */
.c-related-card__body {
  padding: 18px;
}

.c-related-card__category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--related-sumi);
  background: rgba(74, 69, 64, 0.06);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.c-related-card__category--gold {
  color: var(--related-gold);
  background: rgba(197, 160, 89, 0.1);
}

.c-related-card__title {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--related-ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-related-card__badge {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--related-gold);
  border: 1px solid var(--related-gold);
  padding: 2px 6px;
  border-radius: 3px;
  background: #fff;
}

.c-related-card__desc {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 14px;
}

.c-related-card__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--related-gold);
  transition: color 0.3s ease;
}

.c-related-card:hover .c-related-card__link {
  color: var(--related-ink);
}

/* External Card Accent - Warm Beige Theme */
.c-related-card--external .c-related-card__inner {
  border: 2px solid var(--related-gold);
  background: linear-gradient(135deg, #f8f5f0 0%, #f0ead8 100%);
  position: relative;
  overflow: visible;
}

/* Gold corner accent */
.c-related-card--external .c-related-card__inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 50px 50px 0;
  border-color: transparent rgba(197, 160, 89, 0.25) transparent transparent;
  pointer-events: none;
}

.c-related-card--external:hover .c-related-card__inner {
  border-color: var(--related-gold);
  border-width: 2px;
  box-shadow: 0 20px 50px rgba(197, 160, 89, 0.25),
    0 0 0 4px rgba(197, 160, 89, 0.15);
  background: linear-gradient(135deg, #faf8f3 0%, #f5efe0 100%);
}

/* Warm theme text colors */
.c-related-card--external .c-related-card__category {
  color: #8b6f3e;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-weight: 600;
}

.c-related-card--external .c-related-card__title {
  color: var(--c-ink);
}

.c-related-card--external .c-related-card__badge {
  color: var(--related-gold);
  border-color: var(--related-gold);
  background: rgba(197, 160, 89, 0.15);
  font-weight: 600;
}

.c-related-card--external .c-related-card__desc {
  color: var(--c-muted);
}

.c-related-card--external .c-related-card__link {
  color: var(--related-gold);
  font-weight: 600;
}

.c-related-card--external:hover .c-related-card__link {
  color: #8b6f3e;
}

/* Fix image overflow for external card */
.c-related-card--external .c-related-card__visual {
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
}

/* Make external icon more prominent */
.c-related-card--external .c-related-card__external-icon {
  opacity: 1;
  transform: scale(1);
  background: var(--related-gold);
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}

.c-related-card--external:hover .c-related-card__external-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.6);
  background: #8b6f3e;
}

/* =========================================================
   Responsive: Tablet
   ========================================================= */

@media (max-width: 1024px) {
  .s-related__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
    margin: 0 auto;
  }
}

/* =========================================================
   Responsive: SP
   ========================================================= */

@media (max-width: 767px) {
  .s-related__roof {
    height: 35px;
  }

  .s-related__roof-beam {
    height: 1.5px;
    width: 80%;
  }

  .s-related__lantern {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .s-related__lantern-glow {
    width: 40px;
    height: 40px;
  }

  .s-related {
    padding: var(--s-5) 0 var(--s-10);
  }

  .s-related__wave--2,
  .s-related__wave--3 {
    display: none;
  }

  .s-related__wave--1 {
    animation-duration: 30s;
  }

  .s-related__center {
    display: none;
  }

  .s-related__watermark {
    width: 28vw;
    bottom: -3%;
    right: 0;
    opacity: 0.025;
  }

  .s-related__header {
    text-align: left;
    padding: 0 var(--s-4);
    margin-bottom: var(--s-4);
  }

  .s-related__label {
    justify-content: flex-start;
  }

  .s-related__title {
    font-size: 1.5rem;
  }

  .s-related__lead {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .s-related__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 var(--s-4);
  }

  .c-related-card__inner {
    display: flex;
    flex-direction: row;
    min-height: 105px;
  }

  .c-related-card__visual {
    width: 105px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .c-related-card__body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .c-related-card__category {
    margin-bottom: 5px;
    padding: 2px 8px;
  }

  .c-related-card__title {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .c-related-card__desc {
    font-size: 0.72rem;
    margin-bottom: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .c-related-card__link {
    display: none;
  }

  .c-related-card--external .c-related-card__inner {
    border-right: 4px solid var(--related-gold);
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .s-related__wave,
  .s-related__lantern-glow {
    animation: none !important;
  }
}

/* =========================================================
   Utility Classes (Consolidated)
   ========================================================= */

/* Spacing Utilities */
.u-indent-1 {
  margin-left: 0.8em;
}

/* Responsive Display Utilities */
.u-sp-only {
  display: none;
}
.u-pc-only {
  display: inline;
}
.u-pc-inline {
  display: inline;
}
.u-sp-hidden {
  display: inline;
}

@media (max-width: 768px) {
  .u-sp-only {
    display: inline;
  }
  .u-pc-only {
    display: none;
  }
  .u-pc-inline {
    display: none;
  }
  .u-sp-hidden {
    display: none;
  }
  .u-indent-1 {
    margin-left: 0;
  }
}
