
/* ============================================
   CSS変数
============================================ */
:root {
  --amber: #C8841E;
  --amber-light: #E8B45A;
  --amber-pale: #F5D98A;
  --amber-ultra: #FDF3DC;
  --amber-dark: #7A4E10;
  --terracotta: #B85A2A;
  --forest: #3A6148;
  --forest-light: #5A8A68;
  --sky: #4A8AA8;
  --cream: #FDFAF2;
  --cream-warm: #F8F0DC;
  --cream-deep: #EFE4C4;
  --parchment: #E8D9B4;
  --ink: #1A1208;
  --ink-mid: #3D2E18;
  --ink-light: #6B5538;
  --silver: #8A9AA8;
  --gold-line: rgba(200,132,30,0.2);

  /* スペーシング */
  --section-py: clamp(64px, 10vw, 120px);
  --container-px: clamp(20px, 5vw, 56px);
  --max-width: 1080px;
}

/* ============================================
   リセット・ベース
============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================
   共通レイアウト
============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--amber-light);
}

.section-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  font-weight: 600;
  color: var(--amber);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent);
}

/* ============================================
   ナビゲーション（モバイルファースト）
============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(253,250,242,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1;
}

.nav__logo em {
  font-style: italic;
  color: var(--amber);
}

/* ハンバーガー（モバイル） */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ドロワー（モバイル） */
.nav__drawer {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--gold-line);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  z-index: 490;
}

.nav__drawer.is-open {
  max-height: 400px;
  padding: 8px 0 16px;
}

.nav__drawer ul { list-style: none; }

.nav__drawer a {
  display: block;
  padding: 14px var(--container-px);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.2s;
}

.nav__drawer a:hover { color: var(--amber); }

.nav__drawer .nav__cta-mobile {
  margin: 12px var(--container-px) 0;
  display: block;
  padding: 14px 24px;
  background: var(--amber);
  color: white;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: none;
}

/* PCナビリンク（デスクトップのみ） */
.nav__links {
  display: none;
}

/* ============================================
   HERO（モバイルファースト）
============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 60px; /* nav分 */
}

/* Hero背景画像 */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* モバイルではキャラクターと道が見えるよう中央寄せ */
  transition: background-position 0.3s;
}

/* オーバーレイ：テキスト読みやすさのため */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,18,8,0.75) 0%,
    rgba(26,18,8,0.35) 40%,
    rgba(26,18,8,0.05) 70%,
    transparent 100%
  );
}

/* Hero テキストエリア */
.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(24px, 5vw, 56px) var(--container-px) clamp(32px, 6vw, 64px);
}

.hero__eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--amber-light);
}

.hero__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(42px, 10vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease 0.25s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__title strong {
  font-weight: 700;
  font-style: italic;
  color: var(--amber-pale);
}

.hero__sub {
  font-family: 'Jost', sans-serif;
  font-size: clamp(11px, 2.5vw, 14px);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero__tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 2.5vw, 15px);
  font-weight: 300;
  line-height: 2;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  animation: fadeUp 0.8s ease 0.55s both;
}

/* スクロールヒント */
.hero__scroll {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  right: var(--container-px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 0.8s ease 0.7s both;
}

.hero__scroll span {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber-light), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============================================
   BRAND STORY
============================================ */
.story {
  padding: var(--section-py) 0;
  background: var(--cream-warm);
  position: relative;
  overflow: hidden;
}

/* 背景イラスト（マンチキンの町） */
.story::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/bg_munchkin.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.story__inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  text-align: center;
  position: relative;
}

.story__ornament {
  font-family: 'Cormorant', serif;
  font-size: clamp(20px, 4vw, 28px);
  color: var(--amber-light);
  letter-spacing: 0.3em;
  margin-bottom: 28px;
  display: block;
}

.story__heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 40px;
}

.story__heading strong {
  font-weight: 700;
  font-style: normal;
  color: var(--amber);
}

.story__body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story__body p {
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 2.4;
  color: var(--ink-mid);
}

