@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../font/NotoSansJP-wght.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Serif JP";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../font/NotoSerifJP-wght.ttf") format("truetype");
}

:root {
  --color-text: #473a1c;
  --color-orange: #ff8600;
  --color-orange-light: #ffa643;
  --color-orange-pale: #ffdcb5;
  --color-cream: #fdf9f3;
  --color-gray-axis: #424242;
  --color-gray-cell: #f8f8f8;
  --color-peach-cell: #ffd2a0;
  --color-gray-heading: #d0d0d0;
  --color-price-table-border: #e8e8e8;
  --color-gold-border: #ac8e4b;
  --color-cta-bg: #ffc98c;
  --color-blue-a: #5597b7;
  --color-blue-b: #0f7eb4;
  --color-header-end: #f0ebe4;
  --color-footer: #473a1c;
  --color-star: #ffce00;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", serif;
  --w-page: 1440px;
  --w-content: 1160px;
  --pad-x: 15px;
  --shadow-header: 0 3px 15px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 4px 18px rgba(71, 58, 28, 0.06);
  --shadow-float: 0 12px 36px rgba(71, 58, 28, 0.08);
  --fluid-t: clamp(0px, calc((100vw - 393px) / 1047), 1px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #e8e2d9;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 20px;
  }

  body {
    background: #f8f5f2;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}


/* Gutenberg content typography and ornaments */
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h1,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h2,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h3,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h4,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h5,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h6,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) p,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) .wp-block-image {
  margin-bottom: 20px;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h1 {
  font-size: calc(1.5rem + 6 * var(--fluid-t));
  /* 24px - 30px */
  line-height: 1.34;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h2 {
  position: relative;
  margin-top: 40px;
  padding: 20px 30px;
  border-radius: 8px;
  background: #fdd11a;
  font-size: calc(1.25rem + 10 * var(--fluid-t));
  /* 20px - 30px */
  line-height: 1.34;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h2::before,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h2::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background: url("../img/reform_card_corner.svg") center / contain no-repeat;
  pointer-events: none;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h2::before {
  left: -8px;
  top: -8px;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h2::after {
  right: -8px;
  bottom: -8px;
  transform: rotate(180deg);
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h3 {
  position: relative;
  margin-top: 32px;
  padding-left: 28px;
  font-size: calc(1.125rem + 8 * var(--fluid-t));
  /* 18px - 26px */
  line-height: 1.34;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h3::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff8800;
  transform: translateY(-50%);
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h4 {
  font-size: calc(1rem + 6 * var(--fluid-t));
  /* 16px - 22px */
  line-height: 1.34;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h5 {
  font-size: calc(0.875rem + 6 * var(--fluid-t));
  /* 14px - 20px */
  line-height: 1.34;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) h6 {
  font-size: calc(0.8125rem + 5 * var(--fluid-t));
  /* 13px - 18px */
  line-height: 1.34;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) p {
  font-size: calc(0.8125rem + 3 * var(--fluid-t));
  /* 13px - 16px */
  line-height: 1.8;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) p a {
  color: #ff8800;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) blockquote {
  margin: 40px 0;
  padding: 2px 0 2px 24px;
  border-left: 5px solid #5d5030;
  /* 濃いめの茶色（スクリーンショットに近い色） */
  color: var(--color-text);
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) blockquote p {
  margin-bottom: 0;
  font-size: 0.95em;
}

:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) .wp-block-image img,
:where(.wp-block-post-content, .editor-styles-wrapper, .entry-content, .under-content) img {
  border-radius: 8px;
}

@media (max-width: 767px) {

  :where(.under-content) h1,
  :where(.under-content) h2,
  :where(.under-content) h3,
  :where(.under-content) h4,
  :where(.under-content) h5,
  :where(.under-content) h6,
  :where(.under-content) p,
  :where(.under-content) blockquote {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Reset margin for elements inside blockquote to avoid double indentation */
  :where(.under-content) blockquote p,
  :where(.under-content) blockquote h1,
  :where(.under-content) blockquote h2,
  :where(.under-content) blockquote h3,
  :where(.under-content) blockquote h4,
  :where(.under-content) blockquote h5,
  :where(.under-content) blockquote h6 {
    margin-left: 0;
    margin-right: 0;
  }
}

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

/* WordPress Alignment Classes */
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.aligncenter img {
  display: inline-block;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.has-text-align-center {
  text-align: center !important;
}

.has-text-align-left {
  text-align: left !important;
}

.has-text-align-right {
  text-align: right !important;
}

.page-root {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
  background-color: #faf8f5;
  overflow-x: hidden;
}

.page-root__bg-pattern {
  display: none;
}

.site-main {
  position: relative;
  z-index: 1;
  padding-top: 65px;
}

@media (min-width: 768px) {
  .site-main {
    padding-top: 70px;
  }

  .page-root__bg-pattern {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    object-fit: contain;
    object-position: center top;
  }
}