@charset "utf-8";
/* グローバルナビの.ctaは
wpの外観->メニューの画面右上「表示オプション」でCSSクラスにチェックを入れて設定。*/

@keyframes ahover {
  0% {
    background-size: 100% 1px;
    background-position: bottom right;
    background-image: linear-gradient(var(--main-color), var(--main-color));
  }

  45% {
    background-size: 0 1px;
    background-position: bottom right;
    background-image: linear-gradient(var(--main-color), var(--main-color));
  }

  54% {
    background-size: 0 1px;
    background-position: bottom left;
    background-image: linear-gradient(var(--accent-color), var(--accent-color));
  }

  99% {
    background-size: 100% 1px;
    background-position: bottom left;
  }

  100% {
    background-position: bottom right;
    background-image: linear-gradient(var(--accent-color), var(--accent-color));
  }
}

/* ----------基本のフォントと色の設定---------- */
* {
  outline-color: var(--accent-color);
}

:root {
  font-family: Roboto, 'Zen Kaku Gothic Antique', sans-serif;
  font-size: var(--text-size);
  color: var(--text-color);
  overflow-wrap: anywhere;
  /* 色指定 */
  --text-color: #444;
  --main-color: #506798;
  --accent-color: #007abc;
  --bg-color: #f7f8fb;
  --area-text-color: #fff;
  --border-color: #707070;
  --table-bg-color: #d0e9f7;
  --table-border-color: #a4d5ef;
  /* フォントサイズ指定 */
  --f1-size: 46.667px;
  --f2-size: 35px;
  --f3-size: 28px;
  --larger-size: 23.333px;
  --text-size: 20px;
  --text-size-num: 20;
  --smaller-size: 15.556px;

  @media(max-width: 767px) {
    --f1-size: 28px;
    --f2-size: 22.4px;
    --f3-size: 18.667px;
    --larger-size: 18.286px;
    --text-size: 16px;
    --text-size-num: 16;
    --smaller-size: 14.222px;
  }
}

.grecaptcha-badge {
  display: none;
}

/* ---------- セクショニング、レイアウトパーツ ---------- */
section {
  margin-top: 200px;
}

#page_info+section {
  margin-top: 64px;
}

section:has(.area_wrap),
section:has(.area_wrap)+section {
  margin-top: 100px;
}

.area_wrap {
  position: relative;
  background-color: var(--main-color);
  padding-block: 100px;
}

.area_color h2::before,
.area_color h3::after,
.area_color hgroup p::before {
  background-color: var(--area-text-color);
}

.area_color *,
.area_color :is(.editable, .editable_inner) :is(h1, h4) {
  color: var(--area-text-color);
}

.area_color :is(.editable, .editable_inner) blockquote {
  background-color: var(--table-bg-color);
}

.area_color :is(.editable, .editable_inner) blockquote * {
  width: unset;
  color: var(--text-color);
}

.area_wrap:has(.area_wrap_inner)>*:not(.area_wrap_inner) {
  position: relative;
  z-index: 2
}

.outer_wrap {
  width: 1440px;
  margin: 100px auto 0;
}

.outer_wrap:first-of-type {
  margin-top: 0;
}

.inner_wrap {
  width: 960px;
  margin-inline: auto;
}

.loop_wrap {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  /* gapを適宜指定する。 */
}

.loop_container {
  width: 100%;
}

@media(max-width: 1472px) {
  .outer_wrap {
    width: calc(100% - 32px);
  }
}

@media(max-width: 991px) {
  .inner_wrap {
    width: 100%;
  }
}

@media(max-width: 767px) {
  section {
    margin-top: 64px;
  }

  #page_info+section {
    margin-top: 32px;
  }

  section:has(.area_wrap:first-child) {
    margin-top: 32px;
  }

  section:has(.area_wrap:last-child)+section {
    margin-top: 32px;
  }

  .area_wrap {
    padding-block: 32px;
  }

  .outer_wrap {
    margin: 32px auto 0;
  }
}

/* ---------- 見出し ---------- */
/* h2, h3 はclass無しであしらいあり。あしらい無しは.plainを指定。 */

h1 {
  font-size: var(--f1-size);
  font-weight: 700;
  line-height: 1;
}

h2 {
  position: relative;
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 12px;
  width: fit-content;
  padding-right: 14px;
  color: var(--accent-color);
  font-size: var(--f1-size);
  font-weight: 400;
  line-height: 1.25;
}

