/*
Theme Name: SL-Corporate-Base
Description: STORE LABO Original Corporate Theme (Base Model)
Version: 1.0
Author: STORE LABO
*/

/* -------------------------------------------
   変数定義（ここを変えるだけで全体の雰囲気が変わります）
------------------------------------------- */
:root {
  --color-main: #222;        /* メイン黒 */
  --color-text: #444;        /* 本文グレー */
  --color-accent: #A68E65;   /* Rebirth風ゴールドベージュ */
  --color-bg-light: #F9F9F9; /* 薄い背景 */
  
  /* フォントスタック */
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", serif;
  --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  
  --site-width: 1100px;
  --easing: cubic-bezier(0.215, 0.61, 0.355, 1);
  --border-radius: 4px;
}

/* -------------------------------------------
   Base
------------------------------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 2.0;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-main);
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------
   Components
------------------------------------------- */
.btn {
  display: inline-block;
  padding: 18px 60px;
  background: #333;
  color: #fff;
  border: 1px solid #333;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: 0.4s;
  cursor: pointer;
}
.btn:hover {
  background: #fff;
  color: #333;
}

/* セクション共通 */
.section {
  padding: 120px 0; /* ゆったりした余白 */
}
.section--gray {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
}

/* -------------------------------------------
   Header
------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__logo {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: bold;
}
.header__nav ul {
  display: flex;
  gap: 30px;
}
.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* -------------------------------------------
   Main Visual (FV)
------------------------------------------- */
.fv {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fv__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.fv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fv__bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); /* 画像を少し暗く */
}
.fv__content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: var(--site-width);
  padding: 0 20px;
}
.fv__en {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.fv__title {
  font-size: 3.5rem; /* 大きく */
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.4;
}
.fv__lead {
  font-size: 1.1rem;
  margin-bottom: 50px;
  opacity: 0.9;
}

/* -------------------------------------------
   About / Service Grid
------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.card {
  background: #fff;
  transition: transform 0.4s;
}
.card:hover {
  transform: translateY(-5px);
}
.card__img {
  height: 220px;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.card:hover .card__img img {
  transform: scale(1.05);
}
.card__body {
  padding: 30px;
}
.card__title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.card__text {
  font-size: 0.95rem;
  color: #666;
}

/* -------------------------------------------
   Footer
------------------------------------------- */
.footer {
  background: var(--color-main);
  color: #fff;
  padding: 80px 0 20px;
  text-align: center;
}
.footer__logo {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  margin-bottom: 40px;
}
.footer__copy {
  font-size: 0.8rem;
  color: #888;
  margin-top: 60px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* -------------------------------------------
   Animation (Fade In)
------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--easing), transform 1.2s var(--easing);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .fv__title { font-size: 2rem; }
  .header { padding: 0 20px; height: 60px; }
  .header__nav { display: none; /* 簡易的に非表示。ハンバーガーは別途必要 */ }
}

/* -------------------------------------------
   Service Page (Rebirth Style)
------------------------------------------- */

/* 下層ページヘッダー */
.page-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}
.page-header__bg {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  z-index: 1;
}
.page-header__bg img {
  width:100%; height:100%; object-fit: cover;
}
.page-header__bg::after {
  content:''; position:absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.4);
}
.page-header__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.page-header__title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}
.page-header__en {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* イントロ（幅を狭くして読みやすく） */
.container--sm {
  max-width: 800px;
  text-align: center;
}
.service-intro {
  font-size: 1.05rem;
  line-height: 2.2;
}

/* 特徴（ジグザグ） */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 100px; /* セクション間の余白 */
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 80px;
}
/* 偶数番目は左右反転（これがジグザグの肝） */
.feat-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feat-item__img {
  flex: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feat-item__body {
  flex: 1;
  position: relative;
}
/* 背景の薄い数字 */
.feat-item__num {
  position: absolute;
  top: -60px;
  left: -20px;
  font-size: 8rem;
  font-family: var(--font-serif);
  color: #f0f0f0; /* 背景色に馴染ませる */
  z-index: -1;
  line-height: 1;
}
.feat-item__title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  display: inline-block;
}

/* 流れ（Flow） */
.flow-list {
  max-width: 800px;
  margin: 0 auto;
}
.flow-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.flow-item__num {
  background: var(--color-accent);
  color: #fff;
  padding: 5px 15px;
  font-weight: bold;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.flow-item__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-main);
}
.flow-arrow {
  text-align: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin: 10px 0;
}

