/*
Theme Name: おひさまワークステーマ
Theme URI: https://ohisamaweb.com/
Author: おひさまワークス
Author URI: https://ohisamaweb.com/
Description: おひさまワークスのポートフォリオサイト用のオリジナルテーマです。
Version: 1.0.2
Text Domain: ohisamaworks-theme
Domain Path: /languages
*/

/* ==========================================================================
   //  style.css目次
   // ======================================================================= */

/* --- 01. 変数定義 / 基本設定 
/* --- 02. 共通パーツの設定
/* --- 03. ヘッダーの設定
/* --- 04. フロントページ / メインビジュアルの設定
/* --- 05. フロントページ / 制作実績の設定
/* --- 06. フロントページ / できること・強みの設定
/* --- 07. フロントページ / 制作の流れの設定
/* --- 08. フロントページ / 自己紹介の設定
/* --- 09. フロントページ / お問い合わせの設定
/* --- 10. 制作実績 / 制作実績ページについての共通設定
/* --- 11. 制作実績 / 制作実績一覧ページついての設定
/* --- 12.制作実績 / 制作実績個別ページについての設定
/* --- 13. 上に戻るボタンについての設定
/* --- 14. フッターの設定

/* ==========================================================================
*/

/* ==========================================================================
   01.変数定義 / 基本設定
   ========================================================================== */
/* ====== wordpress用リセットCSS ====== */

/* ボックスモデルの定義 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 画像が親要素を突き抜けないようにする */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* フォーム要素のフォントを継承させる */
input,
button,
textarea,
select {
  font: inherit;
}

/* リストの点を消す */
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* リンクの線を消す */
a {
  text-decoration: none;
  color: inherit;
}

/* ====== 変数定義(varで呼び出し）====== */
:root {
  /* --- 色に関する設定 --- */
  --main-color: #f7b977; /* アプリコット */
  --main-color-hover: #f9c58e;
  --sub-color: #f2a0a1; /* ピンク色 */
  --sub-color-hover: #f5b5b6; /* 薄いピンク色 */
  --accent-color: #95c8d8; /* スモーキーブルー */
  --accent-color-hover: #a5c8d2; /* 薄いスモーキーブルー */
  --text-color: #5d4037; /* 濃いブラウン */
  --text-sub-color: #666; /* 薄いグレー */
  --white-color: #fff; /* 白色 */
  --sage-green-color: #adc986; /* セージグリーン */
  --lavender-color: #c9a9d6; /* ラベンダー色 */
  --lavender-color-hover: #cab5d3; /* 薄いラベンダー色 */
  --gray-color: #eee; /* 薄いグレー */
  --light-gray-color: #f5f5f5; /* 白に近い薄いグレー */
  --light-green-color: #ebf6ec; /* 薄い緑色 */
  --cream-color: #fffaf0; /* クリーム色 */
  --aliceblue-color: #f0f8ff; /* 爽やかな水色 */
  --sky-blue-hover: #55bcdc; /* 水色 */
  --tomato-color: #ff6347; /* トマト色 */
  --smoky-pink-color: #d98899; /* スモーキーピンク */
  --light-pink-color: #fef0f1; /* 薄いピンク */
  --beige-color: #f7f3e9; /* ベージュ */
  --light-beige-color: #fffefc; /* 薄いベージュ */

  /* --- フォントに関する設定 --- */
  --main-font: "M PLUS Rounded 1c", sans-serif;
  --font-base-size: 100%; /* 100%=16px=1.0rem */
  --line-height-base: 1.6; /* 本文の行間 */
  --fs-h1: 4rem; /* 64px (16 x 4.0) */
  --fs-h2: 2rem; /* 32px (16 x 2.0) */
  --fs-h3: 1.6rem; /* 25.6px */
  --fs-h4: 1.2rem; /* 19.2px */
  --fs-small: 0.875rem; /* 約14px (注意書き、日付など) */
  --fs-extra-small: 0.75rem; /* 12px (補足説明など) */
  --fs-medium: 1rem; /* 16px (本文、標準サイズ) */
  --fs-large: 1.125rem; /*  約18px(リード文、強調したい部分) */
  --fs-extra-large: 1.5rem; /* 24px */
}

/* ====== bodyの設定 ====== */
body {
  font-family: var(--main-font);
  color: var(--text-color);
  background-color: var(--cream-color);
  line-height: var(--line-height-base);
  margin: 0;
  padding: 0;
  font-size: var(--fs-medium);
}
/* ====== 見出しのフォントサイズ設定 ====== */
h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  /* html要素の変数だけを上書き */
  html {
    --fs-h1-sp: 2.2rem; /* 35.2px に縮小 */
    --fs-h2-sp: 1.5rem; /* 24px に縮小 */
    --fs-h3-sp: 1.3rem; /* 20.8px に縮小 */
    --fs-extra-large-sp: 1.25rem; /* 20px に縮小 */
    --fs-large-sp: 1.05rem; /* 約17px に縮小 */
    /* 本文と小さいサイズはそのまま維持しているため記述していません */
  }
  /* ====== 変数が上書きされた後、スマホ用のフォントサイズを適用 ====== */
  h1 {
    font-size: var(--fs-h1-sp);
  }

  h2 {
    font-size: var(--fs-h2-sp);
  }

  h3 {
    font-size: var(--fs-h3-sp);
    /* text-align: center; */
  }
}

/* ==========================================================================
   02.共通パーツの設定
   ========================================================================== */
/* ====== 全体のコンテナ（コンテンツの幅を制限）====== */
.container {
  max-width: 1200px; /* PCでの最大幅 */
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== 各セクションの余白 ====== */
section {
  padding: 80px 0;
}

/* ====== 見出しのスタイル(h2) ====== */
.section-title {
  display: flex; /* Flexboxを有効化 */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
  width: fit-content;
  margin: 0 auto 40px;
  padding: 15px 60px;
  background-color: var(--sub-color);
  color: var(--text-color);
  border-radius: 8px;
  outline: 2px dashed var(--light-pink-color); /* 内側に白い点線 */
  outline-offset: -6px; /* 点線を内側にずらす */
  box-shadow: 0 0 0 2px var(--sub-color); /* 外側の枠線を補完 */
}

.section-title span {
  font-size: var(--fs-large);
  margin-left: 6px;
  line-height: 1;
  transform: translateY(2px);
}

/* ====== リード文 ====== */
.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: var(--fs-large);
  line-height: 1.8;
  color: var(--text-sub-color);
}

