/* ============================================================
   WASHIN AI Academy — 全站樣式
   設計基調：ダークネイビー + ホワイト + ゴールドアクセント
   參考風格：ビズリーチ / 日経 / Harvard Business Review 日本版
   ============================================================ */

/* --- Google Fonts 在 HTML 中以 <link> 載入 --- */

/* === 基礎重置與變數 === */
:root {
  --color-navy: #1a1f36;
  --color-navy-light: #252b48;
  --color-navy-dark: #12162a;
  --color-white: #ffffff;
  --color-off-white: #f8f8fa;
  --color-gold: #c9a96e;
  --color-gold-light: #d4bc8a;
  --color-gold-dark: #b08f54;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e0e0e0;
  --color-bg-section: #f5f5f7;

  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --max-width: 1200px;
  --section-padding: 80px 20px;
  --section-padding-mobile: 48px 16px;
}

/* === 重置 === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* === 共用元件 === */

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 區塊標題 */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 16px auto 0;
}

/* 區塊間距 */
.section {
  padding: var(--section-padding);
}

.section--alt {
  background-color: var(--color-bg-section);
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* === 導航列 === */
.site-header {
  background-color: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.site-logo span {
  color: var(--color-gold);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-gold);
}

/* 漢堡選單（行動裝置） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* === Hero 區塊 === */
.hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* 微妙的背景紋理 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-gold-light);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero__cta {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero__cta:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

/* === 信用バー === */
.trust-bar {
  background-color: var(--color-off-white);
  padding: 60px 20px;
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.trust-bar__item {
  text-align: center;
  padding: 0 16px;
}

.trust-bar__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--color-gold-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.trust-bar__org {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.trust-bar__desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* 信用バーの區隔線 */
.trust-bar__item:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

/* === 事業内容 === */
.business .container {
  max-width: 800px;
}

.business__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.business__list {
  padding-left: 0;
}

.business__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

.business__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
}

.business__list .is-preparing {
  color: var(--color-text-muted);
}

/* === 会社概要 === */
.company-info .container {
  max-width: 800px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: left;
  padding: 16px 20px 16px 0;
  width: 140px;
  vertical-align: top;
  white-space: nowrap;
}

.info-table td {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 16px 0;
  line-height: 1.7;
}

.info-table a {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gold);
  transition: color 0.2s ease;
}

.info-table a:hover {
  color: var(--color-gold-dark);
}

/* === アドバイザリーボード === */
.advisors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.advisor-card {
  text-align: center;
}

/* 顧問照片 placeholder（CSS gradient 色塊）
   日後只需在 img 標籤加上 src 即可覆蓋 */
.advisor-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  overflow: hidden;
  position: relative;
}

/* 預設用 CSS gradient 當 placeholder */
.advisor-card__photo--placeholder {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-gold-dark) 100%);
}

/* 佔位圖示（人形剪影） */
.advisor-card__photo--placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50% 50% 0 0;
}

/* 有真實照片時 */
.advisor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.advisor-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  margin-bottom: 8px;
}

.advisor-card__bio {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* === フッター === */
.site-footer {
  background-color: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 20px;
  text-align: center;
}

.site-footer__links {
  margin-bottom: 16px;
  font-size: 0.8125rem;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-gold);
}

.site-footer__links .divider {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === About 頁面專用 === */

/* 頁面 Hero（小型） */
.page-hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 60px 20px 48px;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

/* About 理念區塊 */
.philosophy .container {
  max-width: 800px;
}

.philosophy__text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
}

.philosophy__text p + p {
  margin-top: 1.5em;
}

/* 顧問詳細版（About 頁面） */
.advisor-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.advisor-detail:last-child {
  border-bottom: none;
}

.advisor-detail__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
}

.advisor-detail__photo--placeholder {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-gold-dark) 100%);
  position: relative;
}

.advisor-detail__photo--placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50% 50% 0 0;
}

.advisor-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-detail__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.advisor-detail__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.advisor-detail__bio {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.8;
}

.advisor-detail__bio p + p {
  margin-top: 0.75em;
}

/* === 響應式設計（Mobile First → Desktop 已是預設） === */

/* 平板以下 */
@media (max-width: 768px) {
  /* 導航 */
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--color-navy);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 64px 20px 56px;
  }

  .hero__title {
    font-size: 1.625rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  /* 信用バー → 1 カラム */
  .trust-bar {
    padding: 40px 20px;
  }

  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-bar__item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 32px;
  }

  /* 區塊間距 */
  .section {
    padding: var(--section-padding-mobile);
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  /* 会社概要表格 */
  .info-table th {
    display: block;
    padding-bottom: 4px;
    width: 100%;
  }

  .info-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 16px;
  }

  /* アドバイザー → 1 カラム */
  .advisors__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About 顧問詳細 → 垂直堆疊 */
  .advisor-detail {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .advisor-detail__info {
    text-align: center;
  }

  /* Page Hero */
  .page-hero {
    padding: 48px 20px 36px;
  }

  .page-hero__title {
    font-size: 1.5rem;
  }
}

/* 小螢幕手機 */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.375rem;
  }

  .hero__cta {
    padding: 12px 32px;
    font-size: 0.875rem;
  }

  .advisor-card__photo,
  .advisor-detail__photo {
    width: 120px;
    height: 120px;
  }
}

/* === 動畫（減少動態偏好時停用） === */
@media (prefers-reduced-motion: no-preference) {
  .hero__cta {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  }

  .hero__cta:hover {
    transform: translateY(-1px);
  }
}
