@charset "utf-8";

/* CSS目次(検索用) */
/* 
common
header.php
front-page.php
category-note.php
single.php
page-contact.php
footer.php 
*/


/* ------- common ------- */
.h-margin {
  height: 50px;
  background: #f5f8fb;
}

.s-margin {
  height: 16px;
}

.m-margin {
  height: 32px;
}

.l-margin {
  height: 64px;
}

.btn-grey {
  background-color: #F4F4F4;
  border-radius: 3px;
  padding: 12px;
}

.btn-pink {
  color: white;
  background-color: #899fff;
}

.btn-basic {
  width: 250px;
}

.btn-basic a {
  background: #eee;
  border-radius: 3px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 280px;
  padding: 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.btn-basic a:after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  right: 2rem;
  font-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.3s;
  width: 6px;
  height: 6px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.btn-basic a:hover {
  background: #899fff;
  color: #FFF;
}

.btn-basic a:hover:after {
  right: 1.4rem;
}

.btn-back {
  width: 250px;
}

.btn-back a {
  background: #eee;
  border-radius: 3px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 280px;
  padding: 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.white-back a {
  background: white;

}

.btn-back a::before {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 2rem;
  font-size: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.3s;
  width: 6px;
  height: 6px;
  border-bottom: solid 2px currentColor;
  border-left: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.btn-back a:hover {
  background: #899fff;
  color: #FFF;
}

.btn-back a:hover::before {
  left: 1.4rem;
}

.flex {
  display: flex;
}

/* レスポンシブ制御用wrap(基本はどのページもこれを使う) */
.common-wrap {
  max-width: 1000px;
  margin: 0 auto;
}




/* スクロールCSS */
.fade-in {
  opacity: 0;
  transition-duration: 500ms;
  transition-property: opacity, transform;
}

.fade-in-up {
  transform: translate(0, 50px);
}

.fade-in-down {
  transform: translate(0, -50px);
}

.fade-in-left {
  transform: translate(-50px, 0);
}

.fade-in-right {
  transform: translate(50px, 0);
}

.scroll-in {
  opacity: 1;
  transform: translate(0, 0);
}


.more-bottom-btn {
  margin-top: 40px;

}

/* もっと見るボタン */
.more-bottom-btn a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 240px;
  padding: 8px 24px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 0;
  border-left: solid 5px #899fff;
  border-radius: 4px;
}

.base-btn-back a {
  background: #ffffff;
}


.more-bottom-btn a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  display: block;
  background: #899fff;
  transition: .3s;
  left: 0;
}

.more-bottom-btn a:hover {
  color: #FFF;
}

.more-bottom-btn a:hover:before {
  width: 100%;
  z-index: -1;
}

/* ===== Back to top button ===== */
.to-top-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 9999px;
  background: #0c1d67;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  cursor: pointer;
  z-index: 1100;
  /* header(1000)より上 */
  display: grid;
  place-items: center;

  opacity: 0;
  transform: translateY(8px) scale(.92);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}

.to-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

/* シンプル矢印（SVGの代わりにCSSで） */
.to-top-btn::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg) translateY(2px);
  position: relative;
  left: -3px;
}





/* header.php */
.header {
  position: fixed;
  top: 0;
  background-color: rgb(255, 255, 255);
  width: 100vw;
  height: 50px;
  z-index: 1000;
  box-shadow: 0px 10px 10px -12px rgba(192, 192, 192, 0.5);
  /* フェードアウト用 */
  transition: opacity .25s ease, transform .25s ease;
  will-change: opacity, transform;
}

/* フェードアウト用 */
.header.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.header-inner {
  display: flex;
  /* メニューができたら戻す */
  /* justify-content: space-between; */
  justify-content: center;
  align-items: center;
  padding: 0px 16px;
}

.header-logo img {
  width: 200px;
  object-fit: contain;
  padding-top: 3px;

}

@media all and (max-width: 900px) {
  .header-logo img {
    padding-top: 8px;
    width: 160px;
  }
}

/* ハンバーガーのCSS */
.header-hamburger {
  width: 28px;
  height: 30px;
}

.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
}

.menu-btn {
  height: 100%;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: start;
  align-items: center;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  content: '';
  display: block;
  height: 2px;
  width: 24px;
  border-radius: 2px;
  background-color: #484848;
  position: absolute;
  transition: all .5s ease;

}

.menu-btn span:before {
  bottom: 8px;
}

.menu-btn span:after {
  top: 8px;
}

.menu-btn p {
  font-size: 1rem;
  margin-left: 32px;
}

