@charset "UTF-8";

/* =========================================================
   WhiteDress Border Radius Design Layer

   このファイルはテーマ全体の丸みを管理します。

   --theme-border-radius-section
   セクション / カード / パネル / 背景型ブロック / カテゴリー・タグのラベル

   --theme-border-radius-button
   ボタン / CTA / クリック可能な操作部品

   --theme-border-radius-small-parts
   日付ラベル / バッジ / 小型アイコン背景（基本はボタンの丸み、角丸設定時は9999px）

   --theme-border-radius-avatar
   著者 / コメント / アバター画像（基本はボタンの丸み、コンテンツ側の角丸設定時は9999px）
========================================================= */

/* =========================================================
   Section / Card / Panel
========================================================= */

.main-section,
.sidebar-section,

.list-articles-card,
.card-design-overlap-card .articles-card-text-section,
.articles-posted-card-figure-zone,
.articles-posted-card-image-item,

.single-category-item,
.single-tags-item,
.articles-category-item,
.articles-tags-item,
.label-item-small,

.page-feed-box,
.page-feed-image-section,
.page-feed-thumbnail,

.entry-header-simple :is(.single-media-section, .page-media-section),
.entry-header-simple :is(.single-title-header-media, .page-title-header-media),

.related-contents,
.related-thumbnail,

.comment-body,
.comment-respond,
.comment-respond #comment,
.comment-respond #author,
.comment-respond #email,
.comment-respond #url,

.theme-pickup-slider-container,
.theme-pickup-slider-item,
.theme-pickup-slider-item img,

.popup-message-contents,
.popup-message-window,
.search-window,

.hero-media-text-contents,

.entry-header-overlap-card,
.entry-header-pattern-cover-side-panel .entry-header-cover-content,

.wp-caption,
.wp-block-quote,

[class*="is-style-theme-speechbubble-square-"],
/* 丸みを付けない: 上下線吹き出しのため除外 */

[class*="is-style-theme-box-top"],

[class*="is-style-theme-point-"],
[class*="is-style-theme-point-"]::before,

.is-style-theme-bgcolor-color,
/* 丸みを付けない: 背景+上下線のため除外 */
.is-style-theme-border-square-thin-color,

.is-style-theme-left-color-shadow,
.is-style-theme-shadow-rightbottom,
.is-style-theme-shadow-square,
.is-style-theme-shadow-alignment,


.is-style-theme-image-rounded-skin img,
.is-style-theme-image-rounded-corners img,

.is-style-theme-image-border-box img,
.is-style-theme-image-outline-white img,
.is-style-theme-image-outline-color img,

/* WordPress標準の背景色付きブロックと、枠付きの段落・グループ */
h1.has-background,
h2.has-background,
h3.has-background,
h4.has-background,
h5.has-background,
h6.has-background,
p,

.wp-block-group,
.wp-block-columns.has-background,
.wp-block-column.has-background,
.wp-block-media-text.has-background,
.wp-block-details.has-background,
.wp-block-pullquote.has-background,
.wp-block-image.has-background {
  border-radius: var(--theme-border-radius-section);
}

.wp-block-code {
  border-radius: var(--theme-border-radius-section);
}

/* 見出しの線装飾は、背景色を付けた場合も角を丸めません。 */
:is(h1, h2, h3, h4, h5, h6):is(
  .is-style-theme-updownline-color,
  .is-style-theme-under-line-thin-color,
  .is-style-theme-top-line-thin-color,
  .is-style-theme-updown-line-middle-color,
  .is-style-theme-updown-line-thin-color,
  .is-style-theme-updown-line-double-color,
  .is-style-theme-left-color-line,
  .is-style-theme-left-color-shadow,
  .is-style-theme-center-line-color,
  .is-style-theme-square-brackets-color,
  .is-style-theme-big-brackets-color,
  [class*="is-style-theme-speechbubble-updown-"]
) {
  border-radius: 0;
}

/* =========================================================
   Section内の特殊形状
========================================================= */

/* 目次は開いている場合、タイトルと本文の接合部分を四角にします。 */
.toc-details,
.toc-details:not([open]) > .toc-summary {
  border-radius: var(--toc-border-radius, var(--theme-border-radius-section));
}

.toc-summary {
  border-radius:
    var(--toc-border-radius, var(--theme-border-radius-section))
    var(--toc-border-radius, var(--theme-border-radius-section))
    0
    0;
}

/* =========================================================
   丸み部分のクリッピング
========================================================= */

