@charset "UTF-8";

/* ==========================================================================
   1. 現代的なプロ仕様の軽量リセットCSS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box; /* 余白を含めたサイズ計算にする設定 */
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* スクロールを滑らかにする（上へボタン用） */
}

body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  background: transparent;
  border: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   2. WordPressのボタンの初期スタイルを完全にリセット
   ========================================================================== */
.wp-element-button {
    /* WP固有の装飾を解除 */
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    padding: 0 !important;
}

/* ==========================================================================
   3. ブロックの幅を100％にリセット
   ========================================================================== */
/* 1. 外枠から数えてブロックの直上にある親要素まで、すべての幅制限（max-width）を100%に解放する */
.site-main__inner,
.site-main__inner > article,
.entry-main-content__content.entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. 通常のブロック（全幅指定のないもの）は、自動で元の 1060px に収めて中央寄せにする */
.entry-main-content__content.entry-content > *:not(.alignfull) {
    max-width: 1060px; /* 元のコンテンツ幅 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;  /* スマホ・PCで見たときの左右の最低限の余白 */
    padding-right: 20px;
}

/* 3. 全幅（.alignfull）がついたグループブロックは制限なしで100%画面いっぱいに広げる */
.entry-main-content__content.entry-content > .alignfull {
    width: 100% !important;
    max-width: 100% !important;
}


/* ==========================================================================
   4. my-container の中だけ、WordPress の基準コンテンツ幅（800px）を 1060px に上書きする
   ========================================================================== */

.wp-block-group.my-container {
    --wp--style--global--content-size: 1060px !important;
    width: 100% !important;
    max-width: 1060px !important;
}
