@charset "UTF-8";

/* ===============================
    トークン（色・余白・タイポ）
   =============================== */
:root {
  --bg: #ffffff;
  --fg: #333333;
  --muted: #666666;

  --shape-opacity: 1;

  /* 横スクの見かけ設定 */
  --panel-gap-x: 0px;

  /* コンテナ余白 */
  --container-pad-x: 8vw;
  --container-pad-y: 8vh;

  /* タイポ */
  --title-size: clamp(2rem, 5vw, 4rem);
  --h1-size: clamp(2.2rem, 6vw, 5rem);

  /* フッター */
  --footer-h: 56px;
  --footer-bg: rgba(255, 255, 255, 0.05);
  --footer-border: rgba(0, 0, 0, 0.01);


  /* ★ アイコン用カラー */
  --icon-scroll-color: #333333;
  --icon-next-bg: #c7b8ff;   /* ラベンダー寄りの淡い青紫 */
  --icon-next-arrow: #333333;
  --icon-return-bg: #ffffff;
  --icon-return-arrow: #333333;
}

/* ===============================
    ベース
   =============================== */
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

h1, h2, h3 {
  line-height: 1.4;
  font-weight: 900;
}

p {
  font-size: 16px;
}


/* ===============================
    背景SVG（固定）
   =============================== */
.background-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.--svg-shape {
  position: absolute;
  opacity: var(--shape-opacity);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .08));
  will-change: transform;
}

.--svg-shape_lg {
  width: clamp(120px, 32vw, 420px);
}

.--svg-shape_md {
  width: clamp(52px, 20vmin, 260px);
}

.--svg-shape_sm {
  width: clamp(36px, 12vmin, 160px);
}

.--svg-shape_lg {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
}


/* ===============================
    FV：スクロールダウンインジケーター
   =============================== */
.fv-hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--container-pad-y) 4vw;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(3.5rem, 10vh, 5.5rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;

  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--icon-scroll-color);

  pointer-events: auto;
  z-index: 2;
}

.scroll-indicator_label {
  font-weight: 600;
}

.scroll-indicator_icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;

  /* ▼ SVGを背景として表示 */
  background-image: url("../images/circle-down-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  display: block;
  position: relative;
}

/* ホバー時に、アイコンがふわっと下に沈んで戻る */
.scroll-indicator:hover .scroll-indicator_icon {
  animation: scrollIndicatorBounce 0.8s ease-out;
}

/* 穏やかなバウンス（強ければ距離をあとで調整） */
@keyframes scrollIndicatorBounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }  /* ← ここが「下へ」の量 */
  100% { transform: translateY(0); }
}

.fv-hero-title {
  margin: 0 0 1.5rem;
  font-size: var(--h1-size);
  line-height: 1.1;
  letter-spacing: .02em;
}

.fv-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}


/* ===============================
  NEXT / RETURN 共通：中央固定（見た目は変えない）
   =============================== */
.next-indicator_icon,
.return-indicator_icon {
  display: grid;
  place-items: center;
}

.next-indicator_icon img,
.return-indicator_icon img {
  display: block;  /* inline由来のズレを根絶 */
  width: 100%;
  height: 100%;
}

/* ===============================
  NEXT（PC専用）
   =============================== */
