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

/* ── HTMLテキストロゴ ── */
.logo-text-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-3s {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
  text-shadow:
    -0.5px -0.5px 0 #000,
     0.5px -0.5px 0 #000,
    -0.5px  0.5px 0 #000,
     0.5px  0.5px 0 #000,
    1px 1px 0px rgba(0, 0, 0, 0.35),
    2px 2px 3px rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.section-label::after { display: none !important; }


.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 80px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(26,108,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,169,110,0.1) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-pillars { display: flex; gap: 12px; margin-bottom: 24px; }
.hero-pillars span {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}
.hero-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 42px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  white-space: nowrap;
}
.hero h1 em { font-style: italic; color: var(--accent-light); }
.hero-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 2;
  margin-bottom: 48px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-visual {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(26,108,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '3S';
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
}
.hero-visual-inner {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(26,108,255,0.2);
  animation: rotate 20s linear infinite;
}
.hero-visual-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent);
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ======= STATS STRIP ======= */
.stats-strip { background: var(--accent); padding: 0 80px; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item { padding: 40px 0 40px 32px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-num {
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { font-size: 22px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; }

/* ======= PROBLEMS ======= */
.problems { background: var(--navy); text-align: center; }
.problems .section-label { justify-content: center; color: var(--gold); }
.problems .section-label::after { display: none; }
.problems .section-title { color: white; text-align: center; margin-bottom: 48px; }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 20px;
}
.problem-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.problem-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 2; }
.problems-resolve {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.problems-resolve-arrow { font-size: 28px; color: var(--accent); opacity: 0.7; line-height: 1; }
.problems-resolve-text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.problems-resolve-text .resolve-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
}
.problems-resolve-text .resolve-main strong { color: var(--accent-light); font-family: 'Noto Sans JP', sans-serif; font-weight: 700; }
.problems-resolve-text .resolve-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  font-weight: 400;
}
.problems-resolve-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 2px;
}

/* ======= BEFORE AFTER ======= */
.before-after { background: var(--off-white); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-top: 56px;
  align-items: stretch;
}
.ba-col-header { margin-bottom: 24px; }
.ba-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
}
.before-label { background: var(--gray-300); color: var(--text-light); }
.after-label { background: var(--accent); color: white; }
.before-col {
  background: white;
  border-radius: 12px 0 0 12px;
  padding: 36px;
  border: 1px solid var(--gray-300);
  border-right: none;
}
.after-col {
  background: white;
  border-radius: 0 12px 12px 0;
  padding: 36px;
  border: 1px solid var(--accent);
  border-left: none;
  box-shadow: 4px 0 24px rgba(26,108,255,0.08);
}
.ba-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-300);
}
.ba-item:last-child { border-bottom: none; }
.ba-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.after-icon { background: rgba(26,108,255,0.1); color: var(--accent); }
.ba-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ba-item p { font-size: 13px; color: var(--text-light); line-height: 1.9; }
.ba-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
  gap: 0;
}
.ba-divider-line { flex: 1; width: 2px; background: var(--gray-300); min-height: 20px; }
.ba-divider-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.ba-divider-logo {
  font-weight: 700;
  color: white;
  background: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,108,255,0.3);
  font-size: 20px;
  line-height: 1;
}
.ba-divider-logo::before { content: '→'; }

/* ======= OWNER MERIT ======= */
.owner-merit { background: white; }
.merit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 56px;
}
.merit-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 32px 24px;
  border-top: 3px solid var(--accent);
  transition: all 0.3s;
}
.merit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,22,40,0.08);
  background: white;
}
.merit-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,108,255,0.08);
  border: 1px solid rgba(26,108,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.merit-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.merit-card p { font-size: 13px; color: var(--text-light); line-height: 1.9; }
.property-types { background: var(--navy); border-radius: 12px; padding: 36px 40px; }
.property-types .section-label { color: var(--gold); }
.property-types .section-label::after { display: none; }
.property-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.property-tags span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 24px;
  letter-spacing: 0.05em;
}

/* ======= FLOW ======= */
.flow { background: var(--off-white); }
.flow-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 56px; }
.flow-step {
  flex: 1;
  min-width: 0;
  background: white;
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 4px 20px rgba(10,22,40,0.05);
  align-self: stretch;
}
.flow-num {
  font-family: 'Barlow', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.3;
}
.flow-body h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.flow-body p { font-size: 12px; color: var(--text-light); line-height: 1.9; }
.flow-arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--accent);
  padding: 0 12px;
  margin-top: 60px;
  font-weight: 300;
}

/* ======= SERVICES ======= */
.service-img img{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.services { background: var(--off-white); }
.services-header {justify-content: space-between; align-items: flex-end;}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: default;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(10,22,40,0.12); }
.service-card:hover .service-img { transform: scale(1.05); }

