/*
Theme Name: Good Sleep
Author: Dr.Sakamoto
Description: ぐっすりペディア
Version: 1.0
*/

:root {
  /* Color Palette */
  --logo-color: #f4bda4;
  --primary-bg: #28293e;
  --primary-color: #fff;
  --primary-heading-color: #c5d3ff;
  --primary-hover-color: #444672;
  --primary-nav-bg-color: #f3f3f4;

  --second-bg: #dfddd9;
  --second-color: #000;
  --second-heading-color: #d3683e;
  color: #fca833;
  --third-bg: #f4bda4;
  --third-color: #28293e;
  --third-heading-color: #ea5f57;

  /* Font */
  --html-font-scale: 62.5%;
  --primary-font-size: 20px;
  --primary-font-weight: 400;
  --primary-font-line-height: 1.5;
  --primary-font-letter-spacing: 2px;

  /* Font Family
	.biz-udpgothic-regular {
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}
 */
  --primary-font: "BIZ UDPGothic", Helvetica, Segoe UI, sans-serif;
  --font-epilogue: "Epilogue", Helvetica, Segoe UI, sans-serif;
  --font-number: "Avenir Next", Helvetica, Segoe UI, sans-serif;
  --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  /* Content Max Width*/
  --max-width: 1440px;

  /* Content side spacing */
  --side-margin: 200px;

  /**/

  --font-h1_epilogue: calc(var(--primary-font-size) - 2px);
}

@media (1280px <= width < 1440px) {
  :root {
    --primary-font-size: 20px;
    --side-margin: 12%;
  }
}
@media (1036px <= width < 1280px) {
  :root {
    --primary-font-size: 20px;
    --side-margin: 12%;
  }
}

@media (width < 1036px) {
  :root {
    --primary-font-size: 14px;
    --side-margin: 16%;
  }
}

@media (width < 320px) {
  :root {
    --primary-font-size: 12px;
    --side-margin: 8%;
  }
}

