/* =====================================================================
   TOP 刷新の試作（案A：OSページの型をそのまま踏襲／案B：今の構成を保って整形）
   os.css（＋案Aは industry.css）の部品に足す分
   ===================================================================== */

/* ===================================================== 案A ===================================================== */
.top-tagline { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: italic 700 22px/1.3 var(--en); letter-spacing: .04em; color: var(--navy); }
.top-tagline span { font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: .14em; color: var(--acc); }
.top-a .os-lead { font-size: 16px; line-height: 2; }

.top-news { background: var(--navy); }
.top-news a { display: flex; align-items: center; gap: 16px; padding: 16px 0; color: #fff; text-decoration: none; font-size: 14px; }
.top-news-tag, .tb-news-tag { flex: none; padding: 2px 12px; border-radius: 100px; background: var(--acc); color: #fff; font: 800 11px/1.6 var(--en); letter-spacing: .14em; }
.top-news time { flex: none; font: 700 14px/1 var(--en); color: #ffd2a1; letter-spacing: .06em; }
.top-news b { font-weight: 700; }
.top-news .arr { margin-left: auto; font-size: 20px; }
.top-news a:hover b { text-decoration: underline; }

/* 3つの層（上から 使う／入れる／ためる。下ほど土台なので広く） */
.top-stack { margin-top: 64px; }
.top-stack-lead { margin: 0 0 22px; text-align: center; font-size: clamp(18px, 2vw, 24px); }
.top-stack ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: center; }
.top-stack li { width: 100%; display: grid; grid-template-columns: 86px 1fr auto auto; align-items: center; gap: 10px 18px; padding: 18px 24px; border-radius: 18px; color: var(--ink); background: #fff; }
.top-stack li.is-use { width: 78%; }
.top-stack li.is-in { width: 89%; }
.top-stack li.is-base { background: linear-gradient(120deg, #ff9a2e, #e06a00); color: #fff; }
.top-stack-tag { justify-self: start; padding: 4px 14px; border-radius: 100px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.top-stack li.is-base .top-stack-tag { background: rgba(255,255,255,.25); }
.top-stack b { display: flex; align-items: center; font-size: 18px; letter-spacing: .04em; }
.top-stack b .os-mark { margin-right: 10px; }
.top-stack li.is-base .os-mark i:first-child { background: #fff; color: var(--acc-ink); }
.top-stack li.is-base .os-mark i + i { background: var(--navy); }
.top-stack p { margin: 2px 0 0; font-size: 14px; color: var(--sub); line-height: 1.7; }
.top-stack li.is-base p { color: rgba(255,255,255,.92); }
.top-stack a { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--navy); text-decoration: none; color: var(--navy); white-space: nowrap; }
.top-stack a:hover { background: var(--navy); color: #fff; }
.top-stack li.is-base a { border-color: #fff; color: #fff; }
.top-stack li.is-base a:hover { background: #fff; color: var(--acc-ink); }
.top-stack li > a:only-of-type { grid-column: 3 / 5; justify-self: end; }

/* 事業領域：写真カード5枚 */
.top-domain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.top-domain a { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none; border: 1px solid var(--line);
  box-shadow: 0 24px 40px -32px rgba(31, 58, 95, .5); transition: transform .2s ease, box-shadow .2s ease; }
.top-domain a:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(31, 58, 95, .6); }
.top-domain img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; }
.top-domain-no { position: absolute; left: 14px; top: 14px; display: grid; place-content: center; width: 48px; aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--acc); color: #fff; font: 800 17px/1 var(--en); }
.top-domain b { display: block; padding: 16px 16px 0; font-size: 17px; line-height: 1.45; letter-spacing: .03em; }
.top-domain b + span { display: block; padding: 6px 16px 18px; font-size: 13px; line-height: 1.7; color: var(--sub); }
.top-domain a::after { content: "›"; position: absolute; right: 14px; bottom: 10px; font: 400 24px/1 var(--en); color: var(--acc); }

/* オファリング：分類ごとのカード */
.top-off h3 { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 16px; padding-left: 14px; border-left: 4px solid var(--acc); font-size: 20px; letter-spacing: .06em; }
.top-off h3:first-child { margin-top: 0; }
.top-off h3 small { font-size: 13px; color: var(--mute); font-weight: 700; letter-spacing: .1em; }
.top-off ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.top-off a { position: relative; display: block; height: 100%; padding: 14px 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease; }
.top-off a:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -26px rgba(31, 58, 95, .55); }
.top-off img, .top-off-ic { display: block; width: 100%; height: auto; aspect-ratio: 615 / 432; object-fit: contain; border-radius: 12px; background: #f4f6f9; }
.top-off-ic::before { inset: 30% 38%; background: var(--navy); }
.top-off b { display: block; margin-top: 12px; font-size: 17px; letter-spacing: .03em; }
.top-off span { display: block; font-size: 13px; font-weight: 700; color: var(--sub); }
.top-off small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--acc-ink); }

/* ===================================================== 案B ===================================================== */
.top-b { --dark: #141416; --dark-2: #1c1d22; --gray: #eceef1; background: var(--dark); color: #fff; }
.tb-intro { background: linear-gradient(180deg, #0b1a28 0%, var(--dark) 100%); padding: 72px 0 40px; text-align: center; }
.tb-news { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; padding: 10px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04); text-decoration: none; color: #fff; font-size: 14px; text-align: left; }
.tb-news time { flex: none; font: 700 14px/1 var(--en); color: #ffd2a1; }
.tb-news .arr { font-size: 18px; }
.tb-news:hover { background: rgba(255,255,255,.1); }
.tb-layer { margin: 56px 0 6px; font: italic 600 16px/1 var(--en); letter-spacing: .18em; color: #8fd0ea; }
.tb-catch { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.6; letter-spacing: .06em; }
.tb-catch-sub { margin: 12px 0 0; color: rgba(255,255,255,.7); font-size: 15px; }

.tb-sec { position: relative; padding: 96px 0; }
.tb-head { text-align: center; margin-bottom: 44px; }
.tb-en { margin: 0; font: italic 700 clamp(44px, 6vw, 72px)/1 var(--en); letter-spacing: .04em; }
.tb-head h2 { margin: 8px 0 0; font-size: 15px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.75); }

.tb-domain { background: var(--dark); padding-top: 40px; }
.tb-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 6px; overflow: hidden; }
.tb-tiles a { position: relative; display: block; height: 100%; overflow: hidden; text-decoration: none; color: #fff; }
.tb-tiles img { display: block; width: 100%; height: auto; aspect-ratio: 610 / 750; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.85) brightness(.9); }
.tb-tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,12,16,.9) 100%); }
.tb-tiles a:hover img { transform: scale(1.05); filter: none; }
.tb-no { position: absolute; z-index: 1; left: 16px; bottom: 112px; font: italic 700 40px/1 var(--en); letter-spacing: .02em; }
.tb-tile-body { position: absolute; z-index: 1; left: 16px; right: 14px; bottom: 18px; min-height: 84px; }
.tb-tile-body b { display: block; font-size: 17px; line-height: 1.4; letter-spacing: .03em; }
.tb-tile-body span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.78); }
.tb-ready { margin-top: 36px; display: flex; align-items: center; gap: 18px; padding: 20px 26px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: var(--dark-2);
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.tb-ready b { display: block; font: 800 18px/1.3 var(--en); letter-spacing: .08em; color: #ffb469; }
.tb-ready .arr { margin-left: auto; font-size: 22px; color: var(--acc); }
.tb-ready:hover { border-color: var(--acc); }

.tb-offering { background: var(--gray); color: var(--ink); }
.tb-offering .tb-en { color: var(--ink); }
.tb-offering .tb-head h2 { color: var(--sub); }
.tb-cat + .tb-cat { margin-top: 44px; }
.tb-cat h3 { margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid #2f6f8f; font-size: 19px; font-weight: 700; letter-spacing: .08em; color: #2f6f8f; }
.tb-cat ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tb-cat a { display: block; height: 100%; text-decoration: none; text-align: center; }
.tb-cat img { display: block; width: 100%; height: auto; aspect-ratio: 615 / 432; object-fit: cover; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px -18px rgba(0,0,0,.5); transition: transform .2s ease; }
.tb-cat a:hover img { transform: translateY(-3px); }
.tb-cat b { display: block; margin-top: 12px; font: italic 700 18px/1.3 var(--en); }
.tb-cat span { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; }
.tb-cat small { display: block; font-size: 12px; color: var(--sub); }

/* 比較用ページの見出し */
.tb-set { margin: 48px 0 14px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.75); }
.tb-set b { display: inline-block; margin-right: 12px; padding: 2px 14px; border-radius: 100px; background: var(--acc); color: #fff; font-size: 15px; }

/* ===================================================== タブレット・スマホ ===================================================== */
@media (max-width: 1023px) {
  .top-stack li, .top-stack li.is-use, .top-stack li.is-in { width: 100%; grid-template-columns: 80px 1fr; }
  .top-stack a, .top-stack li > a:only-of-type { grid-column: auto; justify-self: start; }
  .top-stack li > div { grid-column: 2; }
  .top-domain { grid-template-columns: repeat(3, 1fr); }
  .top-off ul, .tb-cat ul { grid-template-columns: repeat(2, 1fr); }
  .tb-tiles { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}
@media (max-width: 640px) {
  .top-tagline { font-size: 18px; }
  .top-news a { flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
  .top-news .arr { display: none; }
  .top-stack li, .top-stack li.is-use, .top-stack li.is-in { grid-template-columns: 1fr; padding: 16px; }
  .top-stack li > div { grid-column: 1; }
  .top-domain { grid-template-columns: 1fr 1fr; gap: 10px; }
  .top-domain b { font-size: 15px; padding: 12px 12px 0; }
  .top-domain b + span { padding: 4px 12px 26px; font-size: 12px; }
  .top-domain-no { width: 38px; font-size: 14px; }
  .top-off ul { gap: 10px; }
  .top-off a { padding: 10px 10px 12px; }
  .top-off b { font-size: 15px; }
  .top-off span, .top-off small { font-size: 12px; }
  .tb-intro { padding: 48px 0 24px; }
  .tb-news { flex-wrap: wrap; border-radius: 16px; gap: 6px 10px; font-size: 13px; }
  .tb-sec { padding: 64px 0; }
  .tb-tiles { grid-template-columns: 1fr 1fr; }
  .tb-no { font-size: 28px; top: 12px; bottom: auto; }
  .tb-tile-body { min-height: 0; }
  .tb-tile-body b { font-size: 15px; }
  .tb-ready { flex-wrap: wrap; padding: 18px; }
  .tb-cat ul { gap: 12px; }
}

/* =====================================================================
   オファリング：目的で絞り込めるカード（TOP の OFFERING）
   ===================================================================== */
.to-sec { padding-bottom: 72px; }
/* カード：ロゴの白い枠＋名前・何をするか・ひと言 */
.to-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.to-cards.to-grid4 { grid-template-columns: repeat(4, 1fr); }
.to-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 10px 10px 16px; border-radius: 16px; background: #fff;
  border: 1px solid #e3e7ec; color: var(--ink); text-decoration: none; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.to-card::after { content: "›"; position: absolute; right: 14px; bottom: 14px; color: var(--acc); font: 400 24px/1 var(--en); transition: transform .2s ease; }
.to-card:hover { transform: translateY(-2px); border-color: #c9d3de; box-shadow: 0 16px 28px -22px rgba(20, 40, 70, .55); }
.to-card:hover::after { transform: translateX(3px); }
.to-img { display: block; aspect-ratio: 615 / 432; border-radius: 10px; overflow: hidden; background: #f6f8fa; border: 1px solid #eef1f4; }
.to-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.to-txt { display: block; padding: 0 24px 0 6px; }
.to-txt b { display: block; font: italic 700 18px/1.3 var(--en); }
.to-txt span { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; }
.to-txt small { display: block; margin-top: 1px; font-size: 12px; color: var(--sub); }
.to-txt .to-tag { display: inline-block; margin: 0 0 4px; padding: 0 8px; border-radius: 100px; background: #e6eef6; color: #2f6f8f; font-size: 10.5px; font-weight: 700; }
/* 絞り込みのボタン */
.to-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 28px; }
.to-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; border: 1.5px solid #c9d3de; background: #fff; color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer; }
.to-chips button small { padding: 2px 7px; border-radius: 100px; background: #eef2f6; color: var(--sub); font-size: 11px; }
.to-chips button.is-on { background: #2f6f8f; border-color: #2f6f8f; color: #fff; }
.to-chips button.is-on small { background: rgba(255,255,255,.2); color: #fff; }
.to-cards > li[hidden] { display: none; }
@media (max-width: 1023px) {
  .to-cards, .to-cards.to-grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .to-cards, .to-cards.to-grid4 { grid-template-columns: 1fr; gap: 10px; }
  .to-card { flex-direction: row; align-items: center; padding: 10px; }
  .to-card .to-img { flex: none; width: 112px; }
  .to-card::after { bottom: auto; top: 50%; transform: translateY(-50%); }
  .to-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .to-chips button { flex: none; }
}