/* CTAエリア */
.section--cta {
  background: var(--color-main);
  color: #fff;
  text-align: center;
}
.cta-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 20px;
}
.cta-text {
  margin-bottom: 40px;
  opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .page-header { height: 250px; }
  .page-header__title { font-size: 1.8rem; }
  
  .feat-item {
    flex-direction: column;
    gap: 30px;
  }
  .feat-item:nth-child(even) {
    flex-direction: column; /* スマホでは反転させない */
  }
  .feat-item__num {
    font-size: 5rem;
    top: -30px;
  }
  
  .flow-item {
    flex-direction: column;
    gap: 15px;
  }
}

/* -------------------------------------------
   Archive & Single Common
------------------------------------------- */
/* パンくずリスト */
.breadcrumb {
  font-size: 0.8rem;
  color: #888;
  margin-top: 30px;
  margin-bottom: 0;
}
.breadcrumb a {
  color: #888;
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 10px;
}

/* ページネーション */
.pagination {
  margin-top: 60px;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #ddd;
  color: #333;
}
.pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* -------------------------------------------
   Archive List (News List)
------------------------------------------- */
.news-list {
  border-top: 1px solid #eee;
  text-align: left;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 25px 10px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}
.news-item:hover {
  background: #fafafa;
}
.news-item__meta {
  min-width: 180px; /* 日付エリアの幅確保 */
  font-family: var(--font-sans);
}
.news-item__date {
  color: #888;
  font-size: 0.9rem;
  margin-right: 15px;
}
.news-item__cat {
  display: inline-block;
  background: #eee;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 2px;
  color: #555;
}
.news-item__title {
  font-size: 1.1rem;
  font-family: var(--font-sans); /* 見出しもゴシックで見やすく */
  font-weight: normal;
  margin: 0;
  flex: 1;
}
.news-item__arrow {
  margin-left: 20px;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
}
.news-item:hover .news-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-item__meta {
    margin-bottom: 10px;
  }
  .news-item__arrow { display: none; }
}

/* -------------------------------------------
   Single Page (Article Body)
------------------------------------------- */
.single-header {
  padding: 120px 0 40px;
  text-align: center;
  background: var(--color-bg-light);
}
.single-meta {
  margin-bottom: 20px;
  font-family: var(--font-sans);
  color: #888;
}
.single-cat {
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 15px;
}
.single-title {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 40px;
}
.single-thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* 記事ナビゲーション */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}
.post-nav a {
  color: #888;
  font-size: 0.9rem;
}
.post-nav a:hover {
  color: var(--color-accent);
}

/* -------------------------------------------
   Company Page
------------------------------------------- */
.company-list {
  border-top: 1px solid #ddd;
}
.company-row {
  display: flex;
  border-bottom: 1px solid #ddd;
}
.company-row dt {
  width: 30%;
  background: #f9f9f9;
  padding: 20px;
  font-weight: bold;
  font-family: var(--font-serif); /* 項目名は明朝体で高級感を */
}
.company-row dd {
  width: 70%;
  padding: 20px;
  margin: 0;
}

/* マップのレスポンシブ対応 */
.company-map {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.company-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company-row {
    flex-direction: column;
  }
  .company-row dt, .company-row dd {
    width: 100%;
    padding: 15px;
  }
  .company-row dt {
    background: #eee;
    padding-bottom: 5px;
  }
  .company-row dd {
    padding-top: 5px;
  }
}

/* -------------------------------------------
   Contact Form 7 Style
------------------------------------------- */
.wpcf7 {
  max-width: 700px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 40px;
  border-radius: var(--border-radius);
}

/* 入力項目のラベル */
.wpcf7 label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* 必須マーク（CSSで作る） */
.must {
  background: #E74C3C; /* 赤色 */
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: normal;
}

/* 入力フィールド共通 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px; /* フォームだけは少し角丸にすると親しみやすい */
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box; /* 枠からはみ出し防止 */
  margin-bottom: 20px;
  transition: 0.3s;
}

/* フォーカス時 */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 5px rgba(166, 142, 101, 0.3);
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0;
  padding: 15px;
  background: var(--color-main);
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0; /* テーマに合わせて四角く */
}

.wpcf7 input[type="submit"]:hover {
  background: var(--color-accent);
  opacity: 1;
}

/* エラーメッセージなどの調整 */
.wpcf7-not-valid-tip {
  font-size: 0.8rem;
  margin-top: -15px;
  margin-bottom: 15px;
}
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 15px !important;
  border: 1px solid #ccc !important;
  font-size: 0.9rem;
  text-align: center;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .wpcf7 { padding: 20px; }
}

