/* =========================================================
   カピ☆ムビ ポートフォリオ
   色を変えたいときは、下の :root の中だけ直せばOKです
   ========================================================= */
:root {
  --bg: #FAF6EE;          /* 背景（クリーム） */
  --bg-alt: #F3ECDF;      /* 交互の背景（少し濃いクリーム） */
  --ink: #2A211B;         /* 文字（こげ茶） */
  --ink-soft: #5E5249;    /* 少し薄い文字 */
  --accent: #A47148;      /* アクセント（キャメル） */
  --line: rgba(42, 33, 27, 0.16); /* 細い線 */
  --line-green: #06C755;  /* LINEボタン */
  --header-h: 72px;
  --font: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;                 /* メニューを押すとなめらかに移動 */
  scroll-padding-top: var(--header-h);     /* 固定メニューの下に隠れないように */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 48px); }

/* ---------- 上部メニュー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: min(1120px, 100% - 48px);
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
}
.nav a {
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__contact {
  padding: 4px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav .nav__contact::after { display: none; }
.nav .nav__contact:hover { background: var(--ink); color: var(--bg); }

/* ---------- トップ ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) 24px 96px;
  text-align: center;
  overflow: hidden;
}
/* 背景のうすい円（控えめな飾り） */
.hero::before {
  content: "";
  position: absolute;
  width: min(80vw, 640px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  animation: fadeUp 1.2s ease both;
}
.hero__label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.hero__copy {
  font-size: clamp(2.2rem, 7.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.hero__line {
  width: 1px;
  height: 56px;
  background: var(--ink);
  margin: 36px auto;
}
.hero__name {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2em;
}
.hero__sub {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  padding-bottom: 52px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 44px;
  background: var(--ink-soft);
  transform-origin: top;
  animation: scrollLine 2.2s ease-in-out infinite;
}

/* ---------- セクション共通 ---------- */
.section { padding-block: clamp(88px, 12vw, 140px); }
.section--alt { background: var(--bg-alt); }

.section__head {
  margin-bottom: clamp(48px, 7vw, 72px);
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section__head--center {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-bottom: none;
  padding-bottom: 0;
}
.section__en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.section__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.section__title small {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- 自己紹介 ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
}
.about__quotes {
  border-left: 1px solid var(--accent);
  padding-left: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.about__quotes p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.7;
}
.about__text {
  display: grid;
  gap: 1.4em;
  color: var(--ink-soft);
}
.about__text strong { color: var(--ink); }

/* ---------- 作品 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 48px);
}
.work {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(42, 33, 27, 0.35);
}
.work__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #E9E0D0;
  overflow: hidden;
}
.work__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.work__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.work__placeholder--soon {
  background: var(--ink);
  color: var(--bg);
}
.work__placeholder--soon span {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  padding-block: 8px;
  border-block: 1px solid rgba(250, 246, 238, 0.4);
}
.work__body { padding: 28px 28px 32px; }
.work__num {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.work__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 14px;
}
.work__title span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.work__desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.work__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.work__meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding-top: 3px;
  white-space: nowrap;
}
.work__meta dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
}
.tag--tool {
  border-color: var(--accent);
  color: var(--accent);
}
.work--soon:hover { transform: none; box-shadow: none; }

/* ---------- できること ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}
.service:hover { background: var(--bg-alt); }
.service__num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
}
.service__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.service__text {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service--soon .service__text {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 2px 12px;
  border: 1px dashed var(--ink-soft);
  border-radius: 999px;
}

/* ---------- 料金 ---------- */
.price__table {
  width: 100%;
  border-collapse: collapse;
}
.price__table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-align: left;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ink);
}
.price__table thead th:last-child { text-align: right; }
.price__table tbody th,
.price__table tbody td {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.price__table tbody th {
  font-weight: 700;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}
.price__table tbody th span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.price__table td {
  text-align: right;
  white-space: nowrap;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-left: 16px !important;
}
.price__table td small {
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 2px;
  color: var(--ink-soft);
}
.price__table td.price__ask {
  font-size: 1rem;
  color: var(--accent);
}
.price__note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- 連絡先 ---------- */
.contact { text-align: center; }
.contact__box {
  padding: clamp(40px, 7vw, 64px) 24px;
  border: 1px solid var(--line);
  background: #FFFDF8;
}
.contact__lead {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact__lead strong {
  color: var(--accent);
  background: linear-gradient(transparent 70%, rgba(164, 113, 72, 0.18) 70%);
}
.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 420px);
  padding: 22px 28px;
  background: var(--line-green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(6, 199, 85, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s;
}
.line-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -10px rgba(6, 199, 85, 0.6);
  filter: brightness(1.04);
}
/* LINE開設までの「準備中」表示（押せない） */
.line-btn--soon {
  background: #B9B2A8;
  box-shadow: none;
  cursor: default;
}
.line-btn--soon:hover { transform: none; box-shadow: none; filter: none; }
.line-btn--soon .line-btn__icon { color: #B9B2A8; }

.line-btn__icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--line-green);
  background: #fff;
  border-radius: 8px;
  padding: 4px 7px;
  line-height: 1;
}
.contact__small {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- フッター ---------- */
.footer {
  padding: 48px 24px;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
}
.footer__name {
  font-weight: 700;
  letter-spacing: 0.16em;
}
.footer__copy {
  font-family: var(--font-en);
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* ---------- 動き ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* スクロールすると内容がふわっと出てくる
   （JavaScriptを使わず、CSSだけで動かしています。
     対応していない古いブラウザでは、動きなしでふつうに表示されます） */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* 「動きを減らす」設定の人には動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- タブレット ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  :root { --header-h: 104px; }

  body { font-size: 15px; }

  .container,
  .container--narrow { width: calc(100% - 40px); }

  .header__inner {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-inline: 0;
  }
  .header__logo { font-size: 1.05rem; }
  .nav {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding-inline: 12px;
    font-size: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 8px; }
  .nav a::after { display: none; }
  .nav .nav__contact { padding: 5px 14px; }

  .hero__line { height: 40px; margin: 28px auto; }

  .section__head {
    flex-direction: column;
    gap: 6px;
  }

  .works { grid-template-columns: 1fr; }   /* 作品はスマホで1列 */
  .work__body { padding: 22px 20px 26px; }

  .services { grid-template-columns: 1fr; }
  .service { padding: 28px 22px 30px; }

  .price__table tbody th,
  .price__table tbody td { padding: 20px 0; }
  .price__table tbody th { font-size: 0.95rem; }

  .line-btn { padding: 20px 20px; font-size: 1rem; }
}
