@charset "UTF-8";
/* root
   ========================================================================== */
:root {
  /*レイアウト用基本値*/
  /*sp=375px pc=1920px*/
  --fluid-progress: clamp(
    0,
    calc((100vw - 375px) / 1545px),
    /* 1545px = 1920px - 375px*/ 1
  );
  /*headerのheight数値取得　top:の値の数値に利用　*/
  --header-height: 0px;
  /*headerのheight数値取得 main padding に利用*/
  --main-top-padding: 0px;
  /*カラー*/
  --sep-red: #f60000ff;
  --sep-blue: #0050aaff;
  --sep-black: #000000ff;
  --base02: #ecececff;
  --gray: #707070ff;
  --black_base: #222222ff;
  --white: #ffffffff;
  --sep-red-light: #ffe7e7ff;
  --gray2: #858585;
  --gray3: #e8e8e8;
  --admin-bar-offset: 0px;
}

body.admin-bar {
  --admin-bar-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}
/*calc(sp用値 + (pc用値 - sp用値) * var(--fluid-progress))*/
/*
.div {
  padding: calc(1.25rem + (2.5rem - 1.25rem) * var(--fluid-progress));
}
*/
/*calc(p用値+ (pc用値- p用値 * var(--fluid-progress))*/
/*
h1 {
  font-size: calc(1.375rem + (2.25rem - 1.375rem) * var(--fluid-progress));
}
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
body {
  margin: 0;
}

/* Grouping content
   ========================================================================== */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