.story__body p.story__highlight {
  font-family: 'Cormorant', serif;
  font-size: clamp(16px, 3vw, 20px);
  font-style: italic;
  line-height: 1.9;
  color: var(--ink);
  padding: 20px 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.story__keywords {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.story__keyword {
  flex: 1;
  padding: clamp(16px, 3vw, 24px) 16px;
  text-align: center;
  border-right: 1px solid var(--gold-line);
}

.story__keyword:last-child { border-right: none; }

.story__keyword-en {
  font-family: 'Cormorant', serif;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 600;
  font-style: italic;
  color: var(--amber);
  display: block;
  margin-bottom: 4px;
}

.story__keyword-jp {
  font-size: clamp(9px, 1.5vw, 11px);
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

/* ============================================
   ABOUT
============================================ */
.about {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.about__grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__name {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 4px;
}

.about__role {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.about__services {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gold-line);
}

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

.about__bio p {
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 2.3;
  color: var(--ink-mid);
}

.about__bio p.about__feature {
  font-family: 'Cormorant', serif;
  font-size: clamp(16px, 3vw, 19px);
  font-style: italic;
  line-height: 1.8;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid var(--amber);
}

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

.about__strength {
  background: var(--cream-warm);
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--amber);
  padding: clamp(20px, 4vw, 32px);
}

.strength__formula {
  font-family: 'Cormorant', serif;
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 12px;
}

.strength__formula span { color: var(--amber); font-style: italic; }

.strength__desc {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-light);
}

.about__adventure {
  background: var(--ink);
  padding: clamp(20px, 4vw, 32px);
  position: relative;
  overflow: hidden;
}

.about__adventure::after {
  content: '⛰';
  position: absolute;
  right: 12px;
  bottom: 4px;
  font-size: 70px;
  opacity: 0.05;
  pointer-events: none;
}

.adventure__label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 10px;
}

.adventure__text {
  font-size: 13px;
  line-height: 2.2;
  color: rgba(253,250,242,0.65);
}

.adventure__text strong { color: var(--amber-pale); font-weight: 500; }

/* Story サイン */
.story__sign {
  margin-top: 40px;
  padding: 28px 32px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  text-align: center;
}

.story__sign-text {
  font-family: 'Cormorant', serif;
  font-size: clamp(16px, 3vw, 22px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
  color: var(--amber-dark);
  letter-spacing: 0.03em;
}

/* Aboutタイムライン（張り紙スタイル） */
.about__timeline {
  position: relative;
  background-image: url('images/bg_notice_paper.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  padding: clamp(40px, 6vw, 56px) clamp(28px, 4vw, 44px) clamp(32px, 5vw, 48px);
  margin-top: 40px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* 画鋲・上下装飾は非表示 */
.about__timeline::before,
.about__timeline::after {
  display: none;
}

@media (max-width: 767px) {
  .about__timeline {
    margin-top: 24px;
    padding: 40px 20px 32px;
  }
  .works__layout {
    grid-template-columns: 1fr;
  }
}

.about__timeline-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 24px;
}

.about__timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(122,78,16,0.2);
  align-items: start;
}

.about__timeline-item:last-child { border-bottom: none; }

.timeline__year {
  font-family: 'Cormorant', serif;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--amber-dark);
  padding-top: 1px;
  line-height: 1.4;
}

.timeline__text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-mid);
}

/* ============================================
   WORKS
============================================ */
.works {
  padding: var(--section-py) 0;
  background: var(--cream-warm);
}

.works__layout {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.works__desc p {
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 2.3;
  color: var(--ink-mid);
  margin-bottom: 24px;
}

.works__cats {
  display: flex;
  flex-direction: column;
}

.works__cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-line);
  font-family: 'Cormorant', serif;
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 300;
  color: var(--ink);
  transition: color 0.3s;
}

.works__cat:first-child { border-top: 1px solid var(--gold-line); }
.works__cat:hover { color: var(--amber); }

.works__cat-num {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  min-width: 28px;
}

/* CTAボックス */
.works__cta {
  background-color: transparent;
  padding: clamp(36px, 7vw, 56px) clamp(24px, 5vw, 48px);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: none;
  box-shadow: none;
}

/* 看板画像を::beforeで敷いてblend-mode適用 → 四隅が背景に馴染む＋薄く見せる */
.works__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/bg_wood_sign.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}

