/*
Theme Name: SWELL Child Okina
Template: swell
Description: スタジオ翁 用 SWELL 子テーマ。Raconteur風のトップページテンプレートを追加する。
Version: 1.0.0
Author: 角内一成
Text Domain: swell-child-okina
*/

/* ============================================
   Studio Okina Redesign - Raconteur Style
   .okina-home スコープ内のみ適用
   ============================================ */

/* Tokens */
.okina-home {
  --r-text: #111111;
  --r-text-2: #555555;
  --r-text-muted: #8A8A8A;
  --r-red: #E2231A;
  --r-bg: #FFFFFF;
  --r-bg-cream: #F5E6D3;
  --r-bg-pink: #FBE3E1;
  --r-bg-gray: #E5E7EA;
  --r-bg-dark: #111111;
  --r-border: #E5E5E5;

  --r-container: 1240px;
  --r-gutter: 32px;

  --r-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
    'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;

  font-family: var(--r-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--r-text);
  background: var(--r-bg);
  -webkit-font-smoothing: antialiased;
}

/* Reset (scoped) */
.okina-home, .okina-home *, .okina-home *::before, .okina-home *::after {
  box-sizing: border-box;
}
.okina-home img { max-width: 100%; display: block; }
.okina-home a { color: inherit; text-decoration: none; }
.okina-home ul, .okina-home ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.okina-home li {
  list-style: none !important;
  background: none !important;
  padding: 0;
  margin: 0;
}
.okina-home li::before, .okina-home li::marker {
  content: none !important;
  display: none !important;
}
.okina-home h1, .okina-home h2, .okina-home h3,
.okina-home h4, .okina-home h5, .okina-home h6 {
  margin: 0;
  padding: 0;
  font-weight: 700;
  background: none !important;
  border: none !important;
}
.okina-home h2::before, .okina-home h3::before, .okina-home h4::before,
.okina-home h2::after, .okina-home h3::after, .okina-home h4::after {
  content: none !important;
  display: none !important;
}
.okina-home button { font-family: inherit; cursor: pointer; }

/* Container */
.okina-home .r-container {
  max-width: var(--r-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Common: Category Label */
.okina-home .r-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--r-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1;
}

/* Common: Article Title */
.okina-home .r-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--r-text);
  margin: 0;
}
.okina-home .r-title:hover { text-decoration: underline; }

/* Common: Section Header */
.okina-home .r-section-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-text);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--r-border);
}

/* Common: Excerpt */
.okina-home .r-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--r-text-2);
  margin: 0 0 12px;
}
.okina-home .r-byline {
  font-size: 13px;
  color: var(--r-text-muted);
}

/* Header */
.okina-home .r-header {
  border-bottom: 1px solid var(--r-border);
  background: var(--r-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.okina-home .r-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  max-width: var(--r-container);
  margin: 0 auto;
  padding: 0 24px;
}
.okina-home .r-header__left { display: flex; align-items: center; gap: 20px; }
.okina-home .r-header__logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--r-text);
  text-align: center;
}
.okina-home .r-header__right {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
}
.okina-home .r-iconbtn {
  background: none; border: none; padding: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--r-text);
}
.okina-home .r-iconbtn svg { width: 20px; height: 20px; }
.okina-home .r-link-text {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--r-text);
}
.okina-home .r-btn-dark {
  display: inline-block; padding: 8px 16px;
  background: var(--r-bg-dark); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 999px;
}
.okina-home .r-btn-dark:hover { background: #333; color: #fff; }

/* Category Nav */
.okina-home .r-nav {
  border-bottom: 1px solid var(--r-border);
  background: var(--r-bg);
}
.okina-home .r-nav__inner {
  max-width: var(--r-container);
  margin: 0 auto; padding: 0 24px;
  height: 44px; display: flex;
  align-items: center; justify-content: center; gap: 32px;
}
.okina-home .r-nav__link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--r-text);
}
.okina-home .r-nav__link:hover { color: var(--r-red); }

/* Hero */
.okina-home .r-hero { padding: 32px 0 48px; }
.okina-home .r-hero__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--r-gutter);
}
.okina-home .r-hero__col-left {
  display: flex; flex-direction: column; gap: 24px;
}
.okina-home .r-hero__popular {
  border-left: 1px solid var(--r-border);
  padding-left: 24px;
  display: flex; flex-direction: column; min-height: 0;
}
.okina-home .r-card-small .r-thumb,
.okina-home .r-card-feature .r-thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: #F0F0F0; margin-bottom: 12px;
}
.okina-home .r-card-feature .r-thumb { margin-bottom: 16px; }
.okina-home .r-card-feature .r-title {
  font-size: 28px; line-height: 1.25; margin-bottom: 12px;
}