/* -------------------------------------------
   Navigation Hover Effect (Center Line)
------------------------------------------- */
.header__nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 5px; /* 線との距離 */
}

/* 線の設定 */
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px; /* 線の太さ（細いほうが上品） */
  background-color: var(--color-accent); /* アクセントカラーを使用 */
  
  /* アニメーションのキモ */
  transform: scaleX(0); /* 最初は幅0 */
  transform-origin: center; /* 中央から伸びる */
  transition: transform 0.3s ease; /* 0.3秒かけて変化 */
}

/* ホバー時の動作 */
.header__nav a:hover::after {
  transform: scaleX(1); /* 幅100%にする */
}

/* 文字色の変化（任意：少し薄くする） */
.header__nav a:hover {
  opacity: 0.8;
}

/* -------------------------------------------
   Button Hover Effect (Float & Invert)
------------------------------------------- */
.btn {
  /* 既存のプロパティに追加/上書き */
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* バネのような少し余韻のある動き */
  box-shadow: 0 0 0 rgba(0,0,0,0); /* 初期の影 */
}

.btn:hover {
  background-color: #fff;       /* 背景を白に */
  color: var(--color-main);     /* 文字をメインカラーに */
  transform: translateY(-3px);  /* 3px上に浮く */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 影を落として浮遊感を出す */
}

/* もし「枠線」が目立ちすぎる場合は色を薄くする */
.btn:hover {
  border-color: #ccc;
}

/* -------------------------------------------
   Image Hover Effect (Zoom)
------------------------------------------- */
/* 画像を囲む枠（overflow: hidden が必須） */
.card__img,
.single-thumb,
.news-item__thumb { /* もしあれば */
  overflow: hidden; 
}

/* 画像本体 */
.card__img img,
.single-thumb img {
  transition: transform 0.6s ease; /* ゆったりと変化 */
}

/* ホバー時に1.05倍に拡大 */
.card:hover .card__img img,
.single-header:hover .single-thumb img, /* これは不要かもですが一応 */
.news-item:hover img {
  transform: scale(1.05);
}

/* -------------------------------------------
   FV Animation (Sequential Fade Up)
------------------------------------------- */

/* アニメーションの定義（下から上にスッと出る） */
@keyframes fvFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px); /* 30px下から開始 */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 各要素の初期状態とアニメーション適用 */
.fv__content .fv__en,
.fv__content .fv__title,
.fv__content .fv__lead,
.fv__content .btn {
  opacity: 0; /* 最初は消しておく */
  animation-name: fvFadeUp;
  animation-duration: 1.0s;
  animation-fill-mode: forwards; /* 終わった状態で止める */
  animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); /* 上品な緩急 */
}

/* 登場するタイミングをズラす（遅延設定） */
.fv__content .fv__en {
  animation-delay: 0.5s; /* 0.5秒後に開始 */
}
.fv__content .fv__title {
  animation-delay: 0.8s; /* 0.8秒後に開始 */
}
.fv__content .fv__lead {
  animation-delay: 1.1s; /* 1.1秒後に開始 */
}
.fv__content .btn {
  animation-delay: 1.4s; /* 1.4秒後に開始 */
}

/* -------------------------------------------
   Single Post Content Design (Rebirth Style)
   記事本文の装飾（.post-content 内にのみ適用）
------------------------------------------- */

/* ベーステキスト：左寄せを追加 */
.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  text-align: left; /* 強制的に左寄せ */
}
.post-content > * {
  margin-bottom: 2rem; /* ブロック間の余白を統一 */
}
/* 中央寄せリセットの補足 */
.post-content figure,
.post-content table {
  margin-left: 0;
  margin-right: auto;
}
.post-content figcaption {
  text-align: left;
}

/* -------------------------------------------
   見出し (H2, H3, H4)
------------------------------------------- */
/* H2：背景色＋左線（一番目立つ見出し） */
.post-content h2 {
  font-size: 1.5rem;
  background: #f8f9fa; /* 薄いグレー背景 */
  padding: 15px 20px;
  border-left: 5px solid var(--color-main); /* メインカラーの左線 */
  margin-top: 60px;
  margin-bottom: 30px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* H3：下線＋アクセント（小見出し） */
.post-content h3 {
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent); /* アクセントカラーの下線 */
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: bold;
}

