/* VoiStock corporate site
   デザインは声たび（koe-tabi.com）のトークンをベースに、VoiStock ロゴの CMY をアクセントに使う */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* koe-tabi.com と共通のトークン */
  --primary: #14659e;
  --primary-hover: #0f5385;
  --pink: #d52c83;
  --yellow: #f3d822;
  --bg: #f5f7fa;
  --bg-card: #fff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-body: #1e293b;
  --text-secondary: #404d5f;
  --text-muted: #525c69;
  --radius-card: 16px;
  --radius-btn: 12px;

  /* アクセントの淡色（番号チップ・タグ） */
  --tint-blue: #e6f0f8;
  --tint-pink: #fbe9f2;
  --tint-yellow: #fdf8d6;
  --yellow-ink: #8a7300;
  --koetowa-teal: #8ec8c6;
  --koetowa-orange: #eaa04f;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 40px rgba(15, 23, 42, .10);

  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-display: "Poppins", var(--font);

  --container: 1120px;
  --header-h: 68px;
}

*, *::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(--text-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

/* ---------- 共通：セクション見出し ---------- */
.section { padding: 112px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--primary);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 20px; height: 2px; border-radius: 2px; }
.eyebrow::before { background: var(--yellow); }
.eyebrow::after { background: var(--pink); }
.section-title {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
}
html[lang="en"] .section-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--radius-btn);
  background: var(--primary); color: #fff;
  font: 700 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--youtube { background: #e62117; }
.btn--youtube:hover { background: #c41b12; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.header.is-scrolled { background: rgba(255, 255, 255, .88); border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.header__logo { flex: none; width: 132px; }
.header__logo img { width: 100%; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--primary); background: var(--tint-blue); }
.nav a.is-active { color: var(--primary); }

/* 言語切替 */
.lang { position: relative; flex: none; }
.lang__btn {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 6px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; cursor: pointer;
}
.lang__btn svg.chev { width: 12px; height: 12px; transition: transform .2s; }
.lang.is-open .lang__btn svg.chev { transform: rotate(180deg); }
.flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 156px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: none;
}
.lang.is-open .lang__menu { display: block; }
.lang__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; line-height: 1.4; text-decoration: none;
}
.lang__menu a:hover { background: var(--bg); }
.lang__menu a[aria-current="true"] { color: var(--primary); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  padding: calc(var(--header-h) + 40px) 16px 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  background: #fff;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  /* 下端を背景色にフェード */
  content: ""; position: absolute; inset: auto 0 0; height: 200px; z-index: -1;
  background: linear-gradient(to bottom, rgba(245, 247, 250, 0), var(--bg));
}
.hero__logo { width: min(440px, 76vw); height: auto; }
.hero__tagline {
  margin-top: 40px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
}
html[lang="en"] .hero__tagline { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-muted); border-radius: 999px;
  opacity: .6;
}
.hero__scroll::before {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--text-muted);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Products ---------- */
.products { padding-top: 40px; }
.products__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.product {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product__visual { aspect-ratio: 1200 / 630; overflow: hidden; }
.product__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product__visual img { transform: scale(1.03); }
.product__visual--koetowa {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 22% 30%, rgba(142, 200, 198, .45), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(234, 160, 79, .35), transparent 55%),
    #fbfaf8;
}
.product__visual--koetowa img {
  width: 44%; height: auto; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.product:hover .product__visual--koetowa img { transform: scale(1.04); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 32px 36px 36px; }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .04em;
}
.tag--blue { background: var(--tint-blue); color: var(--primary); }
.tag--pink { background: var(--tint-pink); color: var(--pink); }
.tag--yellow { background: var(--tint-yellow); color: var(--yellow-ink); }
.product__name {
  margin-top: 16px;
  color: var(--text);
  font-size: 28px; font-weight: 700; line-height: 1.4;
}
.product__name small {
  margin-left: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.product__catch { margin-top: 6px; color: var(--primary); font-size: 17px; font-weight: 700; line-height: 1.6; }
.product__desc { margin-top: 16px; color: var(--text-secondary); font-size: 15px; }
.product__meta {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; padding: 14px 16px;
  border-radius: 12px; background: var(--bg);
  color: var(--text-secondary); font-size: 14px; line-height: 1.6;
}
.product__meta svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--primary); }
.product__cta { margin-top: auto; padding-top: 28px; }
.product__cta .btn { width: 100%; }

/* ---------- Services ---------- */
.services { background: #fff; }
.section-lead {
  max-width: 720px; margin: 20px auto 0;
  color: var(--text-secondary); font-size: 16px; line-height: 1.9;
}
.services__group + .services__group { margin-top: 64px; }
.services__group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 4px;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.services__group-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: .18em; color: var(--primary);
}
.services__group-name { color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.4; }
html[lang="en"] .services__group-name { font-family: var(--font-display); font-weight: 600; }
.services__group-desc { margin-left: auto; color: var(--text-muted); font-size: 14px; }
.services__grid { display: grid; gap: 24px; }
.services__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 色は service--blue / pink / yellow で切り替える（アイコン・チェック） */
.service--blue { --c: var(--primary); --tint: var(--tint-blue); }
.service--pink { --c: var(--pink); --tint: var(--tint-pink); }
.service--yellow { --c: var(--yellow-ink); --tint: var(--tint-yellow); }
.service {
  display: flex; flex-direction: column;
  padding: 32px 32px 30px;
  background: var(--bg);
  border: 1px solid #eef2f6;
  border-radius: var(--radius-card);
  transition: background-color .3s, box-shadow .3s, transform .3s;
}
.service:hover { background: #fff; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.service__icon {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--tint); color: var(--c);
  transition: transform .3s;
}
.service:hover .service__icon { transform: scale(1.06) rotate(-3deg); }
.service__icon svg { width: 28px; height: 28px; }
.service__content { display: flex; flex-direction: column; flex: 1; }
.service__title { margin: 20px 0 0; color: var(--text); font-size: 19px; font-weight: 700; line-height: 1.55; }
.service__body { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }
.service__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.service__points li {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px 4px 8px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff;
  color: var(--text-body); font-size: 12.5px; font-weight: 700; line-height: 1.6;
}
.service__check { width: 14px; height: 14px; flex: none; color: var(--c); stroke-width: 2.6; }