/* ====== 注意書き ====== */
.notice {
  color: var(--tomato-color);
}

/* ====== カードリストのレイアウト設定 ====== */

.card-list {
  display: grid;
}

.card {
  background-color: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.08); /* こげ茶をベースにした薄い影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(93, 64, 55, 0.15);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ----- テキストエリアの設定----- */
.card__content {
  padding: 15px;
  text-align: left; /* デフォルトは左寄せ */
}

/* --- カテゴリバッジの設定 --- */
.card__category-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: var(--fs-small);
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 16px;
}

/* カテゴリごとの色分け（スラッグ名に合わせて指定） */
.card__category-badge.dtp-design {
  background-color: var(--main-color);
}
.card__category-badge.web-design {
  background-color: var(--accent-color);
}
.card__category-badge.illustration-production {
  background-color: var(--sub-color);
}
.card__category-badge.video-creation {
  background-color: var(--lavender-color);
}

/* --- 見出しの設定 --- */
.card__content h3 {
  color: var(--text-color);
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 5px;
  line-height: 1.4; /* 1行の高さ */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行でクリップ（切り詰め）する */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- 日付部分の設定 --- */
.card__content .card__date {
  color: var(--text-sub-color);
  font-size: var(--fs-small);
}

/* --- 抜粋テキストの設定 --- */
.card__content p {
  color: var(--text-sub-color);
}

/* ====== 共通ボタン設定 ====== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  /*  text-decoration: none; */
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: var(--fs-large);
}

/* --- 色のバリエーション --- */
/* クラス名: .btn-primary（メインカラー） */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  background-color: var(--main-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: var(--fs-large);
  box-shadow: 0 3px 0 rgba(93, 64, 55, 0.2);
  transition: all 0.2s;
  margin-top: 20px;
}

.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(93, 64, 55, 0.2);
  background-color: var(--main-color-hover);
}

/* クラス名: .btn-secondary（サブカラー） */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  background-color: var(--sub-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: var(--fs-large);
  box-shadow: 0 3px 0 rgba(93, 64, 55, 0.2);
  transition: all 0.2s;
  margin-top: 20px;
}

.btn-secondary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(93, 64, 55, 0.2);
  background-color: var(--sub-color-hover);
}

/* 固定ページのメインタイトル（h1）の調整 */
.page-title {
  font-size: var(--fs-h2); /* 文字サイズを程よい大きさに */
  color: var(--text-color); /* こげ茶色に統一 */
  text-align: center; /* 中央寄せ */
  margin: 100px auto 30px; /* 上下の余白 */
  padding: 15px 40px;
  background-color: var(--sub-color); /* Worksなどと同じおひさまピンク */
  display: table; /* 文字幅に合わせる */
  border-radius: 50px; /* 角を丸くして柔らかく */
  outline: 2px dashed var(--light-pink-color); /* 内側に白い点線 */
  outline-offset: -6px; /* 点線を内側にずらす */
  box-shadow: 0 0 0 2px var(--sub-color); /* 外側の枠線を補完 */
}

/* ====== Google Iconsの設定 ====== */
.material-icons {
  vertical-align: middle; /* アイコンとテキストの垂直方向の位置を揃える */
  margin-left: 6px; /* アイコンとテキストの間に少しスペースを開ける */
}

/* おひさまアイコン */
.sunny-icon {
  color: var(--main-color);
}

/* ========================================
   Media Queries (PCのみのスタイル)
   ======================================== */
/* ====== 改行設定（PCでは改行なし） ====== */
@media (min-width: 769px) {
  br.sp-only {
    display: none;
  }
}
/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  /* ====== 見出しのスタイル ====== */
  .section-title {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 5px;
    padding-right: 5px;
    white-space: nowrap;
    margin-bottom: 30px;
  }

  .section-title span {
    font-size: var(--fs-large-sp);
  }
  /* ====== リード文 ====== */
  .section-lead {
    font-size: var(--fs-large-sp);
  }
  .section-lead br {
    display: none;
  }

  /* ====== カードリストのレイアウト設定 ====== */

  .card-list {
    flex-direction: column;
    gap: 20px;
    padding: 0 5%;
  }

  .card {
    width: 100%;
    margin: 0;
  }

  .card img {
    height: auto;
  }

  /* ====== ボタンの設定（サイズ調整） ====== */
  .btn {
    padding: 12px 25px;
  }

  /* ====== 固定ページのメインタイトル（h1）の調整 ====== */
  .page-title {
    font-size: var(--fs-h2-sp);
    padding: 10px 30px;
  }

  /* ====== 改行設定（スマホでは改行なし） ====== */
  br.pc-only {
    display: none;
  }
}

/* ==========================================================================
   03.ヘッダーの設定
   ========================================================================== */
/* ====== ヘッダー全体の設定 ======  */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(252, 254, 254, 0.9);
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- ヘッダー内のコンテナ（ロゴとナビを横並びにするため）---  */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ====== ロゴの設定 ======  */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: var(--fs-large);
  font-weight: bold;
}

.logo img {
  max-height: 60px;
  margin-right: 10px;
  width: auto;
}

/* ====== ナビゲーションメニューのスタイル ======  */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav ul li {
  margin-left: 50px;
}
.main-nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: var(--fs-large);
  font-weight: bold;
  padding: 5px 0;
  position: relative;
}

/* --- ナビゲーションのホバーエフェクト（マウスを乗せた時のアニメーション）---  */
.main-nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--sub-color);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

/* ======  ハンバーガーメニュー(PCでは表示しない) ======  */
.hamburger-menu {
  display: none;
}