/* ハンバーガーが押された時の動き */
.menu-btn.active span {
  background-color: rgba(255, 255, 255, 0);
  /*メニューオープン時は真ん中の線を透明にする*/
}

.menu-btn.active span::before {
  bottom: 0;
  transform: rotate(45deg);
}

.menu-btn.active span::after {
  top: 0;
  transform: rotate(-45deg);
}





/* メニュー内容 */
.menu-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  width: 100%;
  transition: all .5s ease;
}

.menu-content.active {
  display: block !important;
  width: 100%;
  background-color: rgb(255, 255, 255);
  padding: 4px 24px 24px 24px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  transition: all .5s ease;
}


.menu-list {
  width: fit-content;
}

.menu-list li a {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
}

/* メニューのアイコン */

.menu-icon {
  font-size: 1.5rem;
  font-weight: 100;
  margin-bottom: 3px;
}

.menu-icon::after {
  content: '\f274';
  font-family: 'Font Awesome 5 Free';
  font-weight: 300;
}

.question-icon::after {
  content: '\f059';
  font-family: 'Font Awesome 5 Free';
  font-weight: 300;
}

.contact-icon::after {
  content: '\f0e0';
  font-family: 'Font Awesome 5 Free';
  font-weight: 300;
}

.home-icon::after {
  content: '\f359';
  font-family: 'Font Awesome 5 Free';
  font-weight: 300;
}



/*------------------------------------------
  Responsive Grid Media Queries - 1366(1280), 1024, 768, 480
   1366-1024   - デスクトップ（デフォルトのグリッド）
   (1280ではなくてワイドに1366まで対応)
   1024-768    - タブレット横長
   768-480     - タブレット縦長
   480-less    - スマホ
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1366px) {}

@media all and (min-width: 768px) and (max-width: 1024px) {}

@media all and (min-width: 480px) and (max-width: 768px) {}

@media all and (max-width: 480px) {}



/* ------- front-page.php ------- */

.article-sections {
  background: #f5f8fb;

}

.article-section {
  /* レーンとレーン間隔 */
  margin-bottom: 64px;
}

.article-section .common-wrap {
  /* 見出し＋レーンの余白 */
  padding: 24px 16px 28px;
}

.article-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #333;
  letter-spacing: 0.02em;
  padding-left: 4px;
}

/* 横スクロールの行 */
.article-row-scroll {
  display: grid;
  grid-auto-flow: column;
  /* grid-auto-columns: minmax(280px, 1fr); */
  /* 全カード同じ幅 */
  grid-auto-columns: 280px;

  /* 各カードの幅 */
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 10px 6px 14px;
}

/* スクロールバー控えめ（WebKitのみ） */
.article-row-scroll::-webkit-scrollbar {
  height: 8px;
}

.article-row-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

/* カード本体 */
.article-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  /* min-width: 280px; */
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}


