/* ETERNOX コーポレートサイト（eternox-ccj.com）。Framer 版（〜2026-11）の見た目に合わせて作り直したもの */
:root {
  --navy: #1c224f;
  --ink: #111111;
  --muted: #555b66;
  --line: #e3e5ea;
  --radius: 22px;
  --sidebar: 260px;
  --serif: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Manrope", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── 左のメニュー（PC） ── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  display: flex; flex-direction: column; align-items: center; padding-top: 28px; z-index: 20; background: #fff;
}
.sidebar .logo img { width: 124px; height: 124px; }
.nav { margin-top: 120px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 17px; }
.nav a { padding: 2px 6px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.nav .login { margin-top: 26px; }
.langs { display: flex; gap: 10px; margin-top: 14px; font-size: 13px; }
.langs a { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-btn { display: none; }

/* ── 本文 ── */
main { margin-left: var(--sidebar); padding: 24px 26px 0 28px; }
.wrap { max-width: 1140px; }

.hero { position: relative; border-radius: var(--radius); overflow: hidden; height: min(875px, 92vh); min-height: 420px; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.hero .title { position: absolute; left: 32px; bottom: 30px; right: 32px; z-index: 1; color: #fff; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.15; letter-spacing: -.01em; }
.hero .sub { margin-top: 10px; font-size: 18px; opacity: .92; }
.hero.home::after { background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%); }
.hero.home .title { top: 50%; bottom: auto; transform: translateY(-50%); }
.hero.home h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 80px); }

.lead { margin: 56px 0 0; max-width: 960px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.4; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards.three { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; display: block; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.55)); }
.card .tag { position: absolute; top: 14px; left: 14px; z-index: 1; background: #fff; border-radius: 999px; padding: 3px 10px; font-family: "Jost", var(--sans); font-size: 12px; font-weight: 500; }
.card .name { position: absolute; left: 22px; right: 18px; bottom: 18px; z-index: 1; color: #fff; font-weight: 800; font-size: 20px; line-height: 1.2; }

.banner { position: relative; border-radius: 0; overflow: hidden; margin-top: 8px; }
.banner img { width: 100%; height: clamp(300px, 38vw, 541px); object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.5)); }
.banner p { position: absolute; left: 56px; right: 56px; bottom: 40px; z-index: 1; margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.25; }

.prose { max-width: 960px; margin-top: 56px; }
.prose ul { padding-left: 1.2em; margin: 8px 0 24px; }
.prose li { margin: 2px 0; }
.quote { font-weight: 700; white-space: pre-line; margin-top: 28px; }
.pair { display: flex; gap: 54px; justify-content: center; margin: 56px 0 72px; flex-wrap: wrap; }
.pair img { width: 400px; height: 300px; object-fit: cover; }

.mosaic { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 25px; }
.mosaic img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.mosaic .w2 { grid-column: span 2; }

.gallery { columns: 3 320px; column-gap: 10px; margin-top: 60px; }
.gallery img { width: 100%; margin-bottom: 10px; border-radius: 12px; break-inside: avoid; }

.policy { max-width: 960px; padding-top: 12px; }
.policy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.1vw, 44px); margin: 0 0 22px; }
.policy h2 { font-size: 17px; margin: 30px 0 6px; }
.policy p, .policy li { font-size: 15px; }

/* ── 問い合わせ ── */
.form { max-width: 1127px; }
.form label { display: block; }
.form .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 0; border-radius: 10px; background: #f2f3f5; margin-bottom: 12px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form button { width: 100%; font: inherit; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: 10px; padding: 12px; cursor: pointer; }
.form button[disabled] { opacity: .6; cursor: default; }
.form .status { margin-top: 12px; font-size: 14px; min-height: 1.5em; }
.form .status.ok { color: #1f7a45; }
.form .status.err { color: #b42318; }
.hp { position: absolute; left: -9999px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 56px 0 72px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.contact-info h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.contact-info b { display: block; font-weight: 600; }
.contact-info span { font-size: 14px; color: var(--muted); }

/* ── フッター ── */
footer { background: var(--navy); color: #fefefe; margin-top: 90px; margin-left: var(--sidebar); padding: 56px 40px 34px; }
footer .cols { display: flex; gap: 90px; justify-content: center; padding-left: 15%; }
footer h4 { margin: 0 0 18px; font-weight: 400; font-size: 19px; }
footer .cols a { display: block; font-size: 15px; line-height: 1.9; opacity: .9; }
footer .cols a:hover { opacity: 1; text-decoration: underline; }
footer .copy { margin-top: 70px; text-align: right; font-size: 14px; opacity: .85; }

/* ── スマホ・タブレット ── */
@media (max-width: 900px) {
  .sidebar { position: sticky; top: 0; inset: auto; width: 100%; height: 64px; padding: 0 16px; flex-direction: row; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .sidebar .logo img { width: 48px; height: 48px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; font-size: 24px; cursor: pointer; }
  .menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #fff; padding: 28px 16px; flex-direction: column; align-items: center; }
  body.menu-open .menu { display: flex; }
  .nav { margin-top: 0; gap: 18px; font-size: 20px; }
  main { margin-left: 0; padding: 16px 16px 0; }
  .hero { height: 64vh; min-height: 360px; }
  .hero .title { left: 20px; right: 20px; bottom: 22px; }
  .hero.home .title { top: auto; bottom: 28px; transform: none; }
  .cards, .cards.three { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .name { font-size: 16px; left: 14px; bottom: 12px; }
  .banner p { left: 20px; right: 20px; bottom: 22px; }
  .pair { gap: 14px; margin: 36px 0 48px; }
  .pair img { width: 100%; height: 240px; }
  .mosaic { grid-template-columns: 1fr; gap: 12px; }
  .mosaic .w2 { grid-column: auto; }
  .mosaic img { height: 220px; }
  .contact-info { grid-template-columns: 1fr; gap: 12px; }
  footer { margin-left: 0; padding: 40px 20px 26px; }
  footer .cols { gap: 48px; padding-left: 0; justify-content: flex-start; }
  footer .copy { text-align: left; margin-top: 40px; }
}
@media (max-width: 380px) { .cards, .cards.three { grid-template-columns: 1fr; } }