/* カードボディ（画像の下のテキスト部分） */
.service-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}
.service-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 18px;
  flex: 1;
}
.service-card-link {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, opacity 0.2s;
  margin-top: auto;
}
.service-card-link:hover { gap: 10px; opacity: 0.75; }
.service-img-wrap { height: 300px; overflow: hidden; position: relative; background: #dce8ed; }
.service-img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-img img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.service-icon { font-size: 48px; color: rgba(255,255,255,0.9); }
.service-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.service-body { padding: 28px; }
.service-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-body p { font-size: 13px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.service-link {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.service-link:hover { gap: 14px; }
.service-link::after { content: '→'; }




/* ======= ACHIEVEMENTS ======= */
.achievements { background: var(--navy); }
.achievements .section-label { color: rgba(255,255,255,0.4); }
.achievements .section-label::after { display: none; }
.achievements .section-title { color: white; }
.achievements-numbers {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px;
  align-items: center;
  margin-bottom: 80px;
  margin-top: 20px;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ach-num-divider { height: 80px; background: rgba(255,255,255,0.08); }
.ach-num-item { text-align: center; padding: 0 32px; }
.ach-num {
  font-family: 'Barlow', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 10px;
}
.ach-num span { font-size: 24px; font-weight: 400; color: var(--accent); }
.ach-num-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 6px; letter-spacing: 0.05em; }
.ach-num-desc { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; }
.achievements-case { display: grid; grid-template-columns: 3fr 2fr 1.2fr; gap: 3px; border-radius: 12px; overflow: hidden; }
.achievements-case {
  display: grid;
  grid-template-columns: 3fr 2fr 1.2fr;
  gap: 3px;
  border-radius: 12px;
  overflow: hidden;
}
.ach-case-img-inner { height: 100%; min-height: 280px; background: transparent; display: flex; align-items: center; justify-content: center; }
.ach-case-body {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.ach-case-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
}
.ach-case-body h3 { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 700; color: white; line-height: 1.5; }
.ach-case-body p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.9; }
.ach-case-body .service-link { color: var(--accent-light); }
.ach-case-fig {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.1em;
}


/* Company */
/* ======= OVERVIEW TABLE ======= */
.overview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.overview-table-wrap { display: flex; flex-direction: column; }
.overview-sub-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
}
.overview-table { width: 100%; border-collapse: collapse; }
.overview-table tr { border-bottom: 1px solid var(--gray-300); }
.overview-table tr:last-child { border-bottom: none; }
.overview-table td { padding: 20px 0; font-size: 14px; vertical-align: top; }
.overview-table td:first-child {
  width: 140px;
  font-weight: 500;
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.05em;
  font-size: 12px;
  padding-top: 22px;
}
.overview-table td:last-child { color: var(--text-light); line-height: 1.8; }

/* ======= GREETING CARD ======= */
.greeting-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}
.greeting-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 24px;
  font-family: 'DM Serif Display', serif;
  font-size: 160px;
  color: rgba(26,108,255,0.15);
  line-height: 1;
}
.greeting-title {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.greeting-card p {
  font-size: 14px;
  line-height: 2.2;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}
.greeting-sig { font-family: 'Noto Serif JP', serif; font-size: 18px; color: white; position: relative; z-index: 1; }
.greeting-sig span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 4px;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.1em;
}

/* ======= VALUES ======= */
.values-section, #faq { background: var(--off-white); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: white;
  border-radius: 12px;
  padding: 36px 28px;
  border-top: 3px solid var(--accent);
}
.value-num {
  font-family: 'Barlow', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}
.value-card h3 { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.value-card p { font-size: 13px; color: var(--text-light); line-height: 2; }

/* ======= HISTORY ======= */
.history-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.history-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-300);
  align-items: start;
}
.history-item:last-child { border-bottom: none; }
.history-year { font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.05em; padding-top: 2px; }
.history-text { font-size: 14px; color: var(--text-light); line-height: 1.9; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .overview-inner { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 80px 1fr; gap: 16px; }
}


/* ======= CONTACT ======= */
.contact { background: var(--off-white); }
.contact-inner {
  max-width: 640px;
  margin: 60px auto 0;
  background: white;
  border-radius: 16px;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 6vw, 64px);
  box-shadow: 0 8px 40px rgba(10,22,40,0.06);
  overflow: hidden;
}
.contact-intro { margin-bottom: 40px; }
.contact-intro .section-title { font-size: 26px; }
.contact-intro p { font-size: 13px; color: var(--text-light); line-height: 2; margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--navy); letter-spacing: 0.05em; }
.form-group input,
.form-group textarea {
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--off-white);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); background: white; }
.form-group textarea { height: 130px; resize: none; }
.full-width { grid-column: 1 / -1; }
.btn-submit {
  width: 100%;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,108,255,0.3); }

