/* METRIZA 公式サイト：白地に大きな角丸カード、青の帯にサイトのアイコンを並べる、明るい企業サイトの形 */
:root {
  --bg: #ffffff;
  --soft: #f3f5f9;
  --ink: #1d2433;
  --ink-2: #5c6578;
  --line: #e3e7ef;
  --brand: #1f3f9e;      /* METRIZAの紺青 */
  --band-1: #2c56c9;
  --band-2: #4a78e6;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-logo: "Josefin Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--band-2); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1000px; margin-inline: auto; padding-inline: 20px; }

/* ヘッダー：ロゴを中央に */
.site-header { display: flex; justify-content: center; padding: 22px 20px 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand .mark { width: 34px; height: 34px; }
.brand span { font-family: var(--font-logo); font-weight: 600; font-size: 30px; letter-spacing: .12em; color: var(--ink); padding-top: 4px; }

/* 事業のカード */
.cards { padding-block: 8px 40px; }
.cards-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; max-width: 1240px; margin-inline: auto; padding: 4px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.card { position: relative; scroll-snap-align: center; background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%); border-radius: 22px; box-shadow: 0 10px 30px rgba(31, 63, 158, .12), 0 1px 0 rgba(0,0,0,.04); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; min-height: 440px; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(31, 63, 158, .18); }
.card-text { padding: 26px 24px 8px; display: flex; flex-direction: column; gap: 6px; }
.card-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--band-1); }
.card h2 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.35; letter-spacing: .02em; text-wrap: balance; }
.card-text p:last-child { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.card img { margin-top: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 70%; }
.card img.pos-bottom { object-position: center 85%; }
.card-media { position: relative; margin-top: auto; }
.card-logo { position: absolute; left: 14px; top: 14px; width: 64px !important; height: 64px !important; aspect-ratio: 1 / 1 !important; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.card-go { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.card-go::after { content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.card.soon { box-shadow: none; border: 2px dashed var(--line); background: var(--soft); }
.card.soon img { filter: saturate(.6); opacity: .85; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* 色の帯 */
.band { max-width: 1240px; margin: 0 auto 56px; margin-inline: max(12px, calc((100% - 1240px) / 2)); background: linear-gradient(135deg, var(--band-1), var(--band-2)); color: #fff; border-radius: 28px; padding: 32px 20px 36px; text-align: center; }
.band-h { margin: 0 0 20px; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.icons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 28px; }
.icons a, .icon-soon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; width: 112px; }
.icons img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .2s ease; }
.icons a:hover img { transform: scale(1.05); }
.icon-soon { opacity: .75; }

/* 事業者情報・お問い合わせ */
main > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 72px; }
@media (min-width: 860px) { main > .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.panel { background: var(--soft); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .04em; }
.info { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; }
.info div { display: grid; grid-template-columns: 7em 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.info dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 520px) { .info div { grid-template-columns: 1fr; gap: 2px; } }
.contact p { margin: 0; font-size: 15px; }
.contact .mail { font-size: 24px; font-weight: 900; letter-spacing: .02em; }
.mail a { color: var(--brand); text-decoration: none; border-bottom: 3px solid var(--band-2); }
.contact .note { color: var(--ink-2); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; padding-block: 22px; text-align: center; letter-spacing: .08em; }
