/* ATONA 官網樣式表 — 純 CSS，無第三方程式碼。
   色彩與版面依原站規格重製。 */

:root {
  --c-primary: #276681;
  --c-accent: #00a3bc;
  --c-dark: #111111;
  --c-green: #89a18f;
  --c-pink: #c5a59f;
  --c-yellow: #c0b596;
  --c-blue: #7195a4;
  --c-text: #222222;
  --c-grey: #646464;
  --c-grey-dark: #323232;
  --c-red: #ea4335;
  --shadow-nav: 0 7px 15px 0 rgba(0, 64, 151, 0.1);
  --nav-h: 60px;
  --font: "PingFang TC", "Heiti TC", Meiryo, "微軟正黑體", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", Arial, sans-serif;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html, .timeline__years { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; vertical-align: -0.15em; fill: none; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--c-primary); color: #fff; text-decoration: none; border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid #ffb84d; outline-offset: 2px; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: #fff; box-shadow: var(--shadow-nav);
}
.nav {
  display: flex; align-items: center; height: 100%;
  padding: 0 100px 0 40px;
}
.nav__brand { display: inline-flex; align-items: center; height: 26px; flex: none; }
.nav__brand img { height: 26px; width: auto; }
.nav__brand--mystory { margin-right: 20px; }
.nav__divider { display: inline-block; width: 1px; height: 34px; background: var(--c-primary); margin: 0 30px; flex: none; }
.nav__menu {
  display: flex; align-items: center; flex: 1 1 auto;
  margin-left: clamp(24px, 4vw, 60px); gap: clamp(20px, 3.4vw, 56px);
  letter-spacing: 1px;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-block; color: var(--c-primary); text-decoration: none; line-height: var(--nav-h);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active, .nav__toggle[aria-expanded="true"] { text-decoration: underline; }
.nav__sub {
  position: absolute; top: var(--nav-h); left: -20px; width: 160px;
  background: #fff; box-shadow: var(--shadow-nav);
  display: none;
}
.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub,
.nav__item--sub.is-open .nav__sub { display: block; }
.nav__sublink {
  display: block; padding: 0 20px; line-height: 60px; color: var(--c-primary); text-decoration: none; white-space: nowrap;
}
.nav__sublink:hover, .nav__sublink.is-active { text-decoration: underline; }
.nav__lang {
  display: flex; flex-direction: column; align-items: center; flex: none;
  margin-left: auto; width: 70px; color: var(--c-primary); font-weight: 600; text-decoration: none; line-height: 1;
}
.nav__lang .icon { width: 30px; height: 30px; margin-bottom: 3px; }
.nav__burger { display: none; }

@media (max-width: 1100px) {
  .nav { padding: 0 40px 0 24px; }
  .nav__divider { margin: 0 18px; }
}
@media (max-width: 800px) {
  .nav { padding: 0 12px 0 16px; }
  .nav__brand img { height: 22px; }
  .nav__divider { margin: 0 12px; height: 28px; }
  .nav__brand--mystory { margin-right: 10px; }
  .nav__lang { width: 56px; }
  .nav__lang .icon { width: 24px; height: 24px; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-left: 4px; color: var(--c-primary);
  }
  .nav__burger .icon { width: 26px; height: 26px; }
  .nav__burger .icon--close, .nav__burger[aria-expanded="true"] .icon--menu { display: none; }
  .nav__burger[aria-expanded="true"] .icon--close { display: inline-block; }
  .nav__menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; box-shadow: var(--shadow-nav); max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__menu.is-open { display: flex; }
  .nav__sub, .nav__item--sub:hover .nav__sub { display: block; position: static; width: auto; box-shadow: none; }
  .nav__link, .nav__sublink { display: block; text-align: center; padding: 20px 0; line-height: 1; }
  .nav__menu .nav__toggle { display: none; } /* 要放在 .nav__link 規則之後、且要更高的權重才蓋得掉 display:block */
}

/* ---------- 共用元件 ---------- */
.section-title {
  position: relative; text-align: center; color: var(--c-primary);
  padding: 70px 16px 17px; letter-spacing: 2px;
}
.section-title h1, .section-title h2 { font-size: 1.7rem; letter-spacing: 4px; font-weight: bold; margin-bottom: 13px; line-height: 1.2; }
.section-title__line { display: inline-block; width: 50px; height: 3px; background: var(--c-primary); }

.line-btn {
  position: fixed; right: 18.5px; bottom: 84px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: #06c755; color: #fff; text-decoration: none;
  font-size: 9px; font-weight: bold; letter-spacing: 1px; line-height: 1;
  filter: drop-shadow(2px 3px 3px rgba(51, 51, 102, 0.6));
}
.line-btn .icon { width: 22px; height: 22px; margin-bottom: 2px; }
.line-btn:hover { background: #05b34c; }
.to-top {
  position: fixed; right: 18.5px; bottom: 149px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 55px; border-radius: 50%; background: var(--c-primary); color: #fff;
  filter: drop-shadow(2px 3px 3px rgba(51, 51, 102, 0.6));
  opacity: 0; transition: opacity 0.4s; font-size: 9px; font-weight: bold; letter-spacing: 1px; line-height: 1;
}
.to-top .icon { width: 20px; height: 20px; margin-bottom: 2px; }
.to-top.is-visible { opacity: 1; }
.to-top[hidden] { display: none; }

/* YouTube 點擊後才載入（避免頁面一開就連到第三方） */
.yt {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: #1f2a30; color: #fff;
}
.yt__poster {
  display: block; width: 100%; height: 100%; padding: 0; text-align: left;
  background: linear-gradient(135deg, #24515f, #0f1c22);
}
.yt__poster img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.yt__poster::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.15); transition: background 0.3s;
}
.yt__poster:hover::after, .yt__poster:focus-visible::after { background: rgba(0, 0, 0, 0.35); }
.yt__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%; background: rgba(39, 102, 129, 0.92);
  transition: transform 0.3s, background 0.3s;
}
.yt__play .icon { width: 34px; height: 34px; margin-left: 4px; }
.yt__poster:hover .yt__play { transform: translate(-50%, -50%) scale(1.1); background: var(--c-primary); }
.yt__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 16px;
  font-size: 14px; line-height: 1.4; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}
