@charset "UTF-8";

/* ============================================
   Base Settings & Variables
   ============================================ */
:root {
  --color-primary: #003b6d;
  --color-accent: #d4a017;
  --color-bg-light: #ecf1f4;
  --color-bg-flow: #f9f6ef;

  --color-text: #333333;
  --color-green: #3d9e74;
  --color-red: #b94047;
  --color-brown-text: #3f270c;

  --font-title: "Inter", "Noto Sans JP", sans-serif;
  --font-en-head: "Montserrat", sans-serif;
  --font-jp: "Inter", "Noto Sans JP", sans-serif;
  --font-en-body: "Inter", sans-serif;

  --base-width: 1280;
  --header-height: 7rem;
}

html {
  font-size: calc(100vw / var(--base-width) * 10);
  scroll-behavior: smooth;
}

@media (min-width: 1280px) {
  html {
    font-size: 10px;
  }
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
  width: 100%;
  letter-spacing: 0.1rem;
}
p,
img,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
td,
tr,
th {
  margin: 0;
}
.kome {
  font-size: 0.5em;
  vertical-align: text-top;
  margin-left: 0rem;
  position: relative;
  top: -0.15em;
  font-weight: 300;
  letter-spacing: 0;
}
/* Utilities */
.en {
  font-family: var(--font-en-head);
}
.u-d-block {
  display: block;
}
.u-mt-1 {
  margin-top: 1rem;
}
.u-mt-2 {
  margin-top: 2rem;
}
.u-mt-4 {
  margin-top: 4rem;
}

.wrapper {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
}
.l-container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}
.only-sp {
  display: contents;
}
@media (max-width: 768px) {
  .only-sp {
    display: block;
  }
}
/* Components */

.c-sub-title {
  text-align: center;
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  background: #fff;
}

.c-section-header-wrap {
  display: flex;
  width: 100%;
  max-width: 1180px;
  align-items: flex-start;
  gap: 15rem;
  margin: 0 auto 10rem;
}
@media (max-width: 768px) {
  .c-section-header-wrap {
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto 8rem;
  }
}

.c-section-head {
  flex-shrink: 0;
  font-size: 3.6rem;
  font-weight: 500;
  color: var(--color-primary);
  font-family: var(--font-title);
  line-height: 1.5;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  letter-spacing: 0.2rem;
}
.section-title-en {
  font-size: 3.7rem;
  font-weight: 600;
  display: contents;
}
.c-section-head::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  background-image: url("../img/plus.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
  transform: translateY(-1rem);
}
.c-lead-block {
  flex: 1;
}
.c-lead-text {
  font-size: 2rem;
  text-align: justify;
  line-height: 1.9;
  font-family: var(--font-jp);
}
.c-note-small {
  font-size: 1.3rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.8;
}
.c-lead-text-mini {
  display: inline-block;
  font-size: 1.4rem;
  margin-top: 1rem;
}
/* Animations */
.js-anim-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.js-anim-trigger.is-animated {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .c-note-small {
    font-size: 1.2rem;
    margin-top: 2rem;
  }
  .c-section-head {
    font-size: 3rem;
    gap: 1rem;
  }
  .section-title-en {
    font-size: 3.5rem;
  }
  .c-section-head::before {
    width: 2.5rem;
    height: 2.5rem;
    transform: translateY(-1rem);
  }
  .c-lead-block {
    padding: 0 2.3rem;
  }
  .c-lead-text {
    font-size: 1.8rem;
    letter-spacing: 0.01rem;
    line-height: 1.8;
  }
}
/* ============================================
   Header & Hero
   ============================================ */