/* H4：シンプルな左線 */
.post-content h4 {
  font-size: 1.1rem;
  padding-left: 15px;
  border-left: 4px solid #ccc;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* -------------------------------------------
   リスト (ul, ol) - 修正版
------------------------------------------- */
/* 共通リセット：デフォルトの・や数字を確実に消す */
.post-content ul,
.post-content ol {
  list-style: none !important;      /* 優先度高でスタイル削除 */
  list-style-type: none !important; /* 念のためtypeも削除 */
  padding: 20px 30px;
}

/* 一部のブラウザで残るマーカーを強制非表示 */
.post-content ul li::marker,
.post-content ol li::marker {
  display: none;
  content: "";
}

/* 箇条書き */
.post-content ul {
  background: #f9f9f9; /* ボックスで囲む */
  border-radius: 4px;
}
.post-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}
.post-content ul li:last-child {
  margin-bottom: 0;
}
/* チェックマーク風のアイコン */
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
}

/* 番号付きリスト */
.post-content ol {
  counter-reset: number;
  background: #fff;
  border: 1px solid #eee;
}
.post-content ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}
.post-content ol li::before {
  counter-increment: number;
  content: counter(number);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--color-main);
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 22px;
  border-radius: 50%;
}

/* -------------------------------------------
   引用 (blockquote)
------------------------------------------- */
.post-content blockquote {
  position: relative;
  padding: 30px;
  background: #f0f4f8; /* 薄い青グレー */
  border-left: none;
  color: #555;
  font-style: italic;
  margin: 40px 0;
}
/* 引用符マーク */
.post-content blockquote::before {
  content: '“';
  position: absolute;
  top: 0px;
  left: 15px;
  font-size: 60px;
  color: #ccd;
  font-family: serif;
  line-height: 1;
}

/* -------------------------------------------
   テーブル (table)
------------------------------------------- */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
}
.post-content table th,
.post-content table td {
  border: 1px solid #ddd;
  padding: 15px;
}
.post-content table th {
  background: #f7f7f7;
  font-weight: bold;
  text-align: left;
  width: 30%; /* 左列の幅を固定気味に */
  color: var(--color-main);
}
/* スマホでのテーブルスクロール対策 */
.post-content .wp-block-table {
  overflow-x: auto;
}

/* -------------------------------------------
   画像・その他
------------------------------------------- */
/* 画像 */
.post-content figure {
  margin: 0 0 30px 0;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* ほんのり影 */
}
.post-content figcaption {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 10px;
}

/* 太字の強調 */
.post-content strong,
.post-content b {
  background: linear-gradient(transparent 60%, #ffff99 60%); /* 黄色のマーカー風 */
  font-weight: bold;
  padding: 0 2px;
}

/* リンク */
.post-content a {
  color: var(--color-main);
  text-decoration: underline;
}
.post-content a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* 水平線 */
.post-content hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  margin: 60px 0;
}

/* -------------------------------------------
   Mobile Menu (Hamburger & Drawer)
------------------------------------------- */

/* デフォルトでは非表示（PC） */
.hamburger,
.sp-nav {
  display: none;
}

/* スマホ時のみ表示 */
@media (max-width: 768px) {
  
  /* --- ハンバーガーボタン --- */
  .hamburger {
    display: block;
    position: fixed;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    z-index: 200; /* 最前面 */
    cursor: pointer;
    padding: 0;
  }
  
  /* 3本線 */
  .hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    transition: all 0.4s;
    border-radius: 2px;
  }
  .hamburger span:nth-child(1) { top: 4px; }
  .hamburger span:nth-child(2) { top: 14px; }
  .hamburger span:nth-child(3) { bottom: 4px; }

  /* 開いた時（×印になるアニメーション） */
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* --- スマホ用メニュー本体（ドロワー） --- */
  .sp-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 開いた時 */
  .sp-nav.is-active {
    opacity: 1;
    visibility: visible;
  }

  /* メニューリストのデザイン */
  .sp-nav__inner ul {
    display: block; /* 縦並び */
  }
  .sp-nav__inner li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
  }
  .sp-nav__inner a {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-serif);
    color: var(--color-main);
  }
  
  /* メニューが開いた時に、中身がふわっと浮き上がる */
  .sp-nav.is-active li {
    opacity: 1;
    transform: translateY(0);
  }
  /* 時間差で出す */
  .sp-nav.is-active li:nth-child(1) { transition-delay: 0.1s; }
  .sp-nav.is-active li:nth-child(2) { transition-delay: 0.2s; }
  .sp-nav.is-active li:nth-child(3) { transition-delay: 0.3s; }
  .sp-nav.is-active li:nth-child(4) { transition-delay: 0.4s; }
  .sp-nav.is-active li:nth-child(5) { transition-delay: 0.5s; }
}