/* ════════════════════════════════════════
   ailia AI Voice — style.css
   ════════════════════════════════════════ */

/* ─── CSS変数（色・影） ─── */
:root {
  --bg:       #ffffff;
  --bg2:      #ffffff;
  --bg3:      #ffffff;
  --accent:   #272727;
  --accent2:  #7c4dff;
  --text:     #e8eaf0;
  --muted:    #8890a4;
  --border:   rgba(0, 229, 255, 0.15);
  --card-bg:  rgba(255, 255, 255, 0.04);
  --glow:     0 0 40px rgba(0, 229, 255, 0.15);
  /* Brand red */
  --red:          #EC3055;
  --red-dark:     #B5001F;
  --red-light:    #FF4D6A;
  --red-bg:       #FFF0F2;

  /* Neutrals */
  --bg:           #ffffff;
  --bg-sub:       #FFF5F6;
  --border:       #F0DEDE;
  --border-mid:   #D4AAAA;
  --ink:          #272727;
  --ink-mid:      #3D2020;
  --ink-muted:    #696969;

}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 62.5%; 
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;    
  font-weight: bold;  
  line-height: 1.8;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--red-bg);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* ←テキストとアイコン間 */

  font-family: var(--font-body);
  font-size: 15px; /* ←少し大きめ */
  font-weight: 700;
  line-height: 1;

  padding: 14px 28px; /* ←高さと横幅のバランス */
  border-radius: 999px;

  border: 2px solid transparent; /* ←ghostとのズレ防止 */
  cursor: pointer;
  white-space: nowrap;

  transition:
    background-color .18s,
    color .18s,
    border-color .18s;
}

/* Primary */
.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  border-color: var(--red); 
  color: var(--red);
}

.btn--ghost:hover {
  background: var(--red);
  color: #fff;
}
/* フッターのお問い合わせボタンは角丸なし */
footer .btnContact {
  border-radius: 0;
  border: none;
}


/* ============================================================
-----ナビゲーション----- 
============================================================*/
#subNavArea {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;       /* fixedではなくstickyに変更 */
  top: 60px;              /* ヘッダー高さ分 */
  background-color: #ffffffd4;
  backdrop-filter: blur(6px); /* すりガラス効果*/
  z-index: 60;
  padding: 0 60px;
  border-bottom: none;
  gap: 48px;
}
#subNavArea .subNavTitle {
  display: block;
  font-size: 22px;
  font-weight: 700;
  width: 200px;
  white-space: nowrap;
  color: var(--ink);
}
.site-menu ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-menu ul li {
  margin: 0 16px;
  font-size: 15px;
  font-weight: 700;
}
.site-menu ul li a {
  color: var(--ink);
  transition: color .15s;
}
.site-menu a:hover,
.subNavTitle:hover {
  color: var(--red);
}

@media (max-width: 1023px) {
  #subNavArea { top: 48px; }
}
@media (max-width: 767px) {
  #subNavArea {
    height: 50px;
    padding: 0 16px;
  }
  #subNavArea .subNavTitle {
    font-size: 13px;
    width: auto;
  }
  .site-menu ul {
    margin-left: 8px;
  }
  .site-menu ul li {
    margin: 0 9px;
    font-size: 8px;
  }
}

/* ════════════════════════════════════════
   セクション共通
   ════════════════════════════════════════ */
section {
  padding: 100px 5vw;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.section-label::after {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--red);
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; 
  margin-bottom: 4.5rem;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 100px 6vw 0;
  position: relative;
  overflow: hidden;
  /* background-image は削除 */
}

/* 背景画像を絶対配置で全体に広げる */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 2rem;
}

/* ─── 左：テキストエリア ─── */
.hero-text {
  padding-bottom: 60px;
}

.hero-tag {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 700;
  color: #EC3055;
  letter-spacing: 0rem;
  margin-bottom: 0rem;
}

.hero-logo {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0rem;
  margin-bottom: 3rem;
   color:#EC3055; 
  }

.hero-catch {
  font-size: clamp(25px, 3vw, 20px);
  font-weight: 700;
  color: #EC3055;
  line-height: 1.5;
  margin-bottom: 6rem;
}