/* ======= アニメーション ======= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-load { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.anim-fade-up { opacity: 0; transform: translateY(36px); transition: opacity 1.6s cubic-bezier(0.22,1,0.36,1), transform 1.6s cubic-bezier(0.22,1,0.36,1); }
.anim-fade-down { opacity: 0; transform: translateY(-28px); transition: opacity 1.5s cubic-bezier(0.22,1,0.36,1), transform 1.5s cubic-bezier(0.22,1,0.36,1); }
.anim-slide-left { opacity: 0; transform: translateX(-40px); transition: opacity 1.6s cubic-bezier(0.22,1,0.36,1), transform 1.6s cubic-bezier(0.22,1,0.36,1); }
.anim-slide-right { opacity: 0; transform: translateX(40px); transition: opacity 1.6s cubic-bezier(0.22,1,0.36,1), transform 1.6s cubic-bezier(0.22,1,0.36,1); }
.anim-scale { opacity: 0; transform: scale(0.88); transition: opacity 1.5s cubic-bezier(0.22,1,0.36,1), transform 1.5s cubic-bezier(0.34,1.56,0.64,1); }
.anim-fade-up.anim-in, .anim-fade-down.anim-in, .anim-slide-left.anim-in, .anim-slide-right.anim-in, .anim-scale.anim-in { opacity: 1; transform: none; }

/* ======= RESPONSIVE（LP固有） ======= */
@media (max-width: 1024px) {
  .hero-visual { display: flex; transform: scale(0.7); transform-origin: center; }
  h1 { font-size: 44px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; gap: 0; }
  .ba-divider { flex-direction: column; padding-top: 0; height: 56px; justify-content: center; align-items: center; }
  .ba-divider-line { flex: none; width: 2px; height: 12px; min-height: unset; }
  .ba-divider-arrow { padding: 4px 0; flex-direction: column; }
  .ba-divider-logo::before { content: '↓'; }
  .before-col, .after-col { border-radius: 12px; border: 1px solid var(--gray-300); }
  .after-col { border-color: var(--accent); }
  .merit-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { flex-direction: column; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; margin: 0 auto; }
  .flow-step { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .achievements-numbers { grid-template-columns: repeat(2, 1fr); }
  .ach-num-divider { display: none; }
  .ach-num-item { padding: 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .achievements-case { grid-template-columns: 1fr; }
  .ach-case-fig { min-height: 120px; flex-direction: row; gap: 32px; }
  /* form-rowは姓・名を横並びのまま維持（スマホのみ縦に） */
}
@media (max-width: 768px) {

.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 140px) clamp(20px, 6vw, 80px) clamp(60px, 8vw, 80px);
  max-width: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);  
}
.menu-toggle { display: flex; }

  #main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  #main-nav.open { display: flex; }

  .btn-contact {
    width: 100%;
    text-align: center;
  }
  

  
  h1 { font-size: 36px; }
  .problems-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .merit-grid { grid-template-columns: 1fr; }
  .achievements-numbers { grid-template-columns: 1fr 1fr; gap: 0; }
  .ach-num { font-size: 36px; }
  .section-title { font-size: 24px; }
  
  .services {
    padding: 40px 16px;  
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .achievements-case {
    grid-template-columns: 1fr;
  }

  .ach-case-img {
    width: 100%;
    /* aspect-ratio: 16 / 9;  */
  }

  .ach-case-img-inner {
    width: 100%;
    /* height: 100%; */
  }

  .ach-case-img-inner img {
    width: 100%;
    /* height: 100%; */
    object-fit: contain;
    margin-bottom: 20px;
  }

  .ach-case-body {
    padding: 24px;
  }

  .ach-case-fig {
    flex-direction: row !important; 
    justify-content: space-around !important;
    padding: 20px !important;
  }

  .ach-case-fig > div:nth-child(2) {
    /* セパレーターを縦から横に */
    width: 24px !important;
    height: 1px !important;
  }


  
  }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  .problems-grid { grid-template-columns: 1fr; }
  .achievements-numbers { grid-template-columns: 1fr; }
  .ach-num-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .property-tags span { font-size: 12px; padding: 6px 14px; }
}


