@charset "UTF-8";

/*
 * MyBuddha standalone theme base.
 * Provides only the generic layout/reset that the old parent theme supplied.
 * Product-specific UI remains in style.css.
 */

:root {
  --mb-theme-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  font-family: var(--mb-theme-font);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

a {
  color: #5a3f2b;
  text-underline-offset: 0.14em;
}

a:hover {
  color: #3f2c1f;
}

p,
ul,
ol,
dl,
blockquote,
figure,
pre,
table {
  margin-top: 0;
  margin-bottom: 1.2em;
}

ul,
ol {
  padding-left: 1.7em;
}

hr {
  border: 0;
  border-top: 1px solid #e7ded2;
  margin: 2em 0;
}

pre,
code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

pre {
  overflow: auto;
  padding: 1em;
  border-radius: 12px;
  background: #f1ece4;
}

blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.3em 0 0.3em 1em;
  border-left: 3px solid #d8cabb;
  color: #665d52;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0.55em;
  border: 1px solid #e4dbcf;
  vertical-align: top;
}

th {
  background: #f5f0e9;
  text-align: left;
}

/* WordPress alignment helpers. */
.alignleft {
  float: left;
  margin: 0.3em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.wp-caption-text {
  margin-top: 0.45em;
  color: #7b7369;
  font-size: 13px;
  line-height: 1.6;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  background: #fff;
  color: #2d2924;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
}

.cf::after {
  display: block;
  clear: both;
  content: "";
}

.container {
  min-height: 100vh;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 6px;
  z-index: 100000;
  padding: 8px 12px;
  background: #2d2924;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 6px;
}

.admin-bar .skip-link:focus {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + 6px);
}

#content {
  width: 100%;
  margin-top: 24px;
}

.wrap,
#content-in {
  width: min(1256px, 100%);
  margin-left: auto;
  margin-right: auto;
}

#content-in {
  display: block;
}

main#main,
.main {
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  padding: 36px 29px;
}

main#main:focus:not(:focus-visible) {
  outline: none;
}

.article {
  margin: 0 0 2em;
}

.entry-title,
.archive-title {
  margin: 16px 0;
  font-size: 26px;
  line-height: 1.3;
}

.entry-content {
  margin-top: 1em;
  margin-bottom: 3em;
}

.entry-content::after,
.article::after {
  display: block;
  clear: both;
  content: "";
}

.pagination,
.nav-links {
  max-width: 560px;
  margin: 24px auto;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 3px;
  padding: 0 10px;
  border: 1px solid #d8d2c6;
  border-radius: 999px;
  background: #fff;
  color: #5a3f2b;
  text-decoration: none;
}

.page-numbers.current {
  background: #5a3f2b;
  border-color: #5a3f2b;
  color: #fff;
}

/* Keep native WordPress media/content blocks usable without a parent theme. */
.entry-content > :where(.alignwide) {
  max-width: 860px;
  margin-left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 28px));
}

.entry-content > :where(.alignfull) {
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  width: 100vw;
}

@media (max-width: 768px) {
  #content {
    margin-top: 0;
  }

  main#main,
  .main {
    padding: 20px 0 24px;
  }

  .entry-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .entry-title,
  .archive-title {
    font-size: 24px;
  }

  table {
    font-size: 14px;
  }
}