.article-card:hover {
  transform: translateY(-1px);
  border-color: #e6e6e6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

@media (max-width: 480px) {
  .article-row-scroll {
    grid-auto-columns: 85%;
    gap: 12px;
    padding-left: 4px;
  }

  .article-card {
    min-width: 78%;
  }
}


/* 最上部タグバー */
.article-tag-bar {
  width: 100%;
  background: #fff;
  color: #5f5f5f;
  min-height: 30px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.article-tag-bar .article-tag-text {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: 0 8px 6px 8px;
  /* 下線ぶんだけ下に余白を少し */
  display: inline-block;
  border-bottom: none;
}

/* 下線バー（角丸） */
.article-tag-bar .article-tag-text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  /* デフォルト色 */
  background: #98a2b3;
  border-radius: 999px;
}

.article-tag-bar.is-manga .article-tag-text::after {
  background: #A86464;
}

.article-tag-bar.is-novel .article-tag-text::after {
  background: #7A6C97;
}

.article-tag-bar.is-zakki .article-tag-text::after {
  background: #5F8571;
}

/* （任意）ホバー時に少し濃くするなら */
.article-card:hover .article-tag-bar.is-manga .article-tag-text::after {
  background: #8F5555;
}

.article-card:hover .article-tag-bar.is-novel .article-tag-text::after {
  background: #6A5C85;
}

.article-card:hover .article-tag-bar.is-zakki .article-tag-text::after {
  background: #4F6E5E;
}

/* （任意）ホバー時は少しだけ強調 */
.article-card:hover .article-tag-bar .article-tag-text {
  filter: brightness(0.9);
  text-decoration: none;
}


/* サムネイル */
.article-thumb-wrap {
  border-radius: 12px;
  padding: 48px 20px 2px 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .article-card 内に .article-tag-bar がある場合だけ上パディングを詰める */
.article-card:has(.article-tag-bar) .article-thumb-wrap {
  padding-top: 12px;
  /* ←好みで 8〜16px 程度に */
}

.article-thumb-wrap img {
  width: 68%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}



.article-card-body {
  padding: 12px 12px 12px 12px;
}





/* タイトル（2行で省略） */
.clamp-2 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 2px 0 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* サブネ直下のサブタイトル行 */
.article-subtitle-bar {
  margin-bottom: 6px;
}

.article-subtitle {
  display: block;
  font-size: 0.55rem;
  line-height: 1.5;
  color: #666;
  text-align: center;

}

/* モバイルはさらに少しだけ小さく（任意） */
@media (max-width: 480px) {
  .article-subtitle {
    font-size: 0.8rem;
  }
}


.article-title-wrap {
  text-align: center;
  /* “枠”を中央寄せ */
}

.article-title {
  display: inline-block;
  /* 中身は shrink-to-fit で中央に寄る */
  text-align: left;
  /* 折り返しは左から */
  max-width: 28ch;
  /* 2行に収まる幅を適当に（調整可） */
  margin: 0 0 6px;
  /* 既存のマージンを維持 */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* モバイルは少し広めに */
@media (max-width: 480px) {
  .article-title {
    max-width: 28ch;
  }
}




/* 記事カード全体をクリック可能にするための最低限 */
.article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-link:focus-visible {
  outline: 2px solid #899fff;
  outline-offset: 2px;
}

/* サムネ画像が親をはみ出さないように */
.article-thumbnail img,
.article-other-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}


/* ===== サブタイトル：サムネ直下に固定高のスロット ===== */
.article-subtitle-slot {
  padding: 8px 12px 0;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  min-height: 2.5rem;
}


.article-subtitle {
  display: block;
  font-size: 0.55rem;
  line-height: 1.55;
  color: #666;
  max-width: 24ch;
  text-align: left;
  margin: 0 auto;
}

/* ===== 作成日・更新日（タイトル上・さらに小さく） ===== */
.article-meta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #8a8f98;
  font-size: 0.66rem;
  line-height: 1;
  margin: 0 12px 6px;
}


.article-meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.article-meta-modal {
  color: #888;
  margin: 16px 0px 0px 8px;
  font-size: 0.66rem;
  line-height: 1;
}

/* ===== 雑記：シンプルカードグリッド ===== */
.article-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding: 10px 6px 14px;
}

.card-simple {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card-simple:hover {
  transform: translateY(-1px);
  border-color: #e6e6e6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.card-thumb {
  aspect-ratio: 16 / 9;
  background: #f7f8fa;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画像はトリミングしてでも面を埋める */
  display: block;
}

.card-body {
  padding: 12px 12px 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* 2行で省略 */
  line-clamp: 2;
  overflow: hidden;
}

.card-date {
  font-size: .68rem;
  color: #8a8f98;
  line-height: 1.2;
}



/* モバイル微調整（任意） */
@media (max-width: 480px) {
  .article-subtitle {
    font-size: 0.8rem;
  }

  .article-meta-row {
    gap: 12px;
    font-size: 0.65rem;
  }
}

@media all and (min-width: 1024px) and (max-width: 1366px) {}

@media all and (min-width: 768px) and (max-width: 1024px) {}

@media all and (min-width: 480px) and (max-width: 768px) {}

@media all and (max-width: 480px) {}




/* ------- category-note.php ------- */
/* ===== 雑記(category-note.php専用)：左サムネ／右テキストの横並び ===== */
.note-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* 一覧自体は縦に積む */
  gap: 16px;
  padding: 10px 6px 14px;
}

.note-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  /* ← サムネ小さめ / テキスト広め */
  gap: 12px;
  align-items: start;
  /* ← これが重要：縦に伸ばさない */
  padding: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: box-shadow .2s ease, transform .05s ease;
}

.note-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

/* 左サムネ（横長 16:9 固定） */
.note-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  align-self: start;
  /* ← 行の高さに合わせて伸びない */

}

.note-card__thumb img {
  width: 100%;
  height: auto;
  /* ← ここを auto に */
  object-fit: cover;
  display: block;
}

