/**/
.site-body {
  padding-top: 0!important;
}

/* page-headerの背景色を無しに */
.page-header {
  min-height: 0!important;
  background: none!important;
  color: #444!important;
}

/*
@media (min-width: 992px) {
  .page-header {
    min-height: 120px!important;
  }
  .page-header .page-header-inner {
    margin: 0 auto;
  }
  #breadcrumb {
    position: relative;
    border: none;
  }
  #breadcrumb .container {
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
    width: 100%;
    z-index: 100;
  }
}
*/

/* 言語スイッチャーのbefore要素に地球儀を表示して、言語選択欄ということが分かるようにする */
.menu-item-language-switcher .global-nav-name,
.menu-item-language-switcher .lang-item a {
  position: relative;
  padding-left: 40px!important;
  box-sizing: border-box;
}
.menu-item-language-switcher .global-nav-name::before,
.menu-item-language-switcher .lang-item a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  margin: auto;
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("../img/language-selector-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
}
.menu-item-language-switcher .sub-menu {
  background-color: #fff;
}
.menu-item-language-switcher .sub-menu li a {
  padding-left: 35px;
  border-bottom: 1px solid #ccc;
  background-color: #fff!important;
  color: #444!important;
}
.menu-item-language-switcher .sub-menu li a:hover {
  border-bottom: 1px solid #ccc;
  background-color: #fff!important;
  color: #444!important;
}

/* lightning の影響で polylangの言語スイッチャーの国旗が横に伸びる問題の対策 */
.header-nav img,
.global-nav img,
.menu img {
  width: auto !important;
  height: 1em !important;
  object-fit: contain;
  vertical-align: middle;
}
.wpml-ls-flag img,
.lang-item img,
.menu .lang-item img {
  width: 1em;           /* 適切な横幅に調整（例：1em または 16px） */
  height: auto;
  object-fit: contain;  /* 縦横比を維持して収まるように */
  vertical-align: middle;
}

/* smooth scroll用のCSS */
#backToTop {
  display:none;
  position:fixed;
  bottom:80px;
  right:30px;
  width: 50px;
  height: 50px;
  padding:10px;
  border: none;
  border-radius: 25px;
  background-color: #888;
  opacity: 0.6;
  z-index:999;
}
#backToTop img {
    width: 100%;
    height: auto;
}

/* 特定商取引法に基づく表示の一部画像化 */
.about-us-table td,
.legal-table td {
  position: relative;
}
.about-us-table td::before,
.legal-table td::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  margin: auto;
  padding: 0;
  display: block;
  width: 90%;
  height: 11.5px;
  background-size: contain;
  background-repeat: no-repeat;
  overflow: hidden;
}
.about-us-table-ja tbody tr:nth-child(2) td:nth-child(2)::before,
.legal-table-ja tbody tr:nth-child(2) td:nth-child(2)::before {
  background-image:  url("../img/legal-table-ja-tr-2.svg");
}
.about-us-table-en tbody tr:nth-child(2) td:nth-child(2)::before,
.legal-table-en tbody tr:nth-child(2) td:nth-child(2)::before {
  background-image:  url("../img/legal-table-en-tr-2.svg");
}
.about-us-table-zh tbody tr:nth-child(2) td:nth-child(2)::before,
.legal-table-zh tbody tr:nth-child(2) td:nth-child(2)::before {
  background-image:  url("../img/legal-table-zh-tr-2.svg");
}
.about-us-table tbody tr:nth-child(3) td:nth-child(2),
.legal-table tbody tr:nth-child(3) td:nth-child(2) {
  height: 42px;
}
.about-us-table-ja tbody tr:nth-child(3) td:nth-child(2)::before,
.legal-table-ja tbody tr:nth-child(3) td:nth-child(2)::before {
  height: 23px;
  background-image:  url("../img/legal-table-ja-tr-3.svg");
}
.about-us-table-en tbody tr:nth-child(3) td:nth-child(2)::before,
.legal-table-en tbody tr:nth-child(3) td:nth-child(2)::before {
  height: 23px;
  background-image:  url("../img/legal-table-en-tr-3.svg");
}
.about-us-table-zh tbody tr:nth-child(3) td:nth-child(2)::before,
.legal-table-zh tbody tr:nth-child(3) td:nth-child(2)::before {
  height: 23px;
  background-image:  url("../img/legal-table-zh-tr-3.svg");
}
.about-us-table-ja tbody tr:nth-child(4) td:nth-child(2)::before,
.legal-table-ja tbody tr:nth-child(4) td:nth-child(2)::before {
  height: 11px;
  background-image:  url("../img/legal-table-ja-tr-4.svg");
}
.about-us-table-en tbody tr:nth-child(4) td:nth-child(2)::before,
.about-us-table-zh tbody tr:nth-child(4) td:nth-child(2)::before,
.legal-table-en tbody tr:nth-child(4) td:nth-child(2)::before,
.legal-table-zh tbody tr:nth-child(4) td:nth-child(2)::before {
  height: 11px;
  background-image:  url("../img/legal-table-en-tr-4.svg");
}
.legal-table tbody tr:nth-child(6) td:nth-child(2)::before {
  height: 11px;
  background-image:  url("../img/legal-table-tr-6.svg");
}
@media (min-width: 992px) {
  .about-us-table-ja tbody tr td::before,
  .legal-table-ja tbody tr td::before {
    height: 13px;
  }
  .about-us-table-ja tbody tr:nth-child(3) td:nth-child(2),
  .legal-table-ja tbody tr:nth-child(3) td:nth-child(2) {
    height: 48px;
  }
  .about-us-table-ja tbody tr:nth-child(3) td:nth-child(2)::before,
  .legal-table-ja tbody tr:nth-child(3) td:nth-child(2)::before {
    height: 25px;
  }
  .legal-table tbody tr:nth-child(6) td:nth-child(2)::before {
    height: 12px;
  }
}

