*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --sky:      #5BB8F5;
  --sky-lt:   #D6EEFF;
  --sky-dk:   #2E87C8;
  --sun:      #FFD260;
  --sun-lt:   #FFF3C4;
  --sun-dk:   #C98B00;
  --mint:     #4ECBA5;
  --mint-lt:  #C8F5E8;
  --mint-dk:  #2A9A7A;
  --coral:    #FF7B6B;
  --coral-lt: #FFE0DC;
  --lav:      #A78BFA;
  --lav-lt:   #EDE9FE;
  --lav-dk:   #7C5CCC;
  --bg:       #F0F9FF;
  --bg2:      #E6F4FC;
  --white:    #FFFFFF;
  --ink:      #1A2B3C;
  --ink-m:    #4A6278;
  --ink-f:    #90A8BA;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 40px;
  --sh-sm: 0 2px 10px rgba(91,184,245,.12);
  --sh-md: 0 6px 24px rgba(91,184,245,.18);
  --sh-lg: 0 12px 48px rgba(91,184,245,.22);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
  padding-bottom: 80px;
  overflow-x: hidden;
}

.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--sky-dk); color: #fff;
  padding: 10px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 13px; font-weight: 500; text-decoration: none;
  z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.vis { opacity: 1; transform: none; }
.d1{transition-delay:.1s} .d2{transition-delay:.2s}
.d3{transition-delay:.3s} .d4{transition-delay:.4s}
.d5{transition-delay:.5s}

/* PAGE HERO */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1a5ea0 0%, var(--sky-dk) 50%, #1e7a68 100%);
  padding: 80px 28px 60px;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(91,184,245,.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(78,203,165,.15) 0%, transparent 50%);
}
.ph-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: phf 10s ease-in-out infinite;
}
.ph-blob1 { width:280px;height:280px;top:-60px;right:-40px;background:radial-gradient(circle,rgba(255,210,96,.12) 0%,transparent 70%); }
.ph-blob2 { width:200px;height:200px;bottom:-40px;left:-30px;background:radial-gradient(circle,rgba(167,139,250,.12) 0%,transparent 70%);animation-delay:3s; }
@keyframes phf { 0%,100%{transform:scale(1) translate(0,0)} 50%{transform:scale(1.06) translate(12px,-12px)} }

.page-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.ph-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.7); font-size: 12px; text-decoration: none;
  margin-bottom: 20px; transition: color .15s;
}
.ph-back:hover { color: #fff; }
.ph-back svg { width: 14px; height: 14px; }
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: #fff; background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 20px;
}
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.55} }
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 5vw, 44px); font-weight: 300;
  color: #fff; line-height: 1.4; margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.page-hero p { font-size: 15px; color: rgba(255,255,255,.8); font-weight: 300; }

.ph-cards {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 32px;
}
.ph-info-card {
  background: rgba(255,255,255,.15); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-align: left;
  transition: background .2s;
}
.ph-info-card:hover { background: rgba(255,255,255,.22); }
.ph-ic-icon { font-size: 22px; flex-shrink: 0; }
.ph-ic-label { font-size: 10px; opacity: .65; letter-spacing: .06em; }
.ph-ic-value { font-size: 14px; font-weight: 500; }

/* SECTION */
.sec { max-width: 800px; margin: 0 auto; padding: 72px 28px; }
.sec + .sec { border-top: 1.5px dashed rgba(91,184,245,.22); }
.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-lt); color: var(--sky-dk);
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 32px); font-weight: 300;
  color: var(--ink); margin-bottom: 12px; line-height: 1.45;
}
.sec-lead { font-size: 15px; color: var(--ink-m); line-height: 1.85; margin-bottom: 40px; }

/* ========================
   CONTACT TYPE CHIPS
   ======================== */