========================================================================== */
a {
  background-color: transparent;
  text-decoration: none;
  color: #000000;
  /* widthやheightがヌルヌル動かないように、色と透明度だけに絞る！ */
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

button,
input {
  /* 1 */
  overflow: visible;
}

button,
select {
  /* 1 */
  text-transform: none;
}

:focus {
  /*background-color: #fff8dc;*/
  background: none;
  border: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

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

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

select::-ms-expand {
  display: none;
}

input[type=radio]::-ms-check,
input[type=checkbox]::-ms-check {
  display: none;
}

select,
input[type=radio],
input[type=checkbox],
input[type=text],
input[type=password],
input[type=email],
input[type=tel],
input[type=number],
input[type=reset],
input[type=button],
input[type=submit],
textarea {
  appearance: none;
  border-radius: 0;
  font-family: YakuHanJP, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

input[type=text]::-ms-clear,
input[type=tel]::-ms-clear,
input[type=number]::-ms-clear {
  display: none;
}

input[type=reset],
input[type=button],
input[type=submit] {
  font-family: YakuHanJP, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  cursor: pointer;
}

/* Interactive
   ========================================================================== */
details {
  display: block;
}

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
template {
  display: none;
}

[hidden] {
  display: none;
}

/* other
   ========================================================================== */
header,
footer,
nav,
section,
aside,
article {
  display: block;
}

/* !Reseting
---------------------------------------------------------- */
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

fieldset {
  border: none;
}

table {
  border-collapse: collapse;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
  border-style: none;
}

mark {
  background: linear-gradient(to bottom, transparent 65%, var(--cl_6) 65%, var(--cl_6) 80%, transparent 80%);
}

/* reset end
==========================================================================
==========================================================================*/
@font-face {
  font-family: "Septenisans";
  src: url("../font/Septenisans-Regular.woff") format("woff"), url("../font/Septenisans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html {
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--sep-black);
  line-height: 1.5;
  letter-spacing: 0.05rem;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-size: 1rem;
}

body.under,
body.blog {
  background: #f5f5f5;
}

figure {
  margin: 0;
  padding: 0;
  border-radius: 0.25rem;
  overflow: hidden;
}

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

figure.mask {
  aspect-ratio: 5/3;
  overflow: hidden;
  margin: 0;
}

figure.mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

section {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

.sepsans {
  font-family: "Septenisans", sans-serif;
}

.inner {
  width: min(100% - 40px, 92%);
  max-width: 1380px;
  margin: 0 auto;
  padding: 0;
}

main {
  padding-top: var(--main-top-padding);
}

.side_inner {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3125rem;
  padding: 3.95rem 1.40625rem;
}

@media (min-width: 900px) {
  section#top_contents .main {
    position: relative;
    right: 0;
    top: 0;
  }
  .side {
    position: relative;
    width: 20rem;
    z-index: 40;
    top: 0;
    left: calc(100% - 20rem);
  }
  .side_inner {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(10rem + 10rem * var(--fluid-progress));
    padding: 0;
  }
}
@media (min-width: 1500px) {
  .side {
    width: 320px;
  }
  .side_inner {
    width: 320px;
  }
}
.ttl_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  align-self: stretch;
}

.ttl_box .ttl {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch;
}

.ttl_box .ttl img {
  width: 2.325rem;
  height: 2.325rem;
}

.ttl_box .ttl span {
  color: #000;
  font-size: calc(1.5625rem + 0.3125rem * var(--fluid-progress));
  font-weight: 700;
  line-height: 130%;
  letter-spacing: 0.09375rem;
}

@media (min-width: 900px) {
  .ttl_box .ttl img {
    width: 3.75rem;
    height: 3.75rem;
  }
}
.header_contents {
  /*ヘッダーを固定させたい場合はコメントアウトやめる*/
  /*position: fixed;
  top: 0;
  left: 0;
  overflow: visible;
  width: 100%;
  z-index: 100;
  */
}

.header_contents {
  width: 100%;
  position: relative;
}

@media (max-width: 899px) {
  .header_contents.fix {
    position: fixed;
    top: var(--admin-bar-offset, 0px);
    left: 0;
    z-index: 100;
  }
}
header {
  position: relative;
  top: 0;
  left: 0;
  overflow: visible;
  width: 100%;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.logo_box {
  position: relative;
  z-index: 80;
  padding: calc(0.875rem + 1.625rem * var(--fluid-progress)) calc(1.375rem + -1.375rem * var(--fluid-progress)) calc(0.875rem + -0.875rem * var(--fluid-progress));
  width: 100%;
  background: #fff;
}

.logo_box img {
  width: calc(7.5rem + 6.25rem * var(--fluid-progress));
  height: calc(2.03125rem + 1.65625rem * var(--fluid-progress));
}

@media (min-width: 900px) {
  .logo_box {
    text-align: center;
  }
}
/*-----------------------------------------*/
/*spボタン*/
/*fixedする場合*/
/*
.h_sp_btn {
position: fixed;
top: 0.625rem;
right: 1.375rem;
height: 2.5rem;
z-index: 1000;
display: flex;
align-items: center;
flex-wrap: wrap;
gap:1.5rem;
}
*/
.h_sp_btn {
  position: absolute;
  top: calc(0.625rem + var(--admin-bar-offset, 0px));
  right: 1.375rem;
  height: 2.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 899px) {
  .h_sp_btn.fix {
    position: fixed;
  }
}
.btn_toggle {
  display: flex;
  width: 1.625rem;
  height: 1.3975rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.455rem;
  position: relative;
  cursor: pointer;
}

@media (max-width: 899px) {
  .btn_toggle.fix {
    position: fixed;
    top: calc(1.25rem + var(--admin-bar-offset, 0px));
    right: 1.375rem;
    z-index: 100;
  }
}
.btn_toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.1875rem;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}

.btn_toggle span:nth-of-type(1) {
  top: 0;
  background: var(--sep-blue, #0050aa);
}

.btn_toggle span:nth-of-type(2) {
  top: 9px;
  background: var(--sep-red, #f60000);
}

.btn_toggle span:nth-of-type(3) {
  top: 18px;
  background: var(--sep-blue, #0050aa);
}

.btn_toggle.open span:nth-of-type(1) {
  top: 9px; /* 中央へ移動 */
  transform: rotate(45deg);
}

.btn_toggle.open span:nth-of-type(2) {
  opacity: 0; /* 真ん中消す */
}

.btn_toggle.open span:nth-of-type(3) {
  top: 9px; /* 中央へ移動 */
  transform: rotate(-45deg);
}

.btn_search.btn_pc {
  display: none;
}

.btn_search.btn_sp.visible {
  display: none;
}

.btn_search {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  background: var(--gray, #707070);
  border-radius: 100vh;
  cursor: pointer;
}

.btn_search img {
  width: 1.1rem;
  height: 1.1rem;
}

@media (min-width: 900px) {
  .h_sp_btn {
    display: none;
  }
  .btn_search.btn_pc {
    display: flex;
  }
  .btn_search:hover {
    background: var(--sep-red);
    transition: 0.3s ease;
  }
}
/*-----------------------------------------*/
/*ナビゲーション*/
.h_nav_wrap {
  position: fixed;
  top: var(--admin-bar-offset, 0px);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--admin-bar-offset, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 99;
  padding-top: 30px;
  background: #fff;
}

.h_nav_wrap {
  transform: translate(100vw);
  transition: transform 0.3s ease;
}

.h_nav_wrap.open {
  transform: translate(0);
  transition: transform 0.3s ease;
}

ul.h_nav {
  display: flex;
  width: 100%;
  padding: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
}

ul.h_nav li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-bottom: 1px solid #707070;
  color: var(--black_base, #222);
  font-size: 1rem;
  font-weight: 700;
}

ul.h_nav li a {
  position: relative;
  display: flex;
  padding: 1.125rem 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

ul.h_nav li a:after {
  content: "";
  width: 0.9375rem;
  height: 0.9375rem;
  background: url("../img/arrow_right.svg") center right no-repeat;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

/*サブリストを持つul*/
ul.h_nav li.menu-item-has-children {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

ul.h_nav li a:focus {
  background: transparent;
}

/*サブリスト*/
ul.sub-menu {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}

ul.sub-menu li {
  width: 50%;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04375rem;
}

ul.sub-menu li a {
  position: relative;
  display: flex;
  padding: 0.5rem;
  width: 100%;
}

ul.sub-menu li a:focus {
  background: transparent;
}

ul.sub-menu li a:before {
  content: "-";
  width: 0.9375rem;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

ul.sub-menu li a:after {
  content: none;
}

@media (max-width: 899px) {
  .menu-item-has-children > .sub-menu {
    position: relative;
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
  }
}
@media (min-width: 900px) {
  .h_nav_wrap {
    height: auto;
    position: relative;
    top: 0;
    text-align: center;
    padding: 1.4375rem 0;
    z-index: 50;
  }
  .h_nav_wrap {
    transform: none;
  }
  .h_nav_wrap.open {
    transform: none;
  }
  .h_nav_box {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
  }
  ul.h_nav {
    position: relative;
    z-index: 20;
    display: flex;
    padding: 0;
    justify-content: center;
    gap: calc(0rem + 5.1875rem * var(--fluid-progress));
    flex-direction: row;
    background: #fff;
  }
  ul.h_nav li {
    border: none;
  }
  ul.h_nav li a {
    padding: 0;
  }
  ul.h_nav li a:hover {
    color: var(--sep-red, #f60000);
  }
  ul.h_nav li a:after {
    content: none;
  }
  ul.h_nav li.current-menu-item {
    border-bottom: 2px solid var(--gray2);
  }
  /*サブリストを持つul*/
  ul.h_nav li.menu-item-has-children {
    gap: 1.25rem;
  }
  ul.h_nav li.menu-item-has-children a {
    position: relative;
    padding-right: 20px;
  }
  ul.h_nav li.menu-item-has-children a:after {
    content: "";
    width: 0.9375rem;
    height: 0.9375rem;
    background: url("../img/arrow_under_hnav.svg") center right no-repeat;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
  }
  ul.h_nav li.menu-item-has-children.open a:after {
    background: url("../img/arrow_top_hnav.svg") center right no-repeat;
  }
  /*サブリスト*/
  .h_nav .sub-menu {
    display: none;
  }
  ul.sub-menu {
    justify-content: space-between;
    align-items: center;
    align-content: center;
    align-self: stretch;
    z-index: 1;
    position: absolute;
    left: 0;
    width: 100vw;
    top: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.75rem;
    row-gap: 0;
  }
  .sub-menu.active {
    pointer-events: auto;
  }
  .h_nav ul.sub-menu li {
    display: flex;
    border: none;
    flex-wrap: wrap;
  }
  .h_nav ul.sub-menu li a {
    padding: 1.4375rem 0;
    justify-content: space-between;
    align-items: center;
  }
  .h_nav ul.sub-menu li a:before {
    content: none;
  }
  ul.h_nav li.menu-item-has-children .h_nav ul.sub-menu li a {
    padding-right: 0;
  }
  ul.h_nav li.menu-item-has-children .h_nav ul.sub-menu a:after {
    content: none;
  }
  /*移動する要素*/
  .subnav-layer {
    position: absolute;
    /*top: var(--header-height);*/
    top: 100%;
    left: 50%;
    /*transform: translateX(-50%);*/
    width: 100vw;
    z-index: 80;
    transform: translate(-50%, -100px);
    transition: transform 0.2s ease;
  }
  .subnav-layer.active {
    transform: translate(-50%, 0);
    transition: transform 0.3s ease;
    pointer-events: auto;
  }
  .subnav-layer ul.sub-menu {
    background: #fff;
    padding: 0 1.5rem;
  }
  .subnav-layer ul.sub-menu li.has-divider {
    position: relative;
  }
  .subnav-layer ul.sub-menu li.has-divider::after {
    content: "";
    position: absolute;
    right: -1.375rem;
    top: 50%;
    transform: translate(50%, -50%);
    width: 1px;
    height: 1.25rem;
    background-color: #d1d5db;
  }
  .subnav-layer ul.sub-menu li {
    width: auto;
  }
  .subnav-layer ul.sub-menu li a {
    padding: 0.5rem;
    padding: 1.4375rem 0;
  }
  .subnav-layer ul.sub-menu li a:before {
    content: none;
  }
}
/*-----------------------------------------*/
/*search panel*/
.search_panel {
  position: absolute;
  /*position:fixed;*/
  top: var(--header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - 61px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 50;
  background: var(--gray3);
  display: flex;
  padding: calc(1.78125rem + 3.71875rem * var(--fluid-progress)) calc(1.40625rem + 23.84375rem * var(--fluid-progress)) calc(200px + -199px * var(--fluid-progress));
  flex-direction: column;
  align-items: center;
  gap: 3.0625rem;
}

.search_panel {
  transform: translate(0, -200vh);
  transition: transform 0.1s ease;
}

.search_panel.open {
  transform: translate(0, 0);
}

@media (max-width: 899px) {
  .search_panel {
    height: calc(100vh - 61px - var(--admin-bar-offset, 0px));
  }
}
@media (min-width: 900px) {
  .search_panel {
    top: var(--header-height);
    height: calc(100vh - 185px);
  }
}
.panel_term_list_box {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.0625rem;
  align-self: stretch;
}

.search_panel_input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border: 0.5px solid var(--gray, #707070);
  background: var(--white, #fff);
  width: 100%;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
  height: 60.2px;
}

.search_panel_input form {
  position: relative;
  width: 100%;
}

.search_panel_input input[type=text] {
  border: none;
  padding: 20px;
  color: #333;
  font-size: 16px;
  text-align: center;
  width: 100%;
  text-align: left;
}

.search_panel_input :focus {
  background: transparent;
  outline: none;
}

::placeholder {
  color: #a8a8a8;
  font-size: 0.875rem;
  letter-spacing: 0.04375rem;
}

.search_panel_input button {
  background: transparent;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
  width: 40px;
  border-radius: 1.25rem;
  background: var(--gray, #707070);
}

.search_panel_input button:hover {
  background: var(--sep-red);
  transition: 0.3s ease;
}

.panel_term_list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.21875rem;
}

.panel_term_list h3 {
  display: flex;
  padding-bottom: 1.15625rem;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-bottom: 1px solid var(--gray, #707070);
  color: var(--black_base, #222);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.37688rem; /* 110.15% */
  letter-spacing: 0.0625rem;
}

@media (min-width: 900px) {
  .search_panel {
    height: auto;
  }
  .panel_term_list_box {
    flex-direction: row;
    gap: 3.0625rem;
  }
  .panel_term_list:nth-of-type(1) {
    width: 16.25rem;
    flex-shrink: 0;
  }
}
/*------------------------------------*/
/*カテゴリ・タグ　リスト*/
.term_list.type_v_list {
  width: 100%;
  color: var(--black_base, #222);
  font-size: 1rem;
  font-weight: 500;
  line-height: 2.75375rem;
  letter-spacing: 0.05rem;
}

.term_list.type_v_list li {
  width: 100%;
}

.term_list.type_v_list li a {
  position: relative;
  display: block;
  padding-left: 1em;
}

.term_list.type_v_list li a:before {
  content: "-";
  width: 0.9375rem;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

.term_list.type_tag {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.59375rem;
  align-self: stretch;
  flex-wrap: wrap;
}

.term_list.type_tag li {
  display: inline-flex;
}

.term_list.type_tag li a {
  display: flex;
  padding: 0.53694rem 0.9665rem;
  justify-content: center;
  align-items: center;
  gap: 0.53694rem;
  border-radius: 53.64219rem;
  border: 0.859px solid #707070;
  font-size: 0.75rem;
  background: var(--white);
}

.term_list.type_tag li a:hover {
  background: var(--sep-red);
  color: var(--white);
}

@media (min-width: 900px) {
  .term_list.type_tag li a {
    font-size: 0.875rem;
  }
}
/*-------------------------------------*/
/*footer*/
footer {
  background: var(--black_base);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding: 0;
}

footer .inner {
  display: flex;
  width: min(100% - 40px, 92%);
  max-width: 1380px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  padding: 46px 0 22px;
  gap: 14px;
}

.f_box01 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.125rem;
  align-self: stretch;
}
@media (max-width: 768px) {
  .f_box01 {
    gap: clamp(40px, 40px + 10 * (100vw - 375px) / 393, 50px);
  }
}

.f_box02 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  align-self: stretch;
  padding-top: 20px;
}

.f_nav {
  display: flex;
  justify-content: flex-start;
  row-gap: 2.5625rem;
  align-self: stretch;
  width: 100%;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .f_nav {
    row-gap: clamp(24px, 24px + 17 * (100vw - 375px) / 393, 41px);
  }
}

.f_nav li {
  width: 50%;
}

.f_nav li a {
  color: var(--white);
}

/* Menu Level 1: fs 16px, bold, line-height normal, letter-spacing 0 */
.f_nav > li > a {
  font-size: 16px;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0px;
}

.f_nav li.menu-item-has-children {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.f_nav li.menu-item-has-children > .sub-menu {
  display: flex;
  flex-wrap: wrap;
  height: auto;
}

.f_nav li.menu-item-has-children ul.sub-menu {
  row-gap: 0;
  padding-top: 0.5rem;
}

.f_nav li.menu-item-has-children ul.sub-menu li {
  width: 50%;
}

.f_nav li.menu-item-has-children ul.sub-menu li:last-child:nth-child(odd) {
  width: 100%;
}

/* Menu Level 2: fs 14px, 500, line-height 14px, letter-spacing 5%, with bullet prefix */
.f_nav li.menu-item-has-children:not(:last-child) ul.sub-menu li a {
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.f_nav li.menu-item-has-children:not(:last-child) ul.sub-menu li a::before {
  content: "-";
  margin-right: 6px;
  font-weight: 500;
}

.f_nav > li:last-child,
.f_nav > li.menu-item-has-children:last-of-type {
  min-width: auto;
}

.f_nav > li:last-child > a,
.f_nav > li.menu-item-has-children:last-of-type > a {
  display: none !important;
}

.f_nav > li:last-child > ul.sub-menu,
.f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.f_nav > li:last-child > ul.sub-menu > li,
.f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li {
  width: auto !important;
}

.f_nav > li:last-child > ul.sub-menu > li > a,
.f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li > a {
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0px;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.f_nav > li:last-child > ul.sub-menu > li > a::before,
.f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li > a::before {
  content: none;
  display: none;
}

.f_banner {
  width: 12.5rem;
  flex-shrink: 0;
}

.copyright {
  color: #707070 !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .copyright {
    line-height: normal;
  }
}

@media (max-width: 768px) {
  .f_nav li.menu-item-has-children ul.sub-menu li a,
  .f_nav > li:last-child > ul.sub-menu > li > a,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li > a {
    line-height: 32px !important;
  }
  .f_nav > li:last-child > ul.sub-menu,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu {
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 16px;
  }
}
@media (max-width: 768px) and (max-width: 399px) {
  .f_nav > li:last-child > ul.sub-menu,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .f_nav > li:last-child > ul.sub-menu > li,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li {
    width: calc(50% - 8px) !important;
  }
}
@media (max-width: 768px) and (max-width: 399px) {
  .f_nav > li:last-child > ul.sub-menu > li,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li {
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  .f_nav > li:last-child > ul.sub-menu > li:last-child:nth-child(odd),
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li:last-child:nth-child(odd) {
    width: 100% !important;
  }
}
@media (max-width: 479px) {
  .f_nav > li {
    width: 100%;
  }
  .f_nav li.menu-item-has-children ul.sub-menu li {
    width: 100% !important;
  }
}
@media (min-width: 900px) {
  footer {
    color: #fff;
  }
  .f_box01 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    row-gap: 11.1875rem;
    align-self: stretch;
  }
  .f_box02 {
    align-items: flex-end;
    padding-top: 0;
  }
  .f_nav {
    gap: 51px;
  }
  .f_nav li {
    width: auto;
  }
  .f_nav li.menu-item-has-children {
    width: auto;
  }
  .f_nav li.menu-item-has-children ul.sub-menu {
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    align-self: stretch;
    z-index: inherit;
    position: inherit;
    left: inherit;
    width: auto;
    top: inherit;
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 16px 27px;
  }
  .f_nav li.menu-item-has-children ul.sub-menu li {
    width: auto;
  }
  .f_nav li.menu-item-has-children ul.sub-menu li:last-child:nth-child(odd) {
    grid-column: 1/span 2;
    width: auto;
  }
  .f_nav > li.menu-item-has-children:last-child > ul.sub-menu,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
  }
  .f_nav > li.menu-item-has-children:last-child > ul.sub-menu > li,
  .f_nav > li.menu-item-has-children:last-of-type > ul.sub-menu > li {
    width: auto;
  }
}
/*---------------------------------------*/
/*side contents*/
.p_tags {
  display: flex;
  padding: 2rem 1.375rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
  border-radius: 0.625rem;
  background: var(--white);
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.p_tags h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--black_base);
}

.p_tags h3 img {
  width: 1.875rem;
  height: 1.4375rem;
}

.p_tags h3 span {
  color: var(--black_base);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.0625rem;
}

/*widget*/
.widget_media_image {
  text-align: center;
  border-radius: 0.625rem;
  overflow: hidden;
}

/*-------------------------------------------*/
/*pagetop*/
.pagetop {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + 60px);
  background: var(--sep-red);
  border-radius: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pagetop.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 100;
}

.pagetop a {
  display: block;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagetop a:focus {
  background: transparent;
  outline: none;
}

.pagetop img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.pagetop:hover {
  opacity: 0.7;
}

@media (min-width: 900px) {
  .pagetop {
    bottom: calc(1rem + 70px);
  }
  .pagetop a {
    width: 60px;
    height: 60px;
  }
}
/*common*/
.post_date {
  color: var(--black_base);
  font-size: calc(0.625rem + 0.25rem * var(--fluid-progress));
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04375rem;
}

body.under .post_date {
  font-size: calc(0.75rem + 0.125rem * var(--fluid-progress));
}

.term_name {
  display: flex;
  padding: 0.3125rem 0.75rem;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.25rem;
  background: #0053a6;
  color: var(--white);
  font-size: calc(0.625rem + 0.25rem * var(--fluid-progress));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04375rem;
}

body.under .term_name {
  font-size: calc(0.75rem + 0.125rem * var(--fluid-progress));
}

.tag_list {
  display: flex;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  align-items: flex-start;
  align-self: stretch;
  gap: 0.5rem 0.9375rem;
}

.tag_list span {
  color: var(--black_base);
  font-size: calc(0.625rem + 0.25rem * var(--fluid-progress));
  font-weight: 400;
  letter-spacing: 0.04375rem;
  line-height: 1;
  white-space: nowrap;
}

body.under .tag_list span {
  font-size: calc(0.75rem + 0.125rem * var(--fluid-progress));
}

/*記事リスト */
/*article_list_horizontal 横*/
.article_list_horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  row-gap: 1.9375rem;
  width: 100%;
}

.article_list_horizontal .article_item {
  flex: 0 0 calc((100% - 0.625rem) / 2);
  border-radius: 0.625rem;
  background: var(--white);
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.article_list_horizontal .article_item .text .ttl {
  font-size: calc(1rem + 0.25rem * var(--fluid-progress));
  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article_list_horizontal .article_item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.article_list_horizontal .tag_list {
  margin-top: auto;
}

@media (min-width: 900px) {
  .article_list_horizontal {
    display: grid;
    flex-wrap: nowrap;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: calc(0.625rem + 0.625rem * var(--fluid-progress));
  }
  .article_list_horizontal .article_item {
    display: flex;
  }
  .article_list_horizontal .article_item .text {
    padding: 1.25rem;
  }
}
/*article_list_vertical 縦*/
.article_list_vertical {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  row-gap: 1.9375rem;
  width: 100%;
}

.article_list_vertical .article_item {
  flex: 0 0 calc((100% - 0.625rem) / 2);
  border-radius: 0.625rem;
  background: var(--white);
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.under .article_list_vertical .article_item {
  flex: 0 0 100%;
}

.text_head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.article_list_vertical .article_item .text .ttl {
  color: var(--black_base);
  font-size: calc(1rem + 0.75rem * var(--fluid-progress));
  font-weight: 700;
  letter-spacing: 0.0875rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.article_list_vertical .article_item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.article_list_vertical .tag_list {
  margin-top: auto;
}

body.under .article_list_vertical .article_item .text .ttl {
  font-size: calc(1.25rem + 0.5rem * var(--fluid-progress));
}

body.home .article_list_vertical .article_item .text {
  padding: 0.625rem;
}

/* PC */
@media (min-width: 900px) {
  .article_list_vertical {
    flex-direction: column;
    gap: 1.9375rem;
  }
  /* カード全体を auto height と min-height に変更 */
  body.home .article_list_vertical .article_item,
  body.under .article_list_vertical .article_item,
  .article_list_vertical .article_item {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 100%;
    height: auto;
    min-height: 300px;
    aspect-ratio: auto;
  }
  .article_list_vertical .article_item a {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: stretch; /* 枠いっぱいに広げる */
    height: 100%;
    flex-grow: 1;
  }
  /* 画像エリアに比率を持たせる！ */
  .article_list_vertical .article_item figure {
    display: flex;
    flex: 0 0 50%;
    height: 100%;
    overflow: hidden;
    aspect-ratio: auto !important;
  }
  .article_list_vertical .article_item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* テキストエリア */
  body.home .article_list_vertical .article_item .text,
  body.under .article_list_vertical .article_item .text,
  .article_list_vertical .article_item .text {
    flex: 0 0 50%;
    min-width: 0;
    height: auto;
    padding: 0.75rem 1.25rem; /* ★上下の余白を少し詰めてタグの居場所を確保 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    overflow: hidden;
  }
  /* アイキャッチ画像が無い場合は、テキストエリアを横幅100%にする */
  body.home .article_list_vertical .article_item a > .text:only-child,
  body.under .article_list_vertical .article_item a > .text:only-child,
  .article_list_vertical .article_item a > .text:only-child {
    flex: 0 0 100%;
  }
  /* 中身が縦に潰されるのを防ぐ */
  .article_list_vertical .article_item .text > * {
    flex-shrink: 0;
  }
  /* タイトルは3行まで */
  .article_list_vertical .article_item .text .ttl {
    -webkit-line-clamp: 3;
  }
  /* タグの表示数・高さ制限を解除し全て表示する */
  .article_list_vertical .article_item .tag_list {
    margin-top: auto;
    max-height: none;
    overflow: visible;
  }
}
body.home .article_item:first-child {
  flex: 0 0 100%;
}

.article_item figure {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.article_item figure img {
  display: block;
}

@media (min-width: 900px) {
  .article_item figure {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}
.article_item .text {
  display: flex;
  padding: 0.625rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  flex: 1 0 0;
  align-self: stretch;
}

body.under .article_item .text {
  padding: 1.5rem;
}

/* タグ表示 */
.article_list_horizontal .article_item .tag_list,
.article_list_vertical .article_item .tag_list {
  padding-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.6;
  overflow: visible;
}

.article_item .tag_list span,
.article_item .tag_list a {
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.4;
}

/* =========================
   PC画面の中でも、幅が狭い時は行数を間引く
========================= */
@media (min-width: 900px) and (max-width: 1300px) {
  /* ★1300px以下から早めに2行にする！ */
  body.home .article_list_vertical .article_item .text .ttl,
  body.under .article_list_vertical .article_item .text .ttl,
  .article_list_vertical .article_item .text .ttl {
    -webkit-line-clamp: 2;
  }
}
@media (min-width: 900px) and (max-width: 1100px) {
  /* ★1100px以下から1行にする！ */
  body.home .article_list_vertical .article_item .text .ttl,
  body.under .article_list_vertical .article_item .text .ttl,
  .article_list_vertical .article_item .text .ttl {
    -webkit-line-clamp: 1;
  }
}
/*breadcrumb*/
.breadcrumb {
  display: flex;
  flex-direction: row;
  background: var(--cl_8);
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 1.4375rem calc(0rem + 16.875rem * var(--fluid-progress));
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

.breadcrumb__item {
  position: relative;
  padding-left: 1.5em;
  padding-right: 1em;
  font-size: calc(0.75rem + 0.125rem * var(--fluid-progress));
  font-weight: bold;
  line-height: 1;
}

.breadcrumb__item:before {
  content: ">";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1rem;
  color: #999;
}

.breadcrumb__item:first-child {
  padding-left: 0;
}

.breadcrumb__item a {
  color: var(--gray2);
}

.breadcrumb__item:first-child:before {
  content: none;
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/*top*/
section#top_contents {
  background: #f5f5f5 url("../img/txt_pickup.svg") no-repeat 0 -3px;
  background-size: calc(17.59794rem + 42.73781rem * var(--fluid-progress)) calc(3.34688rem + 8.12812rem * var(--fluid-progress));
  padding-top: calc(1.25rem + 2.5rem * var(--fluid-progress));
  padding-bottom: calc(1.25rem + 6.375rem * var(--fluid-progress));
}

section#top_contents.under_page {
  background: none;
}

section#under_contents_latest {
  background: #e8e8e8 url("../img/txt_latest.svg") no-repeat top right;
  background-size: calc(17.64838rem + 42.86031rem * var(--fluid-progress)) calc(3.33375rem + 8.09625rem * var(--fluid-progress));
  padding-top: calc(1.25rem + 2.5rem * var(--fluid-progress));
  padding-bottom: calc(1.25rem + 6.375rem * var(--fluid-progress));
}

section#under_contents_theme {
  background: #f5f5f5 url("../img/txt_theme.svg") no-repeat 0 0;
  background-size: calc(15.31213rem + 37.18656rem * var(--fluid-progress)) calc(3.18938rem + 7.74562rem * var(--fluid-progress));
  padding-top: calc(1.25rem + 2.5rem * var(--fluid-progress));
  padding-bottom: calc(1.25rem + 6.375rem * var(--fluid-progress));
}

section#top_contents .main {
  width: 100%;
}

section#under_contents_latest .index_latest,
section#under_contents_theme .index_theme {
  width: 100%;
}

@media (min-width: 900px) {
  section#top_contents .main {
    width: calc(100% - (12rem + 12rem * var(--fluid-progress)));
  }
  section#under_contents_latest .index_latest,
  section#under_contents_theme .index_theme {
    width: calc(100% - (12rem + 12rem * var(--fluid-progress)));
  }
  section#under_contents_theme .index_theme {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5.625rem;
  }
}
@media (min-width: 1500px) {
  section#top_contents .main {
    width: 1000px;
  }
}
.index_pickup,
.index_latest,
.article_list_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1.25rem;
}

.pickup_small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(0.625rem + 0.625rem * var(--fluid-progress));
}

@media (min-width: 900px) {
  .pickup_small {
    grid-template-columns: repeat(3, 1fr);
  }
}
/*view_btn*/
.view_btn {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 1.25rem 0 2.5rem;
  padding: 0.9rem 3.125rem 0.9rem 1.875rem;
  border-radius: 100vh;
  border: 3px solid transparent;
  overflow: hidden;
  z-index: 1;
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(to right, #f60000, #0053a6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.view_btn:hover {
  transition: 0;
  opacity: 1;
  background-image: linear-gradient(to right, #e60012, #0053a6);
  background-clip: border-box;
}

.view_btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, #e60012, #0053a6);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s ease;
  z-index: 0;
}

.view_btn:hover::before {
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

.view_btn span {
  color: var(--black_base);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04375rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.back_list_btn_wrap .view_btn span {
  font-weight: 700;
}

.view_btn:hover span {
  color: #fff;
}

.view_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 0.8125rem;
  height: 0.6875rem;
  background: url("../img/arrow_right.svg") center right/contain no-repeat;
  z-index: 2;
}

.view_btn:hover::after {
  background: url("../img/arrow_right_w.svg") center right/contain no-repeat;
}

/*-------------------------------------------------------------------------*/
/*under*/
body.under .main {
  position: relative;
}

section#under_contents_related {
  background: #e8e8e8 url("../img/txt_related.svg") no-repeat top right;
  background-size: calc(20.94831rem + 50.87438rem * var(--fluid-progress)) calc(3.33375rem + 8.09625rem * var(--fluid-progress));
  padding-top: calc(1.25rem + 2.5rem * var(--fluid-progress));
  padding-bottom: calc(1.25rem + 6.375rem * var(--fluid-progress));
}

section#under_contents_related .inner .contents_p_r {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  section#under_contents_related .inner .contents_p_r {
    width: calc(100% - (12rem + 12rem * var(--fluid-progress)));
  }
}
main.link_contents {
  background: #f5f5f5 url("../img/txt_contents.svg") no-repeat 0 -3px;
  background-size: calc(23.787rem + 62.71119rem * var(--fluid-progress)) calc(3.95rem + 7.51rem * var(--fluid-progress));
  padding-top: 0;
  padding-bottom: 0;
}

main.link_contents section#top_contents {
  padding-bottom: calc(3.95rem + 3.675rem * var(--fluid-progress));
}

section#under_contents_link_system {
  background: #e8e8e8 url("../img/txt_system.svg") no-repeat top right;
  background-size: calc(18.12263rem + 44.01218rem * var(--fluid-progress)) calc(3.33375rem + 8.09625rem * var(--fluid-progress));
  padding-top: calc(2.0625rem + 3.1875rem * var(--fluid-progress));
  padding-bottom: calc(3.95rem + 4.6125rem * var(--fluid-progress));
}

section#under_contents_link_system .inner .contents_p_r {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  section#under_contents_link_system .inner .contents_p_r {
    width: calc(100% - 24rem);
  }
}
.under_page_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 900px) {
  .under_page_wrap {
    padding-bottom: 4rem;
  }
}
.archive_list_nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 47%;
}

.btn_wrap {
  display: flex;
  width: 100%;
  column-gap: 0.4rem;
}

.btn_category,
.btn_tag {
  width: 50%;
  padding: 0.5rem;
  cursor: pointer;
  background: #000;
  color: #ffffff;
  font-size: calc(0.9375rem + 0.3125rem * var(--fluid-progress));
  border-radius: 0.375rem;
  position: relative;
}

.btn_category img,
.btn_tag img {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
  right: 7px;
  width: 8px;
  height: 5px;
}

.nav_wrap {
  position: relative;
  height: 1px;
}

.nav_ul {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  max-height: 25rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #999 #eee;
}

.nav_ul::-webkit-scrollbar {
  width: 4px;
}

.nav_ul::-webkit-scrollbar-track {
  background: transparent;
}

.nav_ul::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 100vh;
}

.nav_ul li {
  width: 100%;
}

.nav_ul li a {
  display: block;
  margin-right: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--black_base, #222);
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.nav_ul li a:hover {
  color: var(--white);
  background: var(--sep-blue, #0050aa);
}

.nav_category_wrap,
.nav_tag_wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav_category_wrap.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex;
  width: 16.25rem;
  padding: 1.5rem 0.5rem 1.5rem 1.25rem;
  border-radius: 0.625rem;
  border: 2px solid var(--sep-black, #000);
  background: var(--white);
  position: absolute;
  top: 4px;
  right: 0;
}

.nav_tag_wrap.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex;
  width: 16.25rem;
  padding: 1.5rem 0.5rem 1.5rem 1.25rem;
  border-radius: 0.625rem;
  border: 2px solid var(--sep-black, #000);
  background: var(--white);
  position: absolute;
  top: 4px;
  right: 0;
}

@media (min-width: 900px) {
  .archive_list_nav {
    width: 50%;
  }
  .btn_wrap {
    column-gap: 1rem;
  }
  .btn_category,
  .btn_tag {
    padding: 0.5rem 0;
    text-align: center;
  }
  .btn_category img,
  .btn_tag img {
    width: 13px;
    height: 7.8px;
    right: 14px;
  }
  .nav_category_wrap.open {
    width: 16.25rem;
    top: 8px;
    left: -3.5rem;
  }
  .nav_tag_wrap.open {
    width: 16.25rem;
    top: 8px;
    right: -3.5rem;
  }
}
/*エディター系*/
h1.single_ttl {
  padding-top: calc(1.125rem + 0.8125rem * var(--fluid-progress));
  font-size: calc(1.5625rem + 0.9375rem * var(--fluid-progress));
  text-align: left;
}

/*body.under .text_head {
padding-top: calc(1rem + (2.25rem - 1rem) * var(--fluid-progress));
}*/
.single_tag_list_box {
  padding-top: calc(1.3125rem + 2.875rem * var(--fluid-progress));
  padding-bottom: calc(1.875rem + -0.5625rem * var(--fluid-progress));
  margin-bottom: calc(2.125rem + 2.1875rem * var(--fluid-progress));
  border-bottom: 2px solid var(--gray2);
}

.post_contents {
  width: 100%;
  display: flow-root;
}
.post_contents .aligncenter {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  clear: both;
}
.post_contents .aligncenter img {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
.post_contents .alignleft {
  float: left;
  margin-right: 2rem !important;
  margin-left: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
.post_contents .alignright {
  float: right;
  margin-left: 2rem !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
.post_contents figure.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.post_contents figure.aligncenter img {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
.post_contents figure.alignleft {
  float: left;
  margin-right: 2rem !important;
  margin-left: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
.post_contents figure.alignright {
  float: right;
  margin-left: 2rem !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
.post_contents .wp-block-image.aligncenter {
  text-align: center;
}
.post_contents .wp-block-image.aligncenter > figure {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.post_contents .wp-block-image.aligncenter > figure img {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
.post_contents .wp-block-image.alignleft {
  float: left;
  margin-right: 2rem !important;
  margin-left: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
}
.post_contents .wp-block-image.alignleft > figure {
  float: left;
  margin-right: 2rem !important;
  margin-left: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
.post_contents .wp-block-image.alignright {
  float: right;
  margin-left: 2rem !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
}
.post_contents .wp-block-image.alignright > figure {
  float: right;
  margin-left: 2rem !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem !important;
  width: auto !important;
  height: auto !important;
}
.post_contents .size-full {
  width: auto !important;
  height: auto !important;
}

.post_contents h1 {
  margin-bottom: calc(1.25rem + 0.8125rem * var(--fluid-progress));
  font-size: calc(1.5625rem + 0.3125rem * var(--fluid-progress));
}

.post_contents h2 {
  margin-bottom: calc(1.25rem + 1rem * var(--fluid-progress));
  font-size: calc(1.25rem + 0.625rem * var(--fluid-progress));
}

.post_contents h3 {
  margin-bottom: calc(1.25rem + 1rem * var(--fluid-progress));
  font-size: calc(1.125rem + 0.375rem * var(--fluid-progress));
}

.post_contents h4 {
  margin-bottom: calc(1.25rem + 1rem * var(--fluid-progress));
  padding-left: 0.9375rem;
  font-size: calc(1rem + 0.25rem * var(--fluid-progress));
  border-left: 3px solid var(--sep-blue);
}

/*.post_contents p {
margin-bottom: calc(1.25rem + (2.25rem - 1.25rem) * var(--fluid-progress));
font-size: calc(1rem + (1.25rem - 1rem) * var(--fluid-progress));
line-height: calc(1.6rem + (1.8125rem - 1.6rem) * var(--fluid-progress));
}*/
.post_contents p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.post_contents figure {
  margin-bottom: calc(1.25rem + 1rem * var(--fluid-progress));
  border-radius: 0;
}

body.mce-content-body ul,
body.mce-content-body ol,
.post_contents ul,
.post_contents ol {
  margin: 1em 0;
  padding: 0 1em;
  font-size: calc(1rem + 0.25rem * var(--fluid-progress));
}

.editor-styles-wrapper ul li,
.mce-content-body ul li,
.editor-styles-wrapper ol li,
.mce-content-body ol li,
.post_contents ul li,
.post_contents ol li {
  margin-left: 1em;
  margin-bottom: 0.8em;
  line-height: 1.5;
  font-weight: normal;
  list-style-position: outside;
  list-style-type: disc;
}

.wp-block-gallery ul li {
  padding: 0 !important;
}

.editor-styles-wrapper ol li ol,
.mce-content-body ol li ol,
.post_contents ol li ol {
  margin-left: 1em;
}

.editor-styles-wrapper ul li:last-child,
.mce-content-body ul li:last-child,
.post_contents ul li:last-child,
.editor-styles-wrapper ol li:last-child,
.mce-content-body ol li:last-child,
.post_contents ol li:last-child {
  padding-bottom: 0;
}

.post_contents a {
  text-decoration: underline;
  color: var(--sep-blue);
}

.post_contents a.wp-block-file__button {
  color: #fff;
}

/* 上下線 */
.is-style-line-box {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 1rem 0;
}

/* 白背景ボックス */
.is-style-white-bg-box {
  padding: 1rem;
  background-color: var(--white);
  border-radius: calc(0.3125rem + 0.3125rem * var(--fluid-progress));
}

/* 赤背景 */
.red-inline {
  background: #d40000;
  color: #fff;
  padding: 0;
  font-size: calc(1.25rem + 0.125rem * var(--fluid-progress));
}

.back_list_btn_wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
  clear: both;
}

.back_list_btn_wrap .view_btn {
  margin-top: 0;
  font-family: "Noto Sans JP", sans-serif;
}

@media (min-width: 900px) {
  .back_list_btn_wrap .view_btn {
    margin-bottom: 0;
  }
}
/*pagenation*/
.p-pagination .screen-reader-text {
  opacity: 0;
}

.p-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 0;
}

.p-pagination .page-numbers.prev,
.p-pagination .page-numbers.next {
  display: none;
}

.p-pagination .page-numbers {
  align-items: center;
  color: var(--sep-black);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: calc(1rem + 0.125rem * var(--fluid-progress));
  font-weight: 700;
  height: 2.8125rem;
  justify-content: center;
  width: 2rem;
  border-radius: 100vh;
}

.p-pagination .current {
  color: #ff0000;
}

.p-pagination .dots {
  background: none;
  border: none;
  color: var(--sep-black);
}

.p-pagination .page-numbers.prev,
.p-pagination .page-numbers.next {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: var(--gray2);
  width: 2.8125rem;
  margin-right: 1.25rem;
}

.p-pagination .page-numbers.next {
  margin-right: 0;
  margin-left: 1.25rem;
}

.p-pagination .page-numbers.prev::before,
.p-pagination .page-numbers.next::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 11px;
  background: url("../img/arrow_left_w.svg") center center no-repeat;
}

.p-pagination .page-numbers.next::before {
  background: url("../img/arrow_right_w.svg") center center no-repeat;
}

.p-pagination .page-numbers {
  padding: 0.375rem 0.875rem;
}

/*よくあるご質問*/
.faq_article_list {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: calc(0.9375rem + 0.625rem * var(--fluid-progress));
}

.faq_article_list .post_contents p {
  font-size: 16px !important;
}

.faq_item {
  display: flex;
  width: 100%;
  padding: 0.3125rem;
  flex-direction: column;
  align-items: center;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.txt_q {
  display: flex;
  width: 100%;
  padding: 0.8125rem 1.3125rem 0.8125rem 1.9375rem;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  align-items: center;
  gap: 1.125rem;
  gap: 0.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--sep-red-light, #ffe7e7);
  position: relative;
  cursor: pointer;
}

.txt_q img {
  width: 2.1875rem;
  height: 2.1875rem;
}

@media (min-width: 900px) {
  .txt_q img {
    width: 2.75rem;
    height: 2.75rem;
  }
}
.txt_q:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
  width: calc(0.72919rem + 0.72919rem * var(--fluid-progress));
  height: calc(0.4375rem + 0.4375rem * var(--fluid-progress));
  background: url("../img/arrow_under_b.svg") center center no-repeat;
  background-size: calc(0.72919rem + 0.72919rem * var(--fluid-progress)) calc(0.4375rem + 0.4375rem * var(--fluid-progress));
}

.faq_item.open .txt_q:after {
  background: url("../img/arrow_top_b.svg") center center no-repeat;
  background-size: calc(0.72919rem + 0.72919rem * var(--fluid-progress)) calc(0.4375rem + 0.4375rem * var(--fluid-progress));
}

.txt_q .icon {
  display: flex;
  width: calc(2.1875rem + 0.5625rem * var(--fluid-progress));
  height: calc(2.1875rem + 0.5625rem * var(--fluid-progress));
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 100vh;
  background: var(--sep-red);
  color: #fff;
  font-size: calc(1.36719rem + 0.35156rem * var(--fluid-progress));
  line-height: 0;
  padding-top: 3px;
}

.txt_q .ttl {
  color: var(--sep-black);
  font-size: calc(1.125rem + 0.125rem * var(--fluid-progress));
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.0625rem;
}

.txt_a {
  display: flex;
  width: 100%;
  height: 0px;
  padding-left: 1.4375rem;
  padding-right: 1.4375rem;
  overflow: hidden;
}

.faq_item.open .txt_a {
  height: auto;
  padding: 1.4375rem;
}

/* =========================
   FAQ 回答エリア全体
========================= */
.faq_article_list .txt_a .post_contents .faq_answer {
  color: #222;
  font-size: 16px;
  line-height: 1.75;
}

/* =========================
   通常テキスト
========================= */
.faq_article_list .txt_a .post_contents .faq_answer p {
  margin: 0 0 28px;
  font-size: 16px !important; /* ← global上書き対策 */
  line-height: 1.75;
}

.faq_article_list .txt_a .post_contents .faq_answer p:last-child {
  margin-bottom: 0;
}

/* =========================
   赤見出し
========================= */
.faq_article_list .txt_a .post_contents .faq_answer__lead {
  margin-bottom: 18px;
  font-size: 18px !important;
  line-height: 1.6;
  font-weight: 700;
}

.faq_article_list .txt_a .post_contents .faq_answer__lead--red {
  color: #f60000;
}

/* =========================
   強調行（→のやつ）
========================= */
.faq_article_list .txt_a .post_contents .faq_answer__strong {
  margin-bottom: 24px;
  font-size: 16px !important;
  line-height: 1.75;
  font-weight: 700;
}

/* =========================
   注釈（※）
========================= */
.faq_article_list .txt_a .post_contents .faq_answer .faq_note {
  margin-top: -8px;
  margin-bottom: 24px;
  font-size: 14px !important; /* ← ここ重要 */
  line-height: 1.7;
  color: #444;
}

/* =========================
   リンク
========================= */
.faq_article_list .txt_a .post_contents .faq_answer a {
  color: #0050aa;
  text-decoration: underline;
}

/* =========================
   区切り線
========================= */
.faq_article_list .txt_a .post_contents .faq_answer hr {
  border: 0;
  border-top: 1px dashed #999;
  margin: 32px 0 36px;
}

/* =========================
   SP対応
========================= */
@media (max-width: 768px) {
  .faq_article_list .txt_a .post_contents .faq_answer {
    font-size: 16px;
    line-height: 1.75;
  }
  .faq_article_list .txt_a .post_contents .faq_answer p {
    margin-bottom: 24px;
    font-size: 16px !important;
  }
  .faq_article_list .txt_a .post_contents .faq_answer__lead {
    margin-bottom: 16px;
    font-size: 18px !important;
  }
  .faq_article_list .txt_a .post_contents .faq_answer__strong {
    margin-bottom: 20px;
    font-size: 16px !important;
  }
  .faq_article_list .txt_a .post_contents .faq_answer .faq_note {
    margin-top: -6px;
    margin-bottom: 20px;
    font-size: 13px !important;
    line-height: 1.65;
  }
  .faq_article_list .txt_a .post_contents .faq_answer hr {
    margin: 28px 0 32px;
  }
}
@media (max-width: 768px) {
  .faq_article_list .txt_a .post_contents .faq_answer {
    font-size: 16px;
    line-height: 1.75;
  }
  .faq_article_list .txt_a .post_contents .faq_answer p {
    margin-bottom: 24px;
    font-size: 16px;
  }
  .faq_article_list .txt_a .post_contents .faq_answer__lead {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.6;
  }
  .faq_article_list .txt_a .post_contents .faq_answer__strong {
    margin-bottom: 20px;
    font-size: 16px;
  }
  .faq_article_list .txt_a .post_contents .faq_note {
    margin-top: -6px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.65;
  }
  .faq_article_list .txt_a .post_contents .faq_answer hr {
    margin: 28px 0 32px;
  }
}
/*リンクカード*/
.link_card_box {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.8125rem;
}

.link_card_item {
  width: 100%;
}

.link_card_item a {
  display: flex;
  width: 100%;
  height: 100%;
  padding: calc(1.5rem + 1.125rem * var(--fluid-progress)) calc(1.0625rem + 1rem * var(--fluid-progress));
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 0.625rem;
  background: var(--white, #fff);
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.text2 {
  font-size: 0.75rem;
}

.link_card_item a:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  background: url("../img/link_card_right_img.svg") bottom right no-repeat;
}

.link_card_item a {
  text-decoration: none;
  color: var(--sep-black);
}

.icon_box {
  width: calc(2.625rem + 1.75rem * var(--fluid-progress));
  height: calc(2.625rem + 1.75rem * var(--fluid-progress));
  flex-shrink: 0;
}

.icon_box img {
  width: 100%;
  height: auto;
}

.link_card_item {
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .link_card_item .icon_box {
    width: 60px;
    height: 60px;
  }
}

.txt_box {
  display: flex;
  flex-shrink: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.txt_box .ttl {
  font-size: calc(1.125rem + 0.125rem * var(--fluid-progress));
  font-weight: 700;
}

.txt_box .text {
  font-size: 0.9375rem;
  font-weight: 400;
}

@media (min-width: 900px) {
  .link_card_box {
    flex-direction: row;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9375rem 1.25rem;
  }
}
/* =========================
   記事装飾用スタイル
========================= */
/* 1. 上下線（黒・100%） */
.is-style-line-box {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 1rem 0;
  width: 100%;
}

/* 2. 白背景ボックス */
.is-style-white-bg-box {
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 3. 文字幅の上下線（実線） */
.is-style-line-box-fit {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 0.8rem 0;
  width: fit-content;
}
.is-style-line-box-fit.has-text-align-center {
  margin-left: auto !important;
  margin-right: auto !important;
}
.is-style-line-box-fit.has-text-align-right {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.is-style-line-box-fit.has-text-align-left {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* 4. 文字幅の上下線（点線） */
.is-style-line-box-dashed {
  border-top: 2px dashed #000;
  border-bottom: 2px dashed #000;
  padding: 0.8rem 0;
  width: fit-content;
}
.is-style-line-box-dashed.has-text-align-center {
  margin-left: auto !important;
  margin-right: auto !important;
}
.is-style-line-box-dashed.has-text-align-right {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.is-style-line-box-dashed.has-text-align-left {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* 5. 横1本線（実線） */
.is-style-single-line {
  border: none;
  border-bottom: 2px solid #000; /* 下線だけを表示 */
  padding: 0;
  margin-top: 2rem; /* 線の上の余白 */
  margin-bottom: 2rem; /* 線の下の余白 */
  height: 0;
}

/* 6. 横1本線（点線） */
.is-style-single-line-dashed {
  border: none;
  border-bottom: 2px dashed #000; /* 下線だけを点線で表示 */
  padding: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  height: 0;
}

/* 7. 左縦棒（青） */
.is-style-side-line-blue {
  border: none;
  border-left: 4px solid #0d47a1; /* 画像に合わせた青色 */
  padding-left: 1rem; /* 棒と文字の間の余白 */
  margin-top: 1.5rem; /* 棒の上の余白 */
  margin-bottom: 1.5rem; /* 棒の下の余白 */
}

/* 8. 左縦棒（赤） */
.is-style-side-line-red {
  border: none;
  border-left: 4px solid var(--sep-red, #f60000); /* サイトの赤色 */
  padding-left: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   DIFY CHATBOT – Overlay approach (Synchronized from subsite theme)
   ========================================================================== */
/* Hide Dify's default bubble visually but keep it functional */
#dify-chatbot-bubble-button {
  opacity: 0 !important;
  pointer-events: auto !important;
}

/* Our overlay – sits ABOVE Dify's button, pointer-events: none by default */
#dify-chatbot-ui-wrap {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2147483648 !important;
  width: 244px;
  height: 60px;
  pointer-events: none;
}

/* Text pill – extends full width so border wraps around the icon too */
#custom-bot-inner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex !important;
  align-items: center !important;
  padding: 0 0 0 16px !important;
  width: 244px;
  height: 60px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  background: var(--white, #fff);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white, #fff), var(--white, #fff)), linear-gradient(to right, var(--sep-red, #f60000), #0053a6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 100vh;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
}

#custom-bot-inner.is-closing {
  opacity: 0;
  transform: translateX(12px);
  /* subtle slide toward icon */
  pointer-events: none;
  visibility: hidden;
}

#custom-bot-text {
  color: #000;
  font-weight: bold;
  font-size: 15px;
  margin: 0 12px;
  white-space: nowrap;
  flex: 1;
}

/* Icon – sits on top of the pill's right side (z-index: 2), pointer-events: none so clicks fall through */
#bot-icon-wrapper {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 60px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fe596c, #5aa6f1) !important;
  pointer-events: none;
  z-index: 2;
}

#bot-icon-wrapper img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

/* × dismiss button – 44×44 transparent hit area, always visible when text box is open */
#close-text-btn-external {
  position: absolute;
  top: -14px;
  left: -14px;
  /* top-left corner of the pill border */
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  z-index: 99999;
  cursor: pointer;
  color: transparent !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

/* Visual circle – always visible when text box is shown */
#close-text-btn-external::before {
  content: "×";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white, #fff);
  border-radius: 50%;
  font-size: 12px;
  color: #000000;
  border: 1px solid #858585;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: background 0.2s ease;
  line-height: 1.4;
  transform: scale(1) !important;
  transition: transform 0.2s ease;
}

/* Subtle hover highlight */
#close-text-btn-external:hover::before {
  background: #f0f0f0 !important;
  color: #555 !important;
}

#close-text-btn-external.dify-hidden {
  display: none !important;
}

.dify-hidden {
  display: none !important;
}

/* Chat window – keep in bottom-right corner */
#dify-chatbot-bubble-window {
  position: fixed !important;
  right: 1rem !important;
  bottom: 2rem !important;
  top: auto !important;
  left: auto !important;
}

@media (max-width: 768px) {
  .pagetop {
    bottom: 182px;
  }
  #dify-chatbot-ui-wrap {
    bottom: 120px !important;
    width: 210px !important;
    height: 50px !important;
  }
  #custom-bot-inner {
    width: 210px !important;
    height: 50px !important;
    right: 0 !important;
  }
  #custom-bot-text {
    font-size: 13px;
  }
  #bot-icon-wrapper {
    width: 50px !important;
    height: 50px !important;
  }
  #close-text-btn-external {
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
  }
}

.side-layer:empty {
  display: none !important;
}

/*# sourceMappingURL=common.css.map */