.yt iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 16 / 9) {
  .yt::before { content: ""; display: block; padding-top: 56.25%; }
  .yt__poster { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .lightbox__player::before { content: ""; display: block; padding-top: 56.25%; }
  .lightbox__player iframe { position: absolute; top: 0; left: 0; }
}

/* ---------- 頁尾 ---------- */
.footer { position: relative; }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 0 20px; min-height: 168px;
  padding: 24px 6% 24px calc(22% + 240px); background: var(--c-primary); color: #fff; font-size: 0.9em;
}
.footer__col { width: 250px; line-height: 40px; }
.footer__title { display: block; font-size: 15px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand > a { text-decoration: none; }
.footer__brand > a:hover { text-decoration: underline; }
.footer__social { display: inline-flex; align-items: center; gap: 9px; }
.social { display: inline-flex; color: #efebe3; }
.social .icon { width: 22px; height: 22px; }
.social:hover { color: #fff; }
.footer__contact { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer__contact:hover span { text-decoration: underline; }
.footer__contact .icon { width: 16px; height: 16px; flex: none; }
.footer__copyright { background: var(--c-accent); color: #fff; text-align: center; font-size: 14px; padding: 30px 5%; letter-spacing: 0.5px; }
@media (max-width: 1100px) { .footer__links { padding-left: 10%; } }
@media (max-width: 800px) {
  .footer__links { padding: 24px 8%; gap: 10px 30px; }
  .footer__col { width: auto; min-width: 200px; }
}

/* ---------- 首頁 ---------- */
.home { padding-top: var(--nav-h); }
.intro {
  position: relative; z-index: 1; display: flex; align-items: stretch;
  padding: 48px 100px 57px; background: #fff;
}
.intro__bar { flex: none; width: 5px; background: var(--c-primary); margin-right: 15px; }
.intro__text { line-height: 30px; color: var(--c-primary); }
.hero {
  position: relative; z-index: 0; height: 36.5vw; overflow: hidden; background: var(--c-primary);
}
.hero__slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 1.2s; pointer-events: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero__img { position: fixed; left: 0; width: 100%; height: auto; }
.hero__img--1 { margin-top: -30vw; }
.hero__img--2 { margin-top: -37vw; }
.hero__img--3 { margin-top: -24vw; }
.hero__img--4 { position: relative; margin-top: 0; }
.hero__label {
  position: absolute; top: 40px; left: 80px; display: flex; align-items: center; height: 60px;
  padding: 0 30px 0 10px; background: rgba(26, 26, 51, 0.6);
  border-radius: 100px 0 0 100px; box-shadow: 12px 0 12px rgba(26, 26, 51, 0.7); color: #fff;
}
.hero__ball {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 60px; height: 60px; margin-left: -10px; border-radius: 50%;
}
.hero__ball .icon { width: 30px; height: 30px; }
.hero__ball--green { background: var(--c-green); }
.hero__ball--pink { background: var(--c-pink); }
.hero__ball--yellow { background: var(--c-yellow); }
.hero__ball--blue { background: var(--c-blue); }
.hero__text { margin-left: 10px; font-size: 16px; line-height: 1.3; }
.hero__arrow {
  position: absolute; z-index: 3; top: 16vw; width: max(32px, 4.2vw); height: max(32px, 4.2vw);
  color: #fff; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.hero__arrow .icon { width: 100%; height: 100%; }
.hero__arrow--prev { left: 30px; }
.hero__arrow--next { right: 30px; }
.hero__dots {
  position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero__dot { width: 10px; height: 10px; border: 1px solid #fff; border-radius: 50%; }
.hero__dot.is-active { background: #fff; }

.services { position: relative; padding-bottom: 120px; background: var(--c-primary); }
.services .section-title { color: #fff; }
.services .section-title__line { background: #fff; }
.services__grid { display: flex; flex-wrap: wrap; justify-content: center; padding-top: 80px; }
.service {
  position: relative; display: block; width: 190px; height: 190px; margin: 20px 3%;
  padding: 30px 35px 70px; border: 2px solid #fff; border-radius: 50%;
  text-align: center; color: #fff; text-decoration: none; line-height: 20px;
  filter: drop-shadow(4px 4px 8px rgba(51, 51, 102, 0.5));
  transition: transform 0.8s, background 0.8s, border-color 0.8s;
}
.service .icon { display: block; width: 36px; height: 36px; margin: 0 auto 10px; }
.service--yellow .icon { margin-bottom: 17px; }
.service__detail {
  display: none; position: absolute; left: 10%; top: 0; width: 90%; margin-top: 13%;
  text-align: left; font-size: 8px; line-height: 15px; white-space: nowrap;
}
.service:hover, .service:focus-visible { transform: scale(1.4); color: transparent; z-index: 2; }
.service:hover .icon, .service:focus-visible .icon { opacity: 0; }
.service:hover .service__detail, .service:focus-visible .service__detail { display: block; color: #fff; }
.service--green:hover, .service--green:focus-visible { background: var(--c-green); border-color: var(--c-green); }
.service--pink:hover, .service--pink:focus-visible { background: var(--c-pink); border-color: var(--c-pink); }
.service--yellow:hover, .service--yellow:focus-visible { background: var(--c-yellow); border-color: var(--c-yellow); }
.service--blue:hover, .service--blue:focus-visible { background: var(--c-blue); border-color: var(--c-blue); }
.service--en { font-size: 12px; line-height: 17px; }
.service--en .service__detail { white-space: normal; font-size: 7px; line-height: 12px; }

.clients { position: relative; padding-bottom: 70px; text-align: center; background: #fff; }
.clients__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 4%; align-items: center;
  padding: 70px 22%;
}
.clients__grid img { width: 100%; }

@media (max-width: 1130px) { .clients__grid { padding: 70px 12%; } }
@media (max-width: 900px) {
  .intro { padding: 30px 40px 17px; }
  .intro__bar { display: none; }
  .intro__text { font-size: 12px; line-height: 22px; }
  .hero { height: 54.5vw; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); padding: 40px 10%; }
}
@media (max-width: 800px) {
  .intro { padding-left: 6.5vw; padding-bottom: 5px; }
  .hero__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }
  .hero__label { top: 20px; left: 20px; height: 40px; padding-right: 18px; }
  .hero__ball { width: 44px; height: 44px; }
  .hero__ball .icon { width: 22px; height: 22px; }
  .hero__text { font-size: 15px; }
  .hero__arrow { top: 25vw; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .services { padding-top: 20px; }
  .services__grid { padding-top: 40px; }
  .service { margin: 20px 8px; }
}
@media (max-width: 600px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 代表案例列表 ---------- */
.archive { padding-top: var(--nav-h); margin-bottom: 100px; }
.archive__hero { position: relative; width: 100%; height: 35.5vw; overflow: hidden; color: #fff; }
.archive__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1s; }
.archive__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.4; transition: opacity 1s; }
.archive__mask--green { background: var(--c-green); }
.archive__title {
  position: absolute; left: 50%; top: 3vw; width: 80%; transform: translateX(-50%);
  text-align: center; font-size: 3vw; line-height: 4vw; font-weight: normal; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.archive__text {
  position: absolute; left: 50%; top: 20vw; width: 60%; transform: translateX(-50%);
  text-align: center; font-size: 1.2vw; line-height: 2vw; opacity: 0; transition: opacity 0.7s;
}
.archive__hero:hover .archive__bg { filter: blur(6px); }
.archive__hero:hover .archive__mask { opacity: 0.8; }
.archive__hero:hover .archive__text { opacity: 1; }
.cases { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 40px; padding: 0 7%; }
.case-card {
  display: block; width: 255px; height: 434px; margin: 40px 0; overflow: hidden;
  border-bottom: 1px solid var(--c-primary); color: #000; text-decoration: none; text-align: left;
  transition: box-shadow 0.5s, border-color 0.5s;
}
.case-card:hover { box-shadow: 6px 6px 18px rgba(137, 161, 143, 0.3); border-bottom-color: rgba(187, 211, 193, 0.3); }
.case-card__window { display: block; width: 100%; height: 180px; }
.case-card__window img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { display: block; padding: 0 17px; font-size: 14px; }
.case-card__title { display: block; font-weight: bold; line-height: 20px; margin: 20px 0; }
.case-card__kicker { display: block; color: var(--c-primary); }
.case-card:hover .case-card__title { text-decoration: underline; }
.case-card__excerpt {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 22px; height: 110px;
}
@media (max-width: 900px) {
  .archive { margin-bottom: 60px; }
  .cases { padding: 0 10%; margin-top: 40px; }
  .case-card { width: 100%; height: auto; margin: 20px 0 10px; }
  .case-card__window { height: 62vw; }
  .case-card__body { padding-bottom: 40px; }
  .case-card__excerpt { height: auto; -webkit-line-clamp: 6; }
}
@media (max-width: 800px) {
  .archive__hero { height: 98.5vw; }
  .archive__bg { filter: blur(3px); }
  .archive__mask { opacity: 0.5; }
  .archive__title { top: 32vw; font-size: 7vw; line-height: 1.3; }
  .archive__text { display: none; }
}

/* ---------- 內頁（個案／關於／聯絡） ---------- */
.single { padding-top: var(--nav-h); }
.single__hero { position: relative; width: 100%; height: 37.5vw; overflow: hidden; background: #111; }
.single__hero img, .single__hero .yt { width: 100%; height: 100%; }
.single__hero img { object-fit: cover; }
.single__hero .yt { aspect-ratio: auto; }
.single__hero.is-playing { height: auto; aspect-ratio: 16 / 9; }
.article { position: relative; padding: 0 23% 100px; }
.article__head { text-align: center; margin: 40px 0 80px; }
.article__title { font-size: 28px; line-height: 38px; font-weight: bold; }
.article__category { margin-top: 4px; font-size: 18px; font-weight: normal; }
.article__heading, .content-title { display: block; font-size: 20px; font-weight: bold; color: var(--c-primary); padding: 20px 0; }
.content-title { text-align: center; padding: 70px 0 17px; letter-spacing: 2px; font-size: 17px; font-weight: normal; }
.article__category a { color: var(--c-primary); text-decoration: none; }
.article__category a:hover { text-decoration: underline; }
.article__content { font-size: 17px; line-height: 30px; }
.article__content p { margin: 0; }
.article__content p + p, .article__content .yt + p, .article__content p + .yt, .article__content figure + figure { margin-top: 1em; }
.article__content p a { color: var(--c-primary); }
.article__content strong { display: block; font-size: 20px; font-weight: bold; color: var(--c-primary); padding: 20px 0; }
.article__content em { font-weight: bold; }
.article__content img { width: 100%; height: auto; }
.article__content figure { margin: 0; }
.article__content .yt { margin: 20px 0; }
.article__content .spacer { height: 30px; }
.article__content .sub { font-size: 0.82em; vertical-align: sub; color: var(--c-red); }
.article__content .bullet { font-size: 8px; vertical-align: 0.25em; margin-right: 0.8em; }
.article__content .line { width: 100%; height: 3px; background: var(--c-primary); margin: 30px 0; }
.article__content .grey-line { width: 100%; height: 2px; background: grey; margin: 30px 0; }
.cool-title { font-size: 22px; line-height: 20px; font-weight: bold; text-align: center; margin: 40px 0 20px; }
.cool-title .line-short { display: block; width: 45px; height: 3px; margin: 10px auto 0; background: var(--c-primary); }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery img { width: 30%; margin: 1%; }
.gallery__cover { display: inline-block; width: 30%; height: 10vw; margin: 1%; overflow: hidden; }
.gallery__cover img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.contact-btn {
  display: inline-block; font-size: 18px; padding: 5px 14px; background: var(--c-primary); color: #fff !important;
  text-decoration: none; line-height: 1.6;
}
.contact-btn:hover { background: var(--c-accent); }

.page .article__head { text-align: left; }
.page .article__content, .page .article__content p { font-size: 16px; }
.rule {
  padding-left: 35px; margin: 25px 0 25px -35px; border-left: 3px solid var(--c-primary);
  font-size: 14px; font-weight: 300;
}
.rule__lead { font-size: 18px; color: var(--c-primary); line-height: 1.6; margin-bottom: 7px; }
.rule p { line-height: 22px; }
.rule--two { font-size: 18px; padding-bottom: 11px; line-height: 33px; }
.rule--two em { font-size: 18px; font-weight: bolder; font-style: normal; }
.contact-info p { font-size: 24px; font-weight: bold; color: var(--c-primary); line-height: 1.6; }
.contact-info a { color: var(--c-primary); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.member { display: flex; flex-wrap: wrap; gap: 30px 50px; margin-top: 30px; }
.member__each {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 130px; height: 130px; border-radius: 50%; overflow: hidden;
  background: var(--c-primary); color: #fff; font-size: 15px; line-height: 22px; text-align: center; text-decoration: none;
}
.member__photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__each:hover .member__photo, .member__each:focus-visible .member__photo { display: block; }
.member__each--join:hover, .member__each--join:focus-visible { background: #ddd; color: var(--c-primary); }

.recommend { position: relative; padding-bottom: 100px; margin-top: 30px; }
.recommend__row { display: flex; justify-content: center; gap: 2%; height: 110px; }
.recommend__case {
  position: relative; display: block; width: 22%; height: 100%; background: #333; overflow: hidden; text-decoration: none;
}
.recommend__case img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; margin: 0; transition: opacity 0.3s; }
.recommend__case:hover img { opacity: 0.7; }
.recommend__text {
  position: absolute; left: 0; top: 30%; width: 100%; padding: 0 6px;
  color: #fff; font-size: 13px; line-height: 20px; text-align: center;
}
.recommend__more { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; padding-right: 4.5%; }
.recommend__more a { font-size: 13px; color: var(--c-primary); }

@media (max-width: 900px) {
  .article { padding: 0 8% 100px; }
  .article__title { margin: 60px 0 40px; }
  .recommend__row { flex-direction: column; align-items: center; height: auto; margin-top: 70px; gap: 45px; }
  .recommend__case { width: 57%; height: 110px; }
  .recommend__more { justify-content: center; padding-right: 0; }
  .gallery__cover { height: 15vw; }
  .rule { margin-left: 0; padding-left: 18px; }
}
@media (max-width: 800px) {
  .single__hero { height: auto; aspect-ratio: 16 / 9; }
  .article__title { font-size: 24px; line-height: 34px; margin-bottom: 40px; }
  .article__content { font-size: 16px; line-height: 28px; }
  .member { justify-content: center; gap: 20px 10px; }
  .recommend__case { width: 100%; }
}

/* ---------- MyStory ---------- */
.mystory { padding-top: var(--nav-h); }
.ms-header { position: relative; height: 80vh; min-height: 360px; overflow: hidden; }
.ms-header > img { width: 100%; height: 100%; object-fit: cover; }
.ms-header__intro {
  position: absolute; left: 80px; bottom: 50px; display: flex; align-items: flex-start;
  width: 400px; padding: 20px 30px; background: rgba(0, 0, 0, 0.5); color: #fff;
}
.ms-header__intro img { width: 50px; margin-right: 40px; flex: none; }
.ms-header__intro p { line-height: 20px; }
.ms-service { position: relative; overflow: hidden; }
.ms-service__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-service__content { position: relative; padding: 80px 16px; background: rgba(10, 80, 107, 0.9); color: #fff; text-align: center; }
.ms-title { font-size: 32px; font-weight: normal; padding: 30px 0; color: #fff; }
.ms-service__grid { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 45px; }
.ms-card {
  width: 240px; min-height: 160px; margin: 15px 25px; padding: 40px 30px;
  border: 2px solid #fff; border-radius: 20px; text-align: center;
}
.ms-card__title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; line-height: 28px; margin-bottom: 30px; }
.ms-card__title .icon { width: 45px; height: 45px; flex: none; }
.ms-card__text { font-size: 14px; line-height: 22px; }

.works { padding: 100px 0; background: var(--c-dark); color: #fff; text-align: center; }
.works .ms-title { padding: 0; margin-bottom: 50px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 70px; }
.tab { position: relative; padding: 0 24px; margin: 5px 0; font-size: 18px; color: #fff; }
.tab::after { content: ""; display: block; width: 100%; height: 2px; margin-top: 5px; background: var(--c-primary); opacity: 0; }
.tab:hover, .tab[aria-selected="true"] { color: var(--c-primary); }
.tab:hover::after, .tab[aria-selected="true"]::after { opacity: 1; }
.videos { position: relative; padding: 0 15%; }
.videos__panel { display: none; }
.videos__panel.is-active { display: block; }
.videos__grid { display: flex; flex-wrap: wrap; justify-content: center; min-height: 630px; align-content: flex-start; }
.video-tile {
  position: relative; width: 31%; height: 200px; margin: 5px 0.4%; overflow: hidden; background: grey; color: #fff;
  transition: transform 1s;
}
.video-tile[hidden] { display: none; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; }
.video-tile__hover {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 0 8px; opacity: 0; background: rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; line-height: 20px; transition: opacity 1s;
}
.video-tile__title { display: block; font-size: 22px; }
.video-tile__title--small { font-size: 18px; line-height: 24px; }
.video-tile:hover, .video-tile:focus-visible { transform: scale(1.05); }
.video-tile:hover .video-tile__hover, .video-tile:focus-visible .video-tile__hover { opacity: 1; }
.videos__arrow {
  position: absolute; top: 285px; width: 45px; height: 45px; color: #fff; z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.videos__arrow .icon { width: 100%; height: 100%; }
.videos__arrow--prev { left: 7%; }
.videos__arrow--next { right: 7%; }
.videos__arrow[hidden] { display: none; }
.videos__page { margin-top: 20px; font-size: 13px; color: #bbb; }

.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999; }
.lightbox[hidden] { display: none; }
.lightbox__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); cursor: pointer; }
.lightbox__player {
  position: absolute; left: 20%; top: 80px; width: 60%; aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.lightbox__player iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; right: 20px; top: 16px; width: 44px; height: 44px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close .icon { width: 30px; height: 30px; }

.faq { background: var(--c-dark); color: #fff; text-align: center; }
.faq__content { text-align: left; }
.faq .ms-title { padding: 0 16px; }
.faq__content { width: 70%; margin: 0 auto; padding: 100px 0; }
.faq__item h3 { margin: 0; font-size: inherit; font-weight: normal; }
body.has-lightbox { overflow: hidden; }
.faq__q {
  display: block; width: 100%; padding: 20px 45px 20px 25px; text-align: left; line-height: 1.5;
  background: var(--c-grey-dark); border-bottom: 2px solid var(--c-grey); color: #fff; position: relative;
}
.faq__icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; }
.faq__a { max-height: 0; overflow: hidden; background: var(--c-grey); transition: max-height 0.7s; }
.faq__a > div { padding: 20px 25px; line-height: 26px; }
.faq__item.is-open .faq__a { max-height: 30rem; }

@media (max-width: 1130px) { .video-tile__title--small { font-size: 14px; line-height: 18px; } }
@media (max-width: 800px) {
  .ms-header { height: 50vh; min-height: 300px; }
  .ms-header__intro { left: 0; right: 0; bottom: 0; width: auto; padding: 16px 20px; }
  .ms-header__intro img { width: 40px; margin-right: 20px; }
  .ms-service__content { padding: 50px 16px; }
  .ms-card { width: min(240px, 100%); margin: 12px 0; }
  .works { padding: 60px 0; }
  .tabs { margin-bottom: 40px; }
  .tab { font-size: 15px; padding: 0 12px; }
  .videos { padding: 0 1%; }
  .videos__grid { min-height: 0; }
  .video-tile { height: 120px; }
  .video-tile__hover { padding: 0 4px; }
  .video-tile__title--small { font-size: 12px; line-height: 18px; }
  .video-tile__title { font-size: 13px; }
  .videos__arrow { top: 120px; width: 30px; height: 30px; }
  .videos__arrow--prev { left: 0; }
  .videos__arrow--next { right: 0; }
  .lightbox__player { left: 5%; width: 90%; top: 20vh; }
  .faq__content { width: 84%; padding: 40px 0 80px; }
}

/* ---------- 大事紀（關於 ATONA） ---------- */
.timeline { margin: 30px 0 10px; border: 2px solid var(--c-primary); }
.timeline__view { padding: 30px 32px; min-height: 320px; }
.timeline__slide { display: none; }
.timeline__slide.is-active, .timeline:not(.is-ready) .timeline__slide { display: block; }
.timeline:not(.is-ready) .timeline__slide + .timeline__slide { margin-top: 30px; padding-top: 30px; border-top: 1px solid #ddd; }
.timeline__year { font-size: 42px; line-height: 1.1; color: var(--c-primary); font-weight: bold; }
.timeline__headline { font-size: 20px; margin: 6px 0 16px; font-weight: bold; }
.timeline__list { font-size: 15px; line-height: 26px; padding-left: 1.2em; list-style: disc; }
.timeline__list li + li { margin-top: 4px; }
.timeline__intro { font-size: 16px; line-height: 30px; white-space: pre-line; }
.timeline__nav { display: none; align-items: center; gap: 8px; border-top: 2px solid var(--c-primary); background: #f3f6f8; padding: 8px 10px; }
.timeline.is-ready .timeline__nav { display: flex; }
.timeline__btn { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.timeline__btn .icon { width: 24px; height: 24px; }
.timeline__btn:disabled { opacity: 0.3; cursor: default; }
.timeline__years { display: flex; gap: 4px; overflow-x: auto; scroll-behavior: smooth; flex: 1 1 auto; padding: 4px 2px; scrollbar-width: thin; }
.timeline__dot { flex: none; padding: 6px 10px; font-size: 14px; color: var(--c-primary); border-radius: 4px; white-space: nowrap; }
.timeline__dot[aria-pressed="true"] { background: var(--c-primary); color: #fff; }
.timeline__dot:hover { background: #dde8ee; }
.timeline__dot[aria-pressed="true"]:hover { background: var(--c-primary); }
@media (max-width: 800px) {
  .timeline__view { padding: 20px 16px; min-height: 0; }
  .timeline__year { font-size: 32px; }
}

/* ---------- 404 ---------- */
.notfound { max-width: 720px; margin: 0 auto; padding: 180px 24px 120px; text-align: center; color: #333; }
.notfound__code { font-size: 72px; font-weight: bold; line-height: 1.1; margin-bottom: 24px; color: var(--c-primary); }
.notfound h1 { font-size: 24px; margin-bottom: 12px; }
.notfound p { font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.notfound__en { color: #888; }
.notfound__links { margin-top: 40px; }
.notfound__links a {
  display: inline-block; margin: 6px 8px; padding: 10px 22px; border: 1px solid var(--c-primary); border-radius: 3px;
  color: var(--c-primary); text-decoration: none; font-size: 15px;
}
.notfound__links a:hover { background: var(--c-primary); color: #fff; }
@media (max-width: 800px) {
  .notfound { padding: 120px 24px 80px; }
  .notfound__code { font-size: 56px; }
}

/* ---------- 列印 ---------- */
@media print {
  .site-header, .to-top, .nav__burger, .lightbox { display: none !important; }
  .home, .single, .archive, .mystory { padding-top: 0; }
}