.next-indicator {
  position: fixed;
  right: clamp(1.5rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;

  cursor: pointer;
  z-index: 8;

  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.next-indicator_icon {
  width: 32px;
  height: 32px;
}

/* hover（PCのみ） */
@media (hover: hover) and (pointer: fine) {
  .next-indicator:hover {
    opacity: 0.9;
    transform: translateY(-50%) translateX(1px);
  }
}

.next-indicator:focus-visible {
  outline: 2px solid rgba(118, 56, 250, 0.72);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .next-indicator {
    display: none;
  }
}

.next-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(6px);
}


/* ===============================
  RETURN（PC専用）
   =============================== */
.return-indicator {
  position: fixed;
  right: clamp(1.5rem, 3vw, 2.5rem);
  bottom: calc(var(--footer-h) + 1.5rem);

  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;

  cursor: pointer;
  z-index: 20;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.18s ease, transform 0.18s ease;
}

.return-indicator_icon {
  width: 40px;
  height: 40px;
}

.return-indicator_icon img {
  opacity: 0.45;
}

.return-indicator.is-visible {
  opacity: 0.9;
  pointer-events: auto;
}

/* hover（PCのみ） */
@media (hover: hover) and (pointer: fine) {
  .return-indicator:hover {
    transform: translateY(-1px);
  }

  .return-indicator:hover .return-indicator_icon img {
    opacity: 0.7;
  }
}

/* フォーカス可視 */
.return-indicator:focus-visible {
  outline: 2px solid rgba(118, 56, 250, 0.72);
  outline-offset: 4px;
}

/* タブレット以下では非表示 */
@media (max-width: 1024px) {
  .return-indicator {
    display: none;
  }
}


/* ===============================
    ショーケース（横スク本体）
   =============================== */
.l-hscroll {
  position: relative;
  z-index: 1;
}

.showcase-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
}

.showcase-content {
  display: flex;
  height: 100vh;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.showcase-panel {
  /* 1パネル = 画面幅 */
  flex: 0 0 calc(100vw - var(--panel-gap-x));
  height: 100vh;
  padding: var(--container-pad-y) var(--container-pad-x);
  display: grid;
  /* 左右2カラム：左=タイトル群、右=テキスト（右揃え） */
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .02), rgba(0, 0, 0, 0));
  border-right: 1px solid rgba(0, 0, 0, .05);
}

.showcase-left {
  display: grid;
  align-content: center;
  row-gap: 6px;
}

.showcase-title {
  margin: 0;
  font-size: var(--title-size);
  letter-spacing: .02em;
}

.showcase-text {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.showcase-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-rightText {
  margin: 0;
  max-width: 64ch;
  margin: 1rem 0;
  color: var(--fg);
}

.showcase-role {
  margin: 0 0 1rem;
  font-size: 1.36rem;
  font-weight: bold;
}

/* ===============================
  SKILLS
=============================== */
.skills-title {
  line-height: 1.2;
  font-size: 1.24rem;
  font-weight: bold;
}

/* 動きを苦手な環境では代替（ふわっとを無効化） */
@media (prefers-reduced-motion: reduce) {
  .showcase-content {
    transform: none !important;
    transition: none !important;
  }
}


/* ===============================
    CONTACT フォーム [Section: CONTACT]
   =============================== */

/* フォーム全体：右カラム内で幅を絞って中央寄せ気味に */
.contact-form {
  width: min(100%, 520px);
  display: grid;
  row-gap: 1rem;
}

/* 1項目分（ラベル＋入力）のかたまり */
.contact-form_row {
  display: flex;
  flex-direction: column;
  row-gap: 0.2rem;
}

/* ラベル（項目名） */
.contact-form_label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 必須マーク（*） */
.required-mark,
.is-required {
  color: #FC006E;
  font-size: 0.86em;
  font-weight: 600;
  margin-left: 0.25em;
}

/* テキスト入力・テキストエリア共通のベース */
.contact-form_input,
.contact-form_textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  line-height: 1.6;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

/* プレースホルダーを少し控えめに */
.contact-form_input::placeholder,
.contact-form_textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

/* フォーカス時：縁取りと影でフォーカスを見やすく */
.contact-form_input:focus-visible,
.contact-form_textarea:focus-visible {
  border-color: rgba(118, 56, 250, 0.85);
  box-shadow: 0 0 0 1px rgba(118, 56, 250, 0.3);
  background-color: rgba(255, 255, 255, 1);
  outline: none;
}

/* 長文エリアだけ縦方向を少し広めに */
.contact-form_textarea {
  min-height: 8rem;
}

/* 送信ボタン周りのレイアウト */
.contact-form_actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* 送信ボタン（ブランド寄りのグラデーション） */
.--btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.7rem 1.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  color: #fff;
  background-image: linear-gradient(135deg,
      #C399FF 0%,
      #A87BFF 45%,
      #8CE6F0 100%);
  box-shadow: 0 3px 5px rgba(64, 55, 52, 0.1);
  transform: translateY(0);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}

/* ホバー時：少しだけ浮かせる */
.--btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 10px rgba(64, 55, 52, 0.2);
  filter: brightness(1.04);
}