.l-header {
  height: var(--header-height); /* 高さ固定 */
  background: #fff;
  display: flex;
  align-items: center; /* 中身を上下中央へ */
}
.l-header .l-container {
  height: 100%;
  display: flex;
  align-items: center;
}
.l-header__logo {
  max-width: 18rem;
}
.l-header__logo img {
  width: 100%;
}
.p-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height)); /* スマホ対応 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--color-bg-light);
  z-index: 0;
}

.p-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url(../img/hero.webp);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.p-hero__logo-area {
  width: 50rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 8rem;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

.p-hero.is-animated .p-hero__logo-area {
  transform: translateX(0);
}

.p-hero__text-wrap {
  opacity: 0;
  transition: opacity 0.8s 0.6s;
}
.p-hero.is-animated .p-hero__text-wrap {
  opacity: 1;
}
.p-hero__logo-text {
  max-width: 50rem;
}
.p-hero__logo-text img {
  width: 100%;
}
.p-hero__catch {
  font-size: 1.9rem;
  color: var(--color-primary);
  font-family: var(--font-jp);
  line-height: 1.9;
  font-weight: 500;
  margin-top: 4rem;
}
@media (max-width: 768px) {
  .l-header {
    height: 5rem;
  }
  .l-header__logo {
    max-width: 11rem;
  }

  .p-hero {
    height: calc(100dvh - 5rem);
    align-items: center;
    justify-content: flex-end;
    padding: 0;
  }

  .p-hero__bg {
    background-image: url(../img/hero-sp.webp);
    background-position: center;
    background-size: cover;
  }
  .p-hero__logo-area {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 5rem 2rem;
    transform: translateY(30px);
    opacity: 0;
  }
  .p-hero.is-animated .p-hero__logo-area {
    transform: translateY(0);
    opacity: 1;
  }
  .p-hero__text-wrap {
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .p-hero__logo-text img {
    width: 100%;
    max-width: 35rem; /* スマホで見やすいサイズに制限 */
    height: auto;
  }

  /* --- キャッチコピー --- */
  .p-hero__catch {
    font-size: 1.55rem; /* 文字サイズ調整 */
    line-height: 1.8;
    margin-top: 0;
    text-align: left;
  }
}
/* ============================================
   Concept
   ============================================ */
.p-concept {
  background-color: var(--color-bg-light);
  padding: 12rem 0;
}

.p-chart {
  margin: 12rem auto;
}
.p-chart-mini-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--color-primary);
}
.p-chart__bar-wrap {
  display: flex;
  height: 15rem;
}

.p-chart__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.p-chart__item--start {
  width: 10rem;
  background: #8b2500;
  z-index: 3;
}
.p-chart__text-v {
  writing-mode: vertical-rl;
  font-weight: bold;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
}
.p-chart__item--maker {
  flex: 1;
  z-index: 2;
  margin-left: -2rem;
  padding-left: 2rem;
  background: #002a4e;
  clip-path: polygon(0 0, calc(100% - 4rem) 0, 100% 50%, calc(100% - 4rem) 100%, 0 100%);
}
.p-chart__item--mplus {
  flex: 2.5;
  z-index: 1;
  margin-left: -4rem;
  padding-left: 4rem;
  background: #b8860b;
  clip-path: polygon(0 0, calc(100% - 4rem) 0, 100% 50%, calc(100% - 4rem) 100%, 0 100%, 4rem 50%);
}
.p-chart__bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  transition: width 1s linear;
  z-index: -1;
}
.p-chart__item--maker .p-chart__bar-fill {
  background: var(--color-primary);
}
.p-chart__item--mplus .p-chart__bar-fill {
  background: var(--color-accent);
}
.p-chart.is-animated .p-chart__item--maker .p-chart__bar-fill {
  width: 100%;
  transition-delay: 0s;
}
.p-chart.is-animated .p-chart__item--mplus .p-chart__bar-fill {
  width: 100%;
  transition-delay: 1s;
}
.p-chart__content {
  opacity: 0;
  transition: opacity 0.5s;
  justify-items: center;
}
.p-chart.is-animated .p-chart__item--maker .p-chart__content {
  opacity: 1;
  transition-delay: 0.5s;
}
.p-chart.is-animated .p-chart__item--mplus .p-chart__content {
  opacity: 1;
  transition-delay: 1.5s;
}
.p-chart__content .title {
  display: block;
  font-size: 2.4rem;
  font-weight: bold;
}
.p-chart__content .period {
  display: block;
  font-size: 1.6rem;
  text-align: center;
}
.p-chart__item--mplus .title .title-logo {
  width: 45rem;
}
.p-chart__item--mplus .period {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.p-chart .p-points__note {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .p-concept {
    padding: 8rem 0;
  }
  .p-chart {
    margin: 0 auto;
    padding-bottom: 8rem;
  }
  .p-chart__bar-wrap {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .p-chart__item {
    width: 100%;
    padding: 0;
  }
  .p-chart__item--start {
    width: 100%;
    height: 6.5rem;
    z-index: 3;
    background: #8b2500;
  }
  .p-chart__text-v {
    writing-mode: horizontal-tb;
    letter-spacing: 0.1em;
  }
  .p-chart__item--maker {
    flex: none;
    height: 14rem;
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), 50% 100%, 0 calc(100% - 2.5rem));
    padding-bottom: 2.5rem;
    z-index: 2;
  }
  .p-chart__item--mplus {
    flex: none;
    height: 35rem;
    margin-left: 0;
    margin-top: -2.5rem;
    clip-path: polygon(0 0, 50% 2.5rem, /* 上の凹み */ 100% 0, 100% calc(100% - 2.5rem), 50% 100%, /* 下の尖り */ 0 calc(100% - 2.5rem));
    padding-left: 0;
    padding-top: 4rem;
    z-index: 1;
  }
  /* --- アニメーションの向き変更 --- */
  .p-chart__bar-fill {
    width: 100% !important;
    height: 0;
    transition: height 1s linear;
  }

  /* アニメーション発火時 */
  .p-chart.is-animated .p-chart__item--maker .p-chart__bar-fill,
  .p-chart.is-animated .p-chart__item--mplus .p-chart__bar-fill {
    height: 100%;
    width: 100% !important;
  }

  /* --- ロゴや文字の調整 --- */
  .p-chart__item--mplus .title .title-logo {
    max-width: 30rem;
    height: auto;
  }
  .p-chart__content .period {
    margin-top: 0.5rem;
  }
}