/* 配信プラットフォーム（2枚）はアイコンを左に置く横長カード */
.services__grid--2 .service { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; align-items: start; }
.services__grid--2 .service__content { height: 100%; }
.services__grid--2 .service__title { margin-top: 10px; }

/* 日本語は文節で改行する（対応ブラウザのみ。非対応でも通常の改行になるだけ） */
html[lang="ja"] .section-title, html[lang="ja"] .section-lead,
html[lang="ja"] .service__body, html[lang="ja"] .services__custom-title, html[lang="ja"] .services__custom-body { word-break: auto-phrase; }
.section-lead, .services__custom-title { text-wrap: balance; }

/* 組み合わせバナー */
.services__custom {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px;
  margin-top: 64px; padding: 36px 44px;
  border-radius: var(--radius-card);
  background: linear-gradient(110deg, var(--tint-blue), var(--tint-pink) 55%, var(--tint-yellow));
}
.services__custom-icons { display: flex; }
.services__custom-icons span {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--c);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.services__custom-icons span + span { margin-left: -10px; }
.services__custom-icons svg { width: 24px; height: 24px; }
.services__custom-title { color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.5; }
html[lang="en"] .services__custom-title { font-family: var(--font-display); font-weight: 600; }
.services__custom-body { margin-top: 6px; color: var(--text-secondary); font-size: 15px; }
.services__custom .btn { white-space: nowrap; }

/* ---------- Contact ---------- */
.contact__card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.contact__intro {
  position: relative;
  padding: 56px 48px;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}
.contact__intro::before, .contact__intro::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.contact__intro::before { width: 320px; height: 320px; right: -110px; bottom: -130px; background: rgba(255, 255, 255, .07); }
.contact__intro::after {
  width: 200px; height: 200px; right: -30px; bottom: -50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .04);
}
.contact__accent { display: flex; gap: 6px; margin-top: 28px; }
.contact__accent span { width: 28px; height: 4px; border-radius: 4px; }
.contact__accent span:nth-child(1) { background: var(--yellow); }
.contact__accent span:nth-child(2) { background: var(--pink); }
.contact__accent span:nth-child(3) { background: #7fb8e0; }
.contact__intro .eyebrow { color: #fff; }
.contact__title { margin-top: 12px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.45; }
html[lang="en"] .contact__title { font-family: var(--font-display); font-weight: 600; }
.contact__form { padding: 56px 48px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 101, 158, .12);
}
.form textarea { height: 160px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #8a94a3; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { width: 100%; }
.form button:disabled { opacity: .6; cursor: default; }
.form__msg { margin-top: 14px; min-height: 1.6em; color: var(--text-secondary); font-size: 15px; text-align: center; }
.form__msg.is-error { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; background: #fff; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo { width: 120px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.footer__nav a { color: var(--text-secondary); text-decoration: none; }
.footer__nav a:hover { color: var(--primary); }
.footer__copy { width: 100%; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; line-height: 1.7; text-align: center; }

/* ---------- スクロール時のフェードイン ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services__grid--3 { grid-template-columns: 1fr; gap: 16px; }
  .services__grid--3 .service { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .services__grid--3 .service__title { margin-top: 10px; }
  .services__custom { grid-template-columns: minmax(0, 1fr) auto; }
  .services__custom-icons { grid-column: 1 / -1; }
  .contact__card { grid-template-columns: 1fr; }
  .contact__intro { padding: 40px 32px; }
  .contact__form { padding: 40px 32px; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .header__inner { gap: 12px; }
  .header__logo { width: 104px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 8px; font-size: 12px; }
  .lang__btn { padding: 0 6px 0 4px; gap: 4px; height: 32px; }
  .hero { padding-bottom: 96px; }
  .hero__tagline { margin-top: 28px; }
  .products__grid { grid-template-columns: 1fr; gap: 24px; }
  .product__body { padding: 24px 22px 26px; }
  .product__name { font-size: 24px; }
  .section-lead { font-size: 15px; text-align: left; }
  .services__group + .services__group { margin-top: 48px; }
  .services__group-name { font-size: 19px; }
  .services__group-desc { margin-left: 0; width: 100%; font-size: 13px; }
  .services__grid--2 { grid-template-columns: 1fr; gap: 16px; }
  .services__grid--2 .service, .services__grid--3 .service { display: flex; padding: 24px 22px 24px; }
  .services__grid--2 .service__title, .services__grid--3 .service__title { margin-top: 16px; }
  .service__icon { width: 48px; height: 48px; border-radius: 12px; }
  .service__icon svg { width: 24px; height: 24px; }
  .services__custom { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; padding: 28px 22px; }
  .services__custom .btn { width: 100%; }
  .contact__intro { padding: 32px 24px; }
  .contact__form { padding: 28px 20px 32px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
  .hero { min-height: 520px; }
}
@media (max-width: 380px) {
  .header__logo { width: 88px; }
  .nav a { padding: 6px 5px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::before { animation: none; }
  .product, .product__visual img, .service, .service__icon { transition: none; }
}
