.ad-home {
  --ad-cream: #fbf5ea;
  --ad-cream-deep: #f3e8d5;
  --ad-brown: #3b2519;
  --ad-brown-soft: #6b4d3c;
  --ad-terra: #b4532f;
  --ad-terra-dark: #8f3f22;
  --ad-line: #e3d2b9;
  background: var(--ad-cream);
  color: var(--ad-brown);
  font-size: 16px;
  line-height: 1.8;
  overflow: hidden;
}
.ad-home *, .ad-home *::before, .ad-home *::after { box-sizing: border-box; }
.ad-home img { display: block; max-width: 100%; height: auto; }
.ad-home ul { list-style: none; margin: 0; padding: 0; }
.ad-home h1, .ad-home h2, .ad-home h3, .ad-home p { margin: 0; }
.ad-home a { color: inherit; }

.ad-home .ad-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ad-home .ad-section { padding: 44px 0; }

.ad-home .ad-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ad-terra);
  margin-bottom: 12px;
}
.ad-home .ad-h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.4; font-weight: 700; }
.ad-home .ad-h3 { font-size: 1.125rem; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
.ad-home .ad-body { margin-top: 16px; color: var(--ad-brown-soft); }
.ad-home .ad-head { margin-bottom: 32px; max-width: 640px; }
.ad-home .ad-head-lead { margin-top: 12px; color: var(--ad-brown-soft); }
.ad-home .ad-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ad-home .ad-photo-note { font-size: 0.75rem; color: var(--ad-brown-soft); margin-top: 12px; }

/* Buttons and links */
.ad-home .ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--ad-terra);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.ad-home .ad-btn-primary { background: var(--ad-terra); color: #fff; }
.ad-home .ad-btn-primary:hover { background: var(--ad-terra-dark); border-color: var(--ad-terra-dark); }
.ad-home .ad-btn-outline { background: transparent; color: var(--ad-terra-dark); margin-top: 20px; }
.ad-home .ad-btn-outline:hover { background: var(--ad-terra); color: #fff; }
.ad-home .ad-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.ad-home .ad-btn-ghost:hover { background: #fff; color: var(--ad-brown); }

.ad-home .ad-link-arrow { font-weight: 700; color: var(--ad-terra-dark); text-decoration: none; }
.ad-home .ad-link-arrow::after { content: " →"; }
.ad-home .ad-link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.ad-home .ad-link-sub { font-size: 0.875rem; color: var(--ad-brown-soft); text-underline-offset: 3px; }

.ad-home a:focus-visible {
  outline: 3px solid var(--ad-brown);
  outline-offset: 3px;
  border-radius: 4px;
}
.ad-home .ad-closing a:focus-visible { outline-color: #fff; }

/* Hero (mobile first: photo on top, text below) */
.ad-home .ad-hero { background: var(--ad-cream-deep); }
.ad-home .ad-hero-media { aspect-ratio: 4 / 3; overflow: hidden; }
.ad-home .ad-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.ad-home .ad-hero-inner { padding: 32px 20px 44px; }
.ad-home .ad-hero-title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.4; font-weight: 700; }
.ad-home .ad-hero-lead { margin-top: 16px; color: var(--ad-brown-soft); }
.ad-home .ad-hero-actions { margin-top: 24px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.ad-home .ad-hero-actions .ad-link-arrow { text-align: center; }

/* Purpose cards */
.ad-home .ad-card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ad-home .ad-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ad-home .ad-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(59, 37, 25, 0.1); }
.ad-home .ad-card-num { font-size: 1.75rem; font-weight: 700; color: var(--ad-terra); line-height: 1; margin-bottom: 8px; }
.ad-home .ad-card-text { color: var(--ad-brown-soft); font-size: 0.9375rem; margin-bottom: 8px; }

/* Story */
.ad-home .ad-story { background: var(--ad-cream-deep); }
.ad-home .ad-story-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ad-home .ad-story-photos { position: relative; padding-bottom: 8px; }
.ad-home .ad-story-main { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.ad-home .ad-story-sub { display: none; }
.ad-home .ad-points { margin-top: 24px; display: grid; gap: 12px; }
.ad-home .ad-points li { padding: 16px 20px; background: #fff; border-left: 4px solid var(--ad-terra); border-radius: 8px; font-size: 0.9375rem; color: var(--ad-brown-soft); }
.ad-home .ad-points strong { display: block; color: var(--ad-brown); font-size: 1rem; }

/* Articles */
.ad-home .ad-article-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ad-home .ad-article { padding: 24px; border-top: 3px solid var(--ad-brown); background: #fff; position: relative; }
.ad-home .ad-tag { font-size: 0.75rem; font-weight: 700; color: var(--ad-terra-dark); margin-bottom: 8px; }
.ad-home .ad-article-link { text-decoration: none; }
.ad-home .ad-article-link::after { content: ""; position: absolute; inset: 0; }
.ad-home .ad-article:hover .ad-article-link { color: var(--ad-terra-dark); text-decoration: underline; text-underline-offset: 4px; }
.ad-home .ad-article:focus-within { outline: 3px solid var(--ad-brown); outline-offset: 2px; }
.ad-home .ad-article-link:focus-visible { outline: none; }

/* ecforce */
.ad-home .ad-ecforce { padding-top: 16px; }
.ad-home .ad-ecforce-box { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; border: 1px solid var(--ad-line); border-radius: 20px; background: #fff; }
.ad-home .ad-ecforce-logo { background: #fff; padding: 24px; display: flex; align-items: center; justify-content: center; }
.ad-home .ad-ecforce-logo img { width: 200px; height: auto; }

/* Closing */
.ad-home .ad-closing { background: var(--ad-brown); color: #fff; }
.ad-home .ad-closing .ad-eyebrow { color: #f0b89c; }
.ad-home .ad-closing .ad-body { color: #eadccb; }
.ad-home .ad-closing-box { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.ad-home .ad-closing-actions { display: flex; flex-direction: column; gap: 12px; }

/* 390 */
@media (min-width: 390px) {
  .ad-home .ad-hero-inner { padding-inline: 24px; }
  .ad-home .ad-wrap { width: min(1120px, 100% - 48px); }
}

/* 768 */
@media (min-width: 768px) {
  .ad-home .ad-section { padding: 60px 0; }
  .ad-home .ad-hero-media { aspect-ratio: 16 / 9; }
  .ad-home .ad-hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .ad-home .ad-hero-actions .ad-link-arrow { text-align: left; }
  .ad-home .ad-hero-inner { padding: 48px 40px 56px; }
  .ad-home .ad-card-grid, .ad-home .ad-article-grid { grid-template-columns: repeat(3, 1fr); }
  .ad-home .ad-story-sub {
    display: block;
    position: absolute;
    right: -12px;
    bottom: -24px;
    width: 42%;
    border-radius: 12px;
    border: 4px solid var(--ad-cream-deep);
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .ad-home .ad-story-photos { padding-bottom: 32px; }
  .ad-home .ad-story-photos .ad-photo-note { margin-top: 36px; }
  .ad-home .ad-ecforce-box { grid-template-columns: 280px 1fr; align-items: center; gap: 40px; padding: 40px; }
  .ad-home .ad-closing-box { grid-template-columns: 1fr auto; gap: 48px; }
}

/* 1024: text overlays the calm left area of the photo */
@media (min-width: 1024px) {
  .ad-home .ad-hero { position: relative; min-height: 640px; display: flex; align-items: center; }
  .ad-home .ad-hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .ad-home .ad-hero-img { object-position: center; }
  .ad-home .ad-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251, 245, 234, 0.94) 0%, rgba(251, 245, 234, 0.82) 38%, rgba(251, 245, 234, 0) 66%);
  }
  .ad-home .ad-hero-inner { position: relative; width: min(1120px, 100% - 64px); margin-inline: auto; padding: 72px 0; }
  .ad-home .ad-hero-copy { max-width: 520px; }
  .ad-home .ad-story-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
}

/* 1440 */
@media (min-width: 1440px) {
  .ad-home { font-size: 17px; }
  .ad-home .ad-hero { min-height: 760px; }
  .ad-home .ad-wrap, .ad-home .ad-hero-inner { width: min(1240px, 100% - 96px); }
  .ad-home .ad-hero-copy { max-width: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-home *, .ad-home *::before, .ad-home *::after { transition: none !important; animation: none !important; }
  .ad-home .ad-card:hover { transform: none; }
}

/* Reconcile with shared typography without affecting other pages. */
.ad-home h1, .ad-home h2, .ad-home h3 { letter-spacing: -.025em; }
.ad-home .ad-ecforce { padding-top: 16px; }

/* Keep Japanese phrases together on compact screens. */
.ad-home .ad-title-intro, .ad-home .ad-title-store, .ad-home .ad-title-end { display: block; }
@media (min-width: 1024px) {
  .ad-home .ad-title-intro, .ad-home .ad-title-store { display: inline; }
}
@media (max-width: 767px) {
  .ad-home .ad-section { padding-block: 36px; }
  .ad-home .ad-ecforce { padding-top: 8px; }
  .ad-home .ad-card { padding: 22px 24px; }
}

/* Small optional interactions; transform never changes document layout. */
.ad-home .ad-btn { transition: background-color .2s, color .2s, transform .2s; }
.ad-home .ad-btn:hover, .ad-home .ad-btn:focus-visible { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .ad-home .ad-btn:hover, .ad-home .ad-btn:focus-visible { transform: none; }
}

/* Keep each Japanese phrase together and fit the complete first line on tablets and compact desktops. */
.ad-home .ad-title-intro, .ad-home .ad-title-store, .ad-home .ad-title-end { white-space: nowrap; }
@media (min-width: 768px) {
  .ad-home .ad-title-intro, .ad-home .ad-title-store { display: inline; }
}
@media (min-width: 768px) and (max-width: 1439px) {
  .ad-home .ad-hero-title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem); }
}