.p-points {
  margin-bottom: 4rem;
}
.p-points__list {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
}

.p-points__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.p-points__item {
  position: relative;
  background: #fff;
  border: 0.1rem solid var(--color-primary);
  border-radius: 2rem;
  padding: 6rem 2rem;
  text-align: center;
  margin-top: 3rem;
  height: 100%;
}
.p-points__num {
  position: absolute;
  top: -5rem;
  left: 2rem;
  font-family: var(--font-en-head);
  color: var(--color-accent);
  padding: 0 1rem;
  font-size: 9.5rem;
  font-weight: 700;
  line-height: 1;
}
.p-points__img-area .point-img {
  width: 28rem;
}
.p-points__title {
  color: var(--color-primary);
  font-size: 3.2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.25rem;
  font-weight: 500;
}
.p-points__desc {
  font-size: 2rem;
  line-height: 1.8;
  margin-bottom: 4rem;
}
.p-points__note {
  display: table;
  font-size: 1.2rem;
  color: #666;
  padding: 0;
  list-style: none;
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding-left: 0;
  text-align: justify;
}
.p-points__note .p-points__note_li {
  list-style: none;
  line-height: 1.6;
}

.p-points__note .p-points__note_li .notes_head {
  display: table-cell;
  vertical-align: top;
  white-space: nowrap;
  padding-right: 0.5em;
}

.p-points__note .p-points__note_li .notes_body {
  display: table-cell;
  vertical-align: top;
}

@media (max-width: 768px) {
  .p-points__list {
    flex-direction: column;
    align-items: center;
    gap: 5rem;
  }
  .p-points__item {
    margin-top: 2rem;
  }
  .p-points__num {
    top: -4rem;
    font-size: 8rem;
  }
}
/* ============================================
   Tab Section
   ============================================ */
.p-tab-section {
  padding: 10rem 0 0;
  transition: background-color 0.5s;
}
.p-tab-section.is-blue-bg {
  background-color: #ffffff;
}
.p-tab-section.is-flow-bg {
  background-color: var(--color-bg-flow);
  padding-bottom: 10rem;
}
.p-tab-section .p-points__note {
  font-size: 1.4rem;
  margin-top: 1rem;
}

.p-tab-nav-wrapper {
  border: 1px solid;
  border-radius: 10rem;
  padding: 0.3rem;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 13rem;
  transition: border-color 0.3s;
}
.p-tab-nav-wrapper.is-blue {
  border-color: var(--color-primary);
}
.p-tab-nav-wrapper.is-orange {
  border-color: var(--color-accent);
}

