@charset "UTF-8";

:root {
  --color-body-1: #000;
  --color-theme-1: #005d94;
  --color-theme-2: #faaf3b;
  --color-theme-3: #fcf9f2;
  --font-family: "Noto Serif JP", serif;
  --noto-sans: "Noto Sans JP", sans-serif;
  --shippori-mincho: "Shippori Mincho", serif;
  --cinzel: "Cinzel", serif;
  --padding: 15px;
  --container: 1130px;
  --p: 16;
}

::after,
::before,
* {
  --font-size: calc((var(--fs) / 16) * 1rem);
  font-size: var(--font-size);
}

.editor-styles-wrapper {
  --fs: 16;
  font-family: var(--font-family) !important;
  font-weight: 400;
}

@media (max-width: 767px) {
  ::after,
  ::before,
  * {
    --p: 15;
  }
}

@media (max-width: 767px) {
  .editor-styles-wrapper {
    --fs: 15;
  }
}

.text-theme-1 {
  color: var(--color-theme-1) !important;
}

.text-theme-2 {
  color: var(--color-theme-2) !important;
}

.bg-theme-1 {
  background: var(--color-theme-1) !important;
}

.bg-theme-2 {
  background: var(--color-theme-2) !important;
}

:where(.editor-styles-wrapper [class*="is-style-group"]) {
  border: 1px dashed #ccc;
}

.wp-embed-aspect-1-1 iframe {
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
}

.wp-embed-aspect-1-2 iframe {
  aspect-ratio: 1 / 2;
  height: auto;
  width: 100%;
}

.wp-embed-aspect-4-3 iframe {
  aspect-ratio: 4 / 3;
  height: auto;
  width: 100%;
}

.wp-embed-aspect-16-9 iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
}

.wp-embed-aspect-18-9 iframe {
  aspect-ratio: 18 / 9;
  height: auto;
  width: 100%;
}

.wp-embed-aspect-21-9 iframe {
  aspect-ratio: 21 / 9;
  height: auto;
  width: 100%;
}

.color-body {
  color: var(--color-body);
}

.color-theme-1 {
  color: var(--color-theme-1);
}

h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
.is-style-h-1 {
  position: relative;
  --fs: 30;
  font-size: var(--font-size);
  line-height: calc(45 / 30);
  letter-spacing: 0.1em;
  text-align: center;
  padding-bottom: 40px;
  margin-bottom: 25px;
}

h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"]))::before,
.is-style-h-1::before {
  content: "";
  width: 100%;
  height: 27px;
  background: linear-gradient(45deg, var(--color-theme-1) 25%, transparent 25%, transparent 75%, var(--color-theme-1) 75%),
    linear-gradient(45deg, var(--color-theme-1) 25%, transparent 25%, transparent 75%, var(--color-theme-1) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  background-color: #fff;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
}

* + h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
* + .is-style-h-1 {
  margin-top: 80px;
}

@media (max-width: 767px) {
  h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  h1.is-style-h-1 {
    margin-top: 50px;
  }
  h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  .is-style-h-1 {
    --fs: 25;
    padding-bottom: 25px;
  }
  h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"]))::before,
  .is-style-h-1::before {
    height: 18px;
  }
  * + h1:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  * + .is-style-h-1 {
  }
}

h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])) {
  font-size: var(--font-size);
  --fs: 25;
  border-left: 9px solid #faaf3b;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 15px;
  font-family: var(--font-family);
}

h2.is-style-h-2 {
  --fs: 28;
  font-size: var(--font-size);
  font-weight: 600;
  padding-bottom: 40px;
  margin-bottom: 48px;
  position: relative;

  font-family: var(--font-family);
  &::after {
    content: "";
    display: block;
    background-image: url(./img/titleh2-border.svg);
    width: 44px;
    height: 3px;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    bottom: 0;
  }
  @media (max-width: 768px) {
    --fs: 20;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

* + h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
* + .is-style-h-2 {
  margin-top: 100px;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  .is-style-h-2 {
    --fs: 20;
    margin-bottom: 15px;
  }
  * + h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  * + .is-style-h-2 {
    margin-top: 70px;
  }
}

h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])) {
  --fs: 24;
  font-size: var(--font-size);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-family);
  &::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-theme-2);
    border-radius: 50%;
  }
}

.is-style-h-3 {
  --fs: 24;
  font-size: var(--font-size);
  margin-bottom: 20px;

  font-family: var(--font-family);
  line-height: 1.4;
  color: var(--color-theme-1);
}

* + h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
* + .is-style-h-3 {
  margin-top: 50px;
}

@media (max-width: 768px) {
  h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  .is-style-h-3 {
    --fs: 18;
    margin-top: 35px;
  }
}

h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])) {
  --fs: 20;
  font-size: var(--font-size);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  font-family: var(--font-family);
  &::before {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-theme-2);
    order: 2;
  }
}

.is-style-h-4 {
  --fs: 18;
  font-size: var(--font-size);
  margin-bottom: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-family: var(--font-family);
  &::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--color-theme-1);
    flex-shrink: 0;
  }
}