:root {
  --primary-h1-size: calc(var(--primary-font-size) - 2px);
  --primary-h2-size: calc(var(--primary-font-size) + 8px);
  --primary-h3-size: calc(var(--primary-font-size) + 4px);
  --primary-h4-size: calc(var(--primary-font-size) - 2px);

  --primary-text-small: calc(var(--primary-font-size) - 6px);
  --primary-text-normal: calc(var(--primary-font-size) - 1px);
  --primary-text-middle: calc(var(--primary-font-size) + 2px);
  --primary-text-large: calc(var(--primary-font-size) + 4px);
  --primary-text-extra: calc(var(--primary-font-size) + 8px);
}
small {
  font-size: calc(var(--primary-font-size) - 4px);
  font-weight: 700;
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

html {
  box-sizing: border-box;
  font-size: var(--html-font-scale);
  height: 100%;
  background: var(--primary-bg);
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  font-family: var(--primary-font);
  font-size: var(--primary-font-size);
  font-weight: var(--primary-font-weight);
  line-height: var(--primary-font-line-height);
  letter-spacing: var(--primary-font-letter-spacing);
  color: var(--primary-color);
  background-color: var(--primary-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	
	/* 文章コピー禁止設定*/
  -webkit-user-select: none; 
  -moz-user-select: none; 
  -ms-user-select: none;  
  user-select: none;   

	img {
	user-drag: none;
	-webkit-user-drag: none;
	-moz-user-select: none;
}
}

hr {
  margin: 10px 0;
  color: var(--body-second-color);
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

.fontEpilogue {
  font-family: var(--font-epilogue);
}
.fontNumber {
  font-family: var(--font-number);
}
.fontMono {
  font-family: var(--font-monospace);
}

h6,
h5,
h4,
h3,
h2,
h1 {
  margin-top: 0;
  line-height: 1;
  font-weight: 700;
  padding: 0;
}

p {
  margin: 0;
  line-height: 1.5;
}

abbr[title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  cursor: help;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}

address {
  margin-bottom: 10px;
  font-style: normal;
  line-height: inherit;
}

ol,
ul,
li {
  list-style-type: none;
}

ol,
ul,
dl {
  margin: 0;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

b,
strong {
  font-weight: bolder;
}

pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
  word-wrap: break-word;
}

img,
svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  background-repeat: none;
  background-size: cover;
  shape-margin: 0px;
}

table {
  caption-side: bottom;
  border-collapse: collapse;
}
th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}
select:disabled {
  opacity: 1;
}

[list]:not([type="date"]):not([type="datetime-local"]):not([type="month"]):not(
    [type="week"]
  ):not([type="time"])::-webkit-calendar-picker-indicator {
  display: none !important;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

::file-selector-button {
  font: inherit;
  -webkit-appearance: button;
}

output {
  display: inline-block;
}

iframe {
  border: 0;
}

summary {
  display: list-item;
  cursor: pointer;
}

progress {
  vertical-align: baseline;
}

[hidden] {
  display: none !important;
}

/**

  GoodSleepPedia

 */

a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
}
a:hover {
  color: var(--logo-color);
  text-decoration: none;
}

.gnavi__list::before {
  content: " ";
  position: absolute;
  width: 100%;
  height: 3px;
  border-radius: 20px;
  background-color: var(--logo-color);
  display: inline-block;
  bottom: -2px;
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.4s ease;
}

.gnavi__list:hover::before {
  opacity: 0.8;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

.contents {
  width: 100%;
  margin: auto;
}
.contents_crop {
  overflow: hidden;
}

#header_nav {
  width: 100%;
  padding: 60px 0;
}

#header_nav nav {
  width: calc(100% - var(--side-margin));
  max-width: var(--max-width);
  display: flex;
  /* flex-wrap: wrap; */
  flex-direction: row;
  justify-content: space-between;
  gap: 80px;
  align-items: center;
  margin: auto;
  /* padding:0 20px 0 0; */
}

#header_nav nav a {
  padding: 0 0 18px 0;
}
@media (1280px <= width < 1440px) {
  #header_nav nav {
    gap: 40px;
  }
}
@media (1036px <= width < 1280px) {
  #header_nav nav {
    gap: 0px;
  }
}

#header_nav nav img:nth-child(1) {
  width: 338px;
  height: auto;
  aspect-ratio: 338 / 41;
}

#header_nav nav #menuOpen,
#header_nav nav #menuClose {
  display: none;
}

/*
  table

*/

.wp-block-table {
  width: 100%;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #28293e; /* 背景色 */
  color: white; /* 文字色 */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* 影を付けて立体感を出す */
  font-size: var(--primary-text-normal);
}

.wp-block-table tbody tr:first-child td {
  font-weight: 600;
  background-color: #645e9d;
}
.wp-block-table td,
th {
  border: 1px solid #aaa;
  padding: 10px; /* セルの内側の余白を少し増やす */
  text-align: center; /* テキストを左揃えに */
/*   vertical-align: middle; テキストを縦方向の中央に配置 */
}

/* ヘッダー行のスタイル */
.wp-block-table th > td {
  background-color: #645e9d; /* ヘッダーの背景色をより鮮やかな色に変更 */
  color: #e6e6e6; /* ヘッダーの文字色をやや暗めの色に */
  font-weight: bold; /* フォントを太字に */
}

.wp-block-table tr > td:first-child {
  width: 54px;
  min-width: 54px;
/*   writing-mode: vertical-rl; */
}