/* Popular list (scrollable) */
.okina-home .r-popular__list {
  overflow-y: auto;
  max-height: 540px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #BBB transparent;
  flex: 1; min-height: 0;
}
.okina-home .r-popular__list::-webkit-scrollbar { width: 6px; }
.okina-home .r-popular__list::-webkit-scrollbar-track { background: transparent; }
.okina-home .r-popular__list::-webkit-scrollbar-thumb { background: #CCC; border-radius: 3px; }
.okina-home .r-popular__list::-webkit-scrollbar-thumb:hover { background: #999; }
.okina-home .r-popular__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--r-border);
}
.okina-home .r-popular__list li:last-child { border-bottom: none; }
.okina-home .r-popular__list .r-title {
  font-size: 15px; line-height: 1.4;
}

/* Section + grids */
.okina-home .r-section { padding: 48px 0; }
.okina-home .r-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--r-gutter);
}
.okina-home .r-grid-4 .r-thumb,
.okina-home .r-grid-3 .r-thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  margin-bottom: 12px; background: #F0F0F0;
}
.okina-home .r-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--r-gutter);
}
.okina-home .r-card-sponsored {
  font-size: 11px; color: var(--r-text-muted); margin-top: 8px;
}

/* Newsletter */
.okina-home .r-newsletter {
  background: var(--r-bg-cream); padding: 48px 0;
}
.okina-home .r-newsletter__inner {
  max-width: var(--r-container);
  margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 48px; align-items: center;
}
.okina-home .r-newsletter__illust {
  width: 100%; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.okina-home .r-newsletter__title {
  font-size: 32px; font-weight: 700; margin-bottom: 12px;
}
.okina-home .r-newsletter__lead {
  font-size: 14px; color: var(--r-text-2); margin-bottom: 20px;
}
.okina-home .r-newsletter__form {
  display: flex; max-width: 480px;
  border: 1px solid var(--r-text); background: #fff;
}
.okina-home .r-newsletter__form input {
  flex: 1; border: none; padding: 14px 16px;
  font-size: 14px; font-family: inherit;
  outline: none; background: transparent;
}
.okina-home .r-newsletter__form button {
  padding: 14px 28px; background: var(--r-bg-dark);
  color: #fff; border: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.okina-home .r-newsletter__form button:hover { background: #333; }

/* Dark Feature carousel */
.okina-home .r-feature-dark {
  position: relative;
  background: #1F2A37; color: #fff;
  overflow: hidden; margin: 32px 0;
}
.okina-home .r-feature-dark__track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.okina-home .r-feature-dark__track::-webkit-scrollbar { display: none; }
.okina-home .r-feature-dark__slide {
  flex: 0 0 100%; scroll-snap-align: start; min-width: 0;
}
.okina-home .r-feature-dark__inner {
  max-width: var(--r-container);
  margin: 0 auto; padding: 56px 72px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.okina-home .r-feature-dark__media {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: #2A3A4F;
}
.okina-home .r-feature-dark__body { color: #fff; min-width: 0; }
.okina-home .r-feature-dark .r-cat { color: var(--r-red); }
.okina-home .r-feature-dark__title {
  font-size: 32px; font-weight: 700; line-height: 1.25;
  margin: 0 0 16px; color: #fff;
}
.okina-home .r-feature-dark__excerpt {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.85); margin: 0 0 16px;
}
.okina-home .r-feature-dark__byline {
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.okina-home .r-feature-dark__arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: background 0.2s;
}
.okina-home .r-feature-dark__arrow:hover { background: rgba(255,255,255,0.3); }
.okina-home .r-feature-dark__arrow svg { width: 20px; height: 20px; }
.okina-home .r-feature-dark__arrow--prev { left: 16px; }
.okina-home .r-feature-dark__arrow--next { right: 16px; }
.okina-home .r-feature-dark__dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.okina-home .r-feature-dark__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s;
}
.okina-home .r-feature-dark__dot:hover { background: rgba(255,255,255,0.6); }
.okina-home .r-feature-dark__dot.is-active { background: #fff; }

/* 1+3 layout */
.okina-home .r-trump-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: var(--r-gutter);
}
.okina-home .r-trump-grid .r-card-feature .r-title { font-size: 24px; }
.okina-home .r-trump-grid .r-card-feature .r-thumb { aspect-ratio: 16/10; }
.okina-home .r-trump-list {
  display: flex; flex-direction: column;
}
.okina-home .r-card-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--r-border);
  align-items: flex-start;
}
.okina-home .r-card-row:first-child { padding-top: 0; }
.okina-home .r-card-row:last-child { border-bottom: none; }
.okina-home .r-card-row .r-thumb {
  width: 110px; height: 80px; object-fit: cover;
  background: #F0F0F0; margin: 0;
}
.okina-home .r-card-row .r-title {
  font-size: 14px; line-height: 1.35;
}

