@charset "UTF-8";

/* =========================================================
   Feature Detail Page
   Japanese Solid Model Archive
   File: /special/css/feature-detail.css

   方針
   - 福田氏・大町氏・高見氏ページ共通
   - PCでは画像＋本文の横長カード
   - スマホでは画像→本文の縦並び
   - 写真・資料・図版を大きく見せる
   - すべてのセクション画像でホバー拡大を統一
   - 画像を切らずに見せたい場合は .story--contain を付ける
   ========================================================= */


/* ---------------------------------------------------------
   1. Variables
   --------------------------------------------------------- */

:root {
  --bg: #f2eee6;
  --paper: #fffaf3;
  --paper-soft: #faf6ef;
  --paper-warm: #f7f0e6;

  --ink: #29231f;
  --sub: #70675f;
  --muted: #9a9086;

  --line: rgba(41, 35, 31, 0.16);
  --line-strong: rgba(41, 35, 31, 0.28);

  --dark: #211d1a;
  --dark-soft: rgba(33, 29, 26, 0.76);
  --light: #fff7ea;

  --accent: #7a4a2a;
  --accent-soft: #c79a6d;

  --header-height: 64px;

  --max: 1320px;
  --narrow: 940px;

  --font-serif:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Times New Roman",
    serif;

  --font-sans:
    "Helvetica Neue",
    Arial,
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}


/* ---------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}


/* ---------------------------------------------------------
   3. Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(242, 238, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  width: min(calc(100% - 48px), var(--max));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  text-decoration: none;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.09em;
  color: var(--sub);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--ink);
  transform: translateY(-2px);
}


/* ---------------------------------------------------------
   4. Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(92svh - var(--header-height));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.04) saturate(0.9);
  transform: scale(1.05);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.72)
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.70),
      rgba(0, 0, 0, 0.12)
    );
}

.hero::after {
  content: "SPECIAL FEATURE";
  position: absolute;
  right: 3vw;
  bottom: 5vh;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: clamp(54px, 10vw, 150px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.065);
  pointer-events: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 0 0 11vh;
  color: var(--light);
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .eyebrow {
  color: rgba(255, 247, 234, 0.78);
}

.hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(50px, 8.2vw, 112px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
}

.hero h1 span {
  display: block;
  margin-top: 0.18em;
  font-size: 0.42em;
  line-height: 1.28;
  color: rgba(255, 247, 234, 0.86);
}

.hero-lead {
  max-width: 760px;
  margin: 34px 0 0;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: rgba(255, 247, 234, 0.88);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.hero-tags span {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(255, 247, 234, 0.32);
  border-radius: 999px;
  color: rgba(255, 247, 234, 0.86);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate3d(-1%, -0.6%, 0);
  }

  to {
    transform: scale(1.08) translate3d(1%, 0.6%, 0);
  }
}


/* ---------------------------------------------------------
   5. Intro
   --------------------------------------------------------- */

.intro {
  background: var(--bg);
}

.intro-inner {
  width: min(calc(100% - 48px), var(--narrow));
  margin: 0 auto;
  padding: 104px 0 92px;
}

.intro h2,
.intro-title {
  margin: 0 0 34px;
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.intro-title-line {
  display: block;
}

.intro p:not(.eyebrow) {
  margin: 0;
  color: var(--sub);
  font-size: 17.5px;
  line-height: 2.05;
}


/* ---------------------------------------------------------
   6. Story sections
   --------------------------------------------------------- */

.story {
  position: relative;
  width: min(calc(100% - 56px), var(--max));
  min-height: clamp(620px, 82svh, 860px);
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 28px 76px rgba(41, 35, 31, 0.10);
  overflow: hidden;
}

/* 本文を左、画像を右にするカード */
.story--reverse {
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
}

.story--reverse .story-visual {
  order: 2;
}

.story--reverse .story-copy {
  order: 1;
}


/* ---------------------------------------------------------
   6-1. Visual side
   --------------------------------------------------------- */

.story-visual {
  position: relative;
  min-height: clamp(620px, 82svh, 860px);
  background: #e7dfd2;
  overflow: hidden;
}

/* figure型でもdiv型でも同じように扱う */
.story-image-frame,
.document-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #e7dfd2;
}

/* imgが直接 story-visual に入っている場合にも対応 */
.story-visual > img,
.story-image-frame img,
.document-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.02) saturate(0.95);
  transform: scale(1.035);
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
}

