
:root{
  --bg:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f5f7fb;
  --brand:#0b2f73;
  --brand2:#1f4aa8;
  --radius:18px;
  --max:1120px;
  --shadow: 0 12px 30px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.7;
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%; display:block}
.container{width:min(var(--max), 92vw); margin-inline:auto}
.small{color:var(--muted); font-size:13px}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800; font-size:12px; letter-spacing:.08em;
  color:rgba(11,47,115,.95);
  text-transform:uppercase;
}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:800; color:rgba(11,47,115,.92);
  background:rgba(31,74,168,.06);
  border:1px solid rgba(31,74,168,.16);
  padding:6px 10px; border-radius:999px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  font-weight:900;
  font-size:14px;
}
.btn--primary{
  color:#fff;
  background:linear-gradient(135deg, var(--brand2), var(--brand));
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(31,74,168,.20);
}
.btn--ghost{
  background:rgba(31,74,168,.06);
  border-color:rgba(31,74,168,.18);
  color:rgba(11,47,115,.98);
}
.btn--link{border:0; background:transparent; padding:0; font-weight:900; color:var(--brand2)}
hr{border:0; border-top:1px solid var(--line); margin:18px 0}

/* Header */
.header{
  position:sticky; top:0; z-index:999;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(229,231,235,.75);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.02em;
}
.brand__mark{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 12px 22px rgba(31,74,168,.22);
}
.brand__name{font-size:15px}
.nav{display:flex; align-items:center; gap:18px}
.nav a{
  font-size:14px;
  color:rgba(17,24,39,.86);
  padding:8px 4px;
}
.nav a[aria-current="page"]{
  color:rgba(11,47,115,.98);
  font-weight:900;
  position:relative;
}
.nav a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-14px;
  height:2px;
  background:linear-gradient(90deg, var(--brand2), var(--brand));
  border-radius:10px;
}
.burger{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
}
.mobile{
  display:none;
  border-top:1px solid var(--line);
}
.mobile a{
  display:block;
  padding:14px 0;
  border-bottom:1px solid var(--line);
  color:rgba(17,24,39,.9);
  font-weight:800;
}
@media (max-width: 900px){
  .nav{display:none}
  .burger{display:block}
  .mobile{display:block}
  .mobile[hidden]{display:none}
}