/* スマートフォン表示時のスタイル */
@media (width < 1036px) {
  .wp-block-table {
    width: 100%;
    overflow-x: scroll;
    -webkit-mask-image: linear-gradient(
      90deg,
      rgba(0, 212, 255, 1) 93%,
      rgba(2, 0, 36, 0) 100%
    );
    mask-image: linear-gradient(
      90deg,
      rgba(0, 212, 255, 1) 93%,
      rgba(2, 0, 36, 0) 100%
    );
  }
  .wp-block-table::-webkit-scrollbar {
    height: 16px;
    width: 16px;
  }

  .wp-block-table::-webkit-scrollbar-thumb {
    background-color: var(--primary-heading-color);
  }
  .wp-block-table::-webkit-scrollbar-track {
    background-color: #222;
  }

  .wp-block-table table {
    margin-right: 3%;
  }

  .wp-block-table tr > td:not(td:first-child) {
    min-width: 300px;
  }
}

@media (width < 640px) {
  .wp-block-table table {
    margin-right: 3%;
  }

  .wp-block-table tr > td:not(td:first-child) {
    min-width: 200px;
	  
  }
}

/* 


  nav 


*/

#spMenu {
  display: none;
}

.gnavi__lists {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 50px;
}

.gnavi__list {
  display: block;
  position: relative;
  width: fit-content;
  cursor: pointer;
  z-index: 9999;
  padding: 0 0 18px 0;
}

.gnavi__list::after {
  content: " ";
  background-color: var(--logo-color);
  position: absolute;
  height: 3px;
  width: 100%;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: all 0.2s ease;
}

.gnavi__list_afterChange::after {
  content: " ";
  background-color: var(--logo-color);
  position: absolute;
  height: 3px;
  width: 100%;
  bottom: 0;
  left: 0;
  opacity: 1;
  transition: all 0.3s ease;
}

.gnavi__list:hover {
  color: var(--logo-color);
}
.gnavi__list:hover::after {
  opacity: 1;
}

@keyframes fadeIn {
  0% {
    display: none;
    opacity: 0;
  }

  1% {
    display: block;
    opacity: 0;
  }

  100% {
    display: block;
    opacity: 1;
  }
}

.dropdown__lists {
  display: none;
  opacity: 0;
  position: absolute;
  width: max-content;
  padding: 0;
  background-color: var(--primary-nav-bg-color);
  padding: 10px 24px;
  top: 100%;
}

.dropdown__list {
  padding: 12px 0;
}
.dropdown__list a {
  font-size: calc(var(--primary-font-size) - 4px);
  color: var(--primary-bg);
  font-weight: 400;
}

.dropdown__lists_show {
  display: block !important;
  opacity: 1;
  animation: fadeIn 0.6s ease 0s forwards;
}

.dropdown__list a:hover {
  text-decoration: underline;
  text-underline-offset: 10px;
}

@media (1124px <= width < 1440px) {
  #header_nav nav img:nth-child(1) {
    width: 300px;
    height: auto;
    aspect-ratio: 338 / 41;
  }
  .gnavi__lists {
    font-size: var(--primary-text-normal);
  }
}
@media (1036px <= width < 1124px) {
  .gnavi__lists {
    gap: 30px;
    font-size: var(--primary-text-normal);
  }

  .gnavi__list {
    padding: 6px 0 18px 0;
  }
  #header_nav nav img:nth-child(1) {
    width: 280px;
    height: auto;
    aspect-ratio: 338 / 41;
  }
}

/* Contents */
.contents h1,
.page_contents p:first-child {
  font-size: var(--primary-h1-size);
  font-weight: 700;
  margin: 60px 0;
}

.contents h2 {
  font-weight: 700;
  font-size: var(--primary-h2-size);
  text-align: center;
  margin-bottom: 60px;
}

.contents h3 {
  font-weight: 700;
  font-size: var(--primary-h3-size);
  margin-bottom: 60px;
  text-align: center;
}

.contents .heading .heading_text h1 {
  color: var(--primary-heading-color);
}
.contents .heading .heading_text h2 {
  font-size: var(--primary-h2-size);
}