.hamburger-menu.is-active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
  }
  /* ロゴ画像のサイズと位置を最適化 */
  header .logo img {
    max-height: 50px !important; /* 現在より少し小さめに設定 */
    max-width: 200px !important; /* メニューに届かない幅に制限 */
    object-fit: contain; /* 枠内で綺麗に収める */
  }

  /* ロゴ自体の位置微調整 */
  header .logo {
    margin-right: auto; /* 右側に自動で余白を作り、メニューを押し出す */
    z-index: 10; /* メニューの背後に隠れないようにする */
  }

  /* ====== メニュー設定 ====== */
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 90;
    transition: right 0.4s ease;
    overflow-y: auto;
    display: none;
  }

  /* --- is-open クラスが付いた時の表示 --- */
  .main-nav.is-open {
    display: block;
    right: 0;
  }

  /* --- ナビゲーションメニューのスタイル --- */
  .main-nav ul {
    display: block;
    padding-top: 100px;
    text-align: center;
  }

  .main-nav ul li {
    margin: 20px 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px;
  }

  /* --- ハンバーガーメニューのスタイル --- */
  .hamburger-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--sub-color);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s;
  }

  .hamburger-menu span {
    display: block;
    height: 4px;
    width: 70%;
    background: var(--white-color);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
  }

  .hamburger-menu span:nth-child(1) {
    top: 8px;
  }
  .hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .hamburger-menu span:nth-child(3) {
    bottom: 8px;
  }

  /* --- スクロール禁止用CSS --- */
  .no-scroll {
    overflow: hidden; /* スクロールを禁止 */
  }
}

/* ==========================================================================
   04.フロントページ / メインビジュアルの設定
   ========================================================================== */
.main-visual {
  height: auto; /* 高さを内容に合わせる */
  min-height: 600px;
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  overflow: hidden; /* 雲がはみ出さないように */
  background-color: var(--light-pink-color);
}

.main-visual-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ====== テキストエリアの設定（左側） ====== */
.main-visual-content {
  position: static; /* absoluteを解除 */
  transform: none;
  flex: 1;
  text-align: left; /* 左寄せ */
  opacity: 1;
  animation: none;
}

/* --- 見出しの設定 --- */
.main-visual-content h1 {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
  line-height: 1.2;
}

/* --- 見出し下のテキスト設定 --- */
.main-visual-content p {
  margin-bottom: 30px;
}

/* ====== イラストエリアの設定（右側） ====== */
.main-visual-image-area {
  flex: 1.2;
  position: relative;
  text-align: center;
}

.main-illust {
  max-width: 100%;
  height: auto;
  border-radius: 300px;
  position: relative;
  max-width: 600px; /* PCで大きくなりすぎないように制限 */
  object-fit: contain; /* イラスト全体が収まるように */
  z-index: 2;
}

/* --- 雲の基本設定 --- */
.cloud {
  position: absolute;
  /* max-width: 150px; */
  z-index: 3;
  opacity: 0.9;
  animation: floating 4s ease-in-out infinite;
}

/* 5つの雲の配置とアニメーションのタイミングをずらす */
.cloud-1 {
  top: 10%;
  left: -5%;
  width: 150px;
  animation-delay: 0s;
}

.cloud-2 {
  top: 7%;
  left: 30%;
  animation-delay: 1s;
}

.cloud-3 {
  bottom: 10%;
  left: 20%;
  width: 180px;
  animation-delay: 0.5s;
}

.cloud-4 {
  top: 5%;
  right: 1%;
  animation-delay: 2s;
}

.cloud-5 {
  bottom: 5%;
  right: -2%;
  width: 220px;
  animation-delay: 0.8s;
}

/* ふわふわアニメーション */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  .main-visual-container {
    flex-direction: column-reverse; /* イラストエリアを上に、テキストエリアを下に */
    gap: 30px;
    text-align: center;
  }

  .main-visual-content {
    text-align: center; /* テキストを中央揃えに */
  }

  .main-visual-image-area {
    width: 100%;
  }

  .main-illust {
    max-width: 100%;
    height: auto; /* スマホでも比率を維持 */
  }

  /* スマホでの雲のサイズ微調整（お好みで） */
  .cloud {
    max-width: 80px;
  }

  .main-visual-content h1 {
    font-size: var(--fs-h1-sp);
    margin-bottom: 5px;
  }

  .main-visual-content p {
    font-size: var(--fs-extra-large-sp);
    margin-bottom: 20px;
    text-align: center;
  }
}

/* ==========================================================================
  05.フロントページ / 制作実績の設定
   ========================================================================== */

.works-section {
  background-color: var(--cream-color);
}

.card-list-works {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-works--item {
  text-align: left;
}

/* カテゴリバッジが横に広がらないように固定 */
.works-section .card__category-badge {
  display: inline-block !important; /* 幅いっぱいに広がるのを防ぐ */
  width: fit-content; /* 中身の文字数に合わせる */
  padding: 2px 12px;
  margin-bottom: 10px;
}

/* ===== ボタンの設定（制作実績用に一部変更） ===== */

.works-section .view-more {
  text-align: center;
  margin-top: 30px;
}
/* 制作実績のカードリストを1列に変更 */
@media (max-width: 768px) {
  .card-list-works {
    grid-template-columns: 1fr; /* 3列から1fr（1列）に変更 */
    gap: 20px;
  }
}

/* ==========================================================================
 06.フロントページ / できること・強みの設定
   ========================================================================== */
.service-section {
  background-color: var(--aliceblue-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
/* ============ カードのデザイン ============ */
.service-card {
  background-color: var(--white-color);
  padding: 40px 30px;
  border-radius: 15px;
  border: 2px solid var(--gray-color);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* ====== イラストアイコン ====== */
.service-icon-img {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  position: relative;
}

.service-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  /* 少し手書き感を出すための薄い枠線 */
  border: 3px solid var(--white-color);
  background-color: var(--white-color);
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.1);
}

/* ---イラストの周りの装飾--- */
.service-card .service-icon-img::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  z-index: -1;
}

/* webデザイン用カラー */
.service-card-web .service-icon-img::after {
  border: 2px dashed var(--accent-color);
}

/* DTPデザイン用カラー */
.service-card-dtp .service-icon-img::after {
  border: 2px dashed var(--main-color);
}

/* 動画クリエイト用カラー */
.service-card-video .service-icon-img::after {
  border: 2px dashed var(--lavender-color);
}

/* ====== カード内の見出し(h3) ====== */
.service-card h3 {
  color: var(--text-color);
  text-align: center;
  font-size: var(--fs-h4);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

/* --カードの見出し(h3)の装飾-- */
.service-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
}

/* Webデザイン用の枠線 */
.service-card-web h3::after {
  border-bottom: 3px dotted var(--accent-color);
}

/* DTPデザイン用の枠線 */
.service-card-dtp h3::after {
  border-bottom: 3px dotted var(--main-color);
}

/* 動画制作用の枠線 */
.service-card-video h3::after {
  border-bottom: 3px dotted var(--lavender-color);
}

/* ====== 制作実績リンクボタン ====== */
.service-btns {
  text-align: center;
}

/* Webデザインボタン */
.service-btns .btn-web {
  color: var(--accent-color);
  font-weight: bold;
  padding: 10px 25px;
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 20px;
}

.service-btns .btn-web:hover {
  background-color: var(--accent-color-hover);
  color: var(--white-color); /* ホバー時は白文字 */
  border: 2px solid var(--accent-color-hover);
}

/* DTPデザインボタン */
.service-btns .btn-dtp {
  color: var(--main-color);
  font-weight: bold;
  padding: 10px 25px;
  border: 2px solid var(--main-color);
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 20px;
}

.service-btns .btn-dtp:hover {
  background-color: var(--main-color-hover);
  color: var(--white-color); /* ホバー時は白文字 */
  border: 2px solid var(--main-color-hover);
}

/* 動画制作ボタン */
.service-btns .btn-video {
  color: var(--lavender-color);
  font-weight: bold;
  padding: 10px 25px;
  border: 2px solid var(--lavender-color);
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 20px;
}

.service-btns .btn-video:hover {
  background-color: var(--lavender-color-hover);
  color: var(--white-color); /* ホバー時は白文字 */
  border: 2px solid var(--lavender-color-hover);
}

/* ============ おひさまワークスの強みのデザイン ============ */
.strength-box {
  background-color: #fdf5e6;
  padding: 40px;
  border-radius: 20px;
  border: 2px dashed var(--main-color);
  max-width: 800px;
  margin: 0 auto;
}

.strength-box h3 {
  text-align: center;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 25px;
}

.strength-box ul {
  list-style: none;
  padding: 0;
}

.strength-box li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  .strength-box {
    padding-left: 20px;
    padding-right: 20px;
  }

  .strength-box ul {
    padding-left: 0;
  }
}