/* Hero (Home) */
.hero{
  position:relative;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(1200px 600px at 30% 0%, rgba(31,74,168,.12), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(11,47,115,.10), transparent 55%),
    #fff;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  padding:48px 0 30px;
  align-items:stretch;
}
.hero h1{
  margin:10px 0 10px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height:1.22;
  letter-spacing:-.02em;
}
.hero p{
  margin:0 0 18px;
  color:rgba(17,24,39,.75);
  font-size:15.5px;
}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.hero__card{
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.hero__media{
  width:100%;
  aspect-ratio: 16/11;
  object-fit:cover;
}
.hero__cardBody{padding:14px 16px 16px}
.hero__cardBody b{display:block; margin-bottom:6px}
@media (max-width: 900px){
  .hero__grid{grid-template-columns:1fr; padding:34px 0 26px}
}

/* Sections */
.section{padding:54px 0}
.section--soft{background:var(--soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  margin-bottom:18px;
}
.section__head h2{margin:0; font-size:22px}
.section__head p{margin:0; color:var(--muted); font-size:14px; max-width:720px}

/* Tiles (Home navigation) */
.tiles{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.tile{
  grid-column: span 3;
  border-radius: var(--radius);
  background:#fff;
  border:1px solid rgba(229,231,235,.95);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.tile__img{aspect-ratio: 16/10; object-fit:cover}
.tile__body{padding:14px 16px 16px}
.tile__body h3{margin:0 0 6px; font-size:16px}
.tile__body p{margin:0; color:var(--muted); font-size:13.5px}
.tile__body .btn--link{margin-top:10px}
@media (max-width: 980px){
  .tile{grid-column: span 6}
}
@media (max-width: 640px){
  .tile{grid-column: span 12}
}

/* Business cards */
.cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.card{
  grid-column: span 4;
  border-radius: var(--radius);
  background:#fff;
  border:1px solid rgba(229,231,235,.95);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card__img{aspect-ratio: 16/10; object-fit:cover}
.card__body{padding:14px 16px 16px; display:flex; flex-direction:column; gap:10px; flex:1}
.card__meta{display:flex; gap:8px; flex-wrap:wrap}
.card__title{margin:0; font-size:16px; line-height:1.35}
.card__text{margin:0; color:var(--muted); font-size:13.5px}
.card__foot{margin-top:auto}
@media (max-width: 980px){ .card{grid-column: span 6} }
@media (max-width: 640px){ .card{grid-column: span 12} }

/* Page head */
.pageHead{
  padding:30px 0 16px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(31,74,168,.10), transparent 55%),
    #fff;
}
.pageHead h1{margin:0 0 6px; font-size:28px}
.breadcrumb{color:var(--muted); font-size:13px}
.pageBody{padding:34px 0 56px}

/* Tables / blocks */
.block{
  border-radius: var(--radius);
  background:#fff;
  border:1px solid rgba(229,231,235,.95);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  padding:18px;
  margin:14px 0;
}
.block h2{margin:0 0 10px; font-size:18px}
.block p{margin:0 0 10px; color:var(--muted)}
.kv{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:10px 14px;
  margin-top:10px;
}
.kv div{padding:10px 0; border-bottom:1px solid rgba(229,231,235,.75)}
.kv .k{color:rgba(17,24,39,.86); font-weight:900}
.kv .v{color:rgba(17,24,39,.86)}
@media (max-width: 640px){
  .kv{grid-template-columns: 1fr}
  .kv div{border-bottom:0; padding:6px 0}
  .kv .k{color:var(--muted); font-size:12px}
}

/* Contact form */
.form{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px 16px;
}
.field{grid-column: span 6}
.field--full{grid-column: span 12}
label{
  display:block;
  font-weight:900;
  font-size:13px;
  margin-bottom:6px;
}
.req{
  display:inline-flex;
  margin-left:8px;
  font-size:11px;
  font-weight:900;
  color:#fff;
  background:#ef4444;
  padding:2px 8px;
  border-radius:999px;
}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  font-size:14px;
  outline:none;
}
textarea{min-height: 180px; resize: vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(31,74,168,.45);
  box-shadow: 0 0 0 3px rgba(31,74,168,.12);
}
.help{margin-top:6px; color:var(--muted); font-size:12px}
.actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:12px}
.note{color:var(--muted); font-size:13px}
@media (max-width: 900px){
  .field{grid-column: span 12}
}

/* Footer */
.footer{
  background:#0b1220;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer__inner{
  padding:28px 0;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:20px;
}
.footer a{color:rgba(255,255,255,.88)}
.footer small{color:rgba(255,255,255,.65)}
.footlinks{display:grid; gap:10px; justify-items:start}
@media (max-width: 900px){
  .footer__inner{grid-template-columns: 1fr}
}

/* ===== v5 additions (corporate only) ===== */
.hero__grid--stack{
  grid-template-columns:1fr;
  align-items:stretch;
  padding:26px 0 44px;
}
.hero__grid--stack .hero__card{margin-top:0}
.hero__copy{padding-top:0}

.news{display:grid;gap:12px}
.newsItem{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:14px 16px;
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
}
.newsDate{min-width:110px;color:rgba(11,47,115,.95);font-weight:900;font-size:13px}
.newsTitle{font-weight:900}
.newsText{margin-top:4px;color:var(--muted);font-size:13.5px}
@media (max-width:640px){
  .newsItem{flex-direction:column}
  .newsDate{min-width:auto}
}

.mapWrap{
  border:1px solid rgba(229,231,235,.95);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(17,24,39,.06);
}
.mapWrap iframe{width:100%;height:360px;border:0}
@media (max-width:640px){.mapWrap iframe{height:320px}}

/* --- corporate patch: hero image banner --- */
.hero__media{
  height: 320px;
  aspect-ratio: auto;
  object-fit: cover;
}
@media (max-width: 900px){
  .hero__media{ height: 240px; }
}
@media (min-width: 1200px){
  .hero__media{ height: 360px; }
}
/* --- end patch --- */

/* --- corporate patch: hero card banner --- */
.hero__card .card__img{
  height: 320px;
  aspect-ratio: auto;
  object-fit: cover;
}
@media (max-width: 900px){
  .hero__card .card__img{ height: 240px; }
}
@media (min-width: 1200px){
  .hero__card .card__img{ height: 360px; }
}
/* --- end patch --- */

/* ===== v8 overrides: logo + hero sizing + no-crop ===== */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand__mark,
.brand__name{display:none !important;}
.brand__logo{
  height:36px;
  width:auto;
  display:block;
}
@media (max-width: 900px){
  .brand__logo{height:32px;}
}
@media (max-width: 520px){
  .brand__logo{height:28px;}
}

/* HERO image: make it clearly visible (no cropping) */
.hero__card .card__img{
  width:100%;
  height:420px;
  object-fit:contain;
  background:linear-gradient(180deg, rgba(2,6,23,.04), rgba(2,6,23,.02));
}
@media (max-width: 900px){
  .hero__card .card__img{height:340px;}
}
@media (max-width: 520px){
  .hero__card .card__img{height:260px;}
}

/* Cards that must not crop people */
.tile__img{
  object-fit:cover;
}

/* ===== v9 overrides: bigger logo ===== */
.brand__logo{
  height:52px;
}
@media (max-width: 900px){
  .brand__logo{height:46px;}
}
@media (max-width: 520px){
  .brand__logo{height:40px;}
}

/* ===== v9: HERO (background + overlay text/buttons; clickable) ===== */
.heroCover{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.heroCover__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}
/* Soft white veil to suppress any baked-in text in the image and keep readability */
.heroCover::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%,
                         rgba(255,255,255,.78) 42%,
                         rgba(255,255,255,.22) 72%,
                         rgba(255,255,255,.10) 100%);
}
.heroCover__inner{
  position:relative;
  padding:64px 0;
}
.heroCover__panel{
  max-width:640px;
}
.heroCover__kicker{
  margin:0 0 10px;
  font-weight:800;
  letter-spacing:.12em;
  color:#0B7A3B;
}
.heroCover__title{
  margin:0 0 14px;
  font-size:clamp(30px, 4vw, 46px);
  line-height:1.25;
  letter-spacing:-.02em;
  color:#0f172a;
}
.heroCover__lead{
  margin:0 0 22px;
  color:rgba(15,23,42,.78);
  font-size:16px;
  line-height:1.85;
}
.heroCover__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 520px){
  .heroCover__inner{padding:44px 0;}
  .heroCover__panel{max-width:100%;}
}

