@charset "UTF-8";

/* ==========================================================
 Block 0: 変数の定義 (style-new.css と同期)
 ========================================================== */
:root {
  /* メインカラー・装飾色 */
  --new-mint-dark: #307166;      /* リンク色・装飾 */
  --new-mint-light: #d8efe8;     /* 吹き出し背景 */
  --new-accent-green: #3E8E7E;   /* 見出しアクセント */

  /* 背景・境界線 */
  --new-sand-bg: #EEECE6;        /* パネル・h2背景 */
  --new-border-color: #D5CCC3;   /* テーブル・枠線 */
  --new-table-hd-bg: #E2DED9;    /* テーブルヘッダ背景 */
  --new-table-row-bg: #F9F8F6;   /* テーブル偶数行背景 */

  /* テキスト設定 */
  --new-text-color: #333333;     /* 基本文字色 */
  --new-line-height: 1.8;        /* 標準行間 */
  --new-line-height-box: 2;      /* パネル内行間 */

  /* 注釈・補足用 */
  --new-sup-color: #307166;      /* 注釈番号の色 (mint-dark同期) */
  --new-gray-text: #666666;      /* 補足テキストの色 */
}

/* ==========================================================
 Block 1: 記事本文ベース設定 & 段落
 ========================================================== */

/* 1-1. コンテナ設定 (フォントは上位から継承) */
.content-frame .box-post-detail-cmn {
  font-size: 18px;
  line-height: var(--new-line-height);
  color: var(--new-text-color);
  word-break: break-all;
  text-align: left;
}

/* レスポンシブ対応：720px以下 */
@media screen and (max-width: 720px) {
  .content-frame .box-post-detail-cmn {
    font-size: 16px;
  }
}

/* 1-2. 段落 (p) */
.content-frame .box-post-detail-cmn {
	p {
		text-indent: 0;
		margin-top: 8px;
		margin-bottom: 32px;

		@media (max-width: 720px) {
			margin-bottom: 24px;
		}
	}

	p:first-of-type {
		margin-top: 32px;

		@media (max-width: 720px) {
			margin-top: 24px;
		}
	}
}

/* 1-3. リンクの配色同期 */
.content-frame .box-post-detail-cmn a {
  color: var(--new-mint-dark);
  text-decoration: none;
}
.content-frame .box-post-detail-cmn a:hover {
  text-decoration: underline;
}

/* ==========================================================
 Block 2: 画像と配置 (角丸・センタリング)
 ========================================================== */

/* 2-1. 記事内画像の基本設定 */
.content-frame .box-post-detail-cmn img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-frame .box-post-detail-cmn img.br0 {
  border-radius: 0;
}

/* 2-2. WordPress標準の配置クラス */
.content-frame .box-post-detail-cmn .aligncenter,
.content-frame .box-post-detail-cmn .wp-caption.aligncenter {
  display: block;
  margin: 24px auto;
  clear: both;
}

.content-frame .box-post-detail-cmn .alignleft,
.content-frame .box-post-detail-cmn .wp-caption.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.content-frame .box-post-detail-cmn .alignright,
.content-frame .box-post-detail-cmn .wp-caption.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

/* 2-3. キャプション (figcaption) */
.content-frame .box-post-detail-cmn .wp-caption figcaption {
  font-size: 0.75rem;
  color: #555555;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
  text-indent: 0;
}

/* 汎用クラス */
.content-frame .textalignleft {
	text-align: left;
}

.content-frame .textalignright {
	text-align: right;
}

/* キャプションに適用 */
.content-frame .box-post-detail-cmn .wp-caption figcaption.textalignleft {
	text-align: left;
}

.content-frame .box-post-detail-cmn .wp-caption figcaption.textalignright {
	text-align: right;
}

/* 2-4. 汎用横幅ユーティリティ */
.content-frame .box-post-detail-cmn .wid_30per { width: 30%; }
.content-frame .box-post-detail-cmn .wid_50per { width: 50%; }
.content-frame .box-post-detail-cmn .wid_100per { width: 100%; }