/* ==========================================================================
 07.フロントページ / 流れの設定
   ========================================================================== */
.flow-section {
  background-color: var(--light-green-color);
}

.flow-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* ステップをつなぐ中央の点線 */
.flow-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  border-left: 3px dashed var(--accent-color);
  z-index: 0;
}

/* ===== 流れのブロック ===== */
.flow-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  z-index: 1;
}

/* --- ステップ番号（丸いパッチ） --- */
.flow-num {
  width: 60px;
  height: 60px;
  background-color: var(--main-color);
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  outline: 2px dashed rgba(255, 255, 255, 0.6);
  outline-offset: -5px;
  box-shadow: 0 3px 6px rgba(93, 64, 55, 0.1);
}

/* --- 説明文エリア --- */
.flow-content {
  background-color: var(--white-color);
  padding: 30px 25px;
  border-radius: 12px;
  border: 2px solid var(--gray-color); /* ほんの少し枠線 */
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.05);
  flex-grow: 1;
}

/* -- 見出し -- */
.flow-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* -- テキスト -- */
.flow-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  .flow-container::before {
    left: 20px;
  }
  .flow-num {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  .flow-item {
    gap: 15px;
  }
}

/* ==========================================================================
 08.フロントページ / 自己紹介の設定
   ========================================================================== */
.about-section {
  background-color: var(--light-pink-color);
}
.about-flex {
  background-color: var(--white-color);
  padding: 20px 25px;
  border-radius: 12px;
  border: 2px solid var(--gray-color); /* ほんの少し枠線 */
  box-shadow: 0 4px 10px rgba(93, 64, 55, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

/* プロフィール画像 */
.about-image {
  flex: 0 0 280px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 150px;
  box-shadow: 0 10px 20px rgba(242, 160, 161, 0.2);
}

/* テキスト部分 */
.about-text p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-sub-color);
}

.about-name {
  position: relative;
  padding-bottom: 10px;
}

.about-name:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  content: "";
  background-image: -webkit-repeating-linear-gradient(
    135deg,
    var(--sub-color),
    var(--sub-color) 1px,
    transparent 2px,
    transparent 5px
  );
  background-image: repeating-linear-gradient(
    -45deg,
    var(--sub-color),
    var(--sub-color) 1px,
    transparent 2px,
    transparent 5px
  );
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.about-name span {
  font-size: var(--fs-medium);
  margin-left: 10px;
}

.about-btns {
  margin-bottom: 20px;
}

/* スキルカードエリアの調整 */
.about-skills-cards {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 2px dotted var(--sub-color); /* 文章との区切りに可愛いドット線 */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: center;
}

.about-skills-cards h4 {
  position: relative;
  display: inline-block;
  padding: 10px 30px;
  background: var(--sub-color);
  color: var(--text-color);
  border-radius: 30px; /* 角を丸く */
  margin-bottom: 30px;
}

.about-skills-cards h4::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 12px solid transparent;
  border-top: 12px solid var(--sub-color); /* 下にチョンと出す */
}

/* カードリストのレイアウト */
.skill-card-list {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(140px, 1fr)
  ); /* 幅に合わせて自動で並べる */
  gap: 15px;
  list-style: none;
  padding: 0;
}

/* 個別のカードデザイン */
.card-inner {
  background: var(--white-color);
  border: 2px solid var(--light-gray-color);
  border-radius: 15px;
  padding: 15px 10px;
  text-align: center;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 動きを弾ませる設定 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* ホバー時の動き（少し浮き上がって影を強くする） */
.card-inner:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent-color);
  box-shadow: 0 8px 15px rgba(242, 160, 161, 0.2);
  z-index: 1;
}

/* アイコンのサイズ */
.card-inner i {
  font-size: 2.5rem; /* 幅に合わせるため少し小さめに調整 */
  display: block;
  margin-bottom: 8px;
}

.skill-name {
  display: block;
  font-size: var(--fs-small);
  font-weight: bold;
}

.card-inner small {
  display: block;
  font-size: var(--fs-extra-small);
  color: var(--text-sub-color);
  margin-top: 5px;
  line-height: 1.3;
}

/* アイコンのカラー設定 */
.devicon-photoshop-plain {
  color: #31a8ff; /* Photoshop (青系) */
}