.p-tab-nav {
  display: flex;
  background-color: #fff;
  border-radius: 8rem;
}
.p-tab-nav__btn {
  font-size: 2.3rem;
  font-weight: 700;
  padding: 2.8rem 12rem;
  border-radius: 8rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  color: #999;
}
.p-tab-nav-wrapper.is-blue .p-tab-nav__btn.is-active {
  background: var(--color-primary);
  color: #fff;
  letter-spacing: 0.2rem;
}
.p-tab-nav-wrapper.is-orange .p-tab-nav__btn.is-active {
  background: var(--color-accent);
  color: #fff;
  letter-spacing: 0.2rem;
}
.p-tab-nav-wrapper.is-blue .p-tab-nav__btn:not(.is-active) {
  color: var(--color-primary);
}
.p-tab-nav-wrapper.is-orange .p-tab-nav__btn:not(.is-active) {
  color: var(--color-accent);
}

.p-tab-panel {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  width: 100%;
}
.p-tab-panel.is-active {
  display: block;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .p-tab-section {
    padding: 5rem 0;
  }
  .p-tab-section.is-flow-bg {
    padding-bottom: 5rem;
  }
  .p-tab-nav-wrapper {
    width: 100%;
    max-width: 35rem;
    margin: 0 auto 6rem;
    box-sizing: border-box;
  }

  .p-tab-nav__btn {
    width: 16.5rem;
    padding: 1rem 3rem;
    font-size: 1.7rem;
    line-height: 1.6;
  }
  .p-tab-nav-wrapper.is-blue .p-tab-nav__btn.is-active,
  .p-tab-nav-wrapper.is-orange .p-tab-nav__btn.is-active {
    letter-spacing: 0; /* 窮屈にならないよう標準に戻す */
  }
}
/* ============================================
   Facility Content (Figma Exact Spec)
   ============================================ */
.p-facility-section {
  max-width: 1180px;
  margin: 0 auto 8rem;
}

/* 見出し周り */
.p-facility-head {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}
.p-facility-head .num {
  font-size: 6rem;
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 4rem;
  line-height: 1;
}
.p-facility-head .title {
  font-size: 3.4rem;
  color: var(--color-primary);
  margin: 0;
}

/* ★外枠: Figma指定 */
.p-facility-body {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
  align-items: flex-start;
  align-self: stretch;
  width: 100%;
  margin-bottom: 3rem;
}

/* ★メイン画像: Figma指定 (391px x 363px) */
.p-facility-main-img {
  width: 38rem;
  height: -webkit-fill-available;
  flex-shrink: 1;
  min-width: 30rem;
  background-color: #ddd;
  position: relative;
}
.p-facility-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ★右側枠: Figma指定 (734px) */
.p-facility-sub-area {
  width: 100%;
  max-width: 73.4rem;
  height: auto;
  flex-shrink: 1;
  min-width: 0;
}

/* ★対象機器タイトル: Figma指定 */
.p-facility-sub-area .sub-label {
  margin-bottom: 2.5rem; /* 25px */
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2rem; /* 20px */
  font-weight: bold;
  background: transparent;
  padding: 0;
  line-height: 1.5;
}

/* ★画像一覧枠: Figma指定 */
.p-facility-sub-imgs {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 2.7rem 2.2rem;
}

/* ★中のアイテム: Figma指定 (230px) */
.p-facility-sub-imgs .item {
  display: flex;
  width: 31%;
  max-width: 23rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.p-facility-item-img {
  height: 12rem;
  position: relative;
}
.p-facility-sub-imgs .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-facility-sub-imgs .item span {
  font-size: 1.5rem;
  margin-top: 0;
}
.p-facility-sub-imgs .item .image-photo,
.p-facility-main-img .image-photo {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-en-body);
}
@media (max-width: 768px) {
  .p-facility-body {
    flex-direction: column; /* 縦並びに変更 */
    gap: 2rem;
  }
  .p-facility-head .title {
    font-size: 2.5rem;
  }
  .p-facility-head .num {
    font-size: 4rem;
    margin-right: 2rem;
  }
  .p-facility-main-img,
  .p-facility-sub-area {
    width: 100%; /* 幅いっぱいに */
    height: 100%;
  }
  /* メイン画像の高さ比率維持 */
  .p-facility-main-img {
    aspect-ratio: 391 / 363;
  }
  .p-facility-sub-imgs .item {
    width: calc(50% - 1.1rem);
    gap: 0.5rem;
  }
  .p-facility-sub-area .sub-label {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
  }
  .p-facility-sub-imgs {
    gap: 2rem;
  }

  .p-facility-item-img {
    width: 100%;
    height: 9rem;
  }
  .p-facility-sub-imgs .item img {
    width: 100%;
    object-fit: cover;
  }

  .p-facility-sub-imgs .item span {
    font-size: 1.3rem;
    margin-top: 0;
  }
  .facility-section--other {
    margin-bottom: 5rem;
  }
}

