/* 株式会社AINOSS 公式サイト */

:root {
  /* 色 */
  --sky: #2B8CFF;      /* 夏空ブルー：ロゴ・装飾・大きな面 */
  --blue: #1456D9;     /* ボタン・リンク・小さな青文字 */
  --tint: #D9ECFF;     /* 淡い青の面・ホバー */
  --bg: #F6FAFF;       /* ページの背景 */
  --surface: #FFFFFF;  /* カード */
  --text: #0E1F3D;     /* 本文・フッター */
  --muted: #5B6B85;    /* 補足の文字 */
  --line: #E3ECF8;     /* 区切り線・枠線 */

  /* 文字 */
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Outfit", var(--font-ja);

  /* 寸法 */
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: clamp(24px, 3vw, 36px);
  --shadow: 0 1px 2px rgba(14, 31, 61, .04), 0 18px 40px -24px rgba(20, 86, 217, .28);

  color-scheme: light;
}

/* ---------- 基本 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

/* 中身が短いページでも、フッターを画面の下端まで寄せる */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--tint); color: var(--text); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

/* 狭い画面では、文中の改行を使わず自然に折り返す */
.wide-only { display: none; }
@media (min-width: 720px) { .wide-only { display: inline; } }

/* 短い文は、<wbr> を入れた文節の切れ目だけで改行する（単語の途中で切らない） */
.hero-lead, .about-body, .contact-main p, .page-title, .notfound p { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- ヘッダー ---------- */

.site-header { padding-block: clamp(14px, 2.4vw, 24px); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; flex: none; color: var(--text); }
.brand .logo { width: auto; height: clamp(30px, 3.6vw, 36px); aspect-ratio: 272.18 / 64; }

.site-nav { display: flex; align-items: center; gap: clamp(0px, 1vw, 8px); }
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--tint); color: var(--blue); }

@media (max-width: 640px) {
  .nav-about { display: none; }
}
@media (max-width: 400px) {
  .brand .logo { height: 26px; }
  .site-nav a { padding: 8px 10px; font-size: 13px; }
}

/* ---------- ファーストビュー ---------- */

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(18px, 2.6vw, 28px);
  min-height: clamp(460px, 76vh, 700px);
  padding: clamp(28px, 6vw, 80px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 70%),
    radial-gradient(110% 90% at 100% 0%, var(--sky) 0%, rgba(43, 140, 255, 0) 65%),
    linear-gradient(170deg, var(--sky) 0%, var(--blue) 100%);
}

.hero-star {
  position: absolute;
  z-index: -1;
  top: clamp(-70px, -4vw, -10px);
  right: clamp(-110px, -7vw, -24px);
  width: clamp(250px, 44vw, 600px);
  height: auto;
  aspect-ratio: 1;
  fill: #fff;
  opacity: .16;
}

.twinkle { position: absolute; z-index: -1; height: auto; aspect-ratio: 1; fill: #fff; }
.twinkle--1 { width: 22px; top: 16%; left: 54%; }
.twinkle--2 { width: 14px; top: 38%; left: 88%; }
.twinkle--3 { width: 11px; top: 11%; left: 30%; }

/* 流れ星：ときどき一瞬だけ横切る */
.meteor {
  position: absolute;
  z-index: -1;
  left: 4%;
  top: 70%;
  width: clamp(110px, 16vw, 200px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95));
  transform-origin: 100% 50%;
  opacity: 0;
}
.meteor::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, .7);
}

.hero-eyebrow {
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.6;
}