/* 2-5. スマホ表示時の回り込み解除 */
@media screen and (max-width: 720px) {
  .content-frame .box-post-detail-cmn .alignleft,
  .content-frame .box-post-detail-cmn .alignright {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 特殊画像 */
.content-frame .box-post-detail-cmn  img.moji,
.content-frame .box-post-detail-cmn  img.icon {
  display: inline-block;
  margin-top: 6px;
  width: auto;
  border-radius: 0;
}

.content-frame .box-post-detail-cmn  img.navi {
  display: inline-block;
  width: auto;
  border-radius: 0;
}

/* Youtube 動画のレスポンシブ対応 */
.movie-wrap {
    margin-bottom: 1.5rem;
    max-width: 100%;
    display: table; 

    iframe {
        display: block;
        max-width: 100%;
    }

    /* 【スマホ表示 (720px以下)】 */
    @media screen and (max-width: 720px) {
        display: block; 
        width: 100%;

        iframe {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 16 / 9; 
        }
    }
}


/* ==========================================================
 Block 3: 見出し (階層シフト対応・数値を厳密に反映)
 ========================================================== */

/* 3-1. 旧 h3 → 新 h2 スタイル (サンド背景 + 左バー) */
.content-frame .box-post-detail-cmn h3:not(.ttl-partlist-cmn-02) {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--new-text-color);
  background: var(--new-sand-bg);
  border-radius: 12px;
  padding: 18px 14px;
  margin: 24px 0 18px;
  position: relative;
  border: none;
  line-height: 1.5;
}

.content-frame .box-post-detail-cmn h3:not(.ttl-partlist-cmn-02)::before {
  content: '';
  position: absolute;
  background: var(--new-accent-green);
  left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 32px;
}

/* 3-2. 旧 h4 → 新 h3 スタイル (上下ボーダー) */
.content-frame .box-post-detail-cmn h4 {
  font-weight: 600;
  font-size: 1.15rem;
  border-width: 2px 0px;
  border-style: solid;
  border-color: #8F7867;
  padding: 10px 0;
  margin: 24px 0 18px;
  background: transparent;
  border-left: none;
}

/* 3-3. 旧 h5 → 新 h4 スタイル (左細バー) */
.content-frame .box-post-detail-cmn h5 {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0 10px 0 12px;
  margin: 24px 0 12px;
  position: relative;
  border-left: none;
}

.content-frame .box-post-detail-cmn h5::before {
  content: '';
  position: absolute;
  background: var(--new-accent-green);
  left: 0; top: 20%; height: 60%; width: 3px;
}

/* 3-4. 旧 h6 → 新 h5 スタイル (下線) */
.content-frame .box-post-detail-cmn h6 {
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid #8F7867;
  padding-bottom: 6px;
  margin: 20px 0 12px;
}

/* ==========================================================
 Block 4: パネル要素 (box-panel-01〜04)
 ========================================================== */

.content-frame .box-post-detail-cmn [class^="box-panel-"] {
  line-height: var(--new-line-height-box);
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 12px;
}

.content-frame .box-post-detail-cmn [class^="box-panel-"] p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 0;
}

/* box-panel-01: 白背景 + 2pxボーダー */
.content-frame .box-post-detail-cmn .box-panel-01 {
  background-color: #ffffff;
  border: 2px solid var(--new-border-color);
}

/* box-panel-02 & 03: サンド背景 */
.content-frame .box-post-detail-cmn .box-panel-02,
.content-frame .box-post-detail-cmn .box-panel-03 {
  background-color: var(--new-sand-bg);
  border: none;
}

.content-frame .box-post-detail-cmn .box-panel-04 {
  border: 2px solid var(--new-border-color);
}

/* ==========================================================
 Block 5: テーブル (ゼブラ設定・背景色同期)
 ========================================================== */

.content-frame .box-post-detail-cmn .box-table-reponsive table {
  border: 2px solid var(--new-border-color);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
  background-color: #ffffff;
}

.content-frame .box-post-detail-cmn .box-table-reponsive th,
.content-frame .box-post-detail-cmn .box-table-reponsive td {
  padding: 12px 15px;
  border: 1px solid var(--new-border-color);
}

.content-frame .box-post-detail-cmn .box-table-reponsive th {
  background: var(--new-table-hd-bg);
  font-weight: 600;
  text-align: center;
}

/* 偶数行・奇数行の背景色切り替え (ゼブラ設定) */
.content-frame .box-post-detail-cmn .box-table-reponsive tbody tr:nth-child(odd) td {
  background-color: #ffffff;
}
.content-frame .box-post-detail-cmn .box-table-reponsive tbody tr:nth-child(even) td {
  background-color: var(--new-table-row-bg);
}

.content-frame .box-post-detail-cmn .box-table-reponsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================
 Block 6: リストと引用 (垂直位置修正版)
 ========================================================== */

