/* ============================================================
   ALPHASTYLE – Global Stylesheet
   Breakpoints:
     PC      : 1024px+
     Tablet  : 768px – 1023px
     Mobile  : ~ 767px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&family=DM+Mono:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f2044;
  --navy-mid:    #1a3460;
  --navy-light:  #264a8a;
  --accent:      #00aadd;
  --accent-dark: #0088bb;
  --accent-light:#b3e5f7;
  --white:       #fafafa;
  --off-white:   #f2f4f7;
  --gray-light:  #e2e6eb;
  --gray-mid:    #9aa0a8;
  --gray-dark:   #4a5060;
  --text:        #1a1c22;
  --text-light:  #6a707a;
  --font-display:'Cormorant Garamond','Noto Serif JP',Georgia,serif;
  --font-body:   'Noto Sans JP',sans-serif;
  --font-mono:   'DM Mono',monospace;
  --font-sans:   'Noto Sans JP','Helvetica Neue',Arial,sans-serif;
  --text-main:   #1a1c22;
  --max-width:   1160px;
  --section-pad: 100px;
  --header-h:    68px;
  --pad-x:       40px;
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior:smooth; font-size:16px; -webkit-text-size-adjust:100%; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

img { max-width:100%; display:block; height:auto; }
a   { color:inherit; text-decoration:none; }
ul  { list-style:none; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem,3.5vw,2.8rem);
  color: var(--navy);
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(0.875rem,1.5vw,1rem);
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.9;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section       { padding: var(--section-pad) 0; }
.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section-header{ margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary { background:var(--accent); color:var(--navy); font-weight:700; }
.btn--primary:hover { background:#00c4ff; transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,170,221,.35); }
.btn--outline { background:transparent; color:var(--navy); border:1px solid var(--navy); }
.btn--outline:hover { background:var(--navy); color:var(--white); transform:translateY(-2px); }
.btn--ghost-white { background:transparent; color:var(--white); border:1px solid rgba(255,255,255,.4); }
.btn--ghost-white:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.7); }

/* Header */
.header {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250,250,250,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow:0 2px 20px rgba(15,32,68,.08); }

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo { display:flex; align-items:center; flex-shrink:0; }
.header__logo-img {
  height: 32px;
  width: auto;
  display: block;

}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.header__nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--gray-dark);
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.header__nav a::after {
  content:'';
  position:absolute;
  bottom:-3px; left:0; right:0;
  height:1px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.3s var(--ease-out);
}
.header__nav a:hover { color:var(--navy); }
.header__nav a:hover::after { transform:scaleX(1); }
.header__contact { font-size:0.78rem; padding:9px 20px; }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s;
  transform-origin: center;
}

.header__sp-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left:0; right:0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 var(--pad-x) 16px;
  flex-direction: column;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(15,32,68,.08);
}
.header__sp-nav.open { display:flex; }
.header__sp-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-dark);
  letter-spacing: 0.04em;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-light);
  display: block;
}
.header__sp-nav a:last-child { border-bottom:none; }

/* Page Hero */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 64px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:'';
  position:absolute;
  top:-100px; right:-100px;
  width:500px; height:500px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(0,170,221,.06) 0%,transparent 70%);
  pointer-events:none;
}
.page-hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem,5vw,3.6rem);
  color: var(--white);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 18px;
  word-break: keep-all;
}
.page-hero__desc {
  font-size: clamp(0.875rem,1.5vw,1rem);
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.9;
}

.divider { width:40px; height:1px; background:var(--accent); margin:20px 0; }

/* Reveal */
.reveal { opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease-out),transform .7s var(--ease-out); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.2s; }
.reveal-delay-3 { transition-delay:.3s; }
.reveal-delay-4 { transition-delay:.4s; }

/* Footer */
.footer { background:var(--navy); color:rgba(255,255,255,.7); padding:60px 0 28px; }
.footer__inner { max-width:var(--max-width); margin:0 auto; padding:0 var(--pad-x); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer__logo-img {
  height:38px; width:auto; display:block; margin-bottom:14px;

}
.footer__tagline { font-size:.78rem; line-height:1.9; color:rgba(255,255,255,.45); }
.footer__nav h4 {
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:14px;
}
.footer__nav ul { display:flex; flex-direction:column; gap:9px; }
.footer__nav a { font-size:.8rem; color:rgba(255,255,255,.55); transition:color .2s; }
.footer__nav a:hover { color:var(--white); }
.footer__bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.72rem;
  color:rgba(255,255,255,.3);
  flex-wrap:wrap;
  gap:8px;
}

/* ============================================================
   TABLET  768px – 1023px
   ============================================================ */
@media (max-width:1023px) {
  :root { --section-pad:80px; --pad-x:32px; }

  .header__nav   { display:none; }
  .header__hamburger { display:flex; }

  .footer__top { grid-template-columns:1fr 1fr; gap:32px; }
}

/* ============================================================
   MOBILE  ~ 767px
   ============================================================ */
@media (max-width:767px) {
  :root { --section-pad:56px; --header-h:60px; --pad-x:20px; }

  html { font-size:15px; }

  .header__logo-img { height:26px; }

  .section-header { margin-bottom:36px; }

  .page-hero { padding:calc(var(--header-h) + 40px) 0 44px; }
  .page-hero__desc br { display:none; }

  .footer { padding:44px 0 24px; }
  .footer__top { grid-template-columns:1fr; gap:28px; }
  .footer__bottom { flex-direction:column; text-align:center; }

  .btn { padding:13px 24px; font-size:.84rem; }
}

/* PC only line break */
@media (max-width:767px) {
  br.pc-br { display:none; }
  .page-hero__desc br { display:none; }
  .hero__desc br { display:none; }
  .cta-block__desc br { display:none; }
}

/* SVG Logo sizing */
.header__logo-svg {
  height: 44px;
  width: auto;
  display: block;
}
.footer__logo-svg {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

@media (max-width: 767px) {
  .header__logo-svg { height: 34px; }
  .footer__logo-svg { height: 42px; }
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  background: transparent;
  border: 0.5px solid var(--gray-light);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang-btn--active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.lang-flag { font-size: 13px; line-height: 1; }
.lang-label { font-size: 0.65rem; }

@media (max-width: 1023px) {
  .lang-switcher { margin-right: 4px; }
  .lang-label { display: none; }
  .lang-btn { padding: 5px 7px; }
}

@media (max-width: 767px) {
  .lang-switcher { gap: 3px; }
  .lang-btn { padding: 4px 6px; }
  .lang-flag { font-size: 14px; }
}

/* ── お問い合わせフォーム 完了・エラーバナー ── */
.form-banner {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.form-banner--success {
  background: rgba(0, 170, 221, 0.08);
  border: 1px solid rgba(0, 170, 221, 0.3);
  border-left: 4px solid var(--accent);
  color: var(--navy);
}
.form-banner--error {
  background: rgba(220, 80, 80, 0.07);
  border: 1px solid rgba(220, 80, 80, 0.3);
  border-left: 4px solid #dc5050;
  color: #a32d2d;
}