.contact-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 100px;
  background: var(--white); border: 1.5px solid var(--sky-lt);
  font-size: 13px; font-weight: 500; color: var(--ink-m);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
  user-select: none;
}
.chip:hover { background: var(--sky-lt); border-color: var(--sky); color: var(--sky-dk); transform: translateY(-1px); }
.chip.selected {
  background: linear-gradient(135deg, var(--sky), var(--sky-dk));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 12px rgba(46,135,200,.35);
  transform: translateY(-2px);
}
.chip .chip-emoji { font-size: 16px; }

/* ========================
   FORM
   ======================== */
.form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--sh-md);
  border: 1.5px solid var(--sky-lt);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 13px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.req {
  display: inline-block; font-size: 10px; font-weight: 500;
  background: var(--coral-lt); color: #c0392b;
  padding: 1px 7px; border-radius: 100px;
}
.opt {
  display: inline-block; font-size: 10px; font-weight: 500;
  background: var(--sky-lt); color: var(--sky-dk);
  padding: 1px 7px; border-radius: 100px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--sky-lt);
  border-radius: var(--r-md);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(91,184,245,.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-f); }

/* Select wrapper */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--sky-dk); font-size: 14px; pointer-events: none;
}

.form-textarea {
  resize: vertical; min-height: 140px; line-height: 1.75;
}

/* Privacy checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.form-cb {
  width: 18px; height: 18px; border: 1.5px solid var(--sky-lt);
  border-radius: 4px; appearance: none; background: var(--bg);
  cursor: pointer; flex-shrink: 0; margin-top: 2px;
  transition: background .15s, border-color .15s;
  position: relative;
}
.form-cb:checked { background: var(--sky-dk); border-color: var(--sky-dk); }
.form-cb:checked::after {
  content: '✓'; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 11px; font-weight: 700;
}
.form-cb:focus { box-shadow: 0 0 0 3px rgba(91,184,245,.2); outline: none; }
.cb-label { font-size: 13px; color: var(--ink-m); line-height: 1.65; }
.cb-label a { color: var(--sky-dk); text-decoration: underline; }

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dk) 100%);
  color: #fff; border: none; border-radius: 100px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(46,135,200,.4);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(46,135,200,.5); }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.submit-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.submit-btn:hover svg { transform: translateX(4px); }

/* Form note */
.form-note {
  font-size: 12px; color: var(--ink-f); line-height: 1.75;
  margin-top: 16px; text-align: center;
}

/* ========================
   SUCCESS / ERROR STATE
   ======================== */
.form-message {
  display: none;
  border-radius: var(--r-xl); padding: 36px 32px; text-align: center;
}
.form-message.success {
  background: linear-gradient(135deg, var(--mint-lt), var(--sky-lt));
  border: 1.5px solid rgba(78,203,165,.3);
}
.form-message.error {
  background: var(--coral-lt);
  border: 1.5px solid rgba(255,123,107,.3);
}
.fm-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.fm-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 300; color: var(--ink);
  margin-bottom: 10px;
}
.fm-body { font-size: 14px; color: var(--ink-m); line-height: 1.8; }
.fm-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  background: var(--sky-dk); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 10px 22px; border-radius: 100px;
  transition: transform .2s; cursor: pointer; border: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.fm-back:hover { transform: translateY(-2px); }

/* ========================
   INFO CARDS
   ======================== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--white); border-radius: var(--r-lg); padding: 24px 20px;
  box-shadow: var(--sh-sm); border: 1.5px solid var(--sky-lt);
  text-align: center;
  transition: transform .25s, box-shadow .25s; cursor: default;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ic-emoji { font-size: 32px; display: block; margin-bottom: 10px; transition: transform .25s; }
.info-card:hover .ic-emoji { transform: scale(1.18) rotate(6deg); }
.ic-title { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.ic-body { font-size: 12px; color: var(--ink-m); line-height: 1.75; }
.ic-val { font-size: 15px; font-weight: 500; color: var(--sky-dk); margin-top: 6px; }
.ic-val a { color: var(--sky-dk); text-decoration: none; }
.ic-val a:hover { text-decoration: underline; }

/* Highlight box */
.hl-box {
  background: linear-gradient(135deg, var(--sky-lt), var(--mint-lt));
  border-radius: var(--r-lg); padding: 20px 24px;
  border-left: 4px solid var(--sky);
  font-size: 14px; color: var(--ink-m); line-height: 1.8;
  margin-top: 24px;
}
.hl-box strong { color: var(--sky-dk); font-weight: 500; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: var(--r-lg);
  border: 1.5px solid var(--sky-lt); overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--sky); }
