/*==================================================
  Arimatsu Modern 2025  – Bass Brown  Theme  (v0.8)
  ==================================================

  1. Base & Palette
  2. Typography
  3. Layout
  4. Navigation
  5. Hero
  6. Card System
  7. Sections (Info / Masonry / Profile / etc.)
  8. Utilities
==================================================*/

/* 1) Base & Palette  ----------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Bungee&family=Noto+Sans+JP:wght@400;700&display=swap");

:root {
  --bg: #2b1e16; /* 背景 – ダークブラウン */
  --surface: #ffffff; /* カード色 */
  --text: #eee; /* 主要文字 */

  --primary-500: #ff8a00; /* オレンジ */
  --primary-600: #ff7300;
  --secondary-500: #ffc24b;

  --radius: 18px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html {
  font-size: 16px;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

/* 2) Typography ---------------------------------- */
h1,
h1 a {
  font-family: "Bungee", "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw + 1rem, 5rem);
  font-weight: 400;
  text-align: center;
  color: var(--primary-500);
  margin: 0.5rem 0;
  text-decoration: none;
}

h2 {
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin: 0 0 0.6em;
}
/* h2::after{
  content:'';
  position:absolute;
  left:0;bottom:-10px;
  width:80px;height:4px;
  background:linear-gradient(90deg,var(--primary-600),var(--secondary-500));
  border-radius:2px;
} */

a {
  color: var(--primary-500);
  text-decoration: none;
}
a:hover {
  color: var(--secondary-500);
}

/* 3) Layout -------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-sm);
  padding-bottom: 1rem;
}
.site-main {
  padding: 140px 3% 120px;
  max-width: 1400px;
  margin-inline: auto;
}
.site-main > article {
  padding: 1.5rem;
  margin: 3.5rem 0;
}
@media (max-width: 900px) {
  .site-main {
    padding-top: 120px;
  }
}

.plain-contents {
  padding: 3rem 4rem;
}
@media (max-width: 786px) {
  .plain-contents {
    padding: 0;
  }
}
/* 4) Navigation ---------------------------------- */
.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
}
.main-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--surface);
}
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width 0.3s;
}
.main-navigation a:hover::after {
  width: 100%;
}
.current-menu-item > a,
.current_page_item > a {
  background: var(--primary-600);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: var(--radius);
}

/* ===== Mobile-Friendly Nav Wrap ===== */
@media (max-width: 768px) {
  .main-navigation {
    flex-wrap: wrap; /* 行折り返しを許可 */
    justify-content: center; /* 中央揃え */
    gap: 0.8rem; /* スマホは少しタイトに */
  }
  .main-navigation a {
    flex: 1 1 45%; /* 2列になるくらいの幅を確保 */
    text-align: center; /* ボタン内テキスト中央 */
    padding: 0.6rem 0.2rem; /* クリックしやすく */
  }
}

/* 5) Hero ---------------------------------------- */
.hero {
  position: relative;
  height: 60vh;
  background: url("../img/top.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: end;
  padding-bottom: 3rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn {
  padding: 1rem 2.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
  border-radius: 9999px;
  color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) inset,
    0 3px 6px rgba(0, 0, 0, 0.3);
}

/* 6) Card System --------------------------------- */
.card {
  background: var(--surface);
  color: #333;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-content {
  padding: 1.4rem 1.6rem;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #111;
}
.card-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 1rem;
}
.card-meta {
  font-size: 0.8rem;
  color: #777;
}

.cards-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.obs-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.obs-fade.is-in {
  opacity: 1;
  transform: none;
}

/* 7) Sections ------------------------------------ */
/* --- Information section inherits .cards-scroll --- */

/* Masonry (CSS columns) */
.masonry-wrap {
  column-count: 3;
  column-gap: 1.8rem;
}
@media (max-width: 1100px) {
  .masonry-wrap {
    column-count: 2;
  }
}
@media (max-width: 700px) {
  .masonry-wrap {
    column-count: 1;
  }
}
.masonry-wrap .card {
  margin: 0 0 1.8rem;
  break-inside: avoid;
}

