/* 有限会社アイティー・ウェーブ 公式サイト */
:root {
  --navy: #12305a;
  --blue: #1f6fb2;
  --sky: #e8f2fb;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #dce4ec;
  --bg: #ffffff;
  --soft: #f6f9fc;
  --accent: #f29b38;
  --radius: 10px;
  --max: 1080px;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* 改行は言葉の切れ目で（「ソリューシ／ョン」のような折り返しをしない）。行頭の「ョ」「ー」なども禁止 */
  word-break: auto-phrase;
  line-break: strict;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: block; text-decoration: none; color: var(--navy); line-height: 1.15; }
/* 社名ロゴは「IT-WAVE Corp.」を Arial Black で統一 */
.logo-mark {
  display: block;
  font-family: "Arial Black", "Arial Bold", Gadget, Arial, sans-serif;
  font-weight: 900; font-size: 22px; letter-spacing: .01em; color: var(--navy);
}
.logo-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }

.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.nav a:hover { background: var(--sky); color: var(--navy); }
.nav .nav-contact a { background: var(--navy); color: #fff; }
.nav .nav-contact a:hover { background: var(--blue); color: #fff; }

.nav-toggle { display: none; }

/* ---------- ヒーロー（派手め：動くグラデーション＋光＋波） ---------- */
.hero {
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, #06163a, #0b3a8c, #1176d6, #00b4d8, #6a2bd9, #0b3a8c, #06163a);
  background-size: 400% 400%;
  animation: hero-bg 18s ease-in-out infinite;
}
@keyframes hero-bg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* 背景の写真（Pexels・商用無料）。輝度だけを重ねて、写真がグラデーションの色に染まるようにする */
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero.jpg") center / cover no-repeat;
  mix-blend-mode: luminosity; opacity: .5;
  animation: photo-zoom 30s ease-in-out infinite alternate;
}
@keyframes photo-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
/* 文字の下（左側）だけ少し暗くして読みやすくする */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 22, 58, .55) 0%, rgba(6, 22, 58, .25) 45%, transparent 75%);
}
/* 光の玉 */
/* screen で重ねて、背景の青と混ざってもくすまないようにする */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .6; z-index: -1; mix-blend-mode: screen; }
.hero-glow.g1 { width: 420px; height: 420px; background: #ff8a00; top: -120px; right: -60px; animation: float1 14s ease-in-out infinite; }
.hero-glow.g2 { width: 360px; height: 360px; background: #00e5ff; bottom: -120px; left: -80px; animation: float2 16s ease-in-out infinite; }
.hero-glow.g3 { width: 280px; height: 280px; background: #ff3cac; top: 30%; left: 45%; opacity: .35; animation: float1 20s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px, -40px) scale(1.1); } }
/* 方眼（デジタル感） */
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  animation: grid-move 12s linear infinite;
}
@keyframes grid-move { to { background-position: 44px 44px, 44px 44px; } }

.hero .wrap { padding-top: 64px; padding-bottom: 104px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; margin: 0 0 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.hero h1 {
  /* 見出しも本文と同じ BIZ UDPゴシックの太字 */
  font-family: var(--font);
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.3; margin: 0 0 18px; letter-spacing: .03em; font-weight: 700;
  text-shadow: 0 4px 30px rgba(0, 20, 60, .45);
}
.hero h1 .hl {
  background: linear-gradient(90deg, #ffd166, #ff8a00, #ff3cac, #ffd166);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: hl-move 6s linear infinite;
  text-shadow: none;
}
@keyframes hl-move { to { background-position: 300% 0; } }
.hero h1 .nb { white-space: nowrap; }   /* 「ちょうどいいシステムを。」を途中で折り返さない */
.hero p.lead { font-size: clamp(15px, 2vw, 18px); max-width: 760px; opacity: .95; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { box-shadow: 0 8px 28px rgba(255, 138, 0, .45); }

/* 波（3枚を重ねて横に流す） */
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 0; overflow: hidden; }
.hero-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hero-waves .w1 { animation: wave 16s linear infinite; opacity: .35; }
.hero-waves .w2 { animation: wave 11s linear infinite reverse; opacity: .5; }
.hero-waves .w3 { animation: wave 22s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hero, .hero-photo, .hero-glow, .hero-grid, .hero h1 .hl, .hero-waves svg { animation: none !important; }
}

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 15px;
  border: 2px solid transparent; transition: background .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #1d1300; }
.btn-primary:hover { background: #ffb257; color: #1d1300; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- セクション共通 ---------- */
section { padding: 80px 0; }
section.alt { background: var(--soft); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .en {
  display: block; color: var(--blue); font-size: 13px; font-weight: 700;
  letter-spacing: .2em; margin-bottom: 6px;
}
.sec-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0; color: var(--navy); line-height: 1.4; }
.sec-head p { color: var(--muted); margin: 12px auto 0; max-width: 920px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 12px 0 8px; font-size: 18px; color: var(--navy); line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sky); color: var(--blue);
  display: grid; place-items: center;
}
.icon svg { width: 26px; height: 26px; }

.service-note { text-align: center; color: var(--muted); font-size: 14px; margin: 20px 0 0; }

/* ---------- 強み ---------- */
.strength { background: linear-gradient(160deg, #0f2a4f 0%, #12305a 50%, #1b4f8f 100%); color: #fff; }
.strength .sec-head h2, .strength .sec-head .en { color: #fff; }
.strength .sec-head .en { color: #ffd166; }
.strength .sec-head p { color: rgba(255, 255, 255, .8); }
.feature-list { display: grid; gap: 24px; }
.feature {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 32px;
}
.feature-icon {
  width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a00, #ff3cac); color: #fff;
  box-shadow: 0 12px 30px rgba(255, 60, 172, .3);
}
.feature:nth-child(2) .feature-icon { background: linear-gradient(135deg, #00b4d8, #3b6cf6); box-shadow: 0 12px 30px rgba(0, 180, 216, .3); }
.feature-icon svg { width: 64px; height: 64px; }
.feature-no { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: #ffd166; }
.feature-body h3 { margin: 4px 0 10px; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.45; }
.feature-body > p { margin: 0; color: rgba(255, 255, 255, .85); }
.strength .checks li { color: #fff; }
.strength .checks li::before { background-color: #ffb257; }

/* ---------- 製品 ---------- */
.product {
  display: flex; flex-direction: column;
  border-top: 4px solid var(--blue);
}
.product .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--sky); padding: 2px 10px; border-radius: 999px;
}
.product .flow {
  margin-top: 14px; padding: 12px 14px; background: var(--soft); border-radius: 8px;
  font-size: 13px; color: var(--ink);
}

/* ---------- クラウド ---------- */
.cloud { background: linear-gradient(180deg, #ffffff 0%, var(--sky) 100%); }
.cloud .card { position: relative; }
.badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
}
.badge-ok { background: #e3f4e8; color: #1c6b37; }
.badge-soon { background: #fff2e0; color: #8a4b00; }

/* ---------- 事例 ---------- */
.case {
  display: grid; grid-template-columns: 440px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.case-label { color: var(--blue); font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.case h3 { margin: 0 0 10px; color: var(--navy); }
.case p { margin: 0; color: var(--muted); }
.case p.case-label, .show-body > p.case-label { color: var(--blue); margin: 0 0 6px; }
.case-list { display: grid; gap: 24px; }
.case-media { display: grid; gap: 12px; }
.case .checks li { color: var(--ink); }
.case-diagram { display: block; position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.case-diagram img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.case-diagram:hover img { transform: scale(1.03); }
.case-zoom { position: absolute; right: 8px; bottom: 8px; font-size: 12px; background: rgba(18, 48, 90, .85); color: #fff; padding: 2px 10px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.case-diagram:hover .case-zoom, .case-diagram:focus .case-zoom { opacity: 1; }

/* ---------- 導入事例（画面つき） ---------- */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.show-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.show-img { display: block; height: 280px; overflow: hidden; position: relative; }
.show-img img { display: block; transition: transform .4s ease; }
.show-img:hover img { transform: scale(1.03); }
/* パソコンの画面：左上を中心に切り抜き */
.show-img-pc { background: #dfe7f1; }
.show-img-pc img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* スマホの画面：グラデーションの上にスマホが下から覗く */
.show-img-phone {
  background: linear-gradient(135deg, #0b3a8c, #1176d6 55%, #00b4d8);
  display: flex; justify-content: center;
}
.show-img-phone img {
  width: 190px; height: auto; margin-top: 28px; align-self: flex-start;
  border-radius: 22px 22px 0 0; border: 6px solid #0b1f3a; border-bottom: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
/* 構成図：白地に全体が収まるように表示 */
.show-img-diagram { background: #fff; border-bottom: 1px solid var(--line); padding: 16px; }
.show-img-diagram img { width: 100%; height: 100%; object-fit: contain; }
/* 業務の流れの図 */
.show-flow { margin: 18px 0 0; }
.show-flow a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.show-flow img { display: block; width: 100%; height: auto; }
.show-flow figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
/* 画面イメージの小さな見本 */
.show-thumb {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy);
  background: var(--soft); transition: background .15s, border-color .15s;
}
.show-thumb:hover { background: var(--sky); border-color: #b9d3ec; }
.show-thumb img {
  width: 120px; height: 68px; object-fit: cover; object-position: left top;
  border-radius: 6px; border: 1px solid var(--line); flex: none; background: #fff;
}
.show-thumb-phone img { width: 56px; height: 90px; object-position: center top; border-radius: 8px; border: 3px solid #0b1f3a; }
.show-thumb span { font-weight: 700; font-size: 15px; line-height: 1.5; }
.show-thumb::after { content: "→"; margin-left: auto; padding: 0 6px; font-weight: 700; color: var(--blue); }
.show-thumb small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.show-body { padding: 24px; }
.show-body h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.show-body > p { margin: 0; color: var(--muted); }
.checks { list-style: none; margin: 14px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 26px; margin-top: 6px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.show-note { font-size: 12px; color: var(--muted); margin: 14px 0 0 !important; }

/* ---------- 技術 ---------- */
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tech-list li {
  font-size: 14px; padding: 4px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}

/* ---------- アカデミー ---------- */
.academy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.times { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.times th, .times td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px; }
.times th { background: var(--sky); color: var(--navy); width: 34%; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- 工事中 ---------- */
.construction {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 44px 24px; border-radius: var(--radius);
  border: 2px dashed #f2b263;
  background: repeating-linear-gradient(-45deg, #fffaf2 0 18px, #fff4e3 18px 36px);
}
.construction-icon {
  width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #c46d00; border: 2px solid #f2b263;
}
.construction-icon svg { width: 30px; height: 30px; }
.construction p { margin: 0; color: var(--muted); }
.construction p.construction-title { font-size: 20px; font-weight: 700; color: #8a4b00; margin: 0 0 6px; }

/* ---------- 会社概要 ---------- */
.company { width: 100%; border-collapse: collapse; }
.company th, .company td {
  border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top;
}
.company th { width: 180px; color: var(--navy); font-weight: 700; background: var(--soft); }
.company td ul { margin: 0; padding-left: 1.2em; }

.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .sec-head h2, .contact .sec-head .en { color: #fff; }
.contact .sec-head p { color: rgba(255, 255, 255, .8); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-box {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
}
.contact-box .label { font-size: 14px; opacity: .8; margin: 0 0 6px; }
.contact-box .value { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: .03em; margin: 0; }
.contact-box a { color: #fff; text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }
.contact-box .sub { font-size: 13px; opacity: .75; margin: 8px 0 0; }

/* ---------- フッター ---------- */
.site-footer { background: #0b1f3a; color: rgba(255, 255, 255, .75); font-size: 13px; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255, 255, 255, .85); }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--navy); color: #fff; padding: 48px 0; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); }
.prose { max-width: 820px; }
.prose h2 { font-size: 19px; color: var(--navy); margin: 36px 0 10px; padding-left: 12px; border-left: 4px solid var(--blue); }
.prose ul { padding-left: 1.3em; }

/* ---------- お問い合わせフォーム ---------- */
.form-wrap { max-width: 760px; }
.form-lead { margin: 0 0 28px; color: var(--muted); }
.cform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.frow { margin-bottom: 20px; }
.frow > label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 15px; }
.req {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #d64545;
  border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; line-height: 1.7;
}
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform select, .cform textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--soft);
}
.cform textarea { resize: vertical; min-height: 180px; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31, 111, 178, .15);
}
.fhint { font-size: 13px; color: var(--muted); margin: 6px 0 0; text-align: right; }
.agree { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ferror { background: #fdecea; color: #b42318; border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; }
.fsubmit { text-align: center; }
.fsubmit .btn { min-width: 240px; font-size: 16px; padding: 14px 28px; border: 0; cursor: pointer; }
.result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.result-ok { border-top: 4px solid #2f9e5a; }
.result-ng { border-top: 4px solid #d64545; }
.result-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 0; }
/* お問い合わせの確認画面 */
.csteps { display: flex; justify-content: center; gap: 0; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: st; }
.csteps li {
  counter-increment: st; flex: 1; max-width: 180px; text-align: center; font-weight: 700; color: var(--muted);
  padding: 10px 6px; border-bottom: 3px solid var(--line);
}
.csteps li::before { content: counter(st) ". "; }
.csteps li.now { color: var(--navy); border-bottom-color: var(--accent); }
.cform .frow { margin-bottom: 26px; }
.clabel { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.cval {
  font-size: 16px; color: var(--ink); line-height: 1.9; padding: 12px 16px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--soft);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.cval-long { min-height: 180px; }
.cval-empty { color: var(--muted); }
/* ボタンは入力画面の「確認画面へ」と同じ大きさ */
.confirm-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.confirm-actions .btn { min-width: 240px; font-size: 16px; padding: 14px 28px; border: 0; cursor: pointer; }
.confirm-actions .btn-back { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); }
.btn-back:hover { background: #f3f5f8; color: var(--navy); }
.contact-form-link { text-align: center; margin-top: 28px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .academy { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .case-diagram { max-width: 560px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--navy);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px; font-size: 15px; }
  .nav .nav-contact a { text-align: center; margin-top: 6px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .grid-4, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 84px; }
  .hero-waves { height: 60px; }
  .hero-glow.g1 { width: 260px; height: 260px; }
  .hero-glow.g2 { width: 240px; height: 240px; }
  .hero-glow.g3 { display: none; }
  .hero h1 { font-size: clamp(24px, 7.4vw, 32px); }
  .hero::before { background: rgba(6, 22, 58, .45); }   /* スマホは文字が写真全体にかかるので全体を暗く */
  .feature { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .feature-icon { width: 72px; height: 72px; border-radius: 18px; }
  .feature-icon svg { width: 40px; height: 40px; }
  .company th { width: 100px; padding: 12px 10px; }
  .company td { padding: 12px 10px; }
  .case { padding: 22px; }
}

/* 見出しは行の長さをそろえ、本文は最後の行に1〜2文字だけ残らないようにする */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, td { text-wrap: pretty; }

/* 無料デモの枠の申し込みボタン（2026/11/18） */
.card p.card-btn { margin-top: 14px; }

/* コンボボックスの字の下が切れないように（BIZ UDPゴシックは字が高いため。2026/11/18） */
.cform select { line-height: 1.6; padding-top: 10px; padding-bottom: 10px; min-height: 52px; }
