/* ══════════════════════════════════════
   TOP PAGE STYLES
   Depends on: global.css (design tokens, header, footer)
══════════════════════════════════════ */

/* ─── Container / Section shared ─── */
.container {
  width: var(--container-w);
  margin: 0 auto;
}

.section { padding: 100px 0; }
.section--alt { background: var(--bg); }

/* ─── Section Heading ─── */
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head__en {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: rgba(31,41,55,.07);
  letter-spacing: -.02em;
  margin-bottom: -48px;
  user-select: none;
  display: block;
}
.sec-head__en--light { color: rgba(255,255,255,.08); }
.sec-head__ja {
  position: relative;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text);
  letter-spacing: .05em;
}
.sec-head__ja--light { color: var(--white); }

/* ─── Section CTA ─── */
.section-cta { text-align: center; margin-top: 48px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center / cover no-repeat;
  opacity: .45;
  mix-blend-mode: luminosity;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,34,104,.95) 45%, rgba(0,53,143,.6) 100%);
}

.hero__shape {
  position: absolute;
  right: -5%;
  top: -15%;
  width: 55%;
  height: 130%;
  background: rgba(255,255,255,.03);
  transform: rotate(-14deg);
  transform-origin: top right;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__catch {
  font-size: clamp(15px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__catch span,
.hero__catch em {
  display: block;
  white-space: nowrap;
  font-style: normal;
}

.hero__catch em { color: var(--accent); }

.hero__sub {
  font-size: clamp(14px, 1.5vw, 18px);
  color: rgba(255,255,255,.8);
  line-height: 1.9;
  margin-bottom: 44px;
  max-width: 500px;
  text-align: left;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  max-width: 560px;
}

.hero__cta .btn { flex: 1; min-width: 200px; }

/* ごみ.Kyoto+ バナー */
.hero__app-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  margin-top: 16px;
  width: 100%;
  max-width: 560px;
}

.hero__app-thumb {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__app-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__app-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__app-info h4 img { height: 20px; object-fit: contain; }

.hero__app-lead {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 12px;
}

.hero__app-lead span { color: var(--text-sub); }

.hero__app-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  transition: opacity .15s;
  line-height: 1.3;
}

.hero__app-btn:hover { opacity: .85; }

.hero__app-btn-pre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.hero__app-btn-pre small { font-size: 10px; font-weight: 400; letter-spacing: .05em; }
.hero__app-btn strong { font-size: 18px; font-weight: 700; letter-spacing: .05em; }

/* ══════════════════════════════════════
   PHILOSOPHY
══════════════════════════════════════ */
.philosophy {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.philosophy__bg-img {
  position: absolute;
  inset: 0;
  background: url('../images/mission-bg.jpg') center / cover no-repeat;
  opacity: .55;
}

.philosophy__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,112,.82) 0%, rgba(0,53,143,.78) 50%, rgba(0,31,96,.82) 100%);
}

.philosophy__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--px);
  text-align: center;
}

.philosophy__purpose {
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.75;
  letter-spacing: .04em;
  margin-bottom: 48px;
  text-wrap: pretty;
}

.philosophy__divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 40px;
  border-radius: 2px;
}

.philosophy__name-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 24px 48px;
  margin-bottom: 44px;
}

.philosophy__name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .18em;
}

.philosophy__name-ja {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .1em;
}

.philosophy__desc {
  font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(255,255,255,.75);
  line-height: 1.95;
  text-align: left;
}

.philosophy__desc p + p { margin-top: 16px; }

/* Philosophy section extras */
.philosophy__sec-head { margin-bottom: 48px; }
.philosophy__cta { margin-top: 44px; }

@media (max-width: 768px) {
  .philosophy__sec-head { margin-bottom: 28px; }
  .philosophy__cta { margin-top: 28px; }
}

/* ══════════════════════════════════════
   WORKS
══════════════════════════════════════ */
.works-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.works-card {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 0;
  background: var(--white);
  transition: background .2s;
  overflow: hidden;
}

.works-card:hover { background: var(--bg); }

