:root {
  --brand: #74dfe2;
  --ink: #222;
  --bg: #fff;
  --muted: #6b7280;
  --card: #f9fafb;
  --radius: 14px;
  --header-h: 64px; /* JSで実測して上書き */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue","Hiragino Kaku Gothic ProN","Noto Sans JP", Meiryo, sans-serif;
  overflow-x: hidden; /* フルブリード時の横スクロール抑止 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 92%); margin: 0 auto; padding: 0 0 64px; }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px); border-bottom: 1px solid #eee; display: grid; grid-template-columns: 1fr auto; align-items: center;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.site-header .brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { letter-spacing: .35em; font-weight: 600; color: #0b4f52; }
.site-nav { display: flex; gap: 16px; align-items: center; margin-right: 16px; flex-wrap: wrap; }
.site-header nav a { padding: 10px 8px; color: #333; }
.nav-toggle { display: none; margin-right: 12px; background: transparent; border: none; font-size: 22px; }
@media (max-width: 860px) {
  .site-nav { display: none; grid-column: 1 / -1; flex-direction: column; padding: 0 16px 12px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* Buttons */
.btn, .btn-outline, .btn-sm { border-radius: 999px; padding: 12px 20px; display: inline-block; border: 2px solid var(--brand); }
.btn { background: var(--brand); color: #004045; font-weight: 700; }
.btn:hover { filter: brightness(.95); }
.btn-outline { color: var(--brand); }
.btn-outline:hover { background: rgba(116,223,226,.1); }
.btn-sm { padding: 8px 14px; font-size: .9rem; background: var(--brand); color: #004045; border-width: 1px; }
.btn.large { padding: 14px 28px; font-size: 1.1rem; }

/* Cards / grids */
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.card { background: var(--card); border: 1px solid #eee; border-radius: var(--radius); padding: 18px; }
.card h3 { margin-top: 0; color: #0b4f52; }
.grid.four, .grid.three { display: grid; gap: 12px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr; }
}
.pill { border: 1px solid var(--brand); color: #065e63; padding: 10px 14px; border-radius: 999px; text-align: center; background: rgba(116,223,226,.08); }

.cta { text-align: center; background: linear-gradient(180deg, rgba(116,223,226,.08), transparent); padding: 36px 16px; border: 1px dashed var(--brand); border-radius: var(--radius); margin-top: 24px; }

/* Tables / etc. */
.table-like > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eee; }
.table-like > div strong { color: #334155; }

.faq { list-style: none; padding: 0; margin: 0; }
.faq .q { width: 100%; text-align: left; background: #fff; border: 1px solid #e5e7eb; padding: 14px; border-radius: 12px; font-weight: 700; }
.faq li + li { margin-top: 10px; }
.faq .a { display: none; padding: 12px 14px; color: #374151; border-left: 3px solid var(--brand); background: #f7fefe; border-radius: 0 12px 12px 12px; }

.news { list-style: none; padding: 0; }
.news li { padding: 12px 0; border-bottom: 1px solid #eee; display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.news time { color: var(--muted); }

.form { max-width: 720px; }
.form-row { display: grid; gap: 8px; margin: 12px 0; }
.form input, .form textarea { border: 1px solid #d1d5db; border-radius: 10px; padding: 12px; font-size: 1rem; }
.checkbox input { margin-right: 8px; }
.error { font-size: .9rem; color: #b91c1c; min-height: 1.2em; }
.form-result { margin-top: 10px; }

.site-footer { padding: 28px 16px; border-top: 1px solid #eee; text-align: center; color: var(--muted); }
.small { font-size: .9rem; }

/* ====== フルブリード・ヒーロー（1画面） ====== */
.hero-collage{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  min-height: calc(100dvh - var(--header-h));
  background: #f7f9fa;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eef2f4;
  padding: 40px 0 24px;
}
@supports (height: 100svh) {
  .hero-collage { min-height: calc(100svh - var(--header-h)); }
}
.collage-wrap{
  width: min(1600px, 96svw);
  margin: 0 auto;
  min-height: inherit;
  position: relative;
}
.collage-title{
  position: absolute;
  left: 6%;
  top: 24%;
  transform: translateY(-50%);
  font-size: clamp(36px, 7vw, 86px);
  line-height: .95;
  letter-spacing: .02em;
  color: #0f766e;
  z-index: 3;
}
.collage-title span{ display:block; }
.hero-collage .ph{
  position:absolute;
  margin:0; padding:0;
  box-shadow: 0 12px 28px rgba(2,8,23,.10);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
  opacity: 0;
  transition:
    opacity .6s ease,
    left 1s cubic-bezier(.2,.8,.2,1),
    right 1s cubic-bezier(.2,.8,.2,1),
    top 1s cubic-bezier(.2,.8,.2,1),
    width 1s cubic-bezier(.2,.8,.2,1),
    transform 1s cubic-bezier(.2,.8,.2,1);
  transform: translate(-50%,-50%) scale(.85);
  left: 50%; top: 50%; right: auto; width: 20%;
}
.hero-collage.hero-enter .ph{ opacity: 1; transform: translate(0,0) scale(1); }
.hero-collage.hero-enter .ph.delay1{ transition-delay: .05s; }
.hero-collage.hero-enter .ph.delay2{ transition-delay: .15s; }
.hero-collage.hero-enter .ph.delay3{ transition-delay: .25s; }
.hero-collage.hero-enter .ph.delay4{ transition-delay: .35s; }
.hero-collage.hero-enter .ph.delay5{ transition-delay: .45s; }
.hero-collage.hero-enter .ph.delay6{ transition-delay: .55s; }
.hero-collage.hero-enter .ph.delay7{ transition-delay: .65s; }
.hero-collage.hero-enter .ph.delay8{ transition-delay: .75s; }

.badge-vertical{
  position:absolute; writing-mode: vertical-rl; text-orientation: mixed;
  background:#fff; border: 1px solid var(--brand); color:#065e63;
  padding: 12px 10px; border-radius: 12px; font-weight: 600; z-index:4;
}
.badge-vertical.left{ left: 0; top: 10%; }
.badge-vertical.right{ right: 0; bottom: 8%; }

.hero-actions{ margin: 16px auto 0; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

@media (max-width: 1024px){
  .collage-wrap{ min-height: 70vh; }
  .collage-title{ top: 18%; }
}
@media (max-width: 820px){
  .badge-vertical{ display:none; }
  .collage-title{ position: relative; left: 0; top: 0; transform:none; margin: 0 0 10px; }
  .hero-collage { padding-top: 20px; }
  .hero-collage .ph{ position:relative; width:100%; margin: 10px 0; left:auto; top:auto; transform:none; opacity:1; }
}

/* ---- About & Company Info ---- */
.about, .company-info { max-width: 900px; margin: 60px auto; padding: 0 16px; line-height: 1.85; }
.company-info .info-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: #f9fafb; border: 1px solid #eee; border-radius: 14px; padding: 20px;
}
.company-info .info-grid strong { color: #065e63; }

/* ---- Splash Screen ---- */
#splash{
  position: fixed; inset: 0; z-index: 1000;
  background: #ffffff;
  display: grid; place-items: center;
  opacity: 1; pointer-events: auto;
  transition: opacity .6s ease, visibility .6s ease;
}
#splash.hide{ opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner{ text-align: center; }
.splash-logo{ width: 84px; height: 84px; border-radius: 50%; display:block; margin: 0 auto 10px; object-fit: cover; }
.splash-brand{ letter-spacing: .35em; color: #0f766e; font-weight: 700; }
@media (prefers-reduced-motion: reduce){
  #splash{ transition: none; }
}


/* ==== Page Transitions & Active Nav (added) ==== */
:root{
  --brand-ink: #004045;
  --brand-hover: #4ccbd0;
  --brand-hover-bg: rgba(116,223,226,0.15);
  --page-enter-duration: .35s;
  --page-exit-duration: .25s;
}

/* Active/hover styles for header nav */
.site-nav a{
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, filter .2s ease;
}
.site-nav a:hover{
  background: var(--brand-hover-bg);
  color: var(--brand-ink);
}
.site-nav a.active{
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}

/* Page transition (subtle fade & slide) */
body.page-enter{ opacity: 0; transform: translateY(8px); }
body.page-enter.page-enter-active{ opacity: 1; transform: translateY(0);
  transition: opacity var(--page-enter-duration) ease, transform var(--page-enter-duration) ease;
}
body.page-exit{ opacity: 1; transform: translateY(0); }
body.page-exit.page-exit-active{ opacity: 0; transform: translateY(-8px);
  transition: opacity var(--page-exit-duration) ease, transform var(--page-exit-duration) ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-nav a{ transition: none; }
  body.page-enter.page-enter-active,
  body.page-exit.page-exit-active{ transition: none; }
}
