/* =============================
  静的コンテンツページ用CSS
  利用規約、メディアポリシーなど
============================= */

.main-content{
  width: 94%;
  margin: 0 auto;
  padding: 0 0 80px;
}
.static-page-content ol li, .static-page-content ul li, .static-page-content p {
  font-size: 12px;
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-space-tight);
}
@media screen and (min-width: 768px) {
  .static-page-content ol li, .static-page-content ul li, .static-page-content p {
    font-size: 14px;
  }
  .main-content{
    padding: 0 0 120px;
  }
}

/* =============================
  ページヘッダー
============================= */
.static-page-header {
  width: 100%;
  margin-bottom: 30px;
}

.static-page-title {
  font-size: 26px;
  line-height: 1.5;
  font-weight: var(--font-sub-weight);
  color: var(--color-text);
  margin: 24px 0 0;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--color-main);
}

/* =============================
  ページコンテンツ
============================= */
.static-page-content {
  width: 100%;
  color: var(--color-text);
}

/* 見出し h2 */
.static-page-content h2 {
  font-size: 20px;
  font-weight: var(--font-sub-weight);
  line-height: 1.5;
  color: var(--color-text);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-light);
}

/* 見出し h3 */
.static-page-content h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text);
  border-left: solid 4px var(--color-main);
  padding-left: 12px;
  margin: 1.8em 0 0.8em;
}

/* 段落 */
.static-page-content p {
  margin-bottom: 20px;
}

/* 番号付きリスト */
.static-page-content ol {
  margin: 20px 0;
  list-style: decimal;
}

.static-page-content ol li {
  margin-bottom: 15px;
}

.static-page-content ol li:last-child {
  margin-bottom: 0;
}

/* 箇条書きリスト */
.static-page-content ul {
  list-style: disc;
  margin: 20px 0;
}

.static-page-content ul li {
  margin-bottom: 12px;
}

.static-page-content ul li:last-child {
  margin-bottom: 0;
}

/* ネストされたリスト */
.static-page-content ol ol,
.static-page-content ol ul,
.static-page-content ul ol,
.static-page-content ul ul {
  margin: 10px 0;
}

/* 区切り線 */
.static-page-content hr {
  border: none;
  border-top: 1px solid var(--color-light);
  margin: 40px 0;
}

/* 太字 */
.static-page-content strong {
  font-weight: var(--font-bold-weight);
}

/* 改定履歴など特殊要素 */
.static-page-content > p:has(strong) {
  font-weight: var(--font-sub-weight);
  margin-top: 30px;
}

/* リンク */
.static-page-content a {
  color: var(--color-main);
  text-decoration: underline;
}

.static-page-content a:hover {
  opacity: 0.7;
}

/* 外部リンクアイコン */
.static-page-content a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.25em;
  vertical-align: -0.1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2347a0aa' viewBox='0 0 256 256'%3E%3Cpath d='M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* SNSアイコンリンクには外部リンクアイコンを表示しない */
.static-page-content .about-sns-icons a::after {
  content: none;
}

/* ボタンスタイルのリンクには外部リンクアイコンを表示しない */
.static-page-content a.btn_style-writer::after,
.static-page-content a[class*="btn"]::after {
  content: none;
}

/* 画像 */
.static-page-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* 画像コンテナ（figure要素） */
.static-page-content figure {
  padding: 20px 0;
  margin: 0;
}

/* 画像キャプション（必要に応じて使用） */
.static-page-content figcaption {
  font-size: 12px;
  color: var(--color-text);
  margin-top: 8px;
  text-align: center;
}