/* 共通スタイル（モバイルファースト設計の場合、ここにスマホ向けを書く） */
/* WordPress管理画面風の .button スタイル */
.button {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-color: #2271b1;
  background: #f6f7f7;
  color: #2271b1;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.1s ease-in-out;
}

/* ホバー時 */
.button:hover {
  background: #f0f0f1;
  border-color: #0a4b78;
  color: #0a4b78;
}

/* フォーカス時 */
.button:focus {
  outline: 2px solid #3582c4;
  outline-offset: 1px;
}

/* アクティブ時 */
.button:active {
  background: #e0e0e1;
  border-color: #135e96;
  color: #135e96;
}

.input-size,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea {
  width: 100%;
  padding: 0 8px!important;
  line-height: 2;
  min-height: 30px;
  font-size: 14px;
  font-family: inherit;
  color: #2c3338;
  background-color: #fff;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-sizing: border-box;
  margin: 0 1px!important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.input-size-short {
  width: 5rem!important;
}

/* フォーカス時の見た目（青い縁） */
.input-size:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

/* 管理画面風のチェックボックススタイル */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: -0.25rem 0.4rem 0 0;
  vertical-align: middle;
  background: #fff;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border-color 0.05s ease-in-out;
  padding: 0;
  position: relative;
}

/* チェックマーク（より大きく中央に） */
input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%233582c4'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* アコーディオンラベル */
.accordion-label {
  display: block;
  cursor: pointer;
  text-align: left;
}

/* チェックボックスは非表示 */
.accordion-checkbox {
  display: none!important;
}

/* 内容部分は非表示 */
.accordion-menu {
  display: none;
  margin: 0;
}

/* チェックボックスが選択された時に内容を表示 */
.accordion-checkbox:checked + .accordion-label + .accordion-menu {
  display: block;
}

/* 説明欄表示 */
.tooltip {
  display: inline-block;
  position: relative; /* ← これでアイコンを基準に配置できる */
}
.tooltip .tooltip-icon {
  cursor: pointer;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 0 0 5px;
  text-align: center;
  border: 1px solid #65BFFD;
  border-radius: 10px;
  color: #65BFFD;
  font-weight: bold;
}
.tooltip .tooltip-text {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 300px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  background-color: #e0f7fa;
  padding: 10px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid #e0f7fa;
  border-radius: 3px;
  font-size: 13px;
}
/* 表示トリガーは ? アイコン or ツールチップ本体 */
.tooltip .tooltip-icon:hover + .tooltip-text,
.tooltip .tooltip-text:hover {
  opacity: 1;
  pointer-events: auto;
}

/* 注意事項 */
.caution-red {
  font-size: 10pt;
  color: #f22;
}

/* 文字色 */
.color-red {
  color: #f22;
}
.color-green {
  color: #147D17;
}
.color-disable {
  color: #ccc;
}

/* 改行位置を指定するためのspanに付けるクラス */
.break-unit {
  display: inline-block;
  white-space: nowrap;
}