.devicon-illustrator-plain {
  color: #ff9a00; /* Illustrator (オレンジ系) */
}

.devicon-figma-plain {
  color: #f24e1e; /* Figma (赤橙色) */
}
.color-word {
  color: #2b579a; /* Word (青) */
}

.color-excel {
  color: #217346; /* Excel (緑) */
}

.devicon-vscode-plain {
  color: #3c99d4; /* VSCode (青) */
}

.devicon-wordpress-plain {
  color: #21759b; /* WordPress (濃い青) */
}

.devicon-html5-plain {
  color: #e54d26; /* HTML5 (オレンジ) */
}

.devicon-css3-plain {
  color: #3d8fc6; /* CSS3 (青) */
}

.color-keynote {
  color: #54acf4; /* Keynote (水色) */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .about-image {
    flex: 0 0 auto;
    width: 200px;
  }

  .skill-card-list {
    grid-template-columns: repeat(2, 1fr); /* スマホでは2列 */
  }
}
/* ==========================================================================
 09.フロントページ / 問い合わせ・プライバシーポリシーの設定
   ========================================================================== */
.contact-section {
  background-color: var(--cream-color);
}

.contact-section .section-lead {
  max-width: 600px;
  margin-bottom: 10px;
}

.contact-section .notice {
  font-size: var(--fs-small);
  max-width: 600px;
  text-align: center;
  line-height: 1.4;
  margin: 0 auto 40px;
}

/* お問い合わせフォーム全体の調整 */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form p {
  font-weight: bold;
}

/* 入力項目（label）の調整 */
.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
}

/* セレクトボックスの見た目 */
select.wpcf7-form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray-color);
  border-radius: 8px;
  background-color: var(--light-gray-color);
}

/* チェックボックスの隙間 */
input[type="checkbox"] {
  margin-right: 5px;
}

/* 入力欄（input / textarea）のスタイル */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 2px solid var(--gray-color);
  border-radius: 10px;
  background-color: var(--light-gray-color);
  font-family: inherit;
}

/* 送信ボタンのカスタマイズ */
.contact-form input[type="submit"] {
  display: block;
  width: 200px;
  margin: 30px auto 0;
  padding: 15px;
  background-color: var(--main-color);
  color: var(--white-color);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: var(--fs-large);
  font-weight: bold;
  transition: background-color 0.3s;
}

.contact-form input[type="submit"]:hover {
  background-color: var(--main-color);
}

/* プライバシーポリシー同意欄の調整 */
.privacy-check {
  margin: 30px 0 20px;
  text-align: center; /* 中央寄せ */
  font-size: 0.9rem;
}

.privacy-check a {
  color: var(--sub-color);
  text-decoration: underline;
  font-weight: bold;
}

.privacy-check a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* チェックボックス自体のサイズ調整（少し大きく） */
.privacy-check input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  vertical-align: middle;
}

/* 同意していない時の送信ボタンを少し薄くする（任意） */
.wpcf7-submit:disabled {
  background-color: #ccc !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* ========================================
   プライバシーポリシー
   ======================================== */
.privacy-policy-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  line-height: 1.8;
  color: var(--text-sub-color);
}

.policy-intro {
  margin-bottom: 40px;
  font-size: 1rem;
}

.policy-item {
  margin-bottom: 40px;
  padding: 0;
}

/* 見出し */
.policy-item h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  border-bottom: 2px dotted var(--sub-color); /* Aboutと同じドット線 */
  padding-bottom: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.policy-item h3::before {
  content: "check_circle"; /* Google Icons */
  font-family: "Material Icons";
  margin-right: 8px;
  color: var(--sub-color);
  font-size: 1.4rem;
}

.policy-item ul {
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: none;
}

.policy-item ul li {
  position: relative;
  margin-bottom: 8px;
}

.policy-item ul li::before {
  content: "●";
  color: var(--sub-color);
  font-size: 0.8rem;
  position: absolute;
  left: -1.5rem;
}

.policy-date {
  text-align: right;
  margin-top: 60px;
  font-weight: bold;
  color: var(--text-sub-color);
  font-size: var(--fs-small);
}