/* テキストを看板画像の前面に */
.works__cta::after {
  display: none;
}

.works__cta > * {
  position: relative;
  z-index: 1;
}

.works__cta-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber-dark);
  text-shadow: none;
}

.works__cta-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
  -webkit-text-stroke: 2px rgba(255,255,255,0.45);
  paint-order: stroke fill;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.18);
}

.works__cta-heading strong {
  font-weight: 700;
  color: var(--amber-dark);
  font-style: normal;
  -webkit-text-stroke: 2px rgba(255,255,255,0.45);
  paint-order: stroke fill;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.18);
}

.works__cta-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-mid);
  text-shadow: none;
}

.works__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  height: 52px;
  border: 1px solid var(--amber-dark);
  background: rgba(253,250,242,0.55);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  transition: all 0.3s;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.works__cta-btn:hover {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.works__cta--soon {
  opacity: 0.85;
  justify-content: space-between;
}

.works__coming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(90,56,20,0.5);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

/* ============================================
   SKILLS
============================================ */
.skills {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.skills__layout {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skills__sub-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.skills__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.badge {
  background: var(--cream-warm);
  border: 1px solid var(--gold-line);
  padding: clamp(10px, 2vw, 16px) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s, transform 0.3s;
  text-align: center;
}

.badge:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.badge__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge__name {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mid);
  line-height: 1.5;
}

.badge__issuer {
  font-size: 10px;
  color: var(--silver);
}

.skills__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool {
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  transition: all 0.2s;
}

.tool:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* スキルフィーチャーカード */
.skills__feature {
  background-color: transparent;
  border: none;
  border-top: none;
  padding: clamp(40px, 6vw, 56px) clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ブリキ看板画像をmix-blend-modeで背景に馴染ませる */
.skills__feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/bg_tin_sign.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.45;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}

/* テキストを看板より前面に */
.skills__feature > * {
  position: relative;
  z-index: 1;
}

.skills__quote {
  font-family: 'Cormorant', serif;
  font-size: clamp(18px, 3.5vw, 22px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
  paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.skills__quote strong {
  font-weight: 600;
  color: var(--amber-dark);
  font-style: normal;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
  paint-order: stroke fill;
}

.skills__desc {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-mid);
  margin-bottom: 28px;
}

.skills__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}

.pillar {
  background: var(--cream);
  padding: clamp(16px, 3vw, 24px) 12px;
  text-align: center;
}

.pillar__icon { font-size: 24px; margin-bottom: 8px; display: block; }
.pillar__name {
  font-family: 'Cormorant', serif;
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.pillar__desc { font-size: 10px; color: var(--silver); line-height: 1.6; }

/* ============================================
   CONTACT
============================================ */
.contact {
  padding: var(--section-py) 0;
  background: var(--cream-warm);
}

.contact__layout {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact__headline {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact__headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--amber);
}

.contact__desc {
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 2.3;
  color: var(--ink-mid);
  margin-bottom: 28px;
}

.contact__services {
  display: flex;
  flex-direction: column;
}

.contact__service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gold-line);
  font-family: 'Cormorant', serif;
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--ink-mid);
}

.contact__service-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* フォーム */
.form__row { margin-bottom: 18px; }

.form__label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.form__label span { color: var(--amber); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--parchment);
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-color: var(--amber); }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8841E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: white;
  cursor: pointer;
  color: var(--ink-light);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
}

.form__submit {
  width: 100%;
  padding: 16px;
  background: var(--amber);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
  -webkit-appearance: none;
  appearance: none;
}

.form__submit:hover { background: var(--amber-dark); }

.form__note {
  font-size: 11px;
  color: var(--silver);
  margin-top: 12px;
  line-height: 1.8;
}

/* ============================================
   セクション背景イラスト
============================================ */

/* story__innerのz-index（背景より前面に） */
.story__inner {
  position: relative;
  z-index: 1;
}

/* About — 希望の一本道 */
.about {
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/bg_about.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}
.about .container {
  position: relative;
  z-index: 1;
}