/* ============================================
   Fault Box (Figma Spec)
   ============================================ */
.p-fault-box {
  width: 100%;
  max-width: 1179px;
  margin: 0 auto 6rem;
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-primary);
}
.p-fault-box__title {
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  width: 40%;
  max-width: 29rem;
  height: 6.2rem;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 2.5rem 0;
}
.p-fault-box__list {
  display: grid;
  grid-template-columns: 1fr 1fr 38rem;
  gap: 2rem 3rem;
  list-style: none;
  padding: 2rem 4rem 3rem;
}
.facility-section--other {
  margin-bottom: 15rem;
}
.facility-section--other .p-fault-box__list {
  display: flex;
  margin-left: 0;
}

.p-fault-box__list li {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-weight: 500;
  color: #333;
  font-size: 1.6rem;
}
.p-fault-box__list li::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  border: 0.7rem solid var(--color-accent);
  box-sizing: border-box;
}

/* Table */
.p-table-area {
  position: relative;
  padding: 10rem 0;
}
.p-table-area::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-color: var(--color-bg-light);
  z-index: -1;
}
.p-table-area .c-sub-title {
  background-color: var(--color-bg-light);
  font-weight: 600;
  padding-bottom: 1rem;
}
.p-table-scroll-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

/* --- オーバーレイ（案内全体） --- */
.p-scroll-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* 薄く白くして文字を読みやすく */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ★重要：これを入れないと、案内が邪魔で表を触れなくなる */
  pointer-events: none;

  transition: opacity 0.3s;
}

/* スクロールされたら消すためのクラス */
.p-scroll-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- 動くアイコンと文字 --- */
.p-scroll-overlay__inner {
  background: rgba(0, 59, 109, 0.85); /* デザインの青色(primary) */
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: swipeAnim 1.5s infinite ease-in-out;
}

.p-scroll-overlay__icon {
  font-size: 2rem;
}

/* --- アニメーションの動き --- */
@keyframes swipeAnim {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(20px); /* 右に動く */
    opacity: 1;
  }
  100% {
    transform: translateX(20px);
    opacity: 0; /* 消える */
  }
}

/* PCでは表示しない（必要であれば） */
@media (min-width: 769px) {
  .p-scroll-overlay {
    display: none;
  }
}

.p-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 1.4rem;
}
.p-table th,
.p-table td {
  border: 1px solid #ccc;
  padding: 1rem 2rem;
  vertical-align: middle;
}
.p-table th {
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  font-weight: 500;
  padding: 1.5rem 1rem;
}
.th-dark {
  background: var(--color-primary);
  color: #fff;
}
.th-green {
  background: var(--color-green);
  color: #fff;
}
.th-red {
  background: var(--color-red);
  color: #fff;
}
.p-table th.th-cat {
  background: var(--color-primary);
  color: #fff;
  width: 15rem;
  white-space: nowrap;
  text-align: center;
  font-size: 1.6rem;
}

.p-table td:nth-child(2),
.p-table td:nth-child(1):not([rowspan]) {
  min-width: 16rem;
  white-space: nowrap;
}

.td-icon-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
  font-weight: 500;
  color: var(--color-primary);
}
.td-icon-wrap .td-icon {
  width: 4rem; /* デザインに合わせて数値を調整 */
  height: auto;
  flex-shrink: 0; /* 画面が狭くなっても画像が潰れないようにする */
}

