/* =========================================================
   株式会社銘辰 — 现代响应式样式表
   纯原生 CSS：CSS 变量 + Flexbox/Grid + 媒体查询
   ========================================================= */

:root {
  --navy: #0a1f3c;
  --navy-light: #15355f;
  --accent: #c9a24b;        /* gold */
  --accent-deep: #b08831;
  --accent-soft: #f3ebda;   /* soft gold tint */
  --ink: #20242c;
  --muted: #5d6470;
  --line: #e7e2d6;
  --bg: #fffdf9;            /* warm white */
  --bg-alt: #f7f5f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 34, 64, .06), 0 1px 2px rgba(16, 34, 64, .04);
  --shadow-md: 0 10px 30px rgba(16, 34, 64, .10);
  --shadow-lg: 0 20px 50px rgba(16, 34, 64, .16);
  --maxw: 1140px;
  --header-h: 72px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-light); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--navy);
  letter-spacing: .02em;
}
.section__lead { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--navy); font-weight: 700; box-shadow: 0 8px 20px rgba(201, 162, 75, .38); }
.btn--primary:hover { color: var(--navy); background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 136, 49, .48); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.btn--outline { background: transparent; color: var(--accent-deep); border: 1.5px solid var(--accent); }
.btn--outline:hover { color: var(--navy); background: var(--accent); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.brand__en { font-size: 11px; letter-spacing: .28em; color: var(--muted); }

.nav__list { display: flex; gap: 4px; align-items: center; }
.nav__list a {
  display: block; padding: 8px 16px; border-radius: 8px;
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.nav__list a:hover { background: var(--accent-soft); color: var(--navy-light); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav.is-open { max-height: 70vh; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav__list li { width: 100%; }
  .nav__list a { padding: 14px 24px; border-radius: 0; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: clamp(560px, 90vh, 800px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--navy);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../../images/sliderbg.jpg") center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(201, 162, 75, .30), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(21, 53, 95, .55), transparent 55%),
    linear-gradient(115deg, rgba(10, 31, 60, .96) 0%, rgba(10, 31, 60, .82) 42%, rgba(21, 53, 95, .50) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.18) translate(-1.5%, -1.5%); }
}
/* 细点阵纹理 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 28% 50%, transparent 0%, #000 78%);
  mask-image: radial-gradient(ellipse at 28% 50%, transparent 0%, #000 78%);
}
/* 金色地球经纬线装饰 */
.hero__globe {
  position: absolute; z-index: 1; pointer-events: none;
  top: 50%; right: -70px; transform: translateY(-50%);
  width: clamp(360px, 46vw, 640px); height: auto;
  color: var(--accent); opacity: .18;
  animation: heroFloat 12s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(-54%); }
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__accent {
  display: block; width: 64px; height: 4px; border-radius: 4px;
  background: var(--accent); margin-bottom: 26px;
  box-shadow: 0 0 18px rgba(201, 162, 75, .65);
}
@media (max-width: 820px) { .hero__globe { right: -38%; opacity: .12; } }
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__globe { animation: none; }
}
.hero__slides { position: relative; min-height: 230px; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__slide h2 { font-size: clamp(32px, 6vw, 56px); letter-spacing: .03em; margin-bottom: 18px; }
.hero__slide p { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, .9); max-width: 600px; }
.hero__actions { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__dots { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 40px; }
.hero__dot {
  width: 36px; height: 4px; border-radius: 4px; border: none; padding: 0;
  background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s var(--ease);
}
.hero__dot.is-active { background: #fff; }

/* =========================================================
   経営理念 (philosophy)
   ========================================================= */
.philosophy__list { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
.philosophy__item {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 24px 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.philosophy__item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.philosophy__num { font-size: 22px; font-weight: 700; color: var(--accent); flex: none; line-height: 1.6; }
.philosophy__item p { margin: 0; }

/* =========================================================
   会社案内 (company profile)
   ========================================================= */
.profile { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.profile__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.profile__table th, .profile__table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile__table tr:last-child th, .profile__table tr:last-child td { border-bottom: none; }
.profile__table th { width: 130px; color: var(--navy); font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
.profile__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.profile__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } .profile__media { order: -1; } }

/* =========================================================
   事業内容 (services)
   ========================================================= */
.services__grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.service-card { flex: 1 1 300px; max-width: 352px; }
@media (max-width: 900px) { .services__grid { max-width: 520px; margin-inline: auto; } .service-card { flex-basis: 100%; max-width: 100%; } }
.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card__top { padding: 28px 28px 0; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title { font-size: 21px; color: var(--navy); margin-bottom: 6px; }
.service-card__catch { color: var(--accent); font-weight: 600; font-size: 14px; }
.service-card__body { padding: 18px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card__list { display: grid; gap: 10px; margin-bottom: 22px; color: var(--muted); }
.service-card__list li { position: relative; padding-left: 24px; }
.service-card__list li::before {
  content: ""; position: absolute; left: 4px; top: .65em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.service-card__action { margin-top: auto; }

/* =========================================================
   貿易専門用語集 modal (<dialog>)
   ========================================================= */
.glossary {
  width: min(960px, 92vw); max-height: 86vh; padding: 0;
  border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.glossary::backdrop { background: rgba(15, 44, 82, .55); backdrop-filter: blur(3px); }
.glossary__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; background: var(--navy); color: #fff; position: sticky; top: 0;
}
.glossary__head h3 { font-size: 20px; }
.glossary__close {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; line-height: 1;
  transition: background .2s var(--ease);
}
.glossary__close:hover { background: rgba(255, 255, 255, .3); }
.glossary__body { padding: 24px 28px; overflow-y: auto; max-height: calc(86vh - 76px); }
.glossary__body > p { color: var(--muted); }
.glossary__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.glossary__table th, .glossary__table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.glossary__table thead th { background: var(--accent-soft); color: var(--navy); position: sticky; top: 0; }
.glossary__table .group-cell { background: var(--bg-alt); font-weight: 700; color: var(--navy); text-align: center; white-space: nowrap; }
.glossary__table .abbr { font-weight: 700; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) { .glossary__table { font-size: 12px; } .glossary__table th, .glossary__table td { padding: 7px 8px; } }

/* =========================================================
   WEB制作 highlight (in-page)
   ========================================================= */
.webwork { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px) { .webwork { grid-template-columns: 1fr; } }
.webwork__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.webwork__card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.webwork__card p { color: var(--muted); margin: 0; }

/* =========================================================
   数字で見る (stats)
   ========================================================= */
.stats { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; }
.stats .section__title { color: #fff; }
.stats .section__eyebrow { color: var(--accent); }
.stats .section__lead { color: rgba(255, 255, 255, .8); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 820px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats__grid { grid-template-columns: 1fr; } }
.stat {
  text-align: center; padding: 28px 18px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.stat__num {
  font-size: clamp(38px, 6vw, 54px); font-weight: 700; line-height: 1;
  color: var(--accent); letter-spacing: .01em;
  font-feature-settings: "tnum";
}
.stat__num small { font-size: .45em; font-weight: 600; margin-left: 4px; color: var(--accent); }
.stat__label { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .82); }

/* =========================================================
   お問い合わせ (contact)
   ========================================================= */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; }
.contact .section__title, .contact .section__eyebrow { color: #fff; }
.contact .section__eyebrow { color: #e3cd92; }
.contact .section__lead { color: rgba(255, 255, 255, .82); }
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 30px; }
.contact__card h3 { font-size: 16px; color: #e3cd92; margin-bottom: 16px; letter-spacing: .05em; }
.contact__row { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.contact__row:last-child { margin-bottom: 0; }
.contact__label { flex: none; width: 60px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.contact__value { color: #fff; font-size: 16px; word-break: break-word; }
.contact__value a { color: #fff; }
.contact__value a:hover { color: #e3cd92; }
.social { display: flex; gap: 14px; margin-top: 24px; justify-content: center; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .22); transform: translateY(-3px); color: #fff; }
.social svg { width: 20px; height: 20px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #0a1f3c; color: rgba(255, 255, 255, .7); padding: 48px 0 32px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__nav a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy { font-size: 13px; letter-spacing: .05em; }

/* ---------- scroll to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-light); }
.to-top svg { width: 22px; height: 22px; }

/* =========================================================
   web.html detail page extras
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: clamp(64px, 12vw, 120px) 0 clamp(48px, 8vw, 80px); text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; letter-spacing: .03em; }
.page-hero p { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, .9); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 15px; margin-bottom: 16px; }
.data-table th, .data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th, .data-table tr:first-child th { background: var(--navy); color: #fff; }
.data-table tbody th { background: var(--bg-alt); color: var(--navy); font-weight: 600; }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.note { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.process__step { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.process__step dt { font-weight: 700; color: var(--navy); font-size: 17px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.process__step dd { margin: 0 0 6px; padding-left: 18px; position: relative; color: var(--muted); font-size: 14px; }
.process__step dd::before { content: "›"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