/* 

heading images 

*/
.contents .heading {
  width: calc(100% - var(--side-margin));
  max-width: var(--max-width);
  position: relative;
  display: grid;
  grid-template-columns: 0.4fr 0.7fr;
  grid-template-rows: 1fr;
  grid-column-gap: 20px;
  grid-row-gap: 0px;
  justify-content: space-between;
  margin: 30px auto;
  min-height: 450px;
}

.contents .heading .heading_text {
  width: fit-content;
  position: relative;
  z-index: 99;
}

.contents .image_gs_heading {
  width: 90%;
  min-width: 400px;
  max-width: 500px;
}
.contents .heading_image {
  position: relative;
  flex-grow: 2;
  min-width: 120px;
  margin: 0 0 0 30px;
}

.contents .heading_image img:nth-child(1) {
  position: absolute;
  top: 60px;
  right: 45%;
  width: 55%;
  max-width: 340px;
}
.contents .heading_image img:nth-child(2) {
  position: absolute;
  right: 0;
  width: 55%;
  max-width: 340px;
}

@media (1036px <= width < 1280px) {
  /* 

heading images 

*/
  .contents .heading {
    width: calc(100% - var(--side-margin));
    max-width: var(--max-width);
    position: relative;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
    justify-content: space-between;
    margin: 20px auto 40px auto;
    min-height: 380px;
  }

  .contents .heading .heading_text {
    width: fit-content;
    position: relative;
    z-index: 99;
  }

  .contents .image_gs_heading {
    width: 100%;
    min-width: 320px;
    max-width: 420px;
  }
  .contents .heading_image {
    position: relative;
    flex-grow: 2;
    min-width: 120px;
    margin: 0 0 0 30px;
  }

  .contents .heading_image img:nth-child(1) {
    position: absolute;
    top: 60px;
    left: 0%;
    width: 52%;
    max-width: 320px;
  }
  .contents .heading_image img:nth-child(2) {
    position: absolute;
    right: 0;
    width: 52%;
    max-width: 320px;
  }
}