.td-ok,
.td-ng {
  min-width: 28rem; /* 文章が長いので広めに確保 */
}
.p-table td,
.td-ok,
.td-ng {
  background-color: #fff;
}
.td-ok ul,
.td-ng ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.td-ok li,
.td-ng li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.td-ok li:last-child,
.td-ng li:last-child {
  margin-bottom: 0;
}
.td-ok li::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  background-image: url(../img/allow.svg);
  background-size: contain;
  position: absolute;
  left: 0;
  top: 0.5rem;
}
.td-ng li::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  background-image: url(../img/ng.svg);
  background-size: contain;
  position: absolute;
  left: 0;
  top: 0.5rem;
}
.p-table th,
.p-table td {
  border: 1px solid #ccc;
  padding: 1.5rem 2rem;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .p-scroll-hint {
    display: flex;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 768px) {
  .p-fault-box {
    width: 100%;
  }
  .p-fault-box__title {
    width: 70%;
    height: auto;
    padding: 1.5rem;
    border-radius: 0 0 2.5rem 0; /* 上だけ丸く */
    font-size: 1.6rem;
    letter-spacing: 0.2rem;
  }
  .p-fault-box__list {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
  }
  .p-fault-box__list li {
    gap: 1rem;
    font-size: 1.5rem;
  }
  .facility-section--other {
    margin-bottom: 8rem;
  }
}
@media (max-width: 768px) {
  .p-table th,
  .p-table td {
    padding: 1rem 1rem;
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .p-table th {
    font-size: 1.3rem;
    padding: 0.8rem 0.5rem;
    height: auto;
  }

  .p-table th.th-cat {
    width: auto;
    min-width: 8rem;
    font-size: 1.2rem;
    white-space: normal;
  }

  .td-ok li,
  .td-ng li {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    padding-left: 1.8rem;
  }

  .td-ok li::before,
  .td-ng li::before {
    top: 0.1rem;
    width: 1.4rem;
    height: 1.4rem;
  }

  .td-icon-wrap {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  .td-icon-wrap .td-icon {
    width: 2.5rem;
  }

  .p-table {
    min-width: 700px;
  }
  .td-ok,
  .td-ng {
    min-width: 20rem;
  }
  .p-table td:nth-child(2),
  .p-table td:nth-child(1):not([rowspan]) {
    min-width: 10rem;
  }
}
/* Flow & Trouble & Footer */
.p-flow-item {
  display: flex;
  background: #fff;
  padding: 5rem 6rem;
  border-radius: 3rem;
  align-items: end;
  justify-content: space-between;
}
.p-flow-item__text {
  width: 65%;
}
.p-flow-item__img_wrapper {
  width: 30%;
  text-align: center;
}
.p-flow-item__img {
  width: 100%;
}
.step-label {
  color: var(--color-accent);
  font-family: "Roboto", sans-serif;
  font-size: 2.4rem;
}
.step-label .num {
  font-size: 4rem;
}
.step-title {
  font-size: 3rem;
  font-weight: 600;
  margin: 0.7rem 0 1.8rem;
  color: var(--color-brown-text);
}

.p-step-sub-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--color-brown-text);
  font-weight: 400;
}

.p-flow-tag-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.3rem;
  width: 100%;
}
.c-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 0.6rem;
  background: #d2740f;
  color: #fff;
  font-size: 1.5rem;
  white-space: nowrap;
}
.p-flow-tag-text {
  flex: 1;
  color: var(--color-brown-text);
  font-size: 1.5rem;
  font-weight: 350;
  line-height: 1.68;
  letter-spacing: 0.08rem;
  margin: 0;
}
.p-flow-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
}
.p-flow-arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 25px solid #d2740f;
  border-bottom: 0;
}
.p-flow-list .p-points__note {
  margin-top: 1rem;
}
.p-flow-item__text .kome {
  font-size: 0.5em;
  vertical-align: text-top;
  margin-left: 0.1rem;
  position: relative;
  top: -0.5em;
}
@media (max-width: 768px) {
  .p-flow-item {
    flex-direction: column;
    align-items: center;
    text-align: justify;
    padding: 2rem 3rem;
  }
  .p-flow-item__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .p-flow-item__img_wrapper {
    width: 100%;
  }
  .p-flow-item__img {
    width: 100%;
  }
  .step-label {
    color: var(--color-accent);
    font-family: "Roboto", sans-serif;
    font-size: 2.4rem;
  }
  .step-label .num {
    font-size: 4rem;
  }
  .step-title {
    font-size: 3rem;
    margin: 0.7rem 0 1.8rem;
    text-align: center;
  }

  .p-step-sub-text {
    font-size: 1.8rem;
    line-height: 1.8;
    letter-spacing: 0.01rem;
  }

  .p-flow-tag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 2.3rem 0;
  }
  .c-tag {
    width: 85%;
    padding: 1rem 2.5rem;
    border-radius: 0.6rem;
    background: #d2740f;
    color: #fff;
    font-size: 1.7rem;
    white-space: nowrap;
  }
  .p-flow-tag-text {
    font-size: 1.7rem;
    line-height: 1.68;
  }
  .p-flow-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
  }
  .p-flow-arrow::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 25px solid #d2740f;
    border-bottom: 0;
  }
  .p-flow-list .p-points__note {
    margin-top: 1rem;
  }
}
/* ============================================
   trouble
   ============================================ */