* + h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
.is-style-h-4 {
  margin-top: 40px;
}

@media (max-width: 768px) {
  h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])),
  .is-style-h-4 {
    --fs: 16;
    margin-top: 25px;
    margin-bottom: 10px;
  }
}

/*		table		*/
/* figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) table,
.is-style-table-1 table {
}

figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) thead,
.is-style-table-1 thead {
}

figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr th,
.is-style-table-1 tr th {
}

figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr td,
.is-style-table-1 tr td {
}

.editor-styles-wrapper figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr td,
.editor-styles-wrapper .is-style-table-1 tr td {
}

.page-id-16 figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr td,
.page-id-16 .is-style-table-1 tr td {
}

figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])):not(:has(thead)) td:first-child,
.is-style-table-1:not(:has(thead)) td:first-child {
}

figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr:has(th) td,
figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) table:has(thead) tr td,
.is-style-table-1 tr:has(th) td,
.is-style-table-1 table:has(thead) tr td {
}

figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) .wp-element-caption,
.is-style-table-1 .wp-element-caption {
}

@media (max-width: 767px) {
  figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr th,
  .is-style-table-1 tr th {
  }
  figure:where(.wp-block-table):where(.is-style-default, :not([class*="is-style"])) tr td,
  .is-style-table-1 tr td {
  }
} */

/*		button		*/
.wp-block-button:not([class*="is-style"]) .wp-block-button__link,
.is-style-button-1 .wp-block-button__link {
  position: relative;
  display: inline-grid;
  place-items: center;
  --fs: 18;
  font-size: var(--font-size);
  font-family: var(--noto-sans);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  background: var(--color-theme-2);
  border-radius: 40px;
  padding: 15px 70px;
  z-index: 1;
}

.wp-block-button:not([class*="is-style"]) .wp-block-button__link::before,
.is-style-button-1 .wp-block-button__link::before {
  content: "";
  background: var(--color-theme-1);
  border-radius: 40px;
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
  z-index: -1;
}

.wp-block-button:not([class*="is-style"]) .wp-block-button__link.bg-theme-1::before,
.is-style-button-1 .wp-block-button__link.bg-theme-1::before {
  background: var(--color-theme-2);
}

.wp-block-button:not([class*="is-style"]) .wp-block-button__link:hover,
.is-style-button-1 .wp-block-button__link:hover {
  opacity: 1;
}

.wp-block-button:not([class*="is-style"]) .wp-block-button__link:hover::before,
.is-style-button-1 .wp-block-button__link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.wp-block-button:not([class*="is-style"]) .wp-block-button__link::after,
.is-style-button-1 .wp-block-button__link::after {
  content: "";
  display: block;
  --mask: url(img/icon-arrow-right.svg) no-repeat center / contain;
  width: 7px;
  height: auto;
  aspect-ratio: 7 / 12;
  background: #fff;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .wp-block-button:not([class*="is-style"]) .wp-block-button__link,
  .is-style-button-1 .wp-block-button__link {
    --fs: 16;
    padding: 15px 50px;
  }
}

.is-style-button-2 .wp-block-button__link {
  display: inline-grid;
  place-items: center;
  --fs: 15;
  font-weight: 500;
  font-size: var(--font-size);
  line-height: 1.3;
  min-width: 250px;
  min-height: 53px;
  background: var(--color-theme-1);
  color: #fff;
  border-radius: 50px;
  padding: 5px 15px;
}

.is-style-button-2.design .wp-block-button__link,
.is-style-button-2.original .wp-block-button__link,
.is-style-button-2.paper .wp-block-button__link,
.is-style-button-2.die-cut .wp-block-button__link,
.is-style-button-2.acrylic .wp-block-button__link {
  background: var(--theme-color);
}

/*		table		*/

/* .wp-block-table.is-style-default {
  width: 100%;
}

.wp-block-table.is-style-default .has-fixed-layout {
  table-layout: auto;
}

.wp-block-table.is-style-default tr td {
  border: none;
  border-top: 1px solid #d1d1d1;
  padding-top: 22px;
  padding-bottom: 22px;
}
.wp-block-table.is-style-default tr td {
  &:first-child {
    word-break: keep-all;
    font-weight: 600;
  }
}

.wp-block-table.is-style-default tr {
  &:last-child {
    td {
      border-bottom: 1px solid #d1d1d1;
    }
  }
} */

.wp-block-table:not([class*="is-style-table"]) {
  width: 100%;
}
/* 
.wp-block-table:not([class*="is-style-table"]) .has-fixed-layout {
  table-layout: auto;
} */

.wp-block-table:not([class*="is-style-table"]) tr td {
  border: none;
  padding: 25px 17px;
}
.wp-block-table:not([class*="is-style-table"]) tr td {
  &:first-child {
    word-break: keep-all;
  }
}
.wp-block-table:not([class*="is-style-table"]):has(thead) {
  thead {
    border-bottom: none;
    th {
      background: #e6f1ff;
      border-color: #dddddd;
      text-align: center;
      font-weight: bold;
      padding: 10px 15px;
    }
  }
  tbody {
    tr {
      td {
        &:first-child {
          background-color: #fafafa;
          text-align: center;
          font-weight: bold;
          padding: 10px 15px;
        }
      }
    }
  }
}

