/*
Theme Name: omisostyle
Theme URI: https://omisostyle.com
Author: Miho
Description: おみそと晩酌 — 横浜発ライフスタイルブログテーマ
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: omisostyle
*/

/* ===========================================
   カラー変数
=========================================== */
:root {
  --color-main:     #9B3A6B; /* Rose Mauve メイン */
  --color-sub1:     #8B5A7A; /* Dusty Mauve サブ */
  --color-sub2:     #7A2D5E; /* Deep Berry サブ2 */
  --color-teal:     #48D2DB; /* Teal アクセント */
  --color-teal-d:   #2FB2AA; /* Deep Teal リンク */
  --color-bg:       #F0F8FF; /* Mist 背景 */
  --color-bg2:      #E0FFFF; /* Aqua 背景2 */
  --color-cream:    #FFFAD0; /* Cream 背景3 */
  --color-blush:    #FCE4F0; /* Blush */
  --color-text:     #3A3A3A; /* 本文テキスト */
  --color-white:    #FFFFFF;

  /* フォント */
  --font-jp-heading: 'Zen Maru Gothic', sans-serif;
  --font-jp-body:    'M PLUS Rounded 1c', sans-serif;
  --font-en:         'Playfair Display', serif;
}

/* ===========================================
   リセット・ベース
=========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-jp-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-teal-d);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-main);
}

/* ===========================================
   タイポグラフィ
=========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-jp-heading);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-main);
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.2rem); }

p {
  margin-bottom: 1.4em;
  font-family: var(--font-jp-body);
  font-weight: 300;
}

/* 英語テキスト用クラス */
.en {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 0.1em;
}

/* ===========================================
   レイアウト共通
=========================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 32px 0;
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   サイトヘッダー
=========================================== */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-main);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-family: var(--font-jp-heading);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-main);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-sub1);
}

/* ナビゲーション */
.site-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--color-teal-d);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

/* ハンバーガーメニュー（モバイル） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-main);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-blush);
    padding: 16px 24px;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===========================================
   カテゴリーバー
=========================================== */
.cat-bar {
  background-color: var(--color-main);
  padding: 8px 24px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-bar::-webkit-scrollbar { display: none; }

.cat-bar a {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.cat-bar a:hover,
.cat-bar .current a {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

/* ===========================================
   ヒーローセクション
=========================================== */
.hero {
  position: relative;
  height: clamp(320px, 55vh, 420px);
  overflow: hidden;
  background-color: #0d0520;
}

.hero__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.hero__text--left  { left: 28px; max-width: 140px; }
.hero__text--right { right: 28px; max-width: 140px; text-align: right; }

.hero__en-label {
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-style: italic;
  letter-spacing: 0.18em;
  color: rgba(255, 220, 200, 0.5);
  display: block;
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--font-jp-heading);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 300;
  color: rgba(255, 235, 225, 0.92);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.hero__sub {
  font-family: var(--font-jp-body);
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(255, 200, 180, 0.5);
  line-height: 1.85;
  margin-top: 8px;
}

.hero__teal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-teal);
  display: inline-block;
  margin: 6px 0;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-style: italic;
  color: rgba(255, 200, 180, 0.35);
  letter-spacing: 0.18em;
}

/* ===========================================
   記事カード
=========================================== */
.post-card {
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid rgba(155, 58, 107, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 16px;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(155, 58, 107, 0.1);
}

.post-card__thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-blush), var(--color-bg), var(--color-bg2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumb-placeholder {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.2;
  color: var(--color-main);
}

.post-card__body {
  padding: 14px 16px 18px;
}

.post-card__cat {
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-style: italic;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  background: var(--color-blush);
  color: var(--color-main);
}

.post-card__title {
  font-family: var(--font-jp-heading);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-main);
  line-height: 1.7;
  margin-bottom: 8px;
}

.post-card__excerpt {
  font-family: var(--font-jp-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.85;
  opacity: 0.82;
  margin-bottom: 10px;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card__date {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--color-teal-d);
  letter-spacing: 0.06em;
}

.post-card__more {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--color-teal-d);
  letter-spacing: 0.08em;
  border-bottom: 0.5px solid var(--color-teal-d);
  padding-bottom: 1px;
}

.post-card__more:hover {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

/* 記事グリッド */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* ===========================================
   セクションヘッダー
=========================================== */
.section-header {
  margin-bottom: 20px;
}

.section-header__en {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-style: italic;
  color: var(--color-teal-d);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 3px;
}

.section-header__ja {
  font-family: var(--font-jp-heading);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-main);
  letter-spacing: 0.06em;
}

/* ===========================================
   サイドバー
=========================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  border-radius: 12px;
  padding: 16px;
}

.widget--white {
  background: var(--color-white);
  border: 0.5px solid rgba(155, 58, 107, 0.1);
}

.widget--aqua {
  background: var(--color-bg2);
  border: 0.5px solid rgba(72, 210, 219, 0.2);
}

.widget--cream {
  background: var(--color-cream);
  border: 0.5px solid rgba(72, 210, 219, 0.15);
}

.widget__title {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--color-main);
  border-bottom: 1.5px solid var(--color-main);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.widget__title--teal {
  color: var(--color-teal-d);
  border-bottom-color: var(--color-teal);
}

.widget__about {
  font-family: var(--font-jp-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.85;
}

.widget__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget__list li {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}

.widget__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget__list a {
  font-family: var(--font-jp-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-main);
  line-height: 1.6;
  display: block;
}

.widget__list a:hover {
  color: var(--color-sub1);
}

.widget__cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.widget__cat-name {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-main);
}

.widget__cat-count {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--color-teal);
}

/* ===========================================
   記事本文（single）
=========================================== */
.entry-header {
  margin-bottom: 28px;
}

.entry-title {
  font-family: var(--font-jp-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--color-main);
  line-height: 1.6;
  margin-bottom: 12px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-teal-d);
  letter-spacing: 0.06em;
}