/* URLのような長い文字列を強制的に改行するクラス */
.break-word {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* input要素のdisable */
input:disabled {
  border: none!important;
  color: #444!important;
}

/* front-page */
/* ボタンhover時に少しだけ大きくする */
.link-item,
.sns-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.link-item:hover,
.sns-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
  #front-top-area-1 {
    width: 100vw;
  }
  .link-group {
    padding: 10px 20px 20px 20px;
  }
  #link-group-1 {
    background-color: #ffefcd;
  }
  #link-group-2 {
    background-color: #c5ffe7;
  }
  .link-group h2 {
    margin: 0 0 10px 0;
    padding: 0 0 0 calc(50% - 200px);
    border: none;
    font-size: 12pt;
    font-weight: bold;
  }
  .link-area {
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  .link-item {
    background-color: #fff;
  }
  .link-item img {
    display: block;
    width: 100%;
    max-width: 100px;
    padding: 15% 15% 0 15%;
  }
  .link-item span {
    display: block;
    padding: 5% 0;
    text-align: center;
  }

  /* SNSエリア */
  .front-top-area-2 {
    display: block;
  }
  .sns-area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    z-index: 100;
  }
  .sns-item {
    display: block;
    width: 100%;
    height: 60px;
  }
  #whatsapp-icon {
    background-color: #33FF88!important;
  }
  #facebook-icon {
    background-color: #FF7272!important;
  }
  #instagram-icon {
    display: none;
  }
  #login-icon {
    background-color: #000!important;
  }
  .sns-item img {
    display: block;
    width: 40px;
    height: 40px;
    margin: 10px auto;
  }
  .sns-area #facebook-icon {
    background-color: #000;
  }
  .sns-area #login-icon {
    padding: 0;
    background-color: #000;
    text-align: center;
  }
  .sns-area #login-icon span {
    line-height: 60px;
    font-size: 18pt;
    font-weight: bold;
    color: #fff;
  }
  .site-footer {
    padding-bottom: 60px!important;
  }
}

/* PC向け：992px以上の画面幅で適用される */
@media (min-width: 992px) {
  #front-top-area-1 {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
  }
  .link-group {
    width: 250px;
    padding: 10px 20px 20px 20px;
  }
  #link-group-1 {
    background-color: #000080;
  }
  #link-group-1 .link-item:hover {
    color: #000080;
  }
  #link-group-2 {
    background-color: #ff0f0f;
  }
  #link-group-2 .link-item:hover {
    color: #ff0f0f;
  }
  .link-group h2 {
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    font-size: 14pt;
    font-weight: normal;
    text-align: center;
    color: #fff;
  }
  .link-item {
    position: relative;
    display: block;
    padding: 5px 10px;
    background-color: #fff;
  }
  .link-item:not(:last-child) { /* 最後以外に適用 */
    margin-bottom: 10px;
  }
  .link-item img {
    position: absolute;
    top: 5px;
    left: 10px;
    display: block;
    width: 30px;
    height: 30px;
  }
  .link-item span {
    display: block;
    line-height: 30px;
    text-align: center;
  }

  /* SNSエリア */
  #front-top-area-2.pc-display-none {
    display: none;
  }
  .sns-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0 0 0;
  }
  .sns-item {
    display: block;
    width: 100px;
    min-width: 100px;
    height: 100px;
    padding: 20px;
    border: 1px solid #000;
    border-radius: 10px;
  }
  .sns-item img {
    display: block;
    width: 100%;
  }
  .sns-area #facebook-icon {
    background-color: #000;
  }
  .sns-area #login-icon {
    padding: 0;
    background-color: #000;
    text-align: center;
  }
  .sns-area #login-icon span {
    line-height: 100px;
    font-size: 18pt;
    font-weight: bold;
    color: #fff;
  }
}

/* blogエリア表示部分 */
.blog-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4列等幅 */
  gap: 50px; /* 要素間の隙間（任意） */
}
.blog-list {
  border-bottom: 1px solid #127EC8;
}
.blog-list h2 {
  position: relative;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #127EC8;
  border-bottom: 1px solid #127EC8;
  z-index: 0;
}
.blog-list h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 70%;
  height: 1px;
  z-index: 10;
  background-color: #ccc;
}
.blog-list a {
  display: block;
}
.blog-list .first-post-a {
  margin: 30px 0;
}
.blog-list h3 {
  margin: 0;
  padding: 0;
  border: none;
}
.blog-list h3::after {
  border: none;
}
.archive-list {
  margin: 0;
}
.blog-list a p {
	margin: 0;
}
.pagination {
	display: block;
	width: 100%;
}

.shipping-availability-table {
  width: 100%;
}
.shipping-availability-table td:not(:first-child) {
  width: 10%;
  text-align: center;
}

.menu-item-language-switcher {
  cursor: pointer;
}
.menu-item-language-switcher-global-nav span {
  display: block;
  margin: 0;
  padding: 14px 18px;
}
.menu-item-language-switcher-vk-mobile-nav span {
  display: block;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
.menu-item-language-switcher-vk-mobile-nav ul > li {
  padding-left: 20px;
}
