/*
Theme Name: Mock Theme
Theme URI: https://kodachiex.com/
Author: You
Description: JPress Renewal Mock
Version: 1.0
*/

/* =========================================================
   JPress Renewal Mock
   Common Design System for:
   - jpress.okinawatimes.co.jp
   - sumai.okinawatimes.co.jp
   - fun.okinawatimes.co.jp
   ========================================================= */

:root {
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --color-text: #222;
  --color-muted: #717171;
  --color-border: #e6e6e6;
  --color-bg: #f7f7f5;
  --color-white: #fff;

  --color-jpress: #1f3864;
  --color-sumai: #1f3864;
  --color-fun: #b85042;

  --color-jpress-soft: #e6eef8;
  --color-sumai-soft: #e6eef8;
  --color-fun-soft: #faece7;

  --container: 1200px;
  --wide: 1536px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, .10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site {
  min-height: 100vh;
  background: var(--color-bg);
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.wide-container {
  width: min(100% - 48px, var(--wide));
  margin: 0 auto;
}

/* Header
--------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.logo__sub {
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--color-muted);
}

.logo__main {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: opacity .2s;
}

.nav a:hover {
  opacity: .6;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #555;
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

.menu-button {
  gap: 4px;
  flex-direction: column;
}

/* Theme colors
--------------------------------------------------------- */
.theme-jpress {
  --theme: var(--color-jpress);
  --theme-soft: var(--color-jpress-soft);
}

.theme-sumai {
  --theme: var(--color-sumai);
  --theme-soft: var(--color-sumai-soft);
}

.theme-fun {
  --theme: var(--color-fun);
  --theme-soft: var(--color-fun-soft);
}

.theme-color {
  color: var(--theme);
}

/* Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.hero--visual {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.hero--message {
  background:
    radial-gradient(circle at 10% 10%, rgba(31,56,100,.13), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f5f7fb 100%);
  padding: 96px 0;
  text-align: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.54)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 0 56px;
  max-width: 760px;
}

.hero__content h1,
.hero__message h1 {
  font-size: 32px;
  line-height: 1.45;
  margin: 16px 0 14px;
  letter-spacing: .02em;
}

.hero__content p,
.hero__message p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.hero__message {
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--theme-soft);
  color: var(--theme);
  font-size: 12px;
  font-weight: 700;
}

.badge--white {
  background: rgba(255,255,255,.92);
  color: var(--theme);
}

/* Sections
--------------------------------------------------------- */
.section {
  padding: 72px 0;
}

.section--white {
  background: #fff;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: .03em;
}

.section__lead {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 16px;
}

.more-link {
  color: var(--theme);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

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

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d8d8d8, #bdbdbd);
  position: relative;
  overflow: hidden;
}

.card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-image);
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}

.card:hover .card__image::before {
  transform: scale(1.05);
}

.card__body {
  padding: 18px 18px 20px;
}

.card__title {
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 10px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
}

.card__date {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
}

/* Feature / CTA Cards
--------------------------------------------------------- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.cta-card:hover {
  border-color: var(--theme);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.cta-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--theme-soft);
  color: var(--theme);
  font-weight: 800;
  flex: 0 0 auto;
}

.cta-card__body h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.4;
}

.cta-card__body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.media-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.media-card__image {
  min-height: 220px;
  background: var(--card-image);
  background-size: cover;
  background-position: center;
}

.media-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-card__body h3 {
  margin: 8px 0 12px;
  font-size: 24px;
  line-height: 1.45;
}

.media-card__body p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
}

.button--ghost {
  background: #fff;
  color: var(--theme);
  border: 1px solid var(--theme);
}

/* Search box
--------------------------------------------------------- */
.search-panel {
  margin-top: -46px;
  position: relative;
  z-index: 10;
}

.search-panel__inner {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 16px;
}

/* Banner / Ads
--------------------------------------------------------- */
.archive-banner {
  border-radius: var(--radius-md);
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(31,56,100,.92), rgba(31,56,100,.72)),
    linear-gradient(135deg, #c8ced8, #edf2f8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.archive-banner h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.4;
}

.archive-banner p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.76);
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ad {
  min-height: 96px;
  border: 1px dashed #bbb;
  border-radius: var(--radius-sm);
  background: #eee;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 12px;
}

/* Topics / Footer
--------------------------------------------------------- */
.topic-list {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.topic-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
}

.topic-row:last-child {
  border-bottom: 0;
}

.topic-date {
  color: var(--color-muted);
  font-size: 14px;
}

.footer {
  background: #111;
  color: #aaa;
  padding: 48px 0 32px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 24px;
}

.footer__nav a {
  font-size: 14px;
}

.footer__copy {
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav,
  .header__actions {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-panel__inner {
    grid-template-columns: 1fr 1fr;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .media-card__image {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .container,
  .wide-container {
    width: min(100% - 32px, var(--container));
  }

  .header__inner {
    height: 68px;
  }

  .logo {
    min-width: auto;
  }

  .logo__sub {
    font-size: 10px;
  }

  .logo__main {
    font-size: 16px;
  }

  .hero--visual {
    min-height: 360px;
  }

  .hero--message {
    padding: 72px 0;
  }

  .hero__content {
    padding-bottom: 40px;
  }

  .hero__content h1,
  .hero__message h1,
  .section__title,
  .archive-banner h2 {
    font-size: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    display: block;
  }

  .section__lead {
    margin-bottom: 14px;
  }

  .card-grid,
  .cta-grid,
  .media-grid,
  .ad-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    margin-top: -28px;
  }

  .search-panel__inner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .archive-banner {
    display: block;
    padding: 28px;
  }

  .archive-banner .button {
    margin-top: 20px;
  }

  .topic-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}