@media (width < 1036px) {
  #linkMenu {
    display: none;
  }
  #spMenu {
    overflow-y: scroll;
    position: fixed;
    display: block;
    width: 100%;
    min-width: 200px;
    top: 0;
    background: var(--primary-hover-color);
    z-index: 999;
    padding: 100px 0;
    transition: all 0.3s ease;
  }

  .sp__list {
    display: grid;
    grid-template-columns: 1fr 30px;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding: 24px 10%;
    cursor: pointer;
    font-size: var(--primary-text-middle);
    align-items: center;
    position: relative;
  }
  #header_nav nav a {
    padding: 0;
    margin: 0;
  }

  .sp__list svg {
    justify-self: right;
  }
  .sp_links:after,
  .sp__wrap:after {
    content: " ";
    background-color: var(--logo-color);
    position: absolute;
    height: 3px;
    width: 100%;
    bottom: 12px;
    left: 0;
    opacity: 0;
    filter: blur(14px);
    transition: all 0.3s ease;
  }

  .sp__list:hover,
  .sp__list:hover a,
  .sp__list a:hover {
    color: var(--logo-color);
  }

  .sp_links:hover::after,
  .sp__wrap:hover::after {
    opacity: 1;
  }

  .spMenuIcon {
    stroke: #f0f1f4;
    transition: all 0.2s ease;
  }

  .sp__list:hover .spMenuIcon,
  .spMenuIcon:hover {
    stroke: var(--logo-color);
  }
  .sp__bottoms {
    margin: 20px 0 0 0;
    grid-area: 2 / 1 / 3 / 3;
    width: 100%;
    padding: 0;
    background: var(--primary-bg);
    transform-origin: top center;
    transition: all 0.2s ease;
    height: 0;
    display: grid;
    opacity: 0;
    transform: scaleY(0);
  }

  .sp__bottoms.showList {
    margin: 20px 0 0 0;
    grid-area: 2 / 1 / 3 / 3;
    width: 100%;
    padding: 0;
    background: var(--primary-bg);
    transform-origin: top center;
    transition: all 0.2s ease;
    height: auto;
    opacity: 1;
    transform: scaleY(1);
  }

  .sp__list span {
    position: relative;
    pointer-events: none;
  }
  .sp__list span::before {
    content: "";
    position: absolute;
    right: -30px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2219%22%20height%3D%2219%22%20viewBox%3D%220%200%2019%2019%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M9.5%2018C14.1946%2018%2018%2014.1946%2018%209.5C18%204.80545%2014.1946%201%209.5%201C4.80545%201%201%204.80545%201%209.5C1%2014.1946%204.80545%2018%209.5%2018Z%22%20stroke%3D%22%23F0F1F4%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%20%3Cpath%20d%3D%22M13.325%208.2251L9.50005%2012.0501L5.67505%208.2251%22%20stroke%3D%22%23F0F1F4%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: all 0.2s ease;
  }
  .active span::before,
  .sp__list:hover span::before,
  .sp__list span:hover::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2219%22%20height%3D%2219%22%20viewBox%3D%220%200%2019%2019%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Cpath%20d%3D%22M9.5%2018C14.1946%2018%2018%2014.1946%2018%209.5C18%204.80545%2014.1946%201%209.5%201C4.80545%201%201%204.80545%201%209.5C1%2014.1946%204.80545%2018%209.5%2018Z%22%20stroke%3D%22%23f4bda4%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%20%3Cpath%20d%3D%22M13.325%208.2251L9.50005%2012.0501L5.67505%208.2251%22%20stroke%3D%22%23f4bda4%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  }
  .active span::before {
    transform: rotate(180deg);
  }
  /*
    after dropdown style
  */

  .active {
    background: var(--primary-bg);
    color: var(--logo-color);
  }
  .svgRotate {
    transform: rotate(180deg);
    stroke: var(--logo-color);
  }

  .showList {
    display: block;
    height: auto;
  }

  .sp__list:hover .sp__bottom a {
    color: #fff;
  }
  .sp__bottom {
    padding: 16px 0;
    transition: all 0.3s ease;
  }
  .sp__bottoms a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 12px;
  }

  #header_nav nav img:nth-child(1) {
    width: 280px;
    height: auto;
    aspect-ratio: 338 / 41;
  }

  #header_nav nav #menuClose {
    display: block;
    position: absolute;
    top: 20px;
    left: 5%;
    width: 28px;
    height: 28px;
    cursor: pointer;
  }
  #header_nav nav #menuOpen {
    cursor: pointer;
    display: block;
  }

  #header_nav nav #menuOpen:hover,
  #spMenu #menuClose:hover {
    filter: drop-shadow(2px 5px 8px var(--second-heading-color));
    transform: translateZ(0);
  }

  .ulDefaultPosition {
    right: -100%;
  }
  .ulMovePosition {
    right: 0px;
  }

  /*  SP MENU nav  ////////////////////*/

  .contents .image_gs_heading {
    width: 68%;
  }

  .contents .heading .heading_text h2 {
    font-size: var(--primary-text-extra);
  }

  /* 

heading images 

*/
  .contents .heading {
    width: calc(100% - var(--side-margin));
    max-width: var(--max-width);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    justify-content: space-between;
    margin: 20px auto 40px auto;
    height: 100%;
    min-height: auto;
  }

  .contents .heading .heading_text {
    width: fit-content;
    position: relative;
    z-index: 99;
  }

  .contents .image_gs_heading {
    width: 100%;
    min-width: 240px;
    max-width: 480px;
  }
  .contents .heading_image {
    position: relative;
    flex-grow: 2;
    min-width: 200px;
    height: fit-content;
    margin-bottom: 60px;
  }

  .contents .heading_image img:nth-child(1) {
    position: relative;
    top: 60px;
    right: 0%;
    width: 110%;
    max-width: 380px;
  }
  .contents .heading_image img:nth-child(2) {
    display: none;
  }

  .contents h1,
  .page_contents p:first-child {
    font-size: calc(var(--primary-font-size));
    font-weight: 700;
    margin: 30px 0;
    line-height: 1.5;
  }

  .contents h2 {
    font-weight: 700;
    font-size: var(--primary-h2-size);
    line-height: 1.3;
    text-align: center;
    margin: 0 auto 30px auto;
    width: 100%;
  }

  .contents h3 {
    font-weight: 700;
    font-size: var(--primary-h3-size);
    margin: 0 auto 30px auto;
    line-height: 1.4;
    width: 100%;
  }
}