/* Bass / Cable collection block */
.bass-image {
  margin-block: 2.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 20% auto;
  transition: 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.bass-image:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.bass-image figure {
  margin: 0;
}
.bass-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.bass-image .wp-block-media-text__content {
  padding: 2rem 1.8rem;
  color: #222;
}
.bass-desc {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: #111;
}
@media (max-width: 900px) {
  .bass-image {
    grid-template-columns: 100%;
  }
  .bass-image .wp-block-media-text__content {
    padding: 1.6rem;
  }
}

/* Profile section */
.profile-title {
  margin: 2.4rem 0 0.6rem;
  font: 700 1.3rem/1 "Poppins", sans-serif;
  color: var(--primary-500);
  position: relative;
}
.profile-title::after {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 50%;
  width: 0.5rem;
  height: 2px;
  background: var(--secondary-500);
  transform: translateY(-50%);
}
.profile-value {
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.profile-aisatsu {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 0 0 2.4rem;
  text-align: justify;
  text-indent: 1em;
}
.arimatsu-image figure {
  margin: 0 1.6rem 1.2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.has-drop-cap::first-letter {
  font-size: 3.6rem;
  line-height: 1;
  margin-right: 0.2rem;
  float: left;
}

/* Footer band */
.footer-band {
  background: #1f1610;
  padding: 3rem 0;
  margin-top: 4rem;
}
.footer-widgets {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-widgets .card {
  flex: 1 1 280px;
  max-width: 420px;
}

/* 8) Utilities ----------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.45);
  transition: filter 0.25s;
}
.btn:hover {
  filter: brightness(1.1);
}

/* =======================================
   Partners Collection – Visual Polish
   ======================================= */

/* ① セクション見出し & 仕切り線をスマートに */
.entry-content h4,         /* ベースコレクション など */
.entry-content .pertners-title {
  font: 700 1.4rem/1 "Poppins", sans-serif;
  color: var(--primary-500);
  margin: 2.8rem 0 0.8rem;
  position: relative;
}
.entry-content h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
}

/* Gutenberg の <hr> を細め 1 本線に */
.entry-content hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 2rem 0;
}

/* ② ベース／ケーブルのカードを広げて見やすく */
.bass-image {
  grid-template-columns: 22% 1fr; /* 写真22% → 説明78% に拡張 */
  max-width: 100%;
  margin-inline: auto; /* 中央寄せ */
}
.bass-image img {
  aspect-ratio: 4/5;
} /* ちょい縦長へ変更 */

/* ③ ドロップキャップの "Ｌ" を小さく、色も地色になじませる */
.bass-image .has-drop-cap::first-letter {
  font-size: 2.8rem; /* 3.6rem → 2.8rem */
  color: #444; /* ダークグレーで控えめに */
  margin-right: 0.15rem;
  font-weight: 700;
}

/* ④ カード陰影を軽く（今よりソフト）*/
.bass-image,
.entry-content .card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.bass-image:hover,
.entry-content .card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

/* ⑤ モバイルでは縦積み + 余白やさしく */
@media (max-width: 900px) {
  .bass-image {
    grid-template-columns: 100%;
  }
  .bass-image img {
    aspect-ratio: 3/4;
  }
  .bass-image .wp-block-media-text__content {
    padding: 1.4rem;
  }
}

/* === Score List – pt-cv カード調整 ========================= */
#pt-cv-view-jp99hfzv > .pt-cv-page {
  grid-gap: 1.5rem !important;
}

/* グリッドを 3 → 4 列に (1400px〜) */
@media (min-width: 1400px) {
  #pt-cv-view-jp99hfzv > .pt-cv-page {
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 18px;
  }
}

/* サムネ枠をカード化 */
#pt-cv-view-jp99hfzv .pt-cv-content-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
#pt-cv-view-jp99hfzv .pt-cv-content-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* サムネ画像比率を 4:5 に統一 */
#pt-cv-view-jp99hfzv .pt-cv-thumbnail {
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* タイトル帯をオレンジに */
#pt-cv-view-jp99hfzv .pt-cv-title a {
  background: var(--primary-500);
  color: #333;
  padding: 0.4rem 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  box-shadow: none;
}
#pt-cv-view-jp99hfzv .pt-cv-title a:hover {
  background: var(--primary-600);
}

/* 抜粋 & メタ文字色を落ち着かせる */
#pt-cv-view-jp99hfzv .pt-cv-content {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}
#pt-cv-view-jp99hfzv .pt-cv-meta-fields {
  color: #777;
  font-size: 0.8rem;
}

/* "続きを読む" ボタンをテーマ色で */
#pt-cv-view-jp99hfzv .pt-cv-readmore {
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
  border: none;
  box-shadow: 0 3px 8px rgba(255, 138, 0, 0.35);
}
#pt-cv-view-jp99hfzv .pt-cv-readmore:hover {
  filter: brightness(1.1);
}

/* タグクラウドを複数行にラップ */
.list-tag {
  display: flex;
  flex-wrap: wrap; /* ← wrap させるだけ！ */
  gap: 0.6rem 0.8rem; /* 行内・縦の余白 */
  padding: 0.8rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: visible; /* スクロール不要に */
}

/* タグを丸チップ化 */
.list-tag a {
  font-size: 0.9rem;
  white-space: nowrap;
  color: #111;
}
.list-tag a:hover {
  color: var(--secondary-500);
}

/* .list-tag {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.list-tag.show-all {
  max-height: none;
}
.show-more-btn {
  display: block;
  margin: 0.5rem auto 1rem;
  font-size: 0.85rem;
  color: var(--primary-500);
  cursor: pointer;
} */

/* === Simple Orange Pagination ================================= */
.pt-cv-pagination-wrapper {
  margin: 2.4rem 0 0;
  text-align: center;
}