/* =============================
  レスポンシブ対応（PC）
============================= */
@media screen and (min-width: 768px) {
  .static-page-header {
    margin-bottom: 40px;
  }

  .static-page-title {
    font-size: 32px;
    padding-bottom: 25px;
  }

  .static-page-content h2 {
    font-size: 24px;
    margin: 50px 0 25px;
    padding-bottom: 12px;
  }

  .static-page-content h3 {
    font-size: 20px;
    margin: 2em 0 1em;
  }

  .static-page-content p {
    margin-bottom: 25px;
  }

  .static-page-content ol {
    margin: 25px 0;
  }

  .static-page-content ul {
    margin: 25px 0;
  }

  .static-page-content ol li,
  .static-page-content ul li {
    margin-bottom: 18px;
  }

  .static-page-content ol li:last-child,
  .static-page-content ul li:last-child {
    margin-bottom: 0;
  }

  .static-page-content hr {
    margin: 50px 0;
  }
}

/* =============================
  印刷対応
============================= */
@media print {
  .static-page-title {
    color: #000;
    border-bottom-color: #000;
  }

  .static-page-content {
    color: #000;
  }

  .static-page-content h2,
  .static-page-content h3 {
    color: #000;
    page-break-after: avoid;
  }

  .static-page-content p,
  .static-page-content li {
    orphans: 3;
    widows: 3;
  }
}

/* =============================
  利用規約ページ専用CSS
============================= */

/* 箇条書きリスト余白（利用規約固有） */
.page-template-page-terms .static-page-content ul {
  padding-left: 20px;
}

@media screen and (min-width: 768px) {
  .page-template-page-terms .static-page-content ul {
    padding-left: 30px;
  }
}

/* =============================
  メディアポリシーページ専用CSS
============================= */

/* 目次（記事の article-toc スタイルを適用） */
.page-template-page-media-policy .table-of-contents {
  padding: 20px;
  background-color: var(--color-bg-gray);
  border-radius: var(--radius-10);
  margin: 50px 0;
}

.page-template-page-media-policy .table-of-contents li {
  font-size: 14px;
  line-height: 1.6em;
  font-weight: bold;
  position: relative;
  padding-left: 1.2em;
  list-style: none;
  margin-bottom: 10px;
}

.page-template-page-media-policy .table-of-contents li:last-child {
  margin-bottom: 0;
}

.page-template-page-media-policy .table-of-contents li::before {
  content: "●";
  color: var(--color-main) !important;
  position: absolute;
  left: 0;
  top: 0.75em;
  font-size: 0.7em;
}

.page-template-page-media-policy .table-of-contents a {
  text-decoration: underline !important;
  color: var(--color-text);
}

.page-template-page-media-policy .table-of-contents a:hover {
  opacity: 0.7;
}

/* 箇条書きリスト余白 */
.page-template-page-media-policy .static-page-content ul:not(.table-of-contents) {
  padding-left: 20px;
}

@media screen and (min-width: 768px) {
  .page-template-page-media-policy .table-of-contents {
    padding: 25px;
    margin: 50px 0;
  }

  .page-template-page-media-policy .static-page-content ul:not(.table-of-contents) {
    padding-left: 30px;
  }
}

/* =============================
  aboutページ専用CSS
============================= */

/*
 * About SNS - 固有スタイル
 * 共通スタイルはcommon.cssで定義済み
 * ここではaboutページ固有の差分のみ記述
 */
.page-template-page-about .about-sns {
  width: 100%;
  height: auto;
  background: var(--color-bg-gray); /* footerと異なる背景色 */
  border-radius: var(--radius-8);
  padding-block: 25px;
  text-align: center;
  margin: 30px 0; /* footerと異なるマージン */
}

@media screen and (min-width: 768px) {
  .page-template-page-about .about-sns {
    width: auto;
    padding: 20px 60px 30px;
    margin: 40px 0;
  }
  .about-sns-icons {
    gap: 36px;
  }
  .about-sns-icons a img {
    width: 34px;
    height: 34px;
  }
  .about-sns-icons a img[alt="X"] {
    width: 30px;
    height: 30px;
  }

  /* アイコンは中央寄せを維持（footerのspace-betweenを上書きしない） */
}