/***

  640

**/
@media (width < 640px) {
  .contents {
    width: 100%;
    max-width: var(--max-width);
    margin: auto;
  }

  #header_nav nav {
    gap: 10px;
  }

  /* 

heading images 

*/
  .contents .heading {
    width: calc(100% - var(--side-margin));
    max-width: var(--max-width);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    gap: 0px;
    justify-content: space-between;
    margin: 20px auto 40px auto;
    height: 100%;
    min-height: auto;
  }

  .contents .heading .heading_text {
    width: fit-content;
    position: relative;
    z-index: 99;
  }

  .contents .image_gs_heading {
    width: 100%;
    min-width: 200px;
    max-width: 480px;
  }
  .contents .heading_image {
    position: relative;
    flex-grow: 0;
    min-width: 190px;
    height: fit-content;
    margin-bottom: 60px;
    margin-left: 10px;
  }

  .contents .heading_image img:nth-child(1) {
    position: relative;
    display: block;
    top: 10px;
    margin: 0 0 0 0;
    width: 90%;
    max-width: 300px;
  }
  .contents .heading_image img:nth-child(2) {
    display: none;
  }

  .contents h1,
  .page_contents p:first-child {
    font-size: var(--primary-h1-size);
    font-weight: 700;
    margin: 30px 0;
    line-height: 1.5;
  }

  .contents h2 {
    font-weight: 700;
    font-size: var(--primary-h2-size);
    line-height: 1.3;
    text-align: center;
    margin: 0 auto 30px auto;
    width: 86%;
  }

  .contents h3 {
    font-weight: 700;
    font-size: var(--primary-h3-size);
    margin: 0 auto 30px auto;
    line-height: 1.4;
    width: 100%;
  }
}
@media (width < 360px) {
  .contents .heading .heading_text h2 {
    font-size: var(--primary-h2-size);
  }

  .contents .image_gs_heading {
    width: 100%;
    min-width: 200px;
    /* min-width: 170px;
    max-width: 480px; */
  }
  .contents .heading_image {
    position: relative;
    flex-grow: 0;
    min-width: 180px;
    height: fit-content;
    margin-bottom: 60px;
    margin-left: 0px;
  }

  .contents .heading_image img:nth-child(1) {
    position: relative;
    display: block;
    top: 60px;
    margin: 0 auto 0 auto;
    width: 92%;
    max-width: 320px;
  }
}

/*

  Check

*/
#section_check {
  background-color: var(--second-bg);
  text-align: center;
  padding: 1px 0;
}

#section_check h1 {
  color: var(--second-heading-color);
}

#section_check h2 {
  color: var(--primary-bg);
}

#section_check h3 {
  color: var(--second-color);
}

#section_check .check_item {
  background-color: #fff;
  color: var(--second-color);
  border-radius: 30px;
  margin: auto;
  width: 80%;
  padding: 5%;
}

#section_check .check_item ol {
  width: fit-content;
  margin: auto;
  padding: 0;
}
#section_check .check_item li {
  width: fit-content;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;
  margin: 4% 0;
  text-align: left;
}
#section_check .check_item span {
  font-size: var(--primary-text-middle);
  font-weight: 400;
}

