/* =====================================================
   AI-TERRACE 会社概要ページ専用スタイル
   適用範囲: .ai-terrace-about-page 配下のみ
   Cocoon全体・他ページには影響しません
===================================================== */

/* ===== Cocoonヘッダー・余白リセット（会社概要ページのみ） ===== */
body.page-template-page-about #header-container {
  display: none;
}

body.page-template-page-about #content {
  margin-top: 0;
}

body.page-template-page-about #main {
  padding-top: 0;
  padding-bottom: 0 !important;
}

/* ===== Cocoon見出し装飾リセット ===== */
.ai-terrace-about-page h1,
.ai-terrace-about-page h2,
.ai-terrace-about-page h3 {
  border: none !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* ===== ベーススタイル（ユーザー提供コード） ===== */
.ai-terrace-about-page {
  --navy: #071b3a;
  --blue: #0b5ed7;
  --blue-dark: #073b8d;
  --green: #18b889;
  --yellow: #ffd66b;
  --text: #142033;
  --muted: #64748b;
  --line: rgba(11, 94, 215, .14);
  --shadow: 0 24px 70px rgba(7, 27, 58, .10);
  background: #ffffff;
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.ai-terrace-about-page * {
  box-sizing: border-box;
}

.ai-terrace-about-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ata-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.ata-section {
  padding: 64px 0;
}

.ata-hero {
  padding: 58px 0 56px;
}

.ata-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}

.ata-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.ata-title,
.ata-section-head h2,
.ata-story__body h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.04em;
}

.ata-title {
  font-size: clamp(38px, 5vw, 68px);
}

.ata-title span,
.ata-section-head h2 span {
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark) 55%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
}

.ata-lead,
.ata-section-head p,
.ata-story__body p,
.ata-card p,
.ata-support p,
.ata-access-card p {
  color: var(--muted);
  line-height: 1.9;
  font-weight: 500;
}

.ata-hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}

.ata-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ata-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none !important;
}

.ata-btn--primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.ata-btn--secondary {
  color: var(--blue) !important;
  background: #ffffff;
  border: 1px solid rgba(11,94,215,.24);
}

.ata-hero__image,
.ata-story,
.ata-profile,
.ata-support,
.ata-access-card,
.ata-map {
  border-radius: 34px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ata-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ata-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.ata-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(7,27,58,.06);
  color: var(--blue);
  font-weight: 900;
}

.ata-story {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: center;
  padding: 42px;
}

.ata-story__image {
  overflow: hidden;
  border-radius: 28px;
}

.ata-story__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ata-story__body h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 18px;
}

.ata-section-head {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.ata-section-head h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.ata-card-grid {
  display: grid;
  gap: 22px;
}

.ata-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ata-card {
  padding: 32px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 46px rgba(7,27,58,.06);
}

.ata-card b {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.ata-card h3,
.ata-support h3,
.ata-access-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.ata-profile-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.ata-profile div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid rgba(11,94,215,.10);
}

.ata-profile div:last-child {
  border-bottom: 0;
}

.ata-profile span {
  padding: 18px 20px;
  color: var(--blue);
  background: #f2f8ff;
  font-weight: 900;
}

.ata-profile p {
  margin: 0;
  padding: 18px 20px;
  color: #30445f;
  line-height: 1.75;
  font-weight: 600;
}

.ata-support {
  padding: 32px;
}

.ata-support ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ata-support li {
  display: flex;
  gap: 12px;
  color: #30445f;
  font-weight: 800;
  line-height: 1.7;
}

.ata-support li::before {
  content: "✓";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.ata-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ata-access-card {
  padding: 34px;
}

.ata-map iframe {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== CTA ===== */
.ata-section--cta {
  padding-top: 40px;
  padding-bottom: 40px;
}

.ata-final-cta__wrap {
  position: relative;
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  line-height: 0;
}

.ata-final-cta__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.ata-final-cta__btn-overlay {
  position: absolute;
  left: 32%;
  width: 36%;
  top: 70.7%;
  height: 14%;
  display: block;
  cursor: pointer;
  text-decoration: none;
  border-radius: 50px;
}

.ata-final-cta__btn-overlay:hover {
  opacity: 0.85;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .ata-hero__grid,
  .ata-story,
  .ata-profile-grid,
  .ata-access-grid {
    grid-template-columns: 1fr;
  }

  .ata-chips,
  .ata-card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ata-wrap {
    width: min(100% - 24px, 1120px);
  }

  .ata-section {
    padding: 52px 0;
  }

  .ata-hero {
    padding: 46px 0;
  }

  .ata-chips,
  .ata-card-grid--3 {
    grid-template-columns: 1fr;
  }

  .ata-story,
  .ata-support,
  .ata-access-card {
    padding: 24px;
    border-radius: 26px;
  }

  .ata-profile div {
    grid-template-columns: 1fr;
  }

  .ata-profile span,
  .ata-profile p {
    padding: 16px 18px;
  }
}