@media (max-width: 600px) {
  .smodal-features-grid { grid-template-columns: 1fr; }
  .modal-title { font-size: 16px; }
  .modal-footer { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  .footer-actions { flex-wrap: nowrap; }
  .footer-note { white-space: normal; }
  .smodal-stats-row { flex-direction: row; gap: 1px; }
  .smodal-stat-value { font-size: 15px; }
  .smodal-stat-label { font-size: 10px; }
  .smodal-stat-item { padding: 12px 8px; }
}

/* ===== SERVICE MODAL (全画面共通) ===== */
/* ===== SERVICE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #ffffff;
  border: 1px solid #ddd8ce;
  border-radius: 16px;
  width: 100%;
  /* height: 88vh;  */
  max-width: 620px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 2px 0 #4d8fff, 0 24px 80px rgba(0,0,0,0.18), 0 4px 24px rgba(77,143,255,0.08);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4d8fff, #6aa3ff);
  border-radius: 16px 16px 0 0;
}
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid #ddd8ce;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-icon {
  width: 48px; height: 48px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.modal-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4d8fff;
  margin-bottom: 4px;
}
.modal-title {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1f2e;
  line-height: 1.2;
}
.close-btn {
  width: 32px; height: 32px;
  background: #ede9e1;
  border: 1px solid #ddd8ce;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #6b7599;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.close-btn:hover {
  background: #e8e3da;
  border-color: #9aa0bb;
  color: #1a1f2e;
}
.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #ddd8ce transparent;
  min-height: 0
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: #ddd8ce; border-radius: 4px; }
.smodal-desc {
  font-size: 14px;
  color: #3d4560;
  line-height: 1.8;
}
.smodal-stats-row {
  display: flex;
  gap: 1px;
  background: #ddd8ce;
  border: 1px solid #ddd8ce;
  border-radius: 10px;
  overflow: hidden;
}
.smodal-stat-item {
  flex: 1;
  background: #eff6ff;
  padding: 16px;
  text-align: center;
}
.smodal-stat-value {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #4d8fff;
  margin-bottom: 4px;
}
.smodal-stat-label {
  font-size: 11px;
  color: #6b7599;
}
.smodal-features-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa0bb;
  margin-bottom: 12px;
}
.smodal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.smodal-feature-item {
  background: #f5f2ec;
  border: 1px solid #ddd8ce;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.smodal-feature-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 2px 12px rgba(77,143,255,0.06);
}
.smodal-feature-dot {
  width: 6px; height: 6px;
  background: #4d8fff;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.smodal-feature-name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1f2e;
  margin-bottom: 3px;
}
.smodal-feature-detail {
  font-size: 11px;
  color: #6b7599;
  line-height: 1.5;
}
.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid #ddd8ce;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  background: #f5f2ec;
}
.footer-note {
  font-size: 12px;
  color: #6b7599;
  white-space: nowrap;
}
.footer-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-modal-secondary {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6b7599;
  background: none;
  border: 1px solid #ddd8ce;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-modal-secondary:hover {
  background: #ede9e1;
  color: #1a1f2e;
  border-color: #9aa0bb;
}
.btn-modal-primary {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #4d8fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(77,143,255,0.25);
  white-space: nowrap;
}
.btn-modal-primary:hover {
  background: #6aa3ff;
  box-shadow: 0 4px 20px rgba(77,143,255,0.35);
}

.btn-modal-extlink {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6b7599;
  background: none;
  border: 1px solid #ddd8ce;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-modal-extlink:hover {
  background: #ede9e1;
  color: #1a1f2e;
  border-color: #9aa0bb;
}

/* ======= CONTACT FORM（フォームが.contact-innerの外にある場合の補正） ======= */
/* #contact {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 56px 64px;
  box-shadow: 0 8px 40px rgba(10,22,40,0.06);
} */

/* #success-msg {
  max-width: 640px;
  margin: 0 auto;
} */

@media (max-width: 768px) {
  #contact {
    padding: 32px 24px;
  }
}

/* ======= カスタムチェックボックス（お問い合わせ項目） ======= */
/* .inquiry-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.inquiry-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.cb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  background: var(--off-white);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.cb-item:hover {
  border-color: var(--accent);
  background: #eff6ff;
}
.cb-item.selected {
  border-color: var(--accent);
  background: #eff6ff;
}
.cb-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-300);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.cb-item.selected .cb-box {
  border-color: var(--accent);
  background: var(--accent);
}
.cb-check {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}
.cb-item.selected .cb-check {
  opacity: 1;
}
.cb-item.selected .cb-check polyline {
  stroke: white;
}
.cb-label {
  font-size: 14px;
  color: var(--text);
}
.cb-other-input {
  display: none;
  margin-top: 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.cb-item.selected .cb-other-input {
  display: block;
} */
/* その他選択時は縦並びに */
/* .cb-item[data-value="その他"].selected {
  flex-wrap: wrap;
}
.cb-other-input:focus {
  border-color: var(--accent);
} */