/* Studio Okina 50 grid */
.okina-home .r-r50-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--r-gutter);
}
.okina-home .r-r50-list {
  display: flex; flex-direction: column;
}

/* Studio Okina 50 Feature */
.okina-home .r-r50-feature {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 48px; align-items: center; padding: 32px 0;
}
.okina-home .r-r50-feature__title {
  font-size: 32px; font-weight: 700; line-height: 1.25;
  margin: 12px 0 16px;
}
.okina-home .r-r50-feature__illust {
  width: 100%; aspect-ratio: 16/9;
  background: var(--r-bg-cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}

/* More Articles button */
.okina-home .r-more-wrap {
  display: flex; justify-content: center;
  padding: 32px 0 48px;
}
.okina-home .r-more-btn {
  display: inline-block; padding: 14px 36px;
  border: 1px solid var(--r-text);
  background: transparent; color: var(--r-text);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 999px;
}
.okina-home .r-more-btn:hover {
  background: var(--r-text); color: #fff;
}

/* Footer */
.okina-home .r-footer {
  background: var(--r-bg-dark); color: #fff;
  padding: 48px 0 32px;
}
.okina-home .r-footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--r-gutter); padding-bottom: 32px;
  border-bottom: 1px solid #333;
}
.okina-home .r-footer__col h4 { display: none; }
.okina-home .r-footer__col ul {
  display: flex; flex-direction: column; gap: 10px;
}
.okina-home .r-footer__col a {
  font-size: 13px; color: #fff; opacity: 0.85;
}
.okina-home .r-footer__col a:hover { opacity: 1; text-decoration: underline; }
.okina-home .r-footer__sub-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.okina-home .r-footer__form {
  display: flex; border: 1px solid #fff;
}
.okina-home .r-footer__form input {
  flex: 1; background: transparent; border: none;
  padding: 10px 12px; color: #fff;
  font-size: 13px; font-family: inherit; outline: none;
}
.okina-home .r-footer__form input::placeholder { color: rgba(255,255,255,0.6); }
.okina-home .r-footer__form button {
  background: #fff; color: var(--r-text); border: none;
  padding: 10px 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.okina-home .r-footer__bottom {
  margin-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.7;
}
.okina-home .r-footer__logo {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .okina-home .r-hero__grid { grid-template-columns: 1.5fr 1fr; }
  .okina-home .r-hero__col-left { grid-column: 1; flex-direction: row; }
  .okina-home .r-hero__col-left > * { flex: 1; }
  .okina-home .r-card-feature { grid-column: 1 / -1; grid-row: 1; }
  .okina-home .r-hero__popular {
    grid-column: 2; grid-row: 2;
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--r-border); padding-top: 24px;
  }
  .okina-home .r-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .okina-home .r-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .okina-home .r-trump-grid,
  .okina-home .r-r50-grid { grid-template-columns: 1fr; }
  .okina-home .r-feature-dark__inner {
    grid-template-columns: 1fr; gap: 24px; padding: 40px 56px;
  }
  .okina-home .r-feature-dark__title { font-size: 26px; }
  .okina-home .r-r50-feature {
    grid-template-columns: 1fr; gap: 24px;
  }
  .okina-home .r-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .okina-home .r-hero__grid { grid-template-columns: 1fr; }
  .okina-home .r-hero__col-left { flex-direction: column; }
  .okina-home .r-hero__popular { grid-column: 1; grid-row: auto; }
  .okina-home .r-card-feature .r-title { font-size: 22px; }
  .okina-home .r-newsletter__inner { grid-template-columns: 1fr; }
  .okina-home .r-newsletter__title { font-size: 24px; }
  .okina-home .r-nav__inner {
    overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .okina-home .r-grid-4 { grid-template-columns: 1fr; }
  .okina-home .r-grid-3 { grid-template-columns: 1fr; }
  .okina-home .r-r50-feature__title { font-size: 24px; }
  .okina-home .r-feature-dark__inner { padding: 32px 40px; }
  .okina-home .r-feature-dark__title { font-size: 22px; }
  .okina-home .r-feature-dark__arrow { width: 32px; height: 32px; }
  .okina-home .r-feature-dark__arrow--prev { left: 8px; }
  .okina-home .r-feature-dark__arrow--next { right: 8px; }
  .okina-home .r-card-row { grid-template-columns: 90px 1fr; }
  .okina-home .r-card-row .r-thumb { width: 90px; height: 68px; }
  .okina-home .r-footer__grid { grid-template-columns: 1fr; }
  .okina-home .r-header__logo { font-size: 22px; }
}
