/*
Theme Name:OOPS! child
Theme URI:
Description:WordPressテーマ「OOPS!」の自作子テーマです。
Template:oops_tcd048
Author:Design Plus
Author URI:http://design-plus1.com/tcd-w/
Version:3.1.2
*/

.youtube_ifreme {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}
iframe {
  width: 100%;
}
.move {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.move iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

h1 {
  font-size: 2em; /* フォントサイズを大きく */
  color: #e03c8a; /* 色をそのまま */
  margin-bottom: 1em; /* 余白を追加 */
  text-align: center; /* 中央揃え */
}

.gsc-control-cse {
  width: 290px;
  margin: 0 auto; /* 中央揃え */
}

table {
  margin-bottom: 0;
  width: 100%; /* テーブルを幅いっぱいに */
  border-collapse: collapse; /* 余分な境界線を排除 */
}

table th,
table td {
  padding: 0.5em;
  border: 1px solid #ccc; /* テーブルセルに境界線を追加 */
}

table th {
  background-color: #f8f8f8; /* テーブルヘッダーに背景色 */
  color: #333; /* フォント色 */
  font-weight: bold; /* フォントを太く */
}

table td {
  background-color: #fff; /* 背景色 */
  color: #333; /* フォント色 */
}

.p-entry__body h2 {
  position: relative;
  margin-bottom: 40px;
  padding: 0.4em 1em calc(0.4em - 6px);
  font-family: 'ヒラギノ明朝 Pro W6', 'Hiragino mincho Pro', 'MS Mincho', 'Yu Mincho', serif;
  font-size: 26px;
  line-height: 1.6;
  color: #fff;
  background: #211e55;
}
.p-entry__body h2::after {
  content: '';
  background-color: #211e55;
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: -6px;
  left: 0;
}
.p-entry__body img.aligncenter {
  display: block;
  text-align: center;
  margin: auto;
}

@media screen and (max-width: 768px) {
  .p-entry__body h2 {
    margin-bottom: 30px;
    padding: 0.4em 0.4em calc(0.5em - 5px);
  }
  .p-entry__body h2::after {
    height: 2px;
    bottom: -5px;
  }
}

.p-entry__body h3 {
  display: inline-block;
  margin-bottom: 40px;
  font-family: 'ヒラギノ明朝 Pro W6', 'Hiragino mincho Pro', 'MS Mincho', 'Yu Mincho', serif;
  font-size: 22px;
  line-height: 1.6;
  background: linear-gradient(transparent 70%, #f8eddb 30%);
}
@media screen and (max-width: 768px) {
  .p-entry__body h3 {
    margin-bottom: 30px;
    font-size: clamp(18px, 2.1484375vw, 20px);
    background: linear-gradient(transparent 60%, #f8eddb 40%);
  }
}

@media (max-width: 768px) {
  .info.box .contents {
    flex-direction: column;
    align-items: center;
  }
  .info.box .image {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

.info.box {
  border: 2px solid #e03c8a;
  padding: 6px;
  margin-bottom: 8px;
}
.info.box .title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 8px;
}
.info.box .text {
  margin-bottom: 5px;
}
.info.box .contents {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap; /* レスポンシブ対応 */
}
.info.box .image {
  margin-right: 7px;
  max-width: 100%; /* レスポンシブ対応 */
}
.info.box table {
  border-collapse: collapse;
  width: auto; /* テーブル幅調整 */
}
.info.box th,
.info.box td {
  border: 2px solid #ccc;
  padding: 3px 6px;
  text-align: left; /* テキスト配置 */
}
.info.box th {
  background-color: #f9f9f9; /* 見やすさ向上 */
}
.info.box .btn {
  display: inline-block;
  padding: 6px 20px;
  background-color: #ff6600;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 2px;
  transition: background-color 0.3s ease; /* ホバー効果 */
}
.info.box .btn:hover {
  background-color: #05c756; /* ホバー時の色変更 */
}

@media (max-width: 768px) {
  .info.box .contents {
    flex-direction: column;
    align-items: center; /* スマホ画面で中央揃え */
  }
  .info.box .image {
    margin-right: 0;
    margin-bottom: 10px; /* 下部に余白追加 */
    text-align: center; /* 中央揃え */
  }
  table {
    width: auto; /* テーブル幅調整（スマホ対応） */
  }
}

.l-header .p-global-nav > li > a {
  position: relative;
  color: #fff !important;
}
.p-global-nav .sub-menu a {
  position: relative;
  width: auto !important;
  padding: 0;
  background: transparent !important;
  font-size: 12px;
}
.p-global-nav .sub-menu a::before {
  content: '';
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 172/113;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-image: var(--menu-img);
  background-color: #dfdfdf;
  margin-bottom: 10px;
}
.p-global-nav .sub-menu a span {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  aspect-ratio: 32/15;
  border: 1px solid #fff;
  border-radius: 500px;
  background: url(http://marutoyo.manocd.com/wp-content/uploads/2025/10/arrow.png) no-repeat center center/16px 12px;
  transition: 0.3s;
}
.p-global-nav .sub-menu a:hover {
  color: #d6a120 !important;
}
.p-global-nav .sub-menu a:hover span {
  background-color: #d6a120;
  border-color: #d6a120;
}
.p-global-nav .sub-menu a:hover::before {
  opacity: 0.8;
}
.c-float-buttons {
  position: fixed;
  top: 15%;
  right: -5px;
  display: grid;
  gap: 16px;
  z-index: 9999;
  pointer-events: none;
}
.c-float-buttons__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-decoration: none;
  letter-spacing: 0.2em;
  line-height: 1;
  padding-right: 5px;
  min-height: 160px;
  min-width: 55px;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  color: #fff;
}
.c-float-buttons__btn--primary {
  background: #d6a120;
}
.c-float-buttons__btn--dark {
  background: #333;
}
@media only screen and (min-width: 1201px) {
  .c-float-buttons__btn:hover {
    transform: translateX(-5px);
  }
  .l-header .p-global-nav > li > a::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 0;
    height: 1px;
    background-color: #d6a120;
    transition: 0.3s;
  }
  .l-header--large .p-global-nav > li > a::before {
    bottom: 32px;
  }
  .l-header .p-global-nav > li > a:hover::before {
    width: 80%;
  }

  .p-global-nav > li .sub-menu {
    /* opacity: 1 !important;
    visibility: visible !important; */
    top: 85px !important;
  }
  .l-header--large .p-global-nav > li .sub-menu {
    position: relative;
    top: 120px !important;
  }
  .p-global-nav > li .sub-menu::before {
    content: '';
    display: block;
    position: absolute;
    top: -20px;
    left: 60%;
    transform: translate(-50%, 0);
    width: 100vw;
    height: 30px;
  }

  .p-global-nav .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 35px;
    position: fixed !important;
    left: 50% !important;
    transform: translate(-50%, 0);
    width: 70%;
    min-width: 1000px;
    padding: 40px 50px;
    background-color: rgba(22, 22, 22, 0.9);
  }
}
@media only screen and (max-width: 1200px) {
  .p-global-nav .menu-item-has-children > a > span::before {
    margin: auto 22px !important;
    right: 0 !important;
  }

  .p-global-nav .menu-item-has-children > a > span::before {
    font-size: 16px;
  }
  .p-global-nav .menu-item-has-children > a > span.is-active::before {
    content: '－' !important;
    line-height: 26px;
  }
  .p-global-nav {
    background: rgba(17, 17, 17, 0.9) !important;
  }
  .p-global-nav > li:not(:first-child) {
    border-top: 1px dashed #d6a120;
  }
  .p-global-nav .sub-menu {
    padding: 10px 22px 40px;
  }
  .p-global-nav .sub-menu > li {
    display: inline-block;
    padding: 0 !important;
  }
  .p-global-nav .sub-menu a::before {
    margin-bottom: 7px;
  }
  .p-global-nav .sub-menu a {
    height: auto !important;
    padding: 0 !important;
    line-height: 1.5 !important;
  }
  .p-global-nav .sub-menu a span {
    bottom: 0.2em;
    width: 24px;
  }
}
@media only screen and (max-width: 1200px) and (min-width: 666px) {
  .p-global-nav .sub-menu > li {
    display: inline-block;
    width: 30%;
    padding: 0 !important;
  }
  .p-global-nav .sub-menu > li:not(:nth-child(3n + 1)) {
    margin-left: 4.5%;
  }
  .p-global-nav .sub-menu > li:nth-child(n + 4) {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 666px) {
  .c-float-buttons {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 50px;
    display: grid;
    gap: 0;
    width: calc(100% - 50px);
    grid-template-columns: repeat(2, 1fr);
    border-right: 1px solid #fff;
  }
  .c-float-buttons__btn {
    writing-mode: inherit;
    letter-spacing: 0.2em;
    line-height: 1;
    padding-right: 5px;
    min-height: inherit;
    height: 50px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
  }
  .p-global-nav .sub-menu > li {
    width: 46%;
  }
  .p-global-nav .sub-menu > li:nth-child(even) {
    margin-left: 6.5%;
  }
  .p-global-nav .sub-menu > li:nth-child(n + 3) {
    margin-top: 20px;
  }
}
