@charset "UTF-8";
/*
Theme Name: YOKA
Theme URI: https://yoka.co.jp/contents/
Description: ゆったりと時間を味わうための、アウトドアプロダクト
Author: twelvetone inc.
Author URI: https://yoka.co.jp/
Version: 2.0
*/

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; vertical-align: top; border: 0; }
ol, ul { list-style: none; }
a { color: #333; text-decoration: underline; }
a:hover { opacity: .75; }

/* ================================================================
   BASE
   ================================================================ */
body {
  line-height: 1.8;
  background: #f6f6f6;
  font-family: "ヒラギノ角ゴ pro W3", "Hiragino Kaku Gothic pro", 'メイリオ', Meiryo, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

/* ================================================================
   HEADER
   ================================================================ */
#header {
  width: 100%;
  text-align: center;
  background: #f6f6f6;
}
.header-inner {
  max-width: 1268px;
  margin: 0 auto;
  padding: 12px 16px 0;
}
#header-logo {
  margin-bottom: 16px;
}
#header-logo img {
  width: 220px;
  height: auto;
}

/* ── ナビゲーション ── */
#nav {
  margin: 0 -16px;
}
#nav .nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  background: #666;
  padding: 8px 0;
}
#nav .nav-list li a {
  display: block;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: bold;
  color: #ddd;
  text-decoration: none;
  line-height: 20px;
  letter-spacing: .05em;
}
#nav .nav-list li a:hover {
  color: #fff;
  opacity: 1;
}

/* ── ハンバーガーメニュー（モバイル用） ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  margin: 0 auto 12px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
  transition: .3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 10px; transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 10px; transform: rotate(-45deg);
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
#hero {
  position: relative;
  width: 100%;
  max-width: 1268px;
  margin: 0 auto 24px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
}

/* ================================================================
   DESCRIPTION / INTRO
   ================================================================ */
#description {
  max-width: 1268px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  text-align: center;
  line-height: 2.2;
}
.intro-lead {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 20px;
}

/* ================================================================
   CONTENT WRAP（メイン + サイドバー）
   ================================================================ */
.content-wrap {
  display: flex;
  gap: 32px;
  max-width: 1268px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.content-wrap--wide {
  display: block;
  max-width: 1268px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
#content {
  flex: 1;
  min-width: 0;
}

/* ================================================================
   SECTION TITLE
   ================================================================ */
.section-title {
  padding: 8px 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #000;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ================================================================
   POST GRID（記事カード一覧）
   ================================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 20px;
  column-gap: 0;
  margin-bottom: 24px;
}
.post-card {
  padding: 0 12px 20px;
  border-bottom: 1px dotted #888;
}
.post-card:nth-child(3n+1) {
  padding-left: 0;
}
.post-card:nth-child(3n) {
  padding-right: 0;
}
.post-card-link {
  text-decoration: none;
  color: #333;
  display: block;
}
.post-card-thumb {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin-bottom: 8px;
  background: #eee;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}
.post-card-link:hover .post-card-thumb img {
  opacity: .75;
}
.post-card-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 4px;
}
.post-card-excerpt {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}

/* ================================================================
   ARCHIVE HEADER
   ================================================================ */
.archive-header {
  max-width: 1268px;
  margin: 0 auto;
  padding: 24px 16px 20px;
  text-align: center;
}
.cat-name {
  font-size: 16px;
  font-weight: bold;
  color: #666;
  padding-bottom: 16px;
  padding-top: 16px;
}
.cat-description {
  font-size: 12px;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* ================================================================
   BLOG POST（single.php）
   ================================================================ */
.blog-post {
  margin-bottom: 32px;
}
.post-title {
  padding: 8px 0;
  font-size: 18px;
  color: #000;
  line-height: 1.5;
  margin-bottom: 4px;
}
.post-title a {
  text-decoration: none;
  color: #000;
}
.post-title a:hover { color: #666; }
.blog-date {
  text-align: right;
  font-size: 11px;
  color: #888;
  margin-bottom: 16px;
}
.post-featured-img {
  margin-bottom: 20px;
}
.post-body {
  font-size: 13px;
  line-height: 2;
}
.post-body p {
  margin-bottom: 1.5em;
}
.post-body img {
  max-width: 100%;
  height: auto;
}
.blog-cat {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px dotted #cacaca;
  font-size: 11px;
  text-align: right;
}

/* ================================================================
   PAGE
   ================================================================ */
.page-name {
  padding: 16px 0 20px;
  font-size: 16px;
  font-weight: bold;
  color: #666;
  text-align: center;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  text-align: center;
  margin: 24px 0 8px;
}
.pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.pagination .page-numbers li {
  display: inline;
}
.pagination .page-numbers a,
.pagination .page-numbers .current {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid #cacaca;
  background: #e7e7e7;
  color: #333;
}
.pagination .page-numbers a:hover {
  background: #f6f6f6;
  opacity: 1;
}
.pagination .page-numbers .current {
  background: #666;
  color: #fff;
  border-color: #666;
}

/* ── 前後記事ナビ ── */
.pagenation {
  margin: 24px 0;
  overflow: hidden;
}
.pagenation .previous { float: left; }
.pagenation .next { float: right; }
.pagenation a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #cacaca;
  background: #e7e7e7;
  text-decoration: none;
  font-size: 12px;
}
.pagenation a:hover {
  background: #f6f6f6;
  opacity: 1;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
#sidebar {
  width: 317px;
  flex-shrink: 0;
}
.widget {
  background: #fff;
  padding: 24px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.8;
}
.widget-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  margin-bottom: 12px;
}
.widget-link a {
  font-size: 12px;
}
.widget-youtube {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 4px;
}
.widget-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ================================================================
   FOOTER
   ================================================================ */
#footer {
  clear: both;
  width: 100%;
  padding: 24px 16px;
}
.footer-inner {
  max-width: 1268px;
  margin: 0 auto;
  text-align: center;
}
#copyrights {
  font-size: 10px;
  color: #888;
  line-height: 2;
}
.footer-rss {
  font-size: 10px;
  margin-top: 4px;
}
.footer-rss a {
  color: #888;
}

/* ================================================================
   RESPONSIVE — TABLET (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* ナビ — 常時表示（折り返し） */
  #nav .nav-list {
    flex-wrap: wrap;
    padding: 8px 0;
  }
  #nav .nav-list li a {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* グリッド → 2列 */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-card:nth-child(3n+1) { padding-left: 12px; }
  .post-card:nth-child(3n)   { padding-right: 12px; }
  .post-card:nth-child(2n+1) { padding-left: 0; }
  .post-card:nth-child(2n)   { padding-right: 0; }

  /* レイアウト → 縦積み */
  .content-wrap {
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
  #header-logo img {
    width: 160px;
  }

  /* グリッド → 1列 */
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-card,
  .post-card:nth-child(n) {
    padding-left: 0;
    padding-right: 0;
  }

  #description {
    padding: 20px 16px 28px;
    font-size: 13px;
  }
  .intro-lead {
    font-size: 14px;
  }
}