/* 右テキスト */
.note-card__body {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

/* 文字サイズもモバイル基準 → clamp で拡張 */
.note-card__title {
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.note-card__date {
  font-size: clamp(9px, 1.4vw, 12px);
  color: #666;
}

.note-card__excerpt {
  font-size: clamp(11px, 1.8vw, 14px);
  line-height: 1.6;
  color: #333;
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}


/* タブレット相当（640px～） */
@media (min-width: 640px) {
  .note-card {
    grid-template-columns: 200px 1fr;
    /* サムネ少し拡大 */
    gap: 14px;
    padding: 12px;
  }
}

/* デスクトップ小～中（960px～） */
@media (min-width: 960px) {
  .note-card {
    grid-template-columns: 200px 1fr;
    /* さらに拡大 */
    gap: 16px;
    padding: 14px;
  }
}

/* デスクトップ広め（1200px～）—必要なら */
@media (min-width: 1200px) {
  .note-card {
    grid-template-columns: 220px 1fr;
  }
}

/* （任意）スマホで縦積みにしたい場合は以下を有効化 */
@media (max-width: 420px) {
  .note-card {
    grid-template-columns: 1fr;
  }
}









/* ------- single.php ------- */
/* 記事詳細の読みやすさ強化（モバイルファースト） */
.single-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* カテゴリタグ */
.article-upper {
  display: flex;
  flex-wrap: wrap;
  margin: 24px;
  /* タグ群の下の余白（サムネとの距離） */
}

/* サムネイル（小さめ・中央） */
.article-thumbnail {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
}

.article-thumb-img {
  display: block;
  width: 100%;
  max-width: 200px;
  /* サムネ「小さめ」 */
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

/* 日付（絵文字なし・ドット表記・中央） */
.article-dates {
  margin: 10px auto 6px;
  font-size: .88rem;
  line-height: 1.4;
  color: #666;
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: 48px;
}

/* タイトル */
.article-title-single {
  margin: 10px 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: .01em;
  font-weight: 800;
}

/* サブタイトル：タイトル直下に鉤括弧で表示 */
.article-subtitle--quoted {
  margin: 6px auto 18px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.6;
  color: #898989;
  letter-spacing: .02em;
  opacity: .95;
  padding-left: 4px;
}

/* -------------------------
   記事本文のタイポ設定（single）
   ------------------------- */
.article-contents-single {
  /* 可変タイポの基準値 */
  --fs-body: clamp(14px, 1.06rem, 18px);
  --lh-body: 1.9;
  /* 行間：広め */
  --space-para: 1.3em;
  /* 段落間：やや広め */
  --space-block: 1.8em;
  /* ブロック要素間：さらに広め */

  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: .02em;
  /* 読みやすく控えめに（※.12em は広すぎ） */
}

/* 段落・リスト・引用・表・コード：下余白を統一 */
.article-contents-single :where(p, ul, ol, blockquote, pre, table) {
  margin: 0 0 var(--space-para);
}

/* ブロック間は少し広げる（引用や表・preなど） */
.article-contents-single :where(blockquote, pre, table) {
  margin-bottom: var(--space-block);
}

/* 画像：上下に呼吸、中央寄せ */
.article-contents-single img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.4em auto;
}

/* リスト：字下げと余白 */
.article-contents-single ul,
.article-contents-single ol {
  padding-left: 1.4em;
  /* 左インデント */
}

.article-contents-single ul li {
  list-style: disc;
  margin: .4em 0;
}

.article-contents-single ol li {
  margin: .4em 0;
}

/* 見出し：上にしっかり距離 → 下はやや控えめ */
.article-contents-single h1,
.article-contents-single h2,
.article-contents-single h3,
.article-contents-single h4 {
  line-height: 1.35;
  letter-spacing: .013em;
  margin: 2.2em 0 .8em;
  /* 上に広め、下は控えめ */
}

/* サイズ（お好みで微調整可） */
.article-contents-single h1 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.article-contents-single h2 {
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
}

.article-contents-single h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
}

/* 直後がすぐ別見出し・区切りの場合の詰まり防止 */
.article-contents-single :is(h1, h2, h3, h4)+ :is(h2, h3, h4) {
  margin-top: 1.2em;
}

/* 最後の余白ダブり防止 */
.article-contents-single> :last-child {
  margin-bottom: 0 !important;
}

/* モバイルで気持ち詰める（読み戻しを軽く） */
@media (max-width: 480px) {
  .article-contents-single {
    --lh-body: 1.85;
    --space-para: 1.15em;
    --space-block: 1.3em;
  }
}

/* 戻るボタン：中央寄せ */
.under-btnbox {
  display: flex;
  justify-content: center;
  /* 中央寄せ */
  align-items: center;
}


/* 旧・絵文字付き日付UIの打ち消し（もし残っていた場合に備え） */
.article-lower {
  display: none;
}

/* 使わない場合は非表示に */
.article-data,
.article-data::before,
.article-data::after {
  content: none !important;
}



/* ------- page-contact.php ------- */

.contact-wrap {
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
}

@media screen and (max-width: 480px) {
  .contact-wrap {
    margin-top: 40px;
  }
}

.contact-item {
  padding: 24px 0;
  width: 100%;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 780px) {
  .contact-item {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
  }
}

.contact-item-label {
  width: 100%;
  max-width: 248px;
  letter-spacing: 0.05em;
  font-weight: bold;
  font-size: 1rem;
}

@media screen and (max-width: 780px) {
  .contact-item-label {
    max-width: inherit;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
  }
}

.contact-item-label.isMsg {
  margin-top: 8px;
  margin-bottom: auto;
}

@media screen and (max-width: 780px) {
  .contact-item-label.isMsg {
    margin-top: 0;
  }
}

.contact-item-label-required {
  border-radius: 6px;
  margin-right: 8px;
  padding: 4px 0;
  width: 48px;
  display: inline-block;
  text-align: center;
  background: #899fff;
  color: #fff;
  font-size: 0.8rem;
}

@media screen and (max-width: 780px) {
  .contact-item-label-required {
    border-radius: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    width: 32px;
    font-size: 10px;
  }
}

.contact-item-input {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 48px;
  flex: 1;
  width: 100%;
  max-width: 410px;
  background: rgb(245, 245, 245);
  font-size: 18px;
}

@media screen and (max-width: 780px) {
  .contact-item-input {
    margin-left: 0;
    margin-top: 18px;
    height: 40px;
    flex: inherit;
    font-size: 15px;
  }
}

.contact-item-textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 216px;
  flex: 1;
  width: 100%;
  max-width: 410px;
  background: rgb(245, 245, 245);
  font-size: 18px;
}