/* モーダルの背景（暗くなる部分） */
.modal-overlay {
  display: none; /* 最初は隠す */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* モーダルの中身 */
.modal-content {
  background: var(--white-color);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  overflow-y: auto; /* 長い場合はスクロール */
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content .privacy-policy-content {
  padding-top: 0;
}

/* モーダル用h2見出し */
.modal-content h2 {
  text-align: center;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #888;
}

/* ふわっと出るアニメーション */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   プライバシーポリシー
   ======================================== */
.thanks-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0px;
  text-align: center;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */
@media (max-width: 768px) {
  .privacy-policy-content {
    padding: 25px 20px;
    margin: 20px;
  }
}

/* ==========================================================================
  10.制作実績 / 制作実績ページについての共通設定
   ========================================================================== */

/* --- 全体のコンテナ --- */
.works-container {
  display: flex; /* Flexboxで左右に並べる */
  gap: 30px; /* メインとサイドバーの間のスペース */
  flex-direction: row-reverse;
  padding: 30px 0;
}

/* ====== メインコンテンツの設定 ====== */
.works-main {
  flex: 1; /* 残りのスペースを全て使用 */
  min-width: 0;
}

/* ====== 見出しの設定 ====== */
.works-main h1 {
  line-height: 1.4;
  font-size: var(--fs-h2);
}

/* ====== サイドバーの設定 ====== */
.works-sidebar {
  display: block;
  width: 300px; /* サイドバーの固定幅 */
  flex-shrink: 0; /* 幅が縮まないようにする */
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* サイドバーの見出しを可愛く */
.works-sidebar h2 {
  font-size: var(--fs-h4);
  color: var(--text-color);
  border-bottom: 2px dotted var(--main-color);
  padding-bottom: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.works-sidebar h2::before {
  font-family: "Material Icons";
  content: "sunny"; /* 小さなおひさまマーク */
  margin-right: 4px;
  color: var(--main-color);
}

/* カテゴリー一覧などのリストを整える */
.works-sidebar ul {
  list-style: none;
  padding: 0;
}

.works-sidebar ul li {
  margin-bottom: 10px;
  font-size: var(--fs-medium);
}

/* ホバー時のリスト全体の設定 */
.works-sidebar ul li a {
  text-decoration: none;
  color: var(--text-sub-color);
  display: block;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 18px; /* アイコンが入るスペースを最初から空けておく */
}

/* ホバーした時にアイコンを表示させる準備 */
.works-sidebar ul li a::before {
  content: "play_arrow";
  font-family: "Material Icons";
  font-size: var(--fs-medium);
  color: var(--sub-color);
  position: absolute; /* ★絶対配置にして、1行目の高さに固定する */
  left: 0;
  top: 0.1em; /* ★1行目の高さに合わせて微調整 */
  opacity: 0;
  transform: translateX(-3px);
  transition: all 0.3s ease;
  margin-right: 3px;
}

/* ホバー時の動き */
.works-sidebar ul li a:hover {
  color: var(--sub-color);
  transform: translateY(-2px);
}

/* ホバー時にアイコンをふわっと出す */
.works-sidebar ul li a:hover::before {
  opacity: 1; /* 表示させる */
  transform: translateX(0); /* 定位置に戻す */
}

/* ウィジェットごとの「外枠」にだけ余白を付ける */
.widget_categories,
.widget_tag_cloud,
.widget_recent_entries,
.widget_archive,
.widget_search,
.widget_text {
  margin-bottom: 40px !important; /* ウィジェット間の距離 */
}

/* 最後のウィジェットは余白なし */
.works-sidebar aside > *:last-child {
  margin-bottom: 0 !important;
}

/* --- サイドバー：タグクラウドの設定 --- */

.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* タグ同士の間隔 */
  justify-content: space-between; /* ★両端に広げる */
}

/* タグ1つひとつのデザイン */
.wp-block-tag-cloud a {
  flex-grow: 1; /* ★隙間を埋めるようにタグが伸びる */
  text-align: center;
  font-size: var(
    --fs-small
  ) !important; /* 標準のフォントサイズ指定をリセット */
  font-weight: bold;
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--white-color);
  border: 1px solid var(--gray-color);
  color: var(--text-sub-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* タグの前に#追加 */
.wp-block-tag-cloud a::before {
  content: "#";
  margin-right: 1px;
}

/* ホバー時の動き */
.wp-block-tag-cloud a:hover {
  border: 1px solid var(--sub-color);
  color: var(--sub-color);
  transform: translateY(-2px);
}

/* ====== カード部分の設定（制作実績ページ用はサイドバーがあるため、PC表示は2列に調整） ====== */
.card-list--workspage {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- カードの幅をリセット --- */
.card-workspage-item {
  width: 100%;
}

/* ====== 制作実績のナビゲーション設定 ====== */

.works-navigation {
  display: flex;
  justify-content: space-between; /* 均等なスペースで配置 */
  align-items: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray-color);
}

/* --- ボタンのデザイン設定 --- */
.works-navigation a {
  color: var(--main-color);
  font-weight: bold;
  padding: 15px;
  border: 2px solid var(--main-color);
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
}

.works-navigation a:hover {
  background-color: var(--main-color-hover);
  color: var(--white-color); /* ホバー時は白文字 */
  border: 2px solid var(--main-color-hover);
}

/* 制作実績トップボタン専用のデザイン調整 */
.works-navigation .top-post .nav-link {
  background-color: var(--main-color);
  color: var(--text-color);
  padding: 15px 30px;
}

.works-navigation .top-post a.nav-link:hover {
  background-color: var(--main-color-hover);
  border: 2px solid var(--main-color-hover);
}

/* --- ボタンの配置設定 --- */
.works-navigation .top-post {
  flex-shrink: 0;
  flex-basis: auto;
  text-align: center;
}

/*  --- 前の記事、次の記事へ移動ボタン用の設定 --- */
.works-navigation .prev-post,
.works-navigation .next-post {
  flex-grow: 1;
  flex-basis: 35%;
  min-width: 0;
}
.works-navigation .prev-post {
  text-align: left;
}
.works-navigation .next-post {
  text-align: right;
}

/* PCデフォルト設定: スマホ用テキストを非表示にする */
.mobile-nav-text {
  display: none;
}

/* PCデフォルト設定: PC用テキストを表示する */
.desktop-nav-text {
  display: inline;
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  /* --- 全体のコンテナ (1カラムに戻す) --- */
  .works-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }
  /* --- メインエリア --- */
  .works-main {
    order: 1;
    width: 100%; /* モバイルでは横幅をいっぱい使う */
  }

  /* -- メインエリア -- */
  .works-main h1 {
    /*   line-height: 1.4; */
    font-size: var(--fs-h2-sp);
  }

  .works-main h2 {
    font-size: var(--fs-h3-sp);
  }

  /* --- サイドバー --- */
  .works-sidebar {
    order: 2;
    width: 100%; /* モバイルでは横幅をいっぱい使う */
    margin-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
  }

  /* --- 制作実績用カード部分設定 --- */
  .card-list--workspage {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  /* ボタン設定: PC用テキストを非表示にする */
  .desktop-nav-text {
    display: none;
  }
  /* ボタン設定: スマホ用テキストを表示する */
  .mobile-nav-text {
    display: inline;
  }
}

/* ==========================================================================
  11.制作実績 / 制作実績一覧ページついての設定
   ========================================================================== */
/* ====== 見出しの設定 ====== */
.section-title--works {
  margin-bottom: 30px;
}

/* ====== アーカイブの説明文の設定 ====== */
.archive-description {
  max-width: 900px; /* 説明文の幅を制限 */
  margin: 0 auto;
  line-height: 1.8;
}

/* 全体のレイアウト設定 */
.works-layout {
  display: flex;
  gap: 40px; /* メインとサイドバーの隙間 */
  align-items: flex-start;
}

.works-main {
  flex: 1; /* 残りの幅をすべて使う */
}

/* カード一覧を2列にする */
.card-list--archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列固定 */
  gap: 30px;
  margin-bottom: 40px;
}

/* ボタンの配置 */
.archive-navigation {
  justify-content: center;
}

/* ==========================================================================
  12.制作実績 / 制作実績記事ページについての設定
   ========================================================================== */
.works-post {
  max-width: 800px; /* 記事の最大幅 */
  margin: 0 auto;
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====== メタ情報の設定 ====== */
.post-meta {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px; /* 1行目と2行目の間隔 */
}

/* 1行目：カテゴリーと日付 */
.post-meta__top {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 2行目：タグエリア */
.post-tags__row {
  display: flex;
  align-items: center;
}

.post-meta .card__category-badge {
  margin-bottom: 0;
}

.tag-icon {
  font-size: 18px !important;
  margin-top: 2px;
}

.post-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* タグ単体のデザイン */
.post-tags__item a {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  background-color: var(--gray-color);
  padding: 2px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* ホバー時に少しおひさまピンクに */
.post-tags__item a:hover {
  background-color: var(--sub-color);
  color: var(--white-color);
  transform: translateY(-2px); /* リンクっぽさを出すための動き */
}

.post-date {
  display: flex;
  align-items: center;
}

/* ====== カテゴリー情報の設定 ====== */
/* --- the_category() が出力する<ul>の初期設定をリセット　--- */
.post-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* タグを横並びにする */
  gap: 8px; /* タグ同士の間隔 */
}
/* --- カテゴリーバッジをリンク化した際の調整 --- */
.post-category a.card__category-badge {
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* ホバーした時に浮き上がるような演出 */
.post-category a.card__category-badge:hover {
  transform: translateY(-1px);
}

/* ---  カテゴリごとの色分け・ホバー時の設定（スラッグ名に合わせて指定） ---  */
/* DTPデザイン */
.post-category a.card__category-badge.dtp-design {
  background-color: var(--main-color);
}

.post-category a.card__category-badge.dtp-design:hover {
  background-color: var(--main-color-hover);
}

/* Webデザイン */
.post-category a.card__category-badge.web-design {
  background-color: var(--accent-color);
}

.post-category a.card__category-badge.web-design:hover {
  background-color: var(--accent-color-hover);
}

/* イラスト */
.post-category a.card__category-badge.illustration-production {
  background-color: var(--sub-color);
}

.post-category a.card__category-badge.illustration-production:hover {
  background-color: var(--sub-color-hover);
}

/* 動画制作 */
.post-category a.card__category-badge.video-creation {
  background-color: var(--lavender-color);
}

.post-category a.card__category-badge.video-creation:hover {
  background-color: var(--lavender-color-hover);
}

/* ====== アイキャッチの設定 ====== */
.post-eyecatch-image {
  margin-bottom: 30px;
  text-align: center; /* 中央寄せ */
}

.post-eyecatch-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-eyecatch-image figcaption {
  font-size: 0.9em;
  color: var(--text-sub-color);
  text-align: center;
  margin-top: 10px;
}

/* ====== リストの設定 ====== */
.post-content ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1.5em;
}

.post-content ul li {
  margin-bottom: 0.5em;
}

/* ====== 画像の設定 ====== */
.post-content figure {
  margin: 30px 0;
  text-align: center;
}

.post-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ====== 引用ブロックの設定 ====== */
.post-content blockquote {
  background-color: var(--cream-color);
  padding: 10px 20px;
  margin: 30px 0;
  border-radius: 8px;
  font-weight: bold;
}

/* ====== 目次のスタイル ====== */
.post-content table,
.post-content iframe {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* ====== プロジェクト概要エリアの設定 ====== */
.works-data {
  background-color: var(--cream-color);
  padding: 20px 30px;
  border-radius: 15px;
  margin: 40px 0;
  border: 2px dotted var(--sub-color);
}

/* --- 見出しの設定 --- */
.works-data__title {
  font-size: var(--fs-h4);
  color: var(--text-color);
  margin-bottom: 25px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* 文字の左右に線を引く */
.works-data__title::before,
.works-data__title::after {
  content: "";
  flex-grow: 1;
  max-width: 60px; /* 線の長さ */
  height: 2px;
  background-color: var(--main-color);
  border-radius: 2px;
}

/* --- 各項目の設定 --- */
.works-data__list {
  display: grid;
  grid-template-columns: 140px 1fr; /* 項目名と内容の幅 */
  gap: 10px 0;
}

.works-data__list dt {
  font-weight: bold;
  color: var(--text-color);
  position: relative;
  padding-left: 1.6rem;
  align-self: start; /* 複数行になっても上揃えにする */
  line-height: 1.4;
}

.works-data__list dt::before {
  content: "sunny";
  font-family: "Material Icons";
  position: absolute;
  left: 0;
  top: 50%;
  font-size: 1.3rem;
  transform: translateY(-50%);
  color: var(--main-color);
  line-height: 1;
}

/* 使用ツールの行間とリスト感の調整 */
.works-data__list dd {
  margin-left: 0;
  color: var(--text-color);
  line-height: var(--line-height-base) !important;
  white-space: pre-line;
}

/* <br> が二重に入っている場合の対策 */
.works-data__list dd br {
  display: none;
}

/* URLリンク */
.works-data__list dd a {
  color: var(--sub-color);
  text-decoration: underline;
  display: inline-block; /* 改行ルールを適用させるために必要 */
  max-width: 100%; /* 親要素を超えないように制限 */
  overflow-wrap: break-word; /* 単語の途中で改行を許可 */
  word-break: break-all; /* 枠の端で強制的に改行 */
}

.works-data__list dd a:hover {
  color: var(--sub-color-hover);
}

.works-sub-title {
  background: none;
  border: none;
  position: relative;
  padding-bottom: 10px;
  padding: 0 0 10px 0;
  text-align: center;
  color: var(--text-color);
  margin: 60px 0 30px;
  font-size: var(--fs-h3);
}

/* ====== サブタイトルの設定 ====== */
.works-sub-title:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  content: "";
  background-image: -webkit-repeating-linear-gradient(
    135deg,
    var(--sub-color),
    var(--sub-color) 1px,
    transparent 2px,
    transparent 5px
  );
  background-image: repeating-linear-gradient(
    -45deg,
    var(--sub-color),
    var(--sub-color) 1px,
    transparent 2px,
    transparent 5px
  );
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ====== 課題・目的/コンセプトの設定 ====== */
/* 共通のブロック設定 */
.works-info-block {
  margin-bottom: 50px;
}

/* 本文と画像のコンテナ */
.works-info-flex {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 20px;
}

/* 画像自体のデザイン */
.works-info-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* テキスト部分 */
.works-info-text {
  line-height: 1.8;
  padding-left: 5px;
}

.works-info-text p {
  margin-bottom: 1em; /* 段落ごとの余白 */
}
.works-info-text p:last-child {
  margin-bottom: 0; /* 最後の段落の余白は消す */
}

/* ====== こだわりポイントの設定 ====== */
/* --- 見出し日本語部分設定 --- */
.works-sub-title span {
  padding-left: 6px;
  font-size: var(--fs-small);
}

/* ====== こだわり詳細のリード文の設定 ====== */
.works-detail-lead {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-sub-color);
  font-size: 0.95rem;
}

/* ====== こだわりブロック（画像とテキスト） ====== */
.works-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左右50%ずつ */
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
}

/* 通常配置（Point 1, 3など） */
.works-detail-img {
  grid-column: 1; /* 左側 */
}
.works-detail-content {
  grid-column: 2; /* 右側 */
}

/* 反転配置（Point 2など：is-reverseがついている場合） */
.works-detail-block.is-reverse .works-detail-img {
  grid-column: 2; /* 右側へ */
}
.works-detail-block.is-reverse .works-detail-content {
  grid-column: 1; /* 左側へ */
  grid-row: 1; /* 画像と同じ行の1番目に指定 */
}

/* --- 12-3. 各パーツのデザイン --- */
/* 画像 */
.works-detail-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

/* ポイント見出し (h3) */
.works-detail-point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px 0;
  padding: 0;
}

/* 数字の円 */
.works-detail-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--sub-color);
  color: var(--white-color);
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-small);
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}

/* タイトル文字 */
.works-detail-title-text {
  font-size: var(--fs-large);
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.4;
}

/* 説明文 */
.works-detail-description {
  color: var(--text-color);
  line-height: 1.8;
}

/* ====== 実際のサイトへリンクボタン ====== */
.site-link-container {
  text-align: center;
  margin: 40px 0;
}

.site-link-lead .marker-line {
  background: linear-gradient(transparent 50%, #fdc9da 60%);
  font-weight: bold;
  padding: 0 5px 2px 5px;
}

/* ====== 動画の紹介 ====== */
/* 動画セクション全体 */
.works-video-section {
  margin: 50px 0;
  padding: 0 30px 20px 30px;
  background: var(--cream-color);
  border-radius: 20px;
  border: 2px dashed var(--sub-color);
}

.works-video-section .works-sub-title {
  margin-top: 30px;
}

/* 動画のレスポンシブ対応（16:9を維持） */
.video-container-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 の比率 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 動画の下の注意書きエリア */
.video-attention-text {
  margin-top: 20px;
  padding: 15px 20px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--tomato-color);
}

/* リッチエディタ内の段落などの余白微調整 */
.video-attention-text p {
  margin-bottom: 1em;
}
.video-attention-text p:last-child {
  margin-bottom: 0;
}

/* もしリスト（箇条書き）を使う場合の設定 */
.video-attention-text ul {
  padding-left: 20px;
  margin-bottom: 1em;
}

/* 注意書きがない場合に表示するテキスト設定 */
.video-caption {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-sub-color);
  margin-top: 15px;
  font-weight: bold;
}