/* 6-1. リスト (ul / ol) */
.content-frame .box-post-detail-cmn ul {
  list-style: none;
  margin: 16px 0;
  padding-left: 0;
}

.content-frame .box-post-detail-cmn ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-frame .box-post-detail-cmn ul li {
  margin: 16px 0;
  padding-left: 20px;
  position: relative;
  font-size: 18px;
  line-height: 2.2;
  font-weight: 400;

  @media screen and (max-width: 720px) {
    font-size: 16px;
  }
}

.content-frame .box-post-detail-cmn ul li::before {
  background: var(--new-accent-green);
  border-radius: 50%;
  content: '';
  height: 8px;
  width: 8px;
  left: 0;
  position: absolute;
  top: 1.1em;
  transform: translateY(-50%);
}

/* 6-2. 引用 (blockquote) - 新スタイル同期 */
.content-frame .box-post-detail-cmn blockquote {
  position: relative;
  margin: 16px 0;
  padding: 34px 40px;
  background: transparent;
  border: 1px solid var(--new-border-color); /* var(--color-border) 相当 */
  border-radius: 12px;
  line-height: 2;
  font-style: normal;
}

@media screen and (max-width: 720px) {
  .content-frame .box-post-detail-cmn blockquote {
    padding: 34px 32px;
  }
}

