/* ============================================
   株式会社Attract コーポレートサイト
   ============================================ */
:root {
  --navy: #0b2239;
  --navy-light: #16344f;
  --ocean: #0e7490;
  --ocean-bright: #06b6d4;
  --ocean-pale: #ecfeff;
  --sand: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(11, 34, 57, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 34, 57, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo svg { flex-shrink: 0; }

.logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover { background: var(--ocean-pale); color: var(--ocean); }
.nav a.active { color: var(--ocean); font-weight: 700; }

.nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  margin-left: 8px;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav a.nav-cta:hover { background: var(--ocean); color: var(--white); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: 0.3s; border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-cta { margin-left: 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 45%, var(--ocean) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 110%, rgba(6, 182, 212, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 15% -10%, rgba(6, 182, 212, 0.18), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 0 130px;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ocean-bright);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--ocean-bright);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--ocean); transform: translateY(-2px); }

/* Wave divider */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--sand); }

.section-head { text-align: center; margin-bottom: 56px; }

.section-head .en {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ocean);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.section-head .lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card .card-en {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ocean);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }

.card .card-link {
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ocean);
}
.card .card-link:hover { text-decoration: underline; }

/* ---------- Feature rows (services page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }

.feature-row .visual {
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--ocean) 100%);
  box-shadow: var(--shadow-lg);
}
.feature-row .visual svg { width: 96px; height: 96px; }

.feature-row .num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ocean);
  margin-bottom: 12px;
  display: block;
}

.feature-row h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.5;
}

.feature-row p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 14px; }

.feature-row ul {
  list-style: none;
  margin-top: 18px;
}
.feature-row li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.93rem;
}
.feature-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ocean-bright);
  font-weight: 800;
}

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row .visual { min-height: 180px; order: -1; }
}

/* ---------- Stats / strengths ---------- */
.strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.strength {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.strength .s-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ocean-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength .s-icon svg { width: 30px; height: 30px; }

.strength h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.strength p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
}

.cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; font-size: 0.96rem; }

/* ---------- Company table ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-table th,
.company-table td {
  padding: 22px 28px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  width: 200px;
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  vertical-align: top;
}

@media (max-width: 600px) {
  .company-table th, .company-table td { display: block; width: 100%; padding: 14px 20px; }
  .company-table th { border-bottom: none; padding-bottom: 4px; }
}

/* ---------- Mission ---------- */
.mission {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.mission blockquote {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 28px;
}
.mission p { color: var(--text-muted); font-size: 0.96rem; text-align: left; }
.mission p + p { margin-top: 1em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 24px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.contact-method .m-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ocean-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method .m-icon svg { width: 22px; height: 22px; }
.contact-method .m-label { font-size: 0.78rem; color: var(--text-muted); }
.contact-method .m-value { font-weight: 700; color: var(--navy); font-size: 0.98rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group label .req {
  color: #e11d48;
  font-size: 0.75rem;
  margin-left: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--sand);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean-bright);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .f-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand p { font-size: 0.85rem; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }
.site-footer a:hover { color: var(--ocean-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 60%, var(--ocean) 130%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.page-hero .en {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ocean-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