/* 全セクション共通のホバー拡大 */
.story:hover .story-visual > img,
.story:hover .story-image-frame img,
.story:hover .document-frame img,
.story:focus-within .story-visual > img,
.story:focus-within .story-image-frame img,
.story:focus-within .document-frame img {
  transform: scale(1.065);
  filter: contrast(1.05) saturate(0.98);
}

/* 写真系 */
.story--photo .story-visual,
.story--photo .story-image-frame,
.story--photo .document-frame {
  background: #ded6ca;
}

/* 資料・図版系も基本は大きく見せる */
.story--document .story-visual,
.story--illustration .story-visual {
  background:
    linear-gradient(
      135deg,
      rgba(255, 250, 243, 0.70),
      rgba(232, 223, 212, 0.80)
    );
}

/* 画像を切らずに見せたい場合だけ使う */
.story--contain .story-image-frame,
.story--contain .document-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 44px);
}

.story--contain .story-image-frame img,
.story--contain .document-frame img,
.story--contain .story-visual > img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(1);
}

/* contain指定でもホバー時に少しだけ拡大 */
.story--contain:hover .story-image-frame img,
.story--contain:hover .document-frame img,
.story--contain:hover .story-visual > img,
.story--contain:focus-within .story-image-frame img,
.story--contain:focus-within .document-frame img,
.story--contain:focus-within .story-visual > img {
  transform: scale(1.025);
}


/* ---------------------------------------------------------
   6-2. Image positioning helpers
   HTML側で class を付けると個別調整可能
   --------------------------------------------------------- */

/* 中央 */
.img-center {
  object-position: center center !important;
}

/* 少し左 */
.img-left {
  object-position: 42% center !important;
}

/* かなり左 */
.img-left-strong {
  object-position: 32% center !important;
}

/* 少し右 */
.img-right {
  object-position: 58% center !important;
}

/* かなり右 */
.img-right-strong {
  object-position: 68% center !important;
}

/* 少し上 */
.img-top {
  object-position: center 35% !important;
}

/* 少し下 */
.img-bottom {
  object-position: center 65% !important;
}

/* 高見氏ページ用の想定画像 */
img[src*="takami-f4b-hero"],
img[src*="takami-f4b-article-title"],
img[src*="takami-f4b-model-overall"],
img[src*="takami-f4b-article-process"],
img[src*="takami-f4b-intake-detail"],
img[src*="takami-f4b-model-final"] {
  object-position: center center;
}


/* ---------------------------------------------------------
   6-3. Captions
   --------------------------------------------------------- */

.story-caption,
.story-image-frame figcaption,
.document-frame figcaption {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  margin: 0;
  max-width: 62%;
  color: rgba(80, 72, 64, 0.72);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: right;
}


/* ---------------------------------------------------------
   6-4. Text side
   --------------------------------------------------------- */

.story-copy {
  position: relative;
  min-height: clamp(620px, 82svh, 860px);
  padding: clamp(48px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 250, 243, 0.97);
  overflow: hidden;
}

.story-label {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}

.story-copy h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 26px;
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.heading-line {
  display: block;
}

.story-catch {
  position: relative;
  z-index: 2;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.06em;
}

.story-copy p:not(.story-label):not(.story-catch):not(.story-index) {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 0 1.35em;
  color: var(--sub);
  font-size: 17px;
  line-height: 2.05;
}

.story-index {
  position: absolute;
  right: 28px;
  bottom: -22px;
  z-index: 1;
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(110px, 11vw, 180px);
  line-height: 1;
  color: rgba(122, 74, 42, 0.055);
  pointer-events: none;
}


/* ---------------------------------------------------------
   7. Archive Gateway
   --------------------------------------------------------- */

.archive-gateway {
  margin-top: 88px;
  background: var(--dark);
  color: var(--light);
}

.archive-inner {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  padding: 104px 0;
}

.archive-gateway .eyebrow {
  color: var(--accent-soft);
}

.archive-gateway h2 {
  max-width: 900px;
  margin: 0 0 30px;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.2;
}

.archive-gateway p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 247, 234, 0.82);
  font-size: 17px;
  line-height: 2;
}