.content-frame .box-post-detail-cmn blockquote::before,
.content-frame .box-post-detail-cmn blockquote::after {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

.content-frame .box-post-detail-cmn blockquote::before {
  background-image: url("img/format_quote-left.png");
  top: 12px;
  left: 16px;
}

.content-frame .box-post-detail-cmn blockquote::after {
  background-image: url("img/format_quote-right.png");
  right: 16px;
  bottom: 12px;
}

.content-frame .box-post-detail-cmn blockquote p {
  margin: 0;
}

/* ==========================================================
 Block 7: 説明リスト (dl) - 旧スタイル維持
 ========================================================== */

.content-frame .box-post-detail-cmn dl {
  color: #000;
  border: 1px solid #aaaaaa;
  border-radius: 6px;
  background: rgba(255, 255, 255, .8);
  overflow: hidden; /* 角丸のはみ出し防止 */
}

/* dl同士の間隔調整 */
.content-frame .box-post-detail-cmn * + dl {
  margin-top: 40px;
}
.content-frame .box-post-detail-cmn dl:not(:first-of-type) {
  margin-top: 30px;
}

/* 用語 (dt) */
.content-frame .box-post-detail-cmn dl dt {
  font-size: 2rem;
  font-weight: bold;
  border-bottom: 1px dotted #000000;
  padding: 10px 15px;
}

@media screen and (max-width: 767px) {
  .content-frame .box-post-detail-cmn dl dt {
    font-size: 1.6rem;
  }
}

/* 説明 (dd) */
.content-frame .box-post-detail-cmn dl dd {
  margin-top: 30px;
  padding: 0 15px;
  padding-left: 55px;
  position: relative;
  font-family: 'Yu Mincho', "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

.content-frame .box-post-detail-cmn dl dd:last-of-type {
  margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
  .content-frame .box-post-detail-cmn dl dd {
    font-size: 1.6rem;
    margin-top: 20px;
  }
  .content-frame .box-post-detail-cmn dl dd:last-of-type {
    margin-bottom: 20px;
  }
}

/* 指差しアイコン (\261E) */
.content-frame .box-post-detail-cmn dl dd::before {
  content: '\261E';
  display: block;
  position: absolute;
  left: 15px;
  top: 6px;
  font-size: 2.4rem;
  line-height: 1;
}

@media screen and (max-width: 767px) {
  .content-frame .box-post-detail-cmn dl dd::before {
    top: 1px;
  }
}

/* ==========================================================
 Block 8: 注釈 (sup / .sup-text)
 ========================================================== */

.content-frame .box-post-detail-cmn sup {
  color: var(--new-sup-color);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  vertical-align: 0.5em;
}

.content-frame .box-post-detail-cmn .sup-text {
  color: var(--new-gray-text);
}

/* ==========================================================
 Block 9: 特殊な段落スタイル (ダブルダッシュ付き)
 ========================================================== */

/* 共通設定 */
.content-frame .box-post-detail-cmn > p[class^="p-double-dashed"],
.content-frame .box-post-detail-cmn blockquote p[class^="p-double-dashed"],
.content-frame .box-post-detail-cmn table p[class^="p-double-dashed"],
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p[class^="p-double-dashed"] {
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  line-height: 1.9;
  text-indent: 0;
}

.content-frame .box-post-detail-cmn > p[class^="p-double-dashed"]::before,
.content-frame .box-post-detail-cmn blockquote p[class^="p-double-dashed"]::before,
.content-frame .box-post-detail-cmn table p[class^="p-double-dashed"]::before,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p[class^="p-double-dashed"]::before {
  content: '──';
  display: inline;
  letter-spacing: -0.1px;
  padding-right: 2px;
}

/* 個別色設定 */

/* p-double-dashed (標準) */
.content-frame .box-post-detail-cmn > p.p-double-dashed,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed,
.content-frame .box-post-detail-cmn table p.p-double-dashed,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed {
  /* 特殊色指定なし */
}

/* p-double-dashed-lb (水色) */
.content-frame .box-post-detail-cmn > p.p-double-dashed-lb,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-lb,
.content-frame .box-post-detail-cmn table p.p-double-dashed-lb,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-lb {
  font-weight: bold;
  color: #007bbb;
}
.content-frame .box-post-detail-cmn > p.p-double-dashed-lb::before,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-lb::before,
.content-frame .box-post-detail-cmn table p.p-double-dashed-lb::before,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-lb::before {
  color: #007bbb;
}

/* p-double-dashed-db (濃紺) */
.content-frame .box-post-detail-cmn > p.p-double-dashed-db,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-db,
.content-frame .box-post-detail-cmn table p.p-double-dashed-db,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-db {
  font-weight: bold;
  color: #19448e;
}
.content-frame .box-post-detail-cmn > p.p-double-dashed-db::before,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-db::before,
.content-frame .box-post-detail-cmn table p.p-double-dashed-db::before,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-db::before {
  color: #19448e;
}

/* p-double-dashed-red (赤) */
.content-frame .box-post-detail-cmn > p.p-double-dashed-red,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-red,
.content-frame .box-post-detail-cmn table p.p-double-dashed-red,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-red {
  font-weight: bold;
  color: #a22041;
}
.content-frame .box-post-detail-cmn > p.p-double-dashed-red::before,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-red::before,
.content-frame .box-post-detail-cmn table p.p-double-dashed-red::before,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-red::before {
  color: #a22041;
}

/* p-double-dashed-gray (グレー) */
.content-frame .box-post-detail-cmn > p.p-double-dashed-gray,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-gray,
.content-frame .box-post-detail-cmn table p.p-double-dashed-gray,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-gray {
  font-weight: bold;
  color: #444444;
}
.content-frame .box-post-detail-cmn > p.p-double-dashed-gray::before,
.content-frame .box-post-detail-cmn blockquote p.p-double-dashed-gray::before,
.content-frame .box-post-detail-cmn table p.p-double-dashed-gray::before,
.content-frame .box-post-detail-cmn div[class^="box-panel-"] p.p-double-dashed-gray::before {
  color: #444444;
}

/* ==========================================================
 Block 10: 過去記事互換用
 ========================================================== */
.kanko_mado_indent {
  text-indent: 1em;
  display: inline-block;
}

.kanko_mado_imgbase {
  overflow: hidden;
}

.kanko_mado_imgleft {
  float: left;
  margin-right: 2%;
}

.kanko_mado_imgleft_05-03 {
  float: left;
  margin-right: 0;
  width: 33%;
}

.kanko_mado_imgleft_half {
  float: left;
  margin-right: 0;
  width: 49%;
}

.kanko_mado_imgright {
  float: right;
  margin-left: 2%;
}

.kanko_square {
  border: 1px solid #000000;
  padding: 1px;
}

.heiho {
  position: relative;
  top: -5px;
  font-size: 9px;
}

@media screen and (max-width: 720px) {
  .part-list-page .box-post-detail-cmn {
    padding: 22px 0 0;
  }

  .box-post-detail-cmn img {
    max-width: 100%;
  }

  .kanko_mado_imgleft {
    float: none;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .kanko_mado_imgleft_half,
  .kanko_mado_imgleft_05-03 {
    float: none;
    width: auto;
  }

  .kanko_mado_imgright {
    float: none;
    margin-left: 0;
    margin-bottom: 10px;
  }

  .kanko_mado_imgclear {
    clear: both;
  }
}