.hero-cta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* ─── 右：マスコット画像 ─── */
.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-mascot img {
  width: min(300px, 45vw);
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ════════════════════════════════════════
   リード文
   ════════════════════════════════════════ */
.lead-section {
  padding: 50px 5vw;
  text-align: center;
  background: #f2f2f2d6;
}

.lead-title {
  font-size: clamp(3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 2;
}

/* ════════════════════════════════════════
   ご利用シーン
   ════════════════════════════════════════ */
.usecases {
  background: #fff;
  text-align: center;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.case-row {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.case-row .case-icon {
  width: 210px;
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  border: none;
  margin-bottom: 3.5rem;
}

.case-row .case-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body h3 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.case-body p {
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .case-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ════════════════════════════════════════
   特徴と機能
   ════════════════════════════════════════ */
.features-section {
  padding: 80px 5vw;
  text-align: center;
  background: #f2f2f2d6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5.5rem;
  margin-top: 2rem;
}

.feat-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.feat-card::before {
  display: none;
}

.feat-badge {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--red);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  padding: 1rem;
}

.feat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.5;
  margin-bottom: 0;
}

.feat-card p {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ════════════════════════════════════════
   Pythonコードブロック
   ════════════════════════════════════════ */
.python-section {
  background: var(--bg2);
}

.code-block-wrap {
  max-width: 700px;
  font-size: 1.8rem;
}

pre {
  background: #1e1e1e;;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 2rem 1.5rem;
}
code {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  line-height: 2;
  color: #d4d4d4; /* 文字も明るく */
}

.kw  { color: #ff7b72; } 
.cmd { color: #56d364; } 
.url { color: #79c0ff; } /* URL → 青 */

/* ════════════════════════════════════════
   サポート
   ════════════════════════════════════════ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.support-card {
  background: var(--card-bg);
  border: none;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}

.support-card p {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.support-card a {
  display: inline-block;
  padding: 9px 45px;
  border: 2px solid var(--red);
  color: var(--red);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}

.support-card a:hover {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}
.support-card.primary a {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  border: 2px solid var(--red);
  display: inline-block;
  padding: 9px 45px;
  font-size: 1.6rem;
}

.support-card.primary a:hover {
  color: var(--red);
  background: white;
  border-color: var(--red);
}

/* ════════════════════════════════════════
   アイリア WORKS
   ════════════════════════════════════════ */
.works-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5vw;
}

.works-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(1);
}

.works-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.works-logo img {
  height: 140px;
}

.works-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
}

.works-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  line-height: 2;
}

.btn--works {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background:#0a87db;
  border: none;
  color: #fff;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn--works:hover {
  background: rgba(255,255,255,0.35);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* ════════════════════════════════════════
   採用企業ロゴ
   ════════════════════════════════════════ */
.companies {
  background: var(--bg2);
  text-align: center;
}

.companies .section-label {
  justify-content: center;
}

.logos-spacer {
  height: 2rem;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem 6rem;
  justify-content: center;
  align-items: center;
}

.logos-row img {
  height: 60px;
  transition: opacity 0.2s;
}

/* ════════════════════════════════════════
   レスポンシブ（タブレット・スマートフォン）
   ════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ─── 共通 ─── */
  section {
    padding: 60px 4vw;
  }

  .section-label {
    font-size: 2.4rem;
  }

  .section-sub {
    font-size: 1.5rem;
  }

  /* ─── サブナビ ─── */
  #subNavArea {
    height: 50px;
    padding: 0 16px;
    gap: 16px;
    top: 48px;
  }

  #subNavArea .subNavTitle {
    font-size: 14px;
    width: auto;
  }

  .site-menu ul li {
    margin: 0 8px;
    font-size: 11px;
  }

  /* ─── ヒーロー ─── */
  .hero {
    padding: 80px 5vw 0;
    min-height: 360px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding-bottom: 1rem;
  }

  .hero-tag {
    font-size: 18px;
  }

  .hero-logo {
    font-size: 32px;
  }

  .hero-catch {
    font-size: 16px;
    margin-bottom: 2rem;
  }

  .hero-mascot {
  justify-content: center;
  margin-top: 0;
}
  .hero-mascot img {
    width: min(200px, 55vw);
  }

  /* ─── リード文 ─── */
  .lead-title {
    font-size: 2rem;
  }

  .lead-text {
    font-size: 1.4rem;
  }

  /* ─── ご利用シーン ─── */
  .case-list {
    max-width: 100%;
    gap: 2rem;
  }

  .case-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .case-row .case-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 0;
  }

  .case-body h3 {
    font-size: 2rem;
  }

  .case-body p {
    font-size: 1.5rem;
  }

  /* ─── 特徴と機能 ─── */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .feat-badge {
    font-size: 1.8rem;
  }

  .feat-card h3 {
    font-size: 1.6rem;
  }

  .feat-card p {
    font-size: 1.3rem;
  }

  /* ─── Pythonコード ─── */
  .code-block-wrap {
    font-size: 1.4rem;
  }

  pre {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    overflow-x: auto;
  }

  /* ─── サポート ─── */
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    padding: 1.5rem;
  }

  /* ─── アイリア WORKS ─── */
  .works-title {
    font-size: 1.8rem;
  }

  .works-text {
    font-size: 1.3rem;
  }

  /* ─── 採用企業 ─── */
  .logos-row {
    gap: 1.5rem 2rem;
  }

  .logos-row img {
    height: 30px;
  }

  /* ─── フッター ─── */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* ════════════════════════════════
   375px（小型スマートフォン）
   ════════════════════════════════ */
@media (max-width: 375px) {

  .hero-logo {
    font-size: 26px;
  }

  .hero-tag {
    font-size: 14px;
  }

  .hero-catch {
    font-size: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feat-badge {
    font-size: 2rem;
    aspect-ratio: auto;
    padding: 2rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* subNavも連動 */
#subNavArea {
  transition: transform 0.3s ease;
}
#subNavArea.subnav--hidden {
  transform: translateY(-100%);
}

/* ════════════════════════════════════════
   スクロールフェードイン
   ════════════════════════════════════════ */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-fade:nth-child(1) { transition-delay: 0s; }
.scroll-fade:nth-child(2) { transition-delay: 0.1s; }
.scroll-fade:nth-child(3) { transition-delay: 0.2s; }
.scroll-fade:nth-child(4) { transition-delay: 0.3s; }
.scroll-fade:nth-child(5) { transition-delay: 0.4s; }
.scroll-fade:nth-child(6) { transition-delay: 0.5s; }
.scroll-fade:nth-child(7) { transition-delay: 0.6s; }
.scroll-fade:nth-child(8) { transition-delay: 0.7s; }