.entry-thumbnail {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}

.entry-content {
  font-family: var(--font-jp-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-text);
}

.entry-content h2 {
  font-size: 1.1rem;
  margin: 2em 0 0.8em;
  padding-left: 10px;
  border-left: 3px solid var(--color-main);
}

.entry-content h3 {
  font-size: 0.95rem;
  margin: 1.6em 0 0.6em;
  color: var(--color-sub1);
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content blockquote {
  border-left: 3px solid var(--color-teal);
  padding: 12px 16px;
  margin: 1.6em 0;
  background: var(--color-bg2);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  opacity: 0.85;
}

.entry-content img {
  border-radius: 10px;
  margin: 1.6em 0;
}

/* パンくず */
.breadcrumb {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-style: italic;
  color: var(--color-teal-d);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-teal-d); }
.breadcrumb a:hover { color: var(--color-main); }
.breadcrumb__sep { opacity: 0.4; }

/* 前後記事ナビ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 0.5px solid rgba(155, 58, 107, 0.15);
  border-bottom: 0.5px solid rgba(155, 58, 107, 0.15);
}

.post-nav a {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-teal-d);
  letter-spacing: 0.06em;
}

.post-nav a:hover { color: var(--color-main); }

/* タグ・シェア */
.entry-footer {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tag-pill {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-style: italic;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--color-blush);
  color: var(--color-main);
  border: 0.5px solid rgba(155, 58, 107, 0.2);
}

.share-btn {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-style: italic;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-teal-d);
  color: var(--color-teal-d);
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--color-teal-d);
  color: var(--color-white);
}

/* ===========================================
   フッター
=========================================== */
.site-footer {
  background-color: var(--color-main);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.footer-logo {
  font-family: var(--font-jp-heading);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.07em;
}

.footer-sub {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--color-teal);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.08em;
}

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===========================================
   ページネーション
=========================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.pagination a,
.pagination span {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-style: italic;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(155, 58, 107, 0.25);
  color: var(--color-main);
  transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
}

/* ===========================================
   ユーティリティ
=========================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