.works-info-text strong,
.works-detail-description strong {
  color: #f06292;
}

/* ====== 制作実績下部の問い合わせ誘導（CTA） ====== */
.works-cta {
  background-color: var(--cream-color);
  border: 2px solid var(--white-color);
  outline: 2px dashed var(--main-color);
  outline-offset: -10px;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  margin: 80px 0;
}

.works-cta-text {
  font-size: var(--fs-medium);
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* ========================================
   Media Queries (画像がある場合のみ、PCで横並びにする)
   ======================================== */
@media (min-width: 769px) {
  .works-info-flex.has-image {
    flex-direction: row;
    align-items: flex-start;
  }
  .works-info-body {
    flex: 1;
  }
  .works-info-image {
    flex: 0 0 40%;
    max-width: 400px;
  }
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  .post-meta__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .works-sub-title {
    margin-bottom: 30px;
  }

  .works-detail-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* contentの囲い機能を解除してorderを有効にする */
  .works-detail-content {
    display: contents;
  }

  .works-detail-point {
    order: 1; /* 見出し */
    margin-bottom: 5px;
  }

  .works-detail-img {
    order: 2; /* 画像 */
    margin-bottom: 10px;
  }

  .works-detail-description {
    order: 3; /* 説明文 */
    margin-bottom: 30px;
  }

  .works-data__list {
    grid-template-columns: 1fr; /* 縦並びにする */
    gap: 5px 0;
  }
  .works-data__list dt {
    margin-top: 10px;
  }
}

/* ==========================================================================
  13.上に戻るボタンについての設定
   ========================================================================== */
.page-top {
  position: fixed;
  right: 20px; /* 右端からの距離 */
  bottom: 20px; /* 下端からの距離 */
  display: none; /*  初期状態は非表示 */
  z-index: 999; /* 最前面に表示 */
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  color: var(--white-color);
  border-radius: 50%;
  text-align: center;
  line-height: 50px; /* テキストを垂直中央に */
  font-size: var(--fs-small);
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

.page-top:hover {
  opacity: 0.8;
}

/* ==========================================================================
  14.フッターについての設定
   ========================================================================== */

footer {
  background-color: var(--beige-color);
  padding: 60px 0 20px;
  border-top: 1px solid #e0dbd0;
  color: var(--text-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo img {
  max-width: 220px;
  height: auto;
}

/* メニューの並び */
.footer-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: var(--fs-medium);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--sub-color);
}

/* SNSアイコンとプライバシーポリシーのエリア */
.footer-info {
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 8px;
}

.social-links img {
  width: 32px; /* アイコンのサイズ */
  height: auto;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.1); /* ホバー時に少し大きく */
}

.legal-links a {
  font-size: var(--fs-small);
  font-weight: bold;
  color: var(--text-sub-color);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--sub-color);
}

/* コピーライト */
.copyright {
  text-align: center;
  border-top: 1px dotted var(--gray-color); /* 境界のドット線 */
  padding-top: 20px;
}

.copyright small {
  font-size: var(--fs-small);
  color: var(--text-sub-color);
}

/* ========================================
   Media Queries (画面幅が狭い場合のスタイル)
   ======================================== */

@media (max-width: 768px) {
  .footer-content {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    text-align: center;
    gap: 40px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 15px;
  }
}