h2::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: calc(0.625em - 8px);
  /* (1em * line-height / 2) - (16px / 2) ← 自身の高さ/2 */
  mask: url('../img/h2_detail.svg') center / contain no-repeat;
  background-color: var(--accent-color);
}

h2+* {
  margin-top: 64px;
}

h2.plain {
  display: block;
  padding-right: 0;
}

h2.plain::before {
  display: none;
}

h2.plain+* {
  margin-top: 32px;
}

hgroup {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 4px;
  width: fit-content;
}

hgroup :is(h2, h2.plain)+* {
  margin-top: 0;
}

hgroup p {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 8px;
  margin-bottom: 0;
  color: var(--accent-color);
  font-size: var(--larger-size);
}

hgroup p::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 50px;
  height: 2px;
  margin-top: calc(0.75em - 1px);
  background-color: var(--accent-color);
}

hgroup+* {
  margin-top: 64px;
}

h3 {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 8px;
  width: fit-content;
  font-size: var(--f2-size);
  line-height: 1.25;
  font-weight: 400;
}

h3::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background-color: var(--main-color);
}

h3.plain {
  display: block;
}

h3.plain::after {
  display: none;
}

h3+* {
  margin-top: 32px;
}

.pcc,
.pcl {
  width: fit-content;
  margin-inline: auto;
}

.tcc,
.tcl {
  text-align: center;
}

.dcc,
.dcl {
  align-items: center;
}

@media(max-width: 767px) {

  h2+*,
  h2.plain+*,
  hgroup+* {
    margin-top: 32px;
  }

  h3 {
    gap: 4px;
  }

  h3+* {
    margin-top: 16px;
  }

  .pcl {
    margin-inline: 0 auto;
  }

  .tcl {
    text-align: start;
  }

  .dcl {
    align-items: start;
  }

  ul,
  ol {
    padding-left: 20px;
  }
}

/* ---------- テーブル ---------- */
.table_wrap {
  width: 100%;
  max-width: 960px;
  margin-block: 64px;
  margin-inline: auto;
  overflow-x: auto;
}

.table_wrap:last-child {
  margin-bottom: 0;
}

table {
  width: fit-content;
  margin-inline: auto;
  border-collapse: collapse;
  white-space: nowrap;
}

tr:first-of-type {
  border-block: 2px solid var(--table-border-color);
}

tr:nth-of-type(even) {
  background-color: var(--table-bg-color);
}

tr:last-of-type {
  border-bottom: 2px solid var(--table-border-color);
}

th,
td {
  padding: 8px 16px;
  vertical-align: middle;
  font-weight: 400;
}

:is(.editable, .editable_inner) :is(th, td) * {
  width: unset !important;
}

/* ---------- その他要素、エディタ用 ---------- */
hr {
  max-width: 1440px;
  margin: 100px auto 0;

  @media(max-width: 1472px) {
    max-width: calc(100% - 32px);
  }
}

.editable,
.editable_inner,
.info_wrap {
  a:not([class]) {
    position: relative;
    color: var(--main-color);
    text-decoration: none;
    transition: none;
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-position: bottom right;
    background-size: 100% 1px;
    background-repeat: no-repeat;
  }

  a:not([class]):hover {
    color: var(--accent-color);
    transition: color 0.2s linear;
    animation: 0.25s linear forwards ahover;
  }
}

