/* ============================================================
   ALLECARICO - Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333355;
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --navy: #0d1427;
  --navy-mid: #1a2240;
  --blue: #6495ED;
  --blue-dark: #4a7dd4;
  --text: #333355;
  --text-light: #666680;
  --bg-light: #f5f6fa;
  --border: #e0e2f0;
  --white: #fff;
  --container: 1100px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(13,20,39,.10);
  --shadow-lg: 0 8px 40px rgba(13,20,39,.16);
}

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.bg-dark { background: var(--navy); }
.section.bg-light { background: var(--bg-light); }
.sp-only { display: none; }

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label.center { text-align: center; }
.section-label.light { color: #7a9ef0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--navy);
}
.section-title.center { text-align: center; }
.section-title.light { color: var(--white); }

.section-desc {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 56px;
  line-height: 1.9;
}
.section-desc.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(100,149,237,.35); }
.btn-primary.large { padding: 16px 40px; font-size: 1rem; }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.1); opacity: 1; border-color: var(--white); }

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--blue); color: var(--white); opacity: 1; }

.btn-header {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.btn-header:hover { background: var(--blue-dark); opacity: 1; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  height: 70px;
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}
.logo-sub {
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em;
}

.nav-pc { flex: 1; }
.nav-pc ul { display: flex; gap: 28px; justify-content: center; }
.nav-pc a {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.nav-pc a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s;
}
.nav-pc a:hover { color: var(--white); opacity: 1; }
.nav-pc a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ---------- DRAWER ---------- */
.drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--navy);
  z-index: 2000;
  padding: 80px 32px 40px;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--white);
  font-size: 1.4rem; cursor: pointer; padding: 8px;
}
.drawer ul { display: flex; flex-direction: column; gap: 4px; }
.drawer a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 14px 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer-cta {
  margin-top: 20px;
  background: var(--blue);
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius);
  border: none !important;
  padding: 14px 0 !important;
}
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Dark overlay */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,20,39,.80) 0%,
    rgba(13,20,39,.55) 50%,
    rgba(13,20,39,.70) 100%
  );
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(13,20,39,.7), transparent);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
  padding: 80px 24px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s ease .2s forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .8s ease .4s forwards;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 2;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .8s ease .6s forwards;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s ease .8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  letter-spacing: .15em;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollDown 2s ease infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.9;
}
.about-lead strong { color: var(--navy); font-weight: 700; }

.about-body {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 36px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  transition: box-shadow .2s, transform .2s;
}
.about-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }

.about-card-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  opacity: .3;
  line-height: 1;
  flex-shrink: 0;
}

.about-card-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.about-card-body p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.service-icon {
  width: 48px; height: 48px;
  color: var(--blue);
  margin-bottom: 16px;
}

.service-en {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--blue);
  margin-bottom: 8px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-body {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 24px;
}

.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.service-link:hover { gap: 8px; opacity: 1; }

/* ============================================================
   FLOW
   ============================================================ */
.flow-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 56px 0 40px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 220px;
}

.flow-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  transition: border-color .2s, background .2s;
}
.flow-circle.accent {
  background: var(--blue);
  border-color: var(--blue);
}
.flow-circle:hover { border-color: var(--blue); background: rgba(100,149,237,.15); }

.flow-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.flow-content { text-align: center; }
.flow-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.flow-content p { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.7; }

.flow-arrow {
  font-size: 1.8rem;
  color: rgba(255,255,255,.3);
  margin: 0 8px;
  flex-shrink: 0;
}

.flow-note {
  text-align: center;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--blue);
  padding: 56px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-band-text p { color: rgba(255,255,255,.85); font-size: .9rem; }

.cta-band-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.cta-tel-label { font-size: .75rem; color: rgba(255,255,255,.75); }
.cta-tel-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.cta-tel-time { font-size: .75rem; color: rgba(255,255,255,.65); }

.cta-band .btn-primary {
  background: var(--white);
  color: var(--blue);
}
.cta-band .btn-primary:hover { background: var(--bg-light); opacity: 1; }

/* ============================================================
   WORKS
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.work-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.work-thumb-link { display: block; }

.work-thumb {
  height: 200px;
  background: linear-gradient(135deg, #1a2240 0%, #2a3a6e 100%);
  background-size: cover;
  background-position: center top;
  position: relative;
  transition: opacity .2s;
}
.work-thumb-link:hover .work-thumb { opacity: .88; }

/* OGP未設定時のプレースホルダー */
.work-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-thumb-placeholder span {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
}

.work-body { padding: 20px 20px 24px; }

.work-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.work-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.5;
}
.work-desc { font-size: .82rem; color: var(--text-light); }

.works-more { text-align: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}

.required {
  background: var(--blue);
  color: var(--white);
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(100,149,237,.15);
}

.form-group textarea { resize: vertical; }

.form-submit { text-align: center; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.7); }

.footer-main { padding: 64px 0 48px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.footer-logo { display: flex; flex-direction: column; line-height: 1.1; margin-bottom: 16px; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }

.footer-address,
.footer-tel,
.footer-hours {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.footer-tel a { color: rgba(255,255,255,.75); }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-nav-col h4 {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-nav-col li { margin-bottom: 10px; }
.footer-nav-col a { font-size: .85rem; color: rgba(255,255,255,.65); }
.footer-nav-col a:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDown {
  0%   { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0);   transform-origin: bottom; opacity: 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-pc { display: none; }
  .btn-header { display: none; }
  .hamburger { display: flex; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .sp-only { display: block; }

  .hero-content { padding: 40px 24px; }

  .services-grid,
  .works-grid { grid-template-columns: 1fr; }

  .flow-grid { flex-direction: column; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { width: 100%; flex-direction: column; align-items: flex-start; }
  .cta-band .btn-primary { width: 100%; text-align: center; }

  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
}