.archive-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.archive-card {
  min-height: 150px;
  display: block;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.archive-card:hover,
.archive-card:focus {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

.archive-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.archive-card strong {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.55;
}


/* ---------------------------------------------------------
   8. Footer
   --------------------------------------------------------- */

.site-footer {
  padding: 42px 24px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.2em 0;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent);
}

.site-footer span {
  margin: 0 8px;
}


/* ---------------------------------------------------------
   9. Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  .story {
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  }

  .story--reverse {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  }

  .story-copy {
    padding: clamp(42px, 4.2vw, 64px);
  }

  .story-copy h2 {
    font-size: clamp(31px, 3.4vw, 46px);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    position: relative;
  }

  .site-header-inner {
    width: min(calc(100% - 40px), var(--max));
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    width: min(calc(100% - 40px), var(--max));
    padding-bottom: 9vh;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 74px);
  }

  .hero h1 span {
    font-size: 0.48em;
  }

  .hero-lead {
    font-size: 17px;
  }

  .intro-inner {
    width: min(calc(100% - 40px), var(--narrow));
    padding: 82px 0 74px;
  }

  .intro h2,
  .intro-title {
    max-width: 760px;
    font-size: clamp(38px, 8vw, 62px);
    line-height: 1.2;
  }

  .intro p:not(.eyebrow) {
    font-size: 16px;
  }

  .story,
  .story--reverse {
    width: min(calc(100% - 32px), 720px);
    min-height: 0;
    margin-bottom: 44px;
    grid-template-columns: 1fr;
  }

  .story--reverse .story-visual,
  .story--reverse .story-copy {
    order: initial;
  }

  .story-visual {
    order: 1;
    min-height: 0;
    height: clamp(320px, 64svh, 540px);
  }

  .story-copy {
    order: 2;
    min-height: 0;
    padding: 36px 28px 48px;
  }

  .story-copy h2 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.22;
  }

  .story-copy p:not(.story-label):not(.story-catch):not(.story-index) {
    font-size: 16px;
    line-height: 1.95;
  }

  .story-index {
    right: 18px;
    bottom: -12px;
    font-size: 112px;
  }

  .story-caption,
  .story-image-frame figcaption,
  .document-frame figcaption {
    right: 18px;
    bottom: 18px;
    font-size: 10.5px;
  }

  .archive-gateway {
    margin-top: 76px;
  }

  .archive-inner {
    width: min(calc(100% - 40px), var(--max));
    padding: 82px 0;
  }

  .archive-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 13px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero::after {
    display: none;
  }

  .hero-tags span {
    font-size: 10.5px;
  }

  .intro h2,
  .intro-title {
    font-size: clamp(34px, 9.5vw, 48px);
    line-height: 1.24;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .story,
  .story--reverse {
    width: min(calc(100% - 24px), 720px);
  }

  .story-visual {
    height: clamp(280px, 56svh, 460px);
  }

  .story-copy {
    padding: 32px 22px 44px;
  }

  .story-label {
    font-size: 10.5px;
    letter-spacing: 0.20em;
  }

  .story-copy h2 {
    font-size: clamp(28px, 8.4vw, 40px);
    line-height: 1.24;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .story-catch {
    font-size: 16px;
  }

  .archive-card {
    min-height: 136px;
  }
}


/* ---------------------------------------------------------
   10. Japanese line-break control
   --------------------------------------------------------- */

html[lang="ja"] .intro h2,
html[lang="ja"] .intro-title,
html[lang="ja"] .story-copy h2 {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

html[lang="ja"] .intro p,
html[lang="ja"] .story-copy p {
  line-break: strict;
}

@media (max-width: 560px) {
  html[lang="ja"] .intro h2,
  html[lang="ja"] .intro-title,
  html[lang="ja"] .story-copy h2 {
    word-break: normal;
    overflow-wrap: break-word;
  }
}


/* ---------------------------------------------------------
   11. English adjustment
   --------------------------------------------------------- */

html[lang="en"] .story-copy h2,
html[lang="en"] .intro h2,
html[lang="en"] .intro-title {
  word-break: normal;
  overflow-wrap: normal;
  line-break: auto;
  letter-spacing: 0.01em;
}

html[lang="en"] .story-copy p,
html[lang="en"] .intro p {
  letter-spacing: 0.03em;
}


/* ---------------------------------------------------------
   12. Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg img,
  .story-visual > img,
  .story-image-frame img,
  .document-frame img {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .site-nav a,
  .archive-card {
    transition: none !important;
  }
}