.hero-title {
  font-size: clamp(40px, 12vw, 128px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .01em;
  font-feature-settings: "palt";
}
.hero-title span { display: block; white-space: nowrap; }

.hero-lead {
  max-width: 36em;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.9;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero-title span, .hero-lead { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-title span:nth-child(1) { animation-delay: .08s; }
  .hero-title span:nth-child(2) { animation-delay: .2s; }
  .hero-lead { animation-delay: .34s; }

  .twinkle { animation: twinkle 3.6s ease-in-out infinite; }
  .twinkle--2 { animation-delay: 1.2s; }
  .twinkle--3 { animation-delay: 2.1s; }

  .meteor { animation: meteor 8s cubic-bezier(.25, .6, .3, 1) 1.8s infinite; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.55); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes meteor {
  0% { opacity: 0; transform: rotate(-38deg) translateX(0); }
  2% { opacity: 1; }
  9% { opacity: 0; transform: rotate(-38deg) translateX(min(70vw, 720px)); }
  100% { opacity: 0; transform: rotate(-38deg) translateX(min(70vw, 720px)); }
}

/* ---------- セクション共通 ---------- */

main { flex: 1 0 auto; padding-bottom: clamp(80px, 11vw, 144px); }

.section { padding-top: clamp(80px, 11vw, 144px); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.6;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--sky);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2Q37 27 62 32Q37 37 32 62Q27 37 2 32Q27 27 32 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2Q37 27 62 32Q37 37 32 62Q27 37 2 32Q27 27 32 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-title {
  margin-top: 10px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ---------- 私たちについて ---------- */

.about { display: grid; gap: 8px clamp(24px, 6vw, 96px); }
.about .section-head { margin-bottom: 20px; }

@media (min-width: 880px) {
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .about .section-head { margin-bottom: 0; }
}

.about-body {
  display: grid;
  gap: 1.1em;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 2.1;
}

.about-body mark {
  padding: 0 .1em;
  background: linear-gradient(transparent 62%, rgba(43, 140, 255, .22) 62%);
  color: inherit;
  font-weight: 700;
}

/* ---------- 会社概要 ---------- */

.info { padding: clamp(6px, 1vw, 12px) clamp(22px, 4vw, 48px); }

.info-row {
  display: grid;
  gap: 2px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.info-row:first-child { border-top: 0; }

@media (min-width: 640px) {
  .info-row { grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; gap: 24px; padding-block: 24px; }
}

.info dt { color: var(--muted); font-size: 14px; font-weight: 700; }
.info dd { overflow-wrap: anywhere; }

.info-sub {
  display: block;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- お問い合わせ ---------- */

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 24px 40px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--tint);
}

@media (min-width: 880px) {
  .contact-card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .copy-status { grid-column: 1 / -1; }
}

.contact-star {
  position: absolute;
  z-index: -1;
  top: -56px;
  right: -48px;
  width: clamp(180px, 24vw, 280px);
  height: auto;
  aspect-ratio: 1;
  fill: #fff;
  opacity: .75;
}

.contact-main { display: grid; gap: 16px; }

.contact-mail {
  justify-self: start;
  color: var(--text);
  font-family: var(--font-en);
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--blue); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button[hidden] { display: none; }

.button--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 24px -14px rgba(20, 86, 217, .8); }
.button--primary:hover { box-shadow: 0 16px 28px -14px rgba(20, 86, 217, .85); }

.button--ghost { background: var(--surface); color: var(--blue); }
.button--ghost:hover { box-shadow: 0 12px 24px -16px rgba(20, 86, 217, .5); }

.copy-status { min-height: 1.6em; margin-top: -8px; color: var(--muted); font-size: 14px; }
.copy-status:empty { display: none; }

@media (max-width: 480px) {
  .contact-actions .button { flex: 1 1 100%; }
}

/* ---------- フッター ---------- */

.site-footer {
  padding-block: clamp(40px, 6vw, 64px);
  background: var(--text);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }

.footer-brand { color: #fff; }
.footer-brand .logo { height: 30px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-bottom--solo { margin-top: 0; padding-top: 0; border-top: 0; }

.copyright { font-family: var(--font-en); letter-spacing: .04em; }

/* ---------- 下層ページ（プライバシーポリシーなど） ---------- */

.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 44px); }

.page-title {
  margin-top: 10px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}

.page-meta { margin-top: 10px; color: var(--muted); font-size: 14px; }

.prose { padding: clamp(26px, 5vw, 64px); }
.prose > * { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }

.prose h2 {
  margin-top: 2.2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--sky); }

.prose .info { max-width: none; margin-top: 1.2em; padding: 0 clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.prose .info-row { padding-block: 16px; }
@media (min-width: 640px) {
  .prose .info-row { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ---------- 404 ---------- */

.notfound { display: grid; justify-items: center; gap: 16px; padding-block: clamp(72px, 12vw, 144px) 0; text-align: center; }

.notfound-code {
  color: var(--sky);
  font-family: var(--font-en);
  font-size: clamp(80px, 16vw, 168px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}

.notfound .button { margin-top: 12px; }

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meteor { display: none; }
  .twinkle { opacity: .8; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