.faq-q {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer;
  font-weight: 500; font-size: 14px; color: var(--ink);
  user-select: none;
  transition: background .15s;
}
.faq-q:hover { background: var(--bg2); }
.faq-q-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky-lt); color: var(--sky-dk);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.faq-q-text { flex: 1; }
.faq-toggle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--sky-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .3s, background .2s;
  font-size: 12px; color: var(--sky-dk);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--sky-lt); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  font-size: 13px; color: var(--ink-m); line-height: 1.8;
  padding: 0 20px 0 60px;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 16px; }

/* BOTTOM NAV */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(240,249,255,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(91,184,245,.2);
  display: flex; z-index: 100; height: 64px;
}
.ni {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--ink-f); font-size: 10px; letter-spacing: .04em;
  transition: color .15s; cursor: pointer; border: none; background: none; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.ni.active, .ni:hover { color: var(--sky-dk); }
.ni svg { width: 22px; height: 22px; transition: transform .2s; }
.ni:hover svg { transform: translateY(-2px) scale(1.1); }
.ni.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
  border-radius: 0 0 4px 4px;
}
.sub {
  position: absolute; bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  width: 200px; max-width: calc(100vw - 24px);
  background: var(--white); border-radius: 14px;
  box-shadow: 0 4px 28px rgba(91,184,245,.22);
  overflow: hidden; max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.ni.open .sub { max-height: 420px; }
@media(max-width: 360px) { .sub { left: 0; transform: none; } }
.sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; font-size: 14px; color: var(--ink-m); text-decoration: none;
  border-bottom: 1px solid var(--bg2);
  transition: background .12s, color .12s, padding-left .15s;
}
.sub a::before { content: '›'; color: var(--sky); font-size: 18px; line-height: 1; transition: transform .15s; }
.sub a:last-child { border-bottom: none; }
.sub a:hover { background: var(--bg2); color: var(--sky-dk); padding-left: 26px; }
.sub a:hover::before { transform: translateX(3px); }

/* FOOTER */
.site-footer {
  max-width: 800px; margin: 0 auto; padding: 48px 28px 100px;
  text-align: center; border-top: 1.5px dashed rgba(91,184,245,.22);
}
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 300; color: var(--sky-dk); margin-bottom: 16px; }
.footer-logo span { color: var(--mint-dk); }
.footer-address { font-style: normal; font-size: 13px; color: var(--ink-m); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.footer-tel a { font-size: 14px; font-weight: 500; color: var(--sky-dk); text-decoration: none; display: inline-block; margin-bottom: 6px; }
.footer-tel a:hover { text-decoration: underline; }
.footer-hours { font-size: 12px; color: var(--ink-f); margin-bottom: 20px; }
.footer-copy { font-size: 11px; color: var(--ink-f); }

strong { font-weight: 500; color: var(--ink); }

/* VALIDATION */
.form-input.invalid, .form-select.invalid, .form-textarea.invalid {
  border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,123,107,.15);
}
.error-msg {
  font-size: 11px; color: #c0392b; margin-top: 4px; display: none;
}
.error-msg.show { display: block; }

@media (max-width: 560px) {
  .page-hero { padding: 64px 20px 48px; }
  .ph-cards { flex-direction: column; align-items: center; gap: 10px; }
  .ph-info-card { width: 100%; max-width: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .form-card { padding: 24px 20px; }
  .info-grid { grid-template-columns: 1fr; }
  .sec { padding: 52px 20px; }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 16px 0;
}
.footer-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 12px;
}
.footer-nav a:hover { color: #fff; }