#section_check .check_item img {
  width: 52px;
  height: 52px;
}
#section_check .check_attention {
  width: 65%;
  margin: 60px auto;
  background-color: var(--primary-bg);
  color: #fff;
  font-size: var(--primary-text-large);
  font-weight: 400;
  padding: 3% 5%;
  border-radius: 40px;
}
#section_check .check_attention span {
  display: block;
}

/*

  LIST

*/

#section_list h1 {
  color: var(--second-heading-color);
}

#section_list h2 {
  color: #fff;
}

#section_list {
  background-color: var(--third-bg);
  text-align: center;
  padding: 1px 0;
}

#section_list .list_top_text span {
  display: block;
  color: var(--primary-bg);
  font-weight: 400;
  font-size: var(--primary-font-size);
  margin: 4px 0;
}
#section_list .list_bottom_text span {
  display: block;
  color: var(--primary-bg);
  font-size: var(--primary-text-large);
  font-weight: 700;
}

#section_list .list_top_text {
  width: 80%;
  margin: auto;
}

#section_list .list_bottom_text {
  padding: 0 3%;
  margin-bottom: 12%;
}

/*
check_action
*/
.check_action {
  margin: 4% auto;
  background-color: #fff;
  color: var(--second-color);
  border-radius: 30px;
  width: 80%;
  padding: 6% 4%;
  text-align: left;
}

.check_action_list {
  width: 100%;
  display: grid;
  align-items: center;
  grid-template-columns: 2ch 4fr 1fr;
  gap: 4%;
  flex-direction: row;
  margin-bottom: 18px;
}
.check_action_list .fontNumber {
  color: var(--third-heading-color);
  font-size: var(--primary-text-extra);
  text-align: center;
  font-weight: 400;
}

.check_action_list .text {
  font-weight: 400;
  font-size: var(--primary-text-middle);
}

.checkWrapper svg {
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  width: 50%;
  height: auto;
  max-width: 58px;
  min-width: 40px;
}

.checkWrapper {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.check_action_list svg:hover {
  filter: drop-shadow(2px 2px 4px rgba(30, 30, 30, 0.2));
  transform: translateZ(0);
}

.check_action_list span {
  display: block;
}

.statusIcon {
  transition: all 0.2s ease;
}

.text_refer {
  font-size: var(--primary-text-small);
  font-weight: 700;
  margin-top: 40px;
}

#footer {
  text-align: center;
  padding: 40px;
  width: 100%;
}

@media (width < 1036px) {
  .check_action_list {
    width: 100%;
    display: grid;
    align-items: center;
    grid-template-columns: 2ch 4fr 1fr;
    gap: 5%;
    flex-direction: row;
    margin-bottom: 36px;
  }
  #section_check .check_item li {
    width: 86%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6%;
    margin: 6% auto;
    text-align: left;
  }
  #section_check .check_item img {
    max-width: 48px;
    max-height: 48px;
    min-width: 30px;
    aspect-ratio: 1/1;
    width: 8%;
    height: auto;
    align-self: start;
  }

  #section_check .check_attention {
    width: 90%;
    margin: 40px auto;
    background-color: var(--primary-bg);
    color: #fff;
    font-size: var(--primary-text-large);
    font-weight: 400;
    padding: 4% 6%;
    border-radius: 30px;
    line-height: 1.5;
  }

  .check_action_list span {
    display: inline;
  }

  #section_check .check_item span {
    font-size: var(--primary-text-middle);
    font-weight: 400;
  }
  .text_refer {
    font-size: var(--primary-text-normal);
  }

  #section_list .list_top_text span {
    font-size: var(--primary-text-middle);
  }
  #section_list .list_bottom_text span {
    font-size: var(--primary-text-large);
  }

  #section_list .list_bottom_text {
    padding: 0 10%;
    margin-bottom: 15%;
  }

  .check_action_list .fontNumber {
    color: var(--third-heading-color);

    text-align: center;
  }
}