.editable,
.editable_inner {

  p,
  ul,
  ol,
  blockquote {
    margin-top: 1.5em;
  }

  :where(p, ul, ol, img, blockquote):first-child {
    margin-top: 0;
  }

  blockquote {
    background-color: #eee;
    padding: 1em 0.5em;
  }

  img {
    margin-top: 64px;
    margin-inline: auto;
  }

  a:not([class])[href$=".pdf"]::before {
    content: "";
    display: inline-block;
    width: 1.75em;
    height: 1.75em;
    margin-top: 0.5em;
    margin-right: 0.5em;
    background: url(../img/ico_pdf.svg) center/contain no-repeat;
  }

  a:not([class])[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.25em;
    background: url(../img/ico_nw.svg) center/contain no-repeat;
  }

  a.button {
    position: relative;
    display: block;
    width: fit-content;
    margin: auto;
    padding: 19px 57px;
    border: solid 1px var(--border-color);
    font-size: var(--larger-size);
    text-decoration: none;
    transition: color 0.15s linear;
  }

  a.button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--main-color);
    transition: width 0.15s linear;
    z-index: -1;
  }

  a.button:hover {
    color: var(--area-text-color);
  }

  a.button:hover::after {
    left: 0;
    width: 100%;
  }

  @media(max-width: 767px) {
    img {
      margin-top: 32px;
    }
  }

  h1,
  h2,
  h3,
  h4 {
    width: unset;
  }

  :where(h1, h2, h3, h4):not(:first-child) {
    margin-top: 64px;

    @media(max-width: 767px) {
      margin-top: 32px;
    }
  }


  h1 {
    color: var(--accent-color);
    font-weight: 900;
  }

  h1+*,
  h2+*,
  h3+* {
    margin-top: 32px;

    @media(max-width: 767px) {
      margin-top: 16px;
    }
  }

  h3[style*="text-align: center"] {
    align-items: center;
  }

  h3[style*="text-align: right"] {
    align-items: end;
  }

  h2[style*="text-align: center"] {
    justify-content: center;
  }

  h2[style*="text-align: right"] {
    justify-content: end;
    padding-right: 0;
  }

  h4 {
    font-size: var(--larger-size);
    font-weight: 400;
    color: var(--main-color);
  }

  h4+* {
    margin-top: 20px;

    @media(max-width: 767px) {
      margin-top: 16px;
    }
  }
}

.editable_inner {
  margin-inline: auto;

  td,
  th {
    text-align: center;
  }

  p,
  ul,
  ol,
  dl,
  blockquote {
    width: 960px;
    margin-inline: auto;

    @media(max-width: 991px) {
      width: 100%;
    }
  }
}

/* ----------ヘッダー---------- */
header {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 80px;
  background-color: var(--area-text-color);
  z-index: 90;

  h1 {
    margin-left: 24px;
  }

  img {
    height: 50px;
  }

  ul {
    justify-content: right;
    align-items: center;
    gap: clamp(32px, calc(12.5vw - 96.125px), 64px);
    padding: 0;
    list-style-type: none;
  }

  #global_nav {
    display: flex;

    li:not(.cta) a {
      position: relative;
      display: block;
      text-decoration: none;
      transition: 0.2s;
    }

    li:not(.cta) a::after {
      content: "";
      position: absolute;
      bottom: -4px;
      right: 0;
      display: block;
      width: 0;
      height: 2px;
      background-color: var(--accent-color);
      transition: width 0.1s linear;
    }

    li:not(.cta) a:hover {
      color: var(--accent-color);
    }

    li:not(.cta) a:hover::after {
      width: 100%;
      left: 0;
    }

    li.cta {
      position: relative;
      background-color: var(--accent-color);
      margin-left: calc(clamp(0px, calc((100vw - 1025px) * 0.39063), 1px) * var(--text-size-num) * -1);
    }

    li.cta::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      display: block;
      width: 0;
      height: 100%;
      background-color: var(--table-bg-color);
      transition: width 0.125s linear;
    }

    li.cta:hover::before {
      width: 100%;
      left: 0;
    }

    li.cta a {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: fit-content;
      height: 80px;
      padding-inline: calc(clamp(1.5px, calc(0.19531vw - 0.5019275px), 2px) * var(--text-size-num));
      color: var(--area-text-color);
      text-decoration: none;
      z-index: 2;
      transition: 0.2s;
    }

    li.cta:hover a {
      color: var(--text-color);
    }
  }

  #drawer_wrap {
    position: relative;
    display: none;
    flex-shrink: 0;
    width: 35px;
    height: 36px;
    margin-right: 20px;
    translate: 0 2px;
    cursor: pointer;

    #drawer {
      position: absolute;
      top: 10px;
      width: 100%;
      height: 2px;
      background-color: var(--text-color);
      transition: 0s 0.075s linear;
    }

    #drawer::before,
    #drawer:after {
      content: "";
      position: absolute;
      display: block;
      width: 100%;
      height: 2px;
      background-color: var(--text-color);
      transition: rotate 0.075s linear, top 0.075s 0.075s linear;
    }

    #drawer::before {
      top: -10px;
    }

    #drawer:after {
      top: 10px;
    }

    span {
      position: absolute;
      bottom: 0;
      width: stretch;
      font-size: 11px;
      line-height: 1;
      text-align: center;
      user-select: none;
    }
  }

  #drawer_wrap.open {
    #drawer {
      background-color: transparent;
    }

    #drawer::before,
    #drawer::after {
      top: 0;
      transition: top 0.075s linear, rotate 0.075s 0.075s linear;
    }

    #drawer::before {
      rotate: 35deg;
    }

    #drawer::after {
      rotate: -35deg;
    }
  }

  #mobile_nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    margin: 0;
    padding: 48px 0 0;
    background-color: #fffc;
    backdrop-filter: blur(6px);
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
    z-index: 100;
    overflow-y: auto;

    li {
      width: max(90vw, calc(100vw - 32px));
      margin: auto;
      border-top: 1px solid #ccc;
    }

    li:last-of-type {
      border-bottom: 1px solid #ccc;
    }

    a {
      position: relative;
      display: flex;
      gap: 8px;
      justify-content: start;
      align-items: center;
      padding: 20px 0 20px 20px;
      font-size: 18.286px;
      text-decoration: none;
    }

    a::before {
      content: "";
      display: block;
      width: 2px;
      height: 20px;
      background-color: var(--main-color);
    }

    @media (pointer:fine) {
      li:has(a:hover) {
        background-color: var(--bg-color);
      }
    }

    @media(pointer:coarse) {
      li:has(a:active) {
        background-color: var(--bg-color);
      }
    }
  }

  @media(max-width: 1024px) {
    height: 60px;

    img {
      height: 36px;
    }

    #global_nav {
      display: none;
    }

    #mobile_nav.open {
      visibility: visible;
      opacity: 1;
    }

    #drawer_wrap {
      display: block;
    }
  }
}