.wp-block-table:not([class*="is-style-table"]) tr {
  td {
    border: 1px solid #dddddd;
  }
  &:not(:first-child) {
    td {
      &:first-child:has(strong) {
        background-color: #fafafa;
        text-align: center;
        font-weight: bold;
        word-break: break-all;
      }
    }
  }
}

.wp-block-table:not([class*="is-style-table"]):not(.is-style-default):not(:has(thead)) tr {
  &:first-child {
    td {
      background: #e6f1ff;
      text-align: center;
      font-weight: bold;
      padding: 10px 15px;
    }
  }
}

/* flexibltable */
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table thead th {
  /* background: #e6f1ff; */
  text-align: center;
  padding: 10px 17px;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tbody tr td,
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tbody tr th {
  padding: 25px 17px;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr th,
.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr td {
  border-color: #dddddd;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr td:first-child {
  /* background-color: #fafafa; */
  font-weight: bold;
  text-align: center;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table:not(:has(thead)) tr:first-child td {
  /* background: #e6f1ff; */
  font-weight: bold;
  text-align: center;
  padding: 10px 17px;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tbody tr th {
  /* background-color: #fafafa; */
  text-align: center;
}

@media (max-width: 768px) {
  .wp-block-flexible-table-block-table {
    overflow-x: auto;
  }

  .wp-block-table.is-style-default table {
    overflow: hidden;
  }

  .wp-block-table:not([class*="is-style-table"]) tr td {
    padding: 10px 17px;
  }

  .wp-block-flexible-table-block-table table,
  .wp-block-table table {
    min-width: 700px;
  }

  .wp-block-table.is-style-default table {
    min-width: auto;
  }

  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table thead th {
    padding: 10px 17px;
  }

  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tbody tr td,
  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tbody tr th {
    padding: 10px;
  }
}

/* 企業情報テーブル */
.wp-block-table.is-style-default:not([class*="is-style-table"]) {
  width: 100%;
}

.wp-block-table.is-style-default:not([class*="is-style-table"]) .has-fixed-layout {
  table-layout: auto;
}

.wp-block-table.is-style-default:not([class*="is-style-table"]) tr td {
  border: none;
  border-top: 1px solid #d1d1d1;
  padding-top: 22px;
  padding-bottom: 22px;
  background: #fff;
  text-align: left;
  font-weight: 400;
}
.wp-block-table.is-style-default:not([class*="is-style-table"]) tr td {
  &:first-child {
    word-break: keep-all;
    font-weight: 600;
    text-align: left;
    background: #fff;
  }
}

.wp-block-table.is-style-default tr {
  &:last-child {
    td {
      border-bottom: 1px solid #d1d1d1;
    }
  }
}
/* 企業情報テーブルここまで */

/* 
.wp-block-table:not([class*="is-style-table"]) th,
.wp-block-table:not([class*="is-style-table"]) tr td:first-child {
  min-width: 100px;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.wp-block-table:not([class*="is-style-table"]) tr:last-child th,
.wp-block-table:not([class*="is-style-table"]) tr:last-child td:first-child {
  border-bottom: 1px solid var(--color-body-1);
}

.wp-block-table:not([class*="is-style-table"]) td,
.wp-block-table:not([class*="is-style-table"]) th {
  --fs: 16;
  padding: 15px;
}

.wp-block-table:not([class*="is-style-table"]):not(.is-style-stripes) td {
  background-color: #fff;
}

.wp-block-table:not([class*="is-style-table"]) th {
  color: #fff;
  background-color: var(--color-body-1);
}

@media (max-width: 991px) {
  .wp-block-table:not([class*="is-style-table"]) td,
  .wp-block-table:not([class*="is-style-table"]) th {
    --fs: 14;
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .wp-block-table:not([class*="is-style-table"]) td,
  .wp-block-table:not([class*="is-style-table"]) th {
    display: block;
    margin-top: -1px;
  }
} */

/*		group		*/

.editor-styles-wrapper .wp-block-group {
  border: 1px dashed;
  border-radius: 2px;
  padding: 10px;
}

.tel-link {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  --fs: 47;
  font-size: var(--font-size);
  font-weight: 600;
  line-height: 1;
  color: var(--color-theme-1);
  gap: 10px;
  text-decoration: none;
}

.tel-link::before {
  content: "";
  display: inline-block;
  width: 32px;
  aspect-ratio: 1 / 1;
  background: url(img/icon-tel.svg) center / contain;
}

.tel-link:hover {
  opacity: 0.6;
}

@media (max-width: 575px) {
  .tel-link {
    --fs: 45;
  }
}

/* メディアとテキスト */
@media (min-width: 600px) {
  .wp-block-media-text {
    background-color: #f8f8f8;
    padding: 30px 0;
    padding-right: 18px;
  }
}

.wp-block-media-text {
  background-color: #f8f8f8;
  .wp-block-media-text__content {
    margin-top: 20px;
  }
}