/* ===== v10: logo sizing (use provided PNG) ===== */
.brand__logo{
  height: 68px;
  width: auto;
  display: block;
}
@media (max-width: 900px){
  .brand__logo{height: 56px;}
}
@media (max-width: 520px){
  .brand__logo{height: 46px;}
}

/* ===== v10: HERO cover uses photo-only background (no baked text) ===== */
.heroCover{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.heroCover__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.heroCover::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.84) 0%,
    rgba(255,255,255,.64) 42%,
    rgba(255,255,255,.18) 72%,
    rgba(255,255,255,.06) 100%
  );
}
.heroCover__inner{ position:relative; padding:72px 0; }
.heroCover__panel{ max-width:680px; }
.heroCover__kicker{
  margin:0 0 10px;
  font-weight:800;
  letter-spacing:.12em;
  color:#0B7A3B;
}
.heroCover__title{
  margin:0 0 14px;
  font-size:clamp(30px, 4vw, 48px);
  line-height:1.25;
  letter-spacing:-.02em;
  color:#0f172a;
}
.heroCover__lead{
  margin:0 0 22px;
  color:rgba(15,23,42,.78);
  font-size:16px;
  line-height:1.85;
}
.heroCover__actions{ display:flex; gap:12px; flex-wrap:wrap; }
@media (max-width: 520px){
  .heroCover__inner{ padding:52px 0; }
  .heroCover__panel{ max-width:100%; }
}

/* ===== v11: logo sizing (best logo) ===== */
.brand__logo{
  height: 72px;
  width: auto;
  display: block;
}
@media (max-width: 900px){
  .brand__logo{height: 60px;}
}
@media (max-width: 520px){
  .brand__logo{height: 48px;}
}

/* ===== v11: hero background uses photo-only asset (no readable baked text) ===== */