/* 押下時：沈み込むように */
.--btn-submit:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(118, 56, 250, 0.3);
  filter: brightness(0.97);
}

/* 無効状態（将来的に disabled を使う場合も想定） */
.--btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* ===============================
    CONTACT：SP レイアウト調整
   =============================== */
@media (max-width: 768px) {
  .contact-form {
    width: 100%;
  }

  .contact-form_actions {
    justify-content: center;
  }
}


/* ===============================
    固定フッター（ABOUT到達で出現）
   =============================== */
.l-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  backdrop-filter: saturate(150%) blur(6px);
  -webkit-backdrop-filter: saturate(150%) blur(6px);
  transform: translateY(100%);
  transition: transform 260ms ease-out;
  z-index: 10;
}

.is-footer-visible .l-footer {
  transform: translateY(0);
}

.site-footer_inner {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: .95rem;
  color: var(--muted);
}

/* ===============================
    ★ PCのみ：FV→ABOUTの縦スナップ（任意）
    html.snap-y が付与されたときだけ有効
   =============================== */
html.snap-y {
  scroll-snap-type: y proximity;
  scroll-padding-top: 25vh;
}

/* proximity or mandatory */
.fv-hero, .showcase {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ===============================
    ★ タブレット以下：左右→上下（縦積み）へ切替
   =============================== */
@media (max-width:1024px) {
  html.snap-y {
    scroll-snap-type: none;
  }

  .fv-hero, .showcase {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .showcase-viewport {
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
    display: block;
  }

  .showcase-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    height: auto;
    transform: none !important;
  }

  .showcase-panel {
    flex: none;
    height: auto;
    min-height: 60vh;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .showcase-right {
    text-align: left;
  }

  .--svg-shape {
    max-width: 100%;
    height: auto;
  }
}


/* ===============================
  THANKSページ（送信完了） 最終レイアウト
   =============================== */
/* メインラッパー：縦横中央＋フッター分の余白を確保 */
.thanks-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    clamp(3rem, 4vh, 5rem) clamp(1rem, 0.53rem + 2.89vw, 4rem) calc(3rem + var(--footer-h));
}

/* 親レイアウト：PCでは2カラム、カード型レイアウト */
.thanks-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: clamp(1.25rem, 2vh, 2rem);

  /* カードの最大幅／最小幅を clamp で管理 */
  width: min(100% - 2rem,
      clamp(16.25rem, 7.048rem + 56.63vw, 75rem));
  padding: clamp(1rem, 0.53rem + 2.89vw, 4rem);
  border: 1px solid rgba(64, 55, 52, 0.1);
  box-sizing: border-box;

  /* デザイン（既存のカードっぽい見た目を踏襲） */
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.54),
      rgba(255, 255, 255, 0.68));
  border-radius: 18px;
  box-shadow: 0 3px 5px rgba(64, 55, 52, 0.1);
}

/* 左側ブロック：タイトル寄せ（showcase-left と同じレイアウト） */
.thanks-left {
  display: grid;
  place-content: center;
  row-gap: 6px;
}

.thanks-title {
  margin: 0;
  font-size: var(--title-size);
  letter-spacing: .02em;
}

.thanks-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
}

.thanks-text {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

/* 右側ブロック：本文エリア（縦に並べる） */
.thanks-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 右側本文（複数段落を共通スタイルで揃える） */
.thanks-rightText {
  margin: 1rem 0;
  max-width: 64ch;
  line-height: 1.8;
  color: var(--fg);
}

/* 戻りリンクの装飾 */
.thanks-backLink {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ===============================
  SP・タブレット：1カラム縦積みレイアウト
   =============================== */
@media (max-width: 768px) {
  .thanks-main {
    padding: 3rem 1.5rem calc(3rem + var(--footer-h));
  }

  .thanks-panel {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 40rem);
    row-gap: 1.75rem;
  }
}