.pt-cv-pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 共通リンク */
.pt-cv-pagination a {
  display: inline-block;
  min-width: 32px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  color: var(--primary-500);
  border: 0;
}

/* ホバー時は枠線だけオレンジ */
.pt-cv-pagination a:hover {
  border-color: var(--primary-500) !important;
}

/* アクティブページ → 背景なし・下線強調 */
.pt-cv-pagination li.active a {
  cursor: default;
  color: var(--primary-600) !;
  border-bottom: 3px solid var(--primary-600) !important;
  font-weight: 700;
}

/* ===== プロフィール本文 – 出版社風タイポグラフィ ===== */
.container {
  max-width: 980px; /* 行長を約65字〜70字に */
  margin-inline: auto;
  padding: 0 1.2rem; /* 両サイドにゆとり */
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8; /* 行間を広めにして呼吸感 */
}

/* 段落のマージン */
.entry-content p {
  margin: 0 0 1.4em;
}

/* 見出しの余白強化 */
.entry-content .entry-header + .entry-content h2,
.entry-content h2 {
  margin: 2.4rem 0 1rem;
}

/* 箇条書きはインデント＋ドット装飾 */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em 1.4em;
}
.entry-content ul li {
  position: relative;
  list-style: none;
}
.entry-content ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--primary-500);
}

/* 強調テキスト */
.entry-content em,
.entry-content strong {
  color: var(--secondary-500);
  font-weight: 700;
}

/* ブロック引用 */
.entry-content blockquote {
  border-left: 4px solid var(--secondary-500);
  padding: 0.8em 1.2em;
  margin: 1.6em 0;
  background: rgba(255, 255, 255, 0.05);
  font-style: italic;
}

/* 画像は中央寄せ＋キャプション風 */
.entry-content .wp-block-image {
  text-align: center;
  margin: 1.6em 0;
}
.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ドロップキャップ */
.entry-content .has-drop-cap::first-letter {
  font-size: 3.2rem;
  line-height: 1;
  float: left;
  margin: 0 0.6rem 0 0;
  color: var(--primary-500);
  font-family: "Bungee", sans-serif;
}

/* リンクの装飾 */
.entry-content a {
  color: var(--primary-500);
  text-decoration: underline;
}
.entry-content a:hover {
  color: var(--primary-600);
  text-decoration: none;
}

/* ---------- Additional CSS for Hamburger Menu (to main.css) ---------- */

/* ハンバーガーボタン */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--surface);
  border-radius: 1px;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
  position: relative;
}
.nav-toggle .hamburger::before {
  top: -6px;
  position: absolute;
}
.nav-toggle .hamburger::after {
  top: 6px;
  position: absolute;
}
/* メニュー開時アニメ */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* メニューのトグル */
.main-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
  transition: max-height 0.4s ease;
}
.main-navigation.toggled {
  flex-direction: column;
  max-height: 500px;
}
.main-navigation {
  max-height: 0;
  overflow: hidden;
}
@media (min-width: 769px) {
  .main-navigation {
    max-height: none;
    overflow: visible;
    flex-direction: row;
  }
}

/* ---------- Topic List Stylish CSS ---------- */
.pt-cv-blockgrid.list1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90%, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.pt-cv-blockgrid.list1 .pt-cv-content-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 786px) {
  .pt-cv-blockgrid.list1 .pt-cv-content-item {
    flex-wrap: wrap-reverse;
  }
  .pt-cv-blockgrid.list1 .pt-cv-thumb-wrapper {
    flex: unset !important;
    margin: 0 !important;
  }
}

.pt-cv-blockgrid.list1 .pt-cv-content-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pt-cv-blockgrid.list1 .pt-cv-thumb-wrapper {
  flex: 0 0 260px;
  margin-right: 1rem;
}
.pt-cv-blockgrid.list1 .pt-cv-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.pt-cv-blockgrid.list1 .pt-cv-colwrap {
  padding: 1rem 1.5rem;
  flex: 1;
}
.pt-cv-blockgrid.list1 .pt-cv-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  color: #111;
}
.pt-cv-blockgrid.list1 .pt-cv-taxoterm {
  margin-bottom: 0.5rem;
}
.pt-cv-blockgrid.list1 .pt-cv-taxoterm .pt-cv-tax-news,
.pt-cv-blockgrid.list1 .pt-cv-taxoterm .pt-cv-tax-blog,
.pt-cv-blockgrid.list1 .pt-cv-taxoterm .pt-cv-tax-score {
  font-size: 0.75rem;
  padding: 0.2em 0.5em;
  border-radius: 9999px;
  background: var(--secondary-500);
  color: #fff;
  margin-right: 0.4rem;
}
.pt-cv-blockgrid.list1 .pt-cv-content {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.pt-cv-blockgrid.list1 .pt-cv-readmore {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 0.9rem;
  background: var(--primary-600);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.pt-cv-blockgrid.list1 .pt-cv-readmore:hover {
  background: var(--primary-500);
}