@media screen and (max-width: 780px) {
  .contact-item-textarea {
    margin-top: 18px;
    margin-left: 0;
    height: 200px;
    flex: inherit;
    font-size: 15px;
  }
}

.mw_wp_form [type=submit] {
  background: #eee;
  border-radius: 3px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 220px;
  padding: 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.mw_wp_form [type=submit] :before {
  content: "\f201";
  position: relative;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
  color: #999;
}

.mw_wp_form [type=submit] :hover {
  background: #313131;
  color: #FFF;
}




/* Footer.php */
#footer {
  width: 100%;
  padding: 80px 30px;
  text-align: center;
}

.footer-sub {
  font-size: 12px;
}

.footer-logo img {
  width: 200px;
  object-fit: contain;
}

.footer-list {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 40px;

}

.footer-list p a {
  font-size: 14px;
  /* color: #F5EFEF; */
  transition: .2s ease-in-out;

}

.footer-list p a:hover {
  color: #899fff;
  transition: .2s ease-in-out;

}

.footer-copy {
  margin-top: 64px;
  font-size: 10px;
  text-align: center;
  /* color: #F5EFEF; */
}

@media all and (min-width: 1024px) and (max-width: 1366px) {}

@media all and (min-width: 768px) and (max-width: 1024px) {}

@media all and (min-width: 480px) and (max-width: 768px) {}

@media all and (max-width: 480px) {}


/* ---- Policy page ---- */
.policy-wrap {
  padding: 0 20px;
}


.header-box {
  margin: 16px 0 8px;
  /* タイトル周りの余白を少しだけ */
  text-align: center;
}

.header-box-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.header-box-sub {
  margin-top: 6px;
  font-size: .9rem;
  color: #6b7280;
  /* 落ち着いたグレー */
}

/* 本文ブロック */
.note-page {
  max-width: 820px;
  margin: 20px auto 80px;
  /* 上少し/下ゆったり */
  font-size: 16px;
  line-height: 1.9;
  /* 読みやすい行間 */
  color: #111827;
  /* 文字色を少し濃く */
  word-break: normal;
}

/* セクション見出し：左線＋上下余白 */
.note-page h2 {
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #e5e7eb;
  font-size: 1.125rem;
  /* 大きすぎない見出し */
  line-height: 1.5;
  scroll-margin-top: 100px;
  /* 固定ヘッダー対策（アンカー時） */
}

/* 段落・リスト等の縦リズム */
.note-page p,
.note-page ul,
.note-page ol,
.note-page blockquote {
  margin: 10px 0;
}

/* セクション間は少し広めに */
.note-page h2+p {
  margin-top: 8px;
}

.note-page>*+h2 {
  margin-top: 36px;
}

/* リンクは下線を控えめに */
.note-page a {
  text-decoration: none;
  border-bottom: 1px solid #d1d5db;
}

.note-page a:hover {
  border-bottom-color: #9ca3af;
}

/* 免責・著作権は囲み風（任意） */
.note-page .notice {
  margin: 18px 0;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
}