.p-trouble {
  padding: 10rem 0;
  background: #fff;
}
.p-trouble__list {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}
.p-trouble__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0.1rem solid var(--color-primary);
  padding: 5rem 2rem;
  align-items: center;
  text-align: center;
  border-radius: 1rem;
  height: 39rem;
}
.p-trouble__img-wrapper {
  width: 20rem;
}
.p-trouble__img {
  width: 100%;
  height: 100%;
}

.p-trouble__title {
  font-size: 3.1rem;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.3;
}
.p-trouble__text {
  font-size: 2rem;
  line-height: 1.7;
  font-weight: 300;
}
@media (max-width: 768px) {
  .p-trouble {
    padding: 5rem 0 7rem;
  }
  .p-trouble .c-section-head::before {
    transform: translateY(-3rem);
  }
  .p-trouble .c-section-header-wrap {
    margin: 0 auto 3rem;
  }
  .p-trouble__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding: 2rem 2rem 0;
  }
  .p-trouble__item {
    width: 100%;
    padding: 4rem 2rem;
    gap: 1.5rem;
  }

  .p-trouble__title {
    font-size: 2.5rem;
    line-height: 1.3;
  }
  .p-trouble__text {
    font-size: 1.8rem;
    line-height: 1.5;
  }
}
/* ============================================
   footer
   ============================================ */
.l-footer {
  background: var(--color-primary);
  padding: 10rem 0 5rem;
  color: #fff;
  text-align: center;
  position: relative;
}
.l-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15rem;
}
.l-footer__cta .l-footer_logo {
  max-width: 500px;
}
.l-footer__cta .l-footer_logo .l-footer_logo__img {
  width: 100%;
}
.l-footer__btn {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  max-width: 30rem;
  width: 100%;
  padding: 1.8rem 5rem;
  border-radius: 5rem;
  margin-top: 5rem;
  text-decoration: none;
}
.l-footer__btn::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  background-image: url(../img/export-arrow-up-right.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
}
.l-footer__btn:hover {
  background: #a18211;
  transition: ease-out 0.2s;
}
.l-footer__copy {
  font-size: 1.2rem;
  font-family: var(--font-en-body);
  font-weight: 200;
}
.c-pagetop {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  content: "";
  width: 10rem;
  height: 10rem;
  background-image: url(../img/totop-button.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 5rem;
  bottom: 7rem;
}
.c-pagetop:hover {
  opacity: 0.8;
  transition: opacity 0.3s;
}
@media (max-width: 768px) {
  .l-footer {
    padding: 10rem 0 3rem;
  }
  .l-footer__btn {
    padding: 1.8rem 2rem;
    margin-top: 4rem;
  }
  .c-pagetop {
    width: 7rem;
    height: 7rem;
    right: 2rem;
    bottom: 10rem;
  }
  .l-footer__copy {
    font-size: 1rem;
  }
}
/* ============================================
   SP / Mobile Styles (Max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* --- 全体の調整 --- */
  html {
    /* スマホでの基準文字サイズ調整（少し小さくしてバランスを取る場合） */
    font-size: calc(100vw / 375 * 10); /* 375px基準 */
  }

  .l-container {
    width: 90%; /* 左右の余白確保 */
  }
}
