:root {
  --te-bg: #06152d;
  --te-panel: #0b2447;
  --te-blue: #18bdf5;
  --te-green: #27d59b;
  --te-purple: #a878ff;
  --te-text: #eaf6ff;
  --te-muted: #b6d0e5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--te-text);
  background: #06152d;
  font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}
a { color: inherit; }
.te-shell { overflow: hidden; }
.te-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.te-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 19, 42, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(95, 207, 255, .25);
}
.te-nav { position: relative; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.te-brand { text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; white-space: nowrap; }
.te-brand span { color: var(--te-blue); }
.te-brand { width: 190px; height: 48px; overflow: hidden; display: block; flex: 0 0 auto; }
.te-brand img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.te-studio { flex: 0 0 auto; color: #eaf6ff; font-size: .88rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.te-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; font-size: .9rem; }
.te-menu a { position: relative; text-decoration: none; color: #c9e5fb; transition: color .25s ease; }
.te-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--te-blue); transition: right .28s ease; }
.te-menu a:hover::after, .te-menu a:focus-visible::after { right: 0; }
.te-menu a:hover { color: #fff; }
.te-hero {
  position: relative;
  min-height: 640px;
  display: grid; align-items: center;
  background: linear-gradient(90deg, rgba(2, 11, 28, .97) 0%, rgba(3, 15, 38, .84) 45%, rgba(3, 15, 38, .18) 100%), url("../assets/tachiecho/tachiecho-hero.png") center / cover;
  animation: te-hero-drift 14s ease-in-out infinite alternate;
}
.te-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; pointer-events: none; background: linear-gradient(transparent, #071a35); }
.te-hero-glow { position: absolute; width: 42vw; height: 42vw; min-width: 340px; min-height: 340px; left: -12vw; top: 10%; border-radius: 50%; background: rgba(24,189,245,.14); filter: blur(70px); animation: te-glow-pulse 5s ease-in-out infinite; }
.te-hero-copy { position: relative; z-index: 1; max-width: 630px; padding: 76px 0; }
.te-kicker { margin: 0 0 14px; color: #86dbff; letter-spacing: .14em; font-weight: 700; font-size: .82rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.6rem); line-height: 1; margin-bottom: 22px; letter-spacing: -.055em; animation: te-title-in .85s cubic-bezier(.2,.8,.2,1) both; }
h1 span { color: var(--te-blue); }
.te-lead { max-width: 34em; font-size: clamp(1.05rem, 2vw, 1.28rem); color: #e2f2ff; animation: te-copy-in .8s .18s ease-out both; }
.te-voice-meter { height: 42px; display: flex; align-items: center; gap: 6px; margin: 20px 0 4px; }
.te-voice-meter i { display: block; width: 5px; height: 10px; border-radius: 99px; background: linear-gradient(180deg, #82e8ff, var(--te-blue), var(--te-green)); box-shadow: 0 0 12px rgba(24,189,245,.55); animation: te-meter 1.05s ease-in-out infinite alternate; transform-origin: center; }
.te-voice-meter i:nth-child(2n) { animation-delay: -.7s; }.te-voice-meter i:nth-child(3n) { animation-delay: -.35s; }.te-voice-meter i:nth-child(5n) { animation-delay: -.9s; }
.te-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.te-badge { padding: 5px 13px; border: 1px solid rgba(98, 214, 255, .72); border-radius: 99px; color: #b8ecff; font-size: .86rem; font-weight: 700; animation: te-badge-in .55s ease-out both; }
.te-badge:nth-child(2) { animation-delay: .1s; }.te-badge:nth-child(3) { animation-delay: .2s; }
.te-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.te-button { position: relative; overflow: hidden; display: inline-block; text-decoration: none; padding: 12px 21px; border-radius: 9px; font-weight: 700; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.te-button::after { content: ""; position: absolute; inset: -30% auto -30% -45%; width: 28%; background: rgba(255,255,255,.55); transform: skewX(-18deg); transition: left .45s ease; }
.te-button:hover::after { left: 120%; }.te-button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(24,189,245,.2); }
.te-button.primary { background: linear-gradient(100deg, #198cff, #28d1eb); color: #03152d; }
.te-button.secondary { border: 1px solid rgba(194, 228, 255, .7); color: #fff; }
.te-section { padding: 92px 0; background: #071a35; }
.te-section.alt { background: #0a203e; }
.te-section.light { background: #eff8fd; color: #082448; }
.te-eyebrow { color: var(--te-blue); letter-spacing: .15em; font-size: .78rem; font-weight: 800; margin-bottom: 8px; }
.te-heading { max-width: 800px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.3; margin-bottom: 20px; }
.te-intro { max-width: 780px; color: var(--te-muted); }
.light .te-intro { color: #365a79; }
.te-grid { display: grid; gap: 18px; }
.te-features { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 35px; }
.te-card { padding: 24px; border-radius: 15px; background: rgba(17, 50, 88, .78); border: 1px solid rgba(92, 202, 255, .18); box-shadow: 0 14px 32px rgba(0, 0, 0, .15); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease; }
.te-card:hover { transform: translateY(-9px) rotateX(2deg); border-color: rgba(92,202,255,.55); box-shadow: 0 22px 45px rgba(0,0,0,.28), 0 0 24px rgba(24,189,245,.08); }
.te-card h3 { font-size: 1.07rem; margin-bottom: 8px; }
.te-card p { color: #c0daed; margin-bottom: 0; font-size: .94rem; }
.te-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 54px; }
.te-split.reverse > :first-child { order: 2; }
.te-split.reverse > :last-child { order: 1; }
.te-media { width: 100%; display: block; border-radius: 20px; box-shadow: 0 22px 56px rgba(0, 0, 0, .32); animation: te-media-float 5s ease-in-out infinite; transition: transform .4s ease, box-shadow .4s ease; }
.te-media:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 70px rgba(0,0,0,.38), 0 0 30px rgba(24,189,245,.14); }
.te-list { padding-left: 1.25em; color: var(--te-muted); }
.te-list li + li { margin-top: 5px; }
.te-layer { display: grid; gap: 9px; margin-top: 25px; }
.te-layer div { border-left: 4px solid var(--te-blue); padding: 10px 15px; background: rgba(255, 255, 255, .06); transition: transform .25s ease, background .25s ease; }
.te-layer div:hover { transform: translateX(9px); background: rgba(24,189,245,.12); }
.te-layer strong { display: inline-block; min-width: 6.5em; color: #fff; }
.te-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.te-pair .te-card { padding: 0; overflow: hidden; }
.te-pair img { display: block; width: 100%; aspect-ratio: 1 / .88; object-fit: cover; }
.te-pair .te-card div { padding: 24px; }
.te-table-wrap { overflow-x: auto; margin-top: 28px; }
.te-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.te-table th, .te-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(96, 187, 230, .25); }
.te-table th { color: #8ee6ff; }
.te-notice { padding: 24px; border-radius: 15px; border: 1px solid rgba(255, 196, 93, .45); background: rgba(255, 181, 65, .1); color: #fff2d7; }
.te-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.te-spec { padding: 24px; border-radius: 15px; background: #fff; border: 1px solid #cfe4f1; box-shadow: 0 14px 32px rgba(11, 53, 85, .09); transition: transform .3s ease, box-shadow .3s ease; }
.te-spec:hover { transform: translateY(-7px); box-shadow: 0 21px 40px rgba(11, 53, 85, .15); }
.te-spec h3 { margin-bottom: 9px; color: #0a4c78; }
.te-spec p { margin: 0; color: #365a79; font-size: .92rem; }
.te-footer { padding: 38px 0; background: #041026; color: #9bb9d2; font-size: .9rem; }
.te-footer p { margin: 0; }

.te-motion-ready .te-reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease var(--te-delay, 0ms), transform .75s cubic-bezier(.2,.75,.2,1) var(--te-delay, 0ms); }
.te-motion-ready .te-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes te-title-in { from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes te-copy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes te-badge-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes te-meter { 0% { height: 8px; opacity: .55; } 100% { height: 38px; opacity: 1; } }
@keyframes te-media-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes te-glow-pulse { 0%,100% { opacity: .6; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes te-hero-drift { from { background-position: 48% center; } to { background-position: 53% center; } }

.te-guide-hero { padding: 88px 0; background: linear-gradient(90deg, rgba(3,14,35,.95), rgba(3,14,35,.3)), url("../assets/tachiecho/tachiecho-stream.png") center / cover; }
.te-guide-hero h1 { max-width: 700px; font-size: clamp(2.5rem, 6vw, 5rem); }
.te-guide-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 50px; align-items: start; }
.te-toc { position: sticky; top: 95px; padding: 18px; border-radius: 14px; background: #0c2a52; }
.te-toc strong { display: block; margin-bottom: 8px; }
.te-toc a { display: block; text-decoration: none; color: #cce7fc; padding: 5px 0; font-size: .9rem; }
.te-guide-block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid rgba(93, 190, 237, .22); }
.te-guide-block h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.35; }
.te-guide-block h3 { margin-top: 26px; font-size: 1.2rem; color: #8ee6ff; }
.te-guide-block p, .te-guide-block li { color: #c3d9eb; }
.te-guide-block code { padding: 2px 6px; border-radius: 5px; background: rgba(111, 204, 255, .16); color: #e7f7ff; }
.te-guide-callout { padding: 20px 22px; border-left: 4px solid var(--te-green); background: rgba(31, 178, 139, .1); margin: 22px 0; }

@media (max-width: 840px) {
  .te-nav { padding: 12px 0; align-items: flex-start; }
  .te-menu { font-size: .8rem; gap: 2px 12px; }
  .te-hero { min-height: 600px; background-position: 64% center; }
  .te-hero-copy { padding: 58px 0; }
  .te-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .te-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .te-split, .te-guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .te-split.reverse > :first-child, .te-split.reverse > :last-child { order: initial; }
  .te-toc { position: static; }
  .te-studio { font-size: .76rem; }
  .te-brand { width: 148px; height: 42px; }
}
@media (max-width: 560px) {
  .te-wrap { width: min(100% - 28px, 1120px); }
  .te-nav { display: block; }
  .te-studio { position: absolute; top: 19px; right: 14px; }
  .te-menu { justify-content: flex-start; margin-top: 7px; }
  .te-hero { min-height: 620px; background-position: 67% center; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .te-section { padding: 62px 0; }
  .te-features, .te-pair { grid-template-columns: 1fr; }
  .te-spec-grid { grid-template-columns: 1fr; }
  .te-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .te-motion-ready .te-reveal { opacity: 1; transform: none; }
}
.te-guide-link{display:inline-flex;margin-top:16px;color:#00a8df;font-size:.82rem;font-weight:900;text-decoration:none}.te-guide-link:hover{text-decoration:underline}.te-card .te-guide-link{margin-top:auto;padding-top:16px}.te-guide-actions{margin-top:22px}