@media (width < 640px) {
  #section_check .check_item span {
    font-size: var(--primary-text-normal);
    font-weight: 400;
  }

  .check_action_list .fontNumber {
    font-size: var(--primary-text-large);
  }
  .check_action_list {
    align-items: flex-start;
  }
  .check_action_list .text {
    margin: 8px 0;
    font-size: var(--primary-text-normal);
  }
  #section_check .check_attention span,
  #section_list .list_top_text span {
    display: inline;
    font-size: var(--primary-text-middle);
  }
  #section_list .list_top_text span {
    font-size: calc(var(--primary-font-size) + 1px);
  }
  #section_list .list_bottom_text span {
    font-size: var(--primary-text-middle);
  }
  #section_list .list_bottom_text span:not(:first-child) {
    display: inline;
  }
  .text_refer {
    font-size: var(--primary-text-small);
  }
  .check_action_list span {
    display: inline;
  }
  .check_action_list {
    width: 100%;
    display: grid;
    grid-template-columns: 0.15fr 1fr;
    /* grid-template-rows: repeat(2, 1fr); */
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 4% 2%;
    gap: 2%;
    margin-bottom: 12px;
    box-shadow: 2px 8px 12px rgba(68, 68, 68, 0.1);
  }

  .fontNumber {
    grid-area: 1 / 1 / 3 / 2;
  }
  .text {
    grid-area: 1 / 2 / 2 / 3;
  }
  .checkWrapper {
    grid-area: 2 / 2 / 3 / 3;
    justify-content: flex-start;
  }

  .checkWrapper svg {
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 50%;
    height: auto;
    max-width: 38px;
    min-width: 30px;
  }
}

/*
  pages
*/

.contents.pages {
  max-width: var(--max-width);
}

.blog_contents,
.page_contents {
  width: 70%;
  margin: 4rem auto;
}

.blog_contents p,
.page_contents p {
  margin: 6px 0;
}
.blog_contents h1,
.page_contents p:first-child {
  color: var(--primary-heading-color);
  text-align: center;
  font-family: var(--font-epilogue);
}

.page_links a,
.pageBlock_title {
  color: var(--logo-color);
  font-size: var(--primary-text-middle);
  transition: all 0.2s ease;
}

.blog_contents a {
  color: var(--logo-color);
  text-decoration: underline;
  text-underline-offset: 6px;
  transition: all 0.2s ease;
}
.pageBlock_detail {
  color: #aaa;
  display: inline-block;
  padding-bottom: 30px;
}

.pages {
  margin-bottom: 80px;
}

.blog_contents a:hover,
.page_links a:hover,
.pageBlock_title:hover {
  text-shadow: 4px 4px 30px rgba(244, 189, 164, 0.2);
}

p.has-background {
  padding: 30px 0 !important;
}

.blog_contents h3 {
  font-weight: 700;
  font-size: var(--primary-h3-size);
  text-align: left;
  margin: 40px 0;
}

.blog_contents h4 {
  font-weight: 400;
  text-align: left;
  margin: 40px 0 20px 0;
  color: var(--logo-color);
}

figure {
  display: block;
  margin: 12px 0 0 0;
  width: 100%;
}
figure img {
  width: 100%;
  border-radius: 30px;
}

blockquote {
  margin: 0;
}

.wp-block-quote p,
cite {
  color: #8e8e8e;
  font-size: var(--primary-text-small);
  font-style: normal;
}

.blog_contents ol,
.blog_contents ul,
.blog_contents li {
  list-style-type: decimal !important;
  margin: 24px 0px 24px -6px;
  color: var(--primary-color);
}

@media (width < 640px) {
  .blog_contents,
  .page_contents {
    width: 82%;
    margin: 4rem auto;
  }
}
/* highloght color */

.has-logo-color-color {
  color: #f4bda4;
}

.has-light-blue-color {
  color: #c5d3ff;
}
.has-orange-color {
  color: #d3683e;
}
.has-light-orange-color {
  color: #fca833;
}
.has-light-navy-color {
  color: #444672;
}