/*
 * 画像や背景が角からはみ出す箇所だけクリッピングします。
 * ウィジェット全体には指定せず、フォーカス枠や影が切れないようにします。
 */
.articles-posted-card-figure-zone,
.articles-posted-card-image-item,
.related-thumbnail,
.page-feed-image-section,
.entry-header-simple :is(.single-media-section, .page-media-section),
.theme-pickup-slider-item,
.popup-message-contents,
.popup-message-window,
:where(.search-form),
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
  overflow: hidden;
}

/* =========================================================
   Button / CTA / Clickable UI
========================================================= */

.wp-element-button,
.wp-block-button > .wp-block-button__link,
.wp-block-file__button,

.comment-respond #submit,

.sns-follow-button,

.articles-posted-card-button-section,

.header-contact-contents,

.popup-message-close-button,
nav .page-numbers,
.pagination-section .post-page-numbers,
.back-to-top {
  border-radius: var(--theme-border-radius-button);
}

.sns-share-button {
  border-radius: var(--sns-share-border-radius, var(--theme-border-radius-button));
}

.hero-media-item-button {
  border-radius: var(--hero-slider-button-border-radius, var(--theme-border-radius-button));
}

/* キャンペーンバーは共通設定にかかわらず、未指定時は丸にする。 */
.campaign-bar .campaign-link {
  border-radius: 9999px;
}

/* =========================================================
   WhiteDress Search Form / WordPress Search Block
========================================================= */

/* 入力欄とボタンを連結する型 */
:where(.search-form),
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
  border-radius: var(--theme-border-radius-button);
}

.search-input,
:is(.wp-block-search__button-inside, .wp-block-search__button-outside) .wp-block-search__input {
  border-radius:
    var(--theme-border-radius-button)
    0
    0
    var(--theme-border-radius-button);
}

.search-submit,
:is(.wp-block-search__button-inside, .wp-block-search__button-outside) .wp-block-search__button {
  border-radius:
    0
    var(--theme-border-radius-button)
    var(--theme-border-radius-button)
    0;
}

/* 検索ボタンを入力欄へ接続します。個別の余白指定は優先します。 */
:is(.wp-block-search__button-inside, .wp-block-search__button-outside) .wp-block-search__button {
  margin-inline-start: 0;
}

/* =========================================================
   Small Parts / Badge / Label
========================================================= */

[class*="is-style-theme-box-top"]::before {
  border-radius: var(--theme-border-radius-small-parts);
}

/* =========================================================
   Avatar / Profile Image
========================================================= */

.main-class .avatar,
.sidebar .avatar,

.comment-body .avatar,

.wp-block-avatar img,
.wp-block-post-author__avatar img,
.wp-block-latest-comments__comment-avatar {
  border-radius: var(--theme-border-radius-avatar);
}

/* =========================================================
   Fixed Side Share Buttons
========================================================= */

/*
 * 画面端へ固定するSNSボタンは、画面に接する側を四角にします。
 * ボタングループ外側の角だけ丸めます。
 */

/* 左側固定 */
:where(.sns-share-single-leftside, .sns-share-page-leftside) > .sns-share-button {
  border-radius: 0;
}

:where(.sns-share-single-leftside, .sns-share-page-leftside) > .sns-share-button:where(:first-child) {
  border-top-right-radius: var(--sns-share-border-radius, var(--theme-border-radius-button));
}

:where(.sns-share-single-leftside, .sns-share-page-leftside) > .sns-share-button:where(:last-child) {
  border-bottom-right-radius: var(--sns-share-border-radius, var(--theme-border-radius-button));
}

/* 右側固定 */
:where(.sns-share-single-rightside, .sns-share-page-rightside) > .sns-share-button,
:where(.display-right-absolute) .sns-share-button {
  border-radius: 0;
}

:where(.sns-share-single-rightside, .sns-share-page-rightside) > .sns-share-button:where(:first-child),
:where(.display-right-absolute) .sns-share-button:where(:first-child) {
  border-top-left-radius: var(--sns-share-border-radius, var(--theme-border-radius-button));
}

:where(.sns-share-single-rightside, .sns-share-page-rightside) > .sns-share-button:where(:last-child),
:where(.display-right-absolute) .sns-share-button:where(:last-child) {
  border-bottom-left-radius: var(--sns-share-border-radius, var(--theme-border-radius-button));
}

/* =========================================================
   Explicit Shape Styles
========================================================= */

/* スタイル名として四角・丸を明示しているものは、ブロック固有デザインを優先します。 */
.is-style-theme-image-square img {
  border-radius: 0;
}