.works-card__img {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.works-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.works-card:hover .works-card__img img { transform: scale(1.04); }

.works-card__body { padding: 32px 40px; }

.works-card__num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: 8px;
}

.works-card__title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.works-card__sub {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.works-card__link { padding: 32px 40px; flex-shrink: 0; }

.works-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .2s;
}

.works-card:hover .works-card__tag { background: var(--navy-dark); }

/* ══════════════════════════════════════
   CASE
══════════════════════════════════════ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,53,143,.08);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,53,143,.15);
}

.case-card__thumb {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.case-card:hover .case-card__thumb img { transform: scale(1.04); }

.case-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card__tag {
  display: inline-flex;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: .05em;
  margin-bottom: 12px;
  align-self: flex-start;
}

.case-card__client {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .05em;
}

.case-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.55;
}

.case-card__desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-top: auto;
}

/* ══════════════════════════════════════
   FEATURE
══════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,53,143,.07);
  border-top: 4px solid var(--navy);
}

.feature-card__thumb { height: 180px; overflow: hidden; }

.feature-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.feature-card:hover .feature-card__thumb img { transform: scale(1.04); }

.feature-card__body { padding: 28px 24px; }

.feature-card__num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #C8DEFF;
  line-height: 1;
  margin-bottom: 14px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.feature-card__desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ══════════════════════════════════════
   NEWS
══════════════════════════════════════ */
.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.news-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s, padding .15s;
  text-decoration: none;
  color: inherit;
}

.news-item:hover {
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  background: var(--bg);
}

.news-item__date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.news-item__tag {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.news-item__title {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  min-width: 0;
}

.news-item__arrow {
  color: var(--navy);
  font-size: 18px;
  flex-shrink: 0;
  justify-self: end;
  transition: transform .15s;
  white-space: nowrap;
}

.news-item:hover .news-item__arrow { transform: translateX(4px); }

/* ══════════════════════════════════════
   COLUMN
══════════════════════════════════════ */
.col-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.col-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,53,143,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,53,143,.14);
}

.col-card__thumb { height: 180px; overflow: hidden; }

.col-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.col-card:hover .col-card__thumb img { transform: scale(1.04); }

.col-card__body { padding: 20px; flex: 1; }

.col-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.col-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-sub);
}

.col-card__tag {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
}

.col-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
}

/* ══════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .works-card { grid-template-columns: 200px 1fr auto; }
  .works-card__link { padding: 24px 20px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head__en { margin-bottom: -32px; }

  /* Works → stack */
  .works-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .works-card__img { height: 180px; }
  .works-card__body { padding: 20px 20px 12px; }
  .works-card__link { padding: 0 20px 20px; }
  .works-card__tag { width: 100%; justify-content: center; }

  /* Grids → 1 column */
  .case-grid, .feature-grid, .col-grid { grid-template-columns: 1fr; }
  .case-card__thumb, .feature-card__thumb, .col-card__thumb { height: 160px; }

  /* News grid → mobile layout */
  .news-item {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }
  .news-item__date { grid-row: 1; grid-column: 1; font-size: 12px; }
  .news-item__tag  { grid-row: 1; grid-column: 2; justify-self: start; }
  .news-item__title{ grid-row: 2; grid-column: 1/3; font-size: 14px; }
  .news-item__arrow{ grid-row: 1/3; grid-column: 3; align-self: center; }

  /* Philosophy */
  .philosophy { padding: 80px 0; }
  .philosophy__name-block { padding: 20px 28px; }

  /* Hero CTA → stack */
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Hero catch → viewport-scaled, no in-span wrapping */
  .hero {
    align-items: flex-start;
    height: auto;
    min-height: 100svh;
    padding-bottom: 48px;
  }
  .hero__catch {
    font-size: 5.8vw;
    margin-bottom: 16px;
  }
  .hero__catch span,
  .hero__catch em { white-space: nowrap; }

  /* Hero app btn → vertical layout */
  .hero__app-btn { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .col-grid { grid-template-columns: 1fr; }
}