/* Works — リンゴの木 */
.works {
  position: relative;
  overflow: hidden;
}
.works::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/bg_works.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}
.works .container {
  position: relative;
  z-index: 1;
}

/* Skills — ケシの花畑 */
.skills {
  position: relative;
  overflow: hidden;
}
.skills::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/bg_skills.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}
.skills .container {
  position: relative;
  z-index: 1;
}

/* Contact — エメラルドシティ */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('images/bg_contact.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}
.contact .container {
  position: relative;
  z-index: 1;
}

.form__reply-note {
  font-family: 'Cormorant', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--amber-dark);
  margin-bottom: 12px;
  padding: 12px 16px;
  border-left: 2px solid var(--amber);
  background: rgba(200,132,30,0.05);
}

/* 名前横レイアウト */
.about__name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

/* Instagramボタン（名前横・小さめ） */
.about__instagram {
  display: none; /* 旧位置は非表示 */
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 3px 10px rgba(131,58,180,0.3);
  flex-shrink: 0;
}

.instagram-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(131,58,180,0.4);
}

/* ============================================
   Works・Skillsの木製風ブロック
============================================ */

.works__cta--soon {
  opacity: 0.8;
}

/* ツールチップ背景色追加 */
.tool {
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  font-weight: 400;
  transition: all 0.2s;
  background: rgba(253,250,242,0.85);
  backdrop-filter: blur(4px);
}

.tool:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(253,250,242,0.95);
}

/* フッターリンク */
.footer__links {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(253,250,242,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--amber-light); }

/* ============================================
   TOPに戻るボタン
============================================ */
.top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 100px;
  height: 120px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.top-btn a {
  display: block;
  width: 100px;
  height: 100px;
  background-image: url('images/btn_top_normal.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s, background-image 0.1s;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.25));
}

.top-btn a:hover {
  background-image: url('images/btn_top_hover.png');
  transform: translateY(-4px);
  filter: drop-shadow(2px 8px 10px rgba(0,0,0,0.3));
}

.top-btn__label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ホバー画像をプリロードしてちかちかを防ぐ */
.top-btn::after {
  content: url('images/btn_top_hover.png');
  display: none;
}

@media (min-width: 768px) {
  .top-btn {
    width: 120px;
    height: 140px;
    bottom: 32px;
    right: 32px;
  }

  .top-btn a {
    width: 120px;
    height: 120px;
  }
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--ink);
  padding: 32px var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer__logo {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--amber-light);
  letter-spacing: 0.05em;
}

.footer__logo em {
  font-style: italic;
  color: rgba(253,250,242,0.4);
  font-size: 14px;
  margin-left: 10px;
  font-weight: 300;
}

.footer__copy {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(253,250,242,0.75);
}

/* ============================================
   アニメーション
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.7); }
}

/* ============================================
   デスクトップ（768px以上）
============================================ */
@media (min-width: 768px) {

  /* ナビ */
  .nav { height: 68px; }
  .nav__hamburger { display: none; }
  .nav__drawer { display: none; }

  .nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
  }

  .nav__links a {
    display: block;
    padding: 8px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-light);
    position: relative;
    transition: color 0.3s;
  }

  .nav__links a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 16px; right: 16px;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transition: transform 0.3s;
  }

  .nav__links a:hover { color: var(--amber); }
  .nav__links a:hover::after { transform: scaleX(1); }

  .nav__links .nav__cta {
    padding: 10px 20px;
    background: var(--amber);
    color: white;
    font-weight: 500;
  }
  .nav__links .nav__cta::after { display: none; }
  .nav__links .nav__cta:hover { background: var(--amber-dark); color: white; }

  /* Hero */
  .hero { margin-top: 68px; }

  /* Hero: モバイルではキャラが左にいるので左寄せに */
  .hero__bg { background-position: center center; }

  /* About グリッド */
  .about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  /* Works */
  .works__cta {
    min-height: 340px;
  }

  /* Skills */
  .skills__layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: start;
  }

  /* Contact */
  .contact__layout {
    display: block;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer */
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   大画面（1200px以上）
============================================ */
@media (min-width: 1200px) {
  .hero__bg { background-position: center 30%; }
}