/* ---------- ページ情報 ---------- */
#page_info {
  margin-top: 112px;

  .info_wrap {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 6px;
    padding: 4px 0 2px 8px;
    border-left: 4px solid var(--main-color);
  }

  .page_title {
    font-size: var(--f2-size);
    font-weight: 400;
  }

  .bread_crumbs {
    font-size: var(--smaller-size);
  }

  a {
    color: var(--main-color);
    transition: 0.2s;
  }

  a:hover {
    color: var(--accent-color);
  }

  @media (max-width: 767px) {
    margin-block: 76px 32px;

    .info_wrap {
      gap: 4px;
    }
  }
}

/* ---------- Footer --------- */
footer {
  margin-top: 240px;
  background-color: var(--main-color);
  color: var(--area-text-color);

  .outer_wrap {
    padding-block: 32px 16px;
  }

  .flex_wrap {
    display: flex;
    justify-content: space-between;
    align-items: start;
  }

  .left_side {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 64px;

    h1 {
      font-size: clamp(1.75rem, -1.959rem + 7.738vw, 2.833rem);
    }

    a {
      text-decoration: none;
      position: relative;
    }

    a::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      display: block;
      width: 0;
      height: 2px;
      background-color: var(--area-text-color);
      transition: width 0.125s linear;
    }

    a:hover::after {
      left: 0;
      width: 100%;
    }

    p {
      margin: 0;
    }

    address {
      display: flex;
      flex-direction: column;
      justify-content: start;
      align-items: start;
      gap: 32px;
    }
  }

  .right_side {
    display: flex;
    justify-content: end;
    align-items: start;
    gap: 64px;

    ul {
      display: flex;
      flex-direction: column;
      justify-content: start;
      align-items: start;
      gap: 32px;
      margin: 0;
      padding: 0;
      list-style-type: none;
    }

    li {
      position: relative;
      display: flex;
      justify-content: start;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding-right: 4px;
      z-index: 2;
    }

    li::before {
      content: "";
      display: block;
      width: 2px;
      height: 22px;
      background-color: var(--area-text-color);
    }

    a {
      text-decoration: none;
      transition: color 0.1s linear;
    }

    a:hover {
      color: var(--main-color);
    }

    li::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 0;
      background-color: var(--area-text-color);
      transition: width 0.12s linear;
      z-index: -1;
    }

    li:has(a:hover)::after {
      width: 100%;
      left: 0;
    }
  }

  .copyright {
    margin-block: 64px 0;
    font-size: var(--smaller-size);
    line-height: 1;
  }

  @media(max-width: 767px) {
    margin-top: 128px;

    .outer_wrap {
      padding-block: 24px 14px;
    }

    .flex_wrap {
      flex-direction: column;
      justify-content: start;
      gap: 64px;
    }

    .left_side {
      gap: 32px;

      address {
        gap: 16px;
      }
    }

    .right_side {
      gap: 44px;
    }
  }

  @media(max-width: 359px) {
    .right_side {
      flex-direction: column;
      gap: 32px;
    }
  }
}