html {
  margin: 0;
  padding: 0;
  height: 100%;
  height: -webkit-fill-available;
  font-size: clamp(0.529vw, 0.9259vw, 1vw);
  word-break: break-word;
  overflow-wrap: break-word;
  scroll-behavior: smooth;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 2.6666vw;
  }
}

body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-size: 1.4rem;
  font-family: serif;
  line-height: 1.5;
  color: #151f46;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-rendering: optimizeSpeed;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
}

dfn {
  font-style: normal;
}

body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

a {
  text-decoration: none;
  word-break: break-all;
  color: #121212;
  font-weight: bold;
}

summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

fieldset {
  padding: 0;
  border: none;
}
legend {
  padding: 0;
}

/* common style */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}
.cfx {
  display: flex;
}

.tel-btn {
  width: 20rem;
}
footer .tel-btn {
  width: 25rem;
}

.cfx-container {
  position: relative;
  display: flex;
}

.main-content {
  width: calc(100% - 21rem);
}

.form-content {
  position: sticky;
  top: 0;
  right: 0;
  max-height: 100vh;
  overflow-y: auto;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
  .main-content {
    width: 100%;
  }
}

header {
  justify-content: space-between;
  align-items: center;
  padding: 1.7rem 1.5rem 1.7rem 3rem;
  color: #fff;
  background: #000;
}

header .left-area {
  align-items: center;
  gap: 4rem;
}

header .head-logo {
  aspect-ratio: 58/5;
  max-width: 320px;
  width: 100%;
}

header .head-logo a {
  display: block;
  width: 100%;
  object-fit: cover;
}

header .head-nav {
  display: flex;
  gap: 2.4rem;
}

header .head-nav a {
  color: #fff;
  font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
  header {
    justify-content: center;
    padding: 2rem;
  }
  header .head-logo {
    width: 23rem;
  }
  header nav,
  .tel-btn {
    display: none;
  }
}

.mv {
  width: 100%;
  height: calc(100dvh - 8.5rem);
}

.mv .mv-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mv .mv-content .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.mv .mv-content .text-wrapper {
  margin-top: 18rem;
  padding-left: 4.5rem;
  font-size: 1.4rem;
  color: #fff;
}

.mv .mv-content .text-wrapper h1 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-size: 4rem;
}

.mv .mv-content .text-wrapper .mv-label {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.mv .mv-content .text-wrapper .mv-label p {
  display: flex;
  gap: 0.6rem;
}

.mv .mv-content .text-wrapper .mv-label p span {
  padding: 0.3rem 0.6rem;
  color: #000;
  line-height: 1;
  border-radius: 0.2rem;
  background: #fff;
}

@media screen and (max-width: 768px) {
  .main-content .mv {
    aspect-ratio: 3 / 5;
    height: auto;
  }
  .mv .mv-content .text-wrapper {
    margin-top: 6rem;
    padding: 0 2rem;
  }
  .mv .mv-content .text-wrapper h1 {
    font-size: 3rem;
  }
}

.form-content .form-wrapper {
  position: relative;
  max-width: 23rem;
  width: 100%;
  padding: 3rem 1rem 1.5rem;
  font-family: san-serif;
  color: #000;
  overflow-y: auto;
}
.form-content .form-wrapper:before {
  position: absolute;
  content: "";
  top: 1.5rem;
  right: 2rem;
  width: 4.5rem;
  height: 2rem;
  background: url("../images/logo-tnc.png") no-repeat;
  background-size: contain;
}

.form-content .form-wrapper img {
  width: 12.2rem;
  margin: 0 auto;
}

.form-content .form-wrapper > p {
  font-size: 1.2rem;
  text-align: center;
}

.form-content .form-wrapper p.label {
  position: relative;
  width: 19.5rem;
  margin: 1rem auto;
  padding: 0.5rem 0;
  color: #fff;
  border-radius: 0.5rem;
  background: #1f3d70;
}

.form-content .form-wrapper p.label:before {
  position: absolute;
  content: "";
  bottom: -0.8rem;
  left: 50%;
  border-left: 0.7rem solid transparent;
  border-right: 0.7rem solid transparent;
  border-top: 0.9rem solid #1f3d70;
  transform: translateX(-50%);
}

.form-content .form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.form-content .form-wrapper form br {
  display: none !important;
}

.form-content .form-wrapper form .form-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.form-content .form-wrapper form .form-item label,
.form-content .form-wrapper form .form-item legend,
.form-content .form-wrapper form .form-item .check-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  line-height: 1.2;
  font-size: 1.2rem;
}

.form-content .form-wrapper form .form-item select {
  font-size: 1.2rem;
}

.form-content .form-wrapper form .form-item .check-wrap {
  margin-top: 1rem;
}

.form-content .form-wrapper form .form-item .label-any,
.form-content .form-wrapper form .form-item .label-required {
  display: flex;
  min-width: 3rem;
  height: fit-content;
  padding: 0 0.4rem;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  background: #9f9f9f;
}

.form-content .form-wrapper form .form-item .label-required {
  background: #af332e;
}

.form-content .form-wrapper form .form-item input[type="text"],
.form-content .form-wrapper form .form-item input[type="tel"],
.form-content .form-wrapper form .form-item input[type="email"],
.form-content .form-wrapper form .form-item select {
  width: 100%;
  height: 3.2rem;
  padding: 0.5rem 0.7rem;
  color: #333;
  font-size: 1.2rem;
  font-weight: 500;
  border: 1px solid #d2d2d2;
  border-radius: 0.2rem;
  box-shadow: 1px 1px 1px 0px rgba(1, 37, 67, 0.05);
  background: #f1f1f1;
}

.form-content .form-wrapper form .submit-btn {
  width: 100%;
  padding: 1.2rem;
  text-align: center;
  color: #fff;
  font-size: 1.4rem;
  border: none;
  border-radius: 0.3rem;
  background: #1f3d70;
}
.wpcf7-spinner {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .form-content {
    position: relative;
    max-height: none;
  }
  .form-content .form-wrapper {
    max-width: 100%;
  }
  .form-content .confirmation {
    margin: 1rem 2.5rem;
    padding: 2rem 1rem;
    line-height: 1.8;
    background: #f8f8f8;
  }
  .form-content .confirmation p + p {
    margin-top: 2rem;
  }
}

section.about {
  padding: 5rem 0;
  background: #111134;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 52, 1) 0%,
    rgba(77, 88, 131, 1) 100%
  );
}

section.about .text-wrapper {
  text-align: center;
  color: #fff;
}

section.about .text-wrapper h2 {
  margin-bottom: 5rem;
  font-weight: normal;
  font-size: 2.6rem;
  line-height: 1.3;
}

section.about .img-wrapper {
  width: 65.5rem;
  margin: 5rem auto 0;
}

.youtube-section.bg-gradient {
  text-align: center;
  padding: 50px 20px;
  background: #111134;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 52, 1) 0%,
    rgba(77, 88, 131, 1) 100%
  );
  color: #fff;
}

.youtube-section .section-title {
  font-weight: normal; /* 細字 */
  font-size: 24px; /* PC用の標準サイズ */
  margin-top: 60px;
  margin-bottom: 40px;
  color: #fff;
}

.youtube-section .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* ← PC時の横幅。480pxにすればさらに小さく */
  aspect-ratio: 16 / 9; /* ← 横長比率を強制 */
  margin: 0 auto;
  border-radius: 0;
}

.youtube-section .video-wrapper iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .youtube-section .section-title {
    font-size: 10px; /* スマホ時に小さくする */
    margin-top: 16px; /* スマホは余白を小さく */
    margin-bottom: 12px; /* 下も控えめに */
  }
}

@media screen and (max-width: 768px) {
  section.about {
    padding: 3rem 2rem;
  }
  section.about .text-wrapper h2 {
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
  }
  section.about .text-wrapper p {
    text-align: left;
  }
  section.about .img-wrapper {
    width: 100%;
  }
}

section.maStory {
  padding: 5.5rem 0 2.5rem;
  color: #fff;
  background-image: url("../images/bg-maStory.png");
  background-repeat: no-repeat;
  background-size: cover;
}

section.maStory h2 {
  font-size: 2.6rem;
}

section.maStory h2 span {
  padding-left: 1.5rem;
  font-size: min(1.1111vw, 14px);
  color: #fff;
  background-image: linear-gradient(
    90deg,
    rgb(96, 151, 206) 0%,
    rgb(194, 218, 237) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

section.maStory .content-inner {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
}

section.maStory .swiper .slide-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

section.maStory .swiper .swiper-control__wrap {
  display: flex;
  gap: min(3.33333vw, 36px);
  margin-top: 30px;
}

section.maStory .swiper .swiper-control__wrap .view-btn {
  display: flex;
  align-items: center;
  width: min(19.8148vw, 214px);
}
section.maStory .swiper .swiper-control__wrap .view-btn a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: min(1.3888vw, 12px) min(2.7777vw, 24px);
  color: #fff;
  font-size: min(1.6666vw, 18px);
  font-weight: normal;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.3s ease;
}
section.maStory .swiper .swiper-control__wrap .view-btn a:hover {
  color: #1f3d70;
  background: #fff;
}

section.maStory .swiper .swiper-control__wrap .swiper-button {
  display: flex;
  gap: min(0.83333vw, 10px);
  width: min(9.8148vw, 106px);
}
section.maStory .swiper .swiper-control__wrap .swiper-button > div {
  position: relative;
  width: min(4.4444vw, 48px);
  height: min(4.4444vw, 48px);
  left: 0;
}
section.maStory
  .swiper
  .swiper-control__wrap
  .swiper-button
  > .swiper-button-prev::before,
section.maStory
  .swiper
  .swiper-control__wrap
  .swiper-button
  > .swiper-button-next::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: min(4.4444vw, 48px);
  height: min(4.4444vw, 48px);
  border: 1px solid #fff;
  border-radius: max(24px, 1.5rem);
  background-image: url("../images/icon-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(1.38888vw, 15px) min(0.69444vw, 8px);
}
section.maStory
  .swiper
  .swiper-control__wrap
  .swiper-button
  > .swiper-button-prev::before {
  transform: scale(-1, 1);
}

section.maStory .swiper .swiper-wrapper {
  margin-top: 50px;
}

section.maStory .swiper-slide .story-slide-link {
  display: block;
  color: #fff;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

section.maStory .swiper-slide .img-wrapper {
  aspect-ratio: 141 / 79;
}
section.maStory .swiper-slide .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.maStory .swiper-slide .text-wrapper {
  font-size: min(1.29629vw, 14px);
}
section.maStory .swiper-slide .text-wrapper .achievement {
  margin-top: 15px;
  font-size: min(1.6666vw, 18px);
  line-height: 1.8;
}
section.maStory .swiper-slide .text-wrapper .company-name {
  margin-top: 15px;
  color: #55aaff;
  font-family: san-serif;
}
section.maStory .swiper-slide .text-wrapper .detail-list {
  margin-top: 12px;
}
section.maStory .swiper-slide .text-wrapper .detail-list p {
  display: flex;
  gap: 0.5rem;
}
section.maStory .swiper-slide .text-wrapper .detail-list p span {
  min-width: 60px;
}

@media screen and (max-width: 768px) {
  section.maStory {
    padding: 3rem 0 2rem;
  }

  section.maStory .content-inner {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  section.maStory h2 span {
    display: block;
    padding-left: 0;
    padding-top: 0.5rem;
    font-size: 1.6rem;
  }

  section.maStory .swiper .slide-head {
    flex-direction: column;
    gap: 2rem;
  }

  section.maStory .swiper .swiper-control__wrap {
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
  }

  section.maStory .swiper .swiper-control__wrap .view-btn {
    width: 100%;
    max-width: 100%;
  }

  section.maStory .swiper .swiper-control__wrap .view-btn a {
    justify-content: space-between;
    padding: max(12px, 0.75rem) max(24px, 1.5rem);
    font-size: 1.4rem;
  }
  section.maStory .swiper .swiper-control__wrap .view-btn a img {
    width: 28px;
  }

  section.maStory .swiper .swiper-control__wrap .swiper-button {
    width: 106px;
    height: 48px;
  }

  section.maStory .swiper .swiper-control__wrap .swiper-button > div {
    width: 48px;
    height: 48px;
  }

  section.maStory
    .swiper
    .swiper-control__wrap
    .swiper-button
    > .swiper-button-prev::before,
  section.maStory
    .swiper
    .swiper-control__wrap
    .swiper-button
    > .swiper-button-next::after {
    width: 48px;
    height: 48px;
    background-size: max(15px, 1.9531vw) max(8px, 1.04166vw);
  }
  section.maStory .swiper .swiper-wrapper {
    margin-top: 2rem;
  }

  section.maStory .swiper-slide .text-wrapper {
    padding: 1.5rem;
    font-size: 1.2rem;
  }

  section.maStory .swiper-slide .text-wrapper .achievement {
    margin-top: 1rem;
    font-size: 1.6rem;
    line-height: 1.6;
  }

  section.maStory .swiper-slide .text-wrapper .company-name {
    margin-top: 1rem;
    font-size: 1.3rem;
  }

  section.maStory .swiper-slide .text-wrapper .detail-list {
    margin-top: 1rem;
  }

  section.maStory .swiper-slide .text-wrapper .detail-list p {
    font-size: 1.2rem;
    flex-wrap: wrap;
  }

  section.maStory .swiper-slide .text-wrapper .detail-list p span {
    min-width: auto;
  }
}

/* Story List Page */
section.story-list {
  padding: 5.5rem 0 8rem;
  color: #fff;
  background: #1b2a55;
  background: linear-gradient(to bottom, #1b2a55 0%, #000b24 100%);
  min-height: calc(100vh - 8.5rem);
}

section.story-list .content-inner {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section.story-list h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

section.story-list h2 span {
  padding-left: 1.5rem;
  font-size: min(1.1111vw, 14px);
  color: #fff;
  background-image: linear-gradient(
    90deg,
    rgb(96, 151, 206) 0%,
    rgb(194, 218, 237) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

section.story-list .subtitle {
  margin-bottom: 4rem;
  font-size: 1.2rem;
}

section.story-list .story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin-bottom: 5rem;
}

section.story-list .story-card {
  background: #fff;
  border-radius: 0.4rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

section.story-list .story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

section.story-list .story-card a {
  display: block;
  color: #000;
  text-decoration: none;
}

section.story-list .story-card .img-wrapper {
  aspect-ratio: 141 / 79;
  overflow: hidden;
}

section.story-list .story-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

section.story-list .story-card:hover .img-wrapper img {
  transform: scale(1.05);
}

section.story-list .story-card .text-wrapper {
  padding: min(1.85185vw, 20px);
  font-size: min(1.29629vw, 14px);
}

section.story-list .story-card .text-wrapper .achievement {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: min(1.6666vw, 18px);
  line-height: 1.8;
  font-weight: normal;
}

section.story-list .story-card .text-wrapper .company-name {
  margin-top: 0;
  margin-bottom: 12px;
  color: #1a4b7d;
  font-family: san-serif;
  font-size: min(1.48148vw, 16px);
  font-weight: normal;
}

section.story-list .story-card .text-wrapper .detail-list {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

section.story-list .story-card .text-wrapper .detail-list p {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: min(1.29629vw, 14px);
  color: #000;
}

section.story-list .story-card .text-wrapper .detail-list p span.head {
  min-width: 60px;
}

section.story-list .story-card .text-wrapper .detail-link {
  margin-top: 1rem;
  text-align: right;
  font-size: min(1.48148vw, 16px);
  color: #1a4b7d;
}

section.story-list .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
}

section.story-list .pagination .page-info {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

section.story-list .pagination .page-numbers {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

section.story-list .pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  height: 3.6rem;
  padding: 0 1rem;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

section.story-list .pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

section.story-list .pagination .page-link.active {
  background: #55aaff;
  border-color: #55aaff;
  color: #fff;
}

section.story-list .pagination .page-ellipsis {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
}

@media screen and (max-width: 768px) {
  section.story-list {
    padding: 3rem 0 6rem;
  }

  section.story-list .content-inner {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  section.story-list h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  section.story-list h2 span {
    display: block;
    padding-left: 0;
    padding-top: 0.5rem;
    font-size: 1.2rem;
  }

  section.story-list .subtitle {
    margin-bottom: 3rem;
    font-size: 1.2rem;
  }

  section.story-list .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  section.story-list .story-card .text-wrapper {
    padding: 1.5rem;
  }

  section.story-list .story-card .text-wrapper .achievement {
    font-size: 1.4rem;
  }

  section.story-list .story-card .text-wrapper .company-name {
    font-size: 1.3rem;
  }

  section.story-list .story-card .text-wrapper .detail-link {
    font-size: 1.4rem;
  }

  section.story-list .story-card .text-wrapper .detail-list p {
    font-size: 1.2rem;
  }

  section.story-list .pagination {
    flex-direction: column;
    gap: 1.5rem;
  }

  section.story-list .pagination .page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }

  section.story-list .pagination .page-link {
    min-width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }
}

/* Story Detail Page */
section.story-detail {
  padding: min(5.09259vw, 55px) 0;
  color: #fff;
  background: #1b2a55;
  background: linear-gradient(to bottom, #1b2a55 0%, #000b24 100%);
  min-height: calc(100vh - 8.5rem);
}

section.story-detail .content-inner {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* パンくずリスト */
section.story-detail .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  font-size: min(1.296vw, 14px);
}

section.story-detail .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

section.story-detail .breadcrumb a:hover {
  color: #55aaff;
}

section.story-detail .breadcrumb .separator {
  color: rgba(255, 255, 255, 0.5);
}

section.story-detail .breadcrumb .current {
  color: #fff;
}

/* 会社ヘッダー */
section.story-detail .company-header {
  margin-bottom: 2rem;
}

section.story-detail .company-title {
  font-size: min(2.2222vw, 24px);
  font-weight: normal;
  margin-bottom: 0.5rem;
  color: #fff;
}
section.story-detail .company-title span {
  padding-left: 1rem;
}

/* メインタイトル */
section.story-detail .main-title {
  font-size: 2.8rem;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #fff;
}

/* メイン画像 */
section.story-detail .main-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.4rem;
}

section.story-detail .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 記事セクション */
section.story-detail .article-content {
  margin-bottom: 5rem;
  font-size: 1.4rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

/* WordPressのデフォルト本文出力（h3/h4/p）のスタイル */
section.story-detail .article-content h3 {
  font-size: 2.2rem;
  font-weight: normal;
  margin-top: 5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

section.story-detail .article-content h3:first-child {
  margin-top: 0;
}

section.story-detail .article-content h4 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  color: #55aaff;
  line-height: 1.6;
}

section.story-detail .article-content h4:first-child,
section.story-detail .article-content h3 + h4 {
  margin-top: 0;
}

section.story-detail .article-content p {
  margin-bottom: 1.5rem;
  line-height: 2;
}

section.story-detail .article-content p:last-child {
  margin-bottom: 0;
}

section.story-detail .article-content ul,
section.story-detail .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

section.story-detail .article-content li {
  margin-bottom: 0.5rem;
}

section.story-detail .article-content a {
  color: #55aaff;
  text-decoration: underline;
}

section.story-detail .article-content a:hover {
  color: #7bbfff;
}

section.story-detail .article-content strong {
  font-weight: bold;
  color: #fff;
}

section.story-detail .article-content img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 80%;
  margin: 0 auto;
}

section.story-detail .article-content .note {
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

section.story-detail .article-section {
  margin-bottom: 5rem;
}

section.story-detail .section-title {
  font-size: 2.2rem;
  font-weight: normal;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Q&A項目 */
section.story-detail .qa-item {
  margin-bottom: 4rem;
}

section.story-detail .qa-item .question {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #55aaff;
  line-height: 1.6;
}

section.story-detail .qa-item .answer {
  font-size: 1.4rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

section.story-detail .qa-item .answer p {
  margin-bottom: 1.5rem;
}

section.story-detail .qa-item .answer p:last-child {
  margin-bottom: 0;
}

/* 案件情報 */
section.story-detail .case-info {
  margin: 5rem 0;
  padding: 3rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

section.story-detail .case-info-title {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 2rem;
  color: #fff;
}

section.story-detail .flx-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
section.story-detail .case-info-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  width: fit-content;
}

section.story-detail .case-info-list dt,
section.story-detail .case-info-list dd {
  margin: 0;
  padding: 15px;
  font-size: min(1.667vw, 18px);
  font-weight: normal;
}
section.story-detail .case-info-list dt:nth-of-type(odd),
section.story-detail .case-info-list dd:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.15);
}

section.story-detail .case-info-list dd a {
  color: #55aaff;
  text-decoration: underline;
  word-break: break-all;
}

section.story-detail .case-info-list dd a:hover {
  color: #7bbfff;
}

section.story-detail .flx-content .info-map {
  width: 40%;
}
section.story-detail .flx-content .info-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 関連記事 */
section.story-detail .related-stories {
  margin: 6rem 0 4rem;
}

section.story-detail .related-title {
  font-size: 2.2rem;
  font-weight: normal;
  margin-bottom: 3rem;
  color: #fff;
  text-align: center;
}

section.story-detail .related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}

section.story-detail .related-card {
  border-radius: 0.4rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

section.story-detail .related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

section.story-detail .related-card a {
  display: block;
  color: #000;
  text-decoration: none;
}

section.story-detail .related-card .img-wrapper {
  aspect-ratio: 141 / 79;
  overflow: hidden;
}

section.story-detail .related-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

section.story-detail .related-card:hover .img-wrapper img {
  transform: scale(1.05);
}

section.story-detail .related-card .text-wrapper {
  padding: 2rem;
  font-size: min(1.29629vw, 14px);
}

section.story-detail .related-card .text-wrapper .achievement {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: min(1.6666vw, 18px);
  line-height: 1.8;
  font-weight: normal;
  color: #fff;
}

section.story-detail .related-card .text-wrapper .company-name {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: #55aaff;
  font-family: san-serif;
  font-size: min(1.48148vw, 16px);
  font-weight: normal;
}

section.story-detail .related-card .text-wrapper .detail-list {
  margin-top: 0;
}

section.story-detail .related-card .text-wrapper .detail-list p {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: min(1.29629vw, 14px);
  color: #fff;
}

section.story-detail .related-card .text-wrapper .detail-list p span.head {
  min-width: 60px;
}

/* 戻るリンク */
section.story-detail .back-link {
  text-align: center;
  margin-top: 4rem;
}

section.story-detail .back-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.4rem;
  background: rgba(17, 17, 52, 0.6);
  transition: all 0.3s ease;
}

section.story-detail .back-btn:hover {
  background: rgba(85, 170, 255, 0.2);
  border-color: #55aaff;
}

@media screen and (max-width: 768px) {
  section.story-detail {
    padding: 3rem 0 6rem;
  }

  section.story-detail .content-inner {
    width: calc(100% - 32px);
    padding: 0 8px;
  }

  section.story-detail .breadcrumb {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  section.story-detail .company-title {
    font-size: 1.6rem;
  }

  section.story-detail .article-label {
    font-size: 1rem;
    padding: 0.3rem 1rem;
  }

  section.story-detail .main-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  section.story-detail .main-image {
    margin-bottom: 3rem;
  }

  section.story-detail .article-content {
    margin-bottom: 4rem;
    font-size: 1.2rem;
  }

  section.story-detail .article-content h3 {
    font-size: 1.6rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  section.story-detail .article-content h3:first-child {
    margin-top: 0;
  }

  section.story-detail .article-content h4 {
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
  }

  section.story-detail .article-content h4:first-child,
  section.story-detail .article-content h3 + h4 {
    margin-top: 0;
  }

  section.story-detail .article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
  }

  section.story-detail .article-content ul,
  section.story-detail .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
  }

  section.story-detail .article-content img {
    width: 100%;
    aspect-ratio: 630 / 380;
    object-fit: cover;
    margin-top: 10px;
    margin-right: 0;
  }

  section.story-detail .article-section {
    margin-bottom: 4rem;
  }

  section.story-detail .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  section.story-detail .qa-item {
    margin-bottom: 3rem;
  }

  section.story-detail .qa-item .question {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  section.story-detail .qa-item .answer {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  section.story-detail .case-info {
    margin: 4rem 0;
    padding: 2rem;
  }

  section.story-detail .case-info-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  section.story-detail .flx-content {
    flex-direction: column;
  }
  section.story-detail .flx-content .info-map {
    width: 100%;
  }

  section.story-detail .case-info-list {
    display: flex;
    flex-wrap: wrap;
  }

  section.story-detail .case-info-list dt,
  section.story-detail .case-info-list dd {
    margin: 0;
  }

  section.story-detail .case-info-list dt {
    width: 35%;
    font-size: 1.2rem;
  }

  section.story-detail .case-info-list dd {
    width: 65%;
    font-size: 1.2rem;
  }

  section.story-detail .related-stories {
    margin: 4rem 0 3rem;
  }

  section.story-detail .related-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  section.story-detail .related-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section.story-detail .related-card .text-wrapper {
    padding: 1.5rem;
  }

  section.story-detail .related-card .text-wrapper .achievement {
    font-size: 1.4rem;
  }

  section.story-detail .related-card .text-wrapper .company-name {
    font-size: 1.3rem;
  }

  section.story-detail .related-card .text-wrapper .detail-list p {
    font-size: 1.2rem;
  }

  section.story-detail .back-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }
}

section.solution article.trouble {
  padding: 5rem 0 7.5rem;
  color: #fff;
  background: url("../images/bg-trouble.jpg") no-repeat;
  background-size: cover;
}

section.solution article.trouble .inner {
  max-width: 70rem;
  width: 100%;
  margin: 0 auto;
}

section.solution article.trouble h2 {
  text-align: center;
  font-size: 2rem;
}

section.solution article.trouble .trouble-list {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
}

section.solution article.trouble .trouble-list > div {
  width: calc(50% - 1.5rem);
  padding: 2.5rem 3rem;
  background: rgba(17, 17, 52, 0.6);
}

section.solution article.trouble .trouble-list h3 {
  margin-bottom: 3rem;
  font-size: 1.8rem;
  text-align: center;
}

section.solution article.trouble .trouble-list ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.4rem;
}

section.solution article.trouble .trouble-list ul li {
  position: relative;
  padding-left: 3.2rem;
}

section.solution article.trouble .trouble-list ul li::before {
  position: absolute;
  content: "";
  top: 0.2rem;
  left: 0;
  width: 2.2rem;
  height: 1.9rem;
  background: url("../images/icon-check.svg") no-repeat;
  background-size: contain;
}

section.solution article.solution-description {
  position: relative;
  padding: 7.5rem 0 3rem;
  background: url("../images/bg-tsunagite.png") no-repeat;
  background-size: cover;
  background-position: center;
}
section.solution article.solution-description:before {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  width: 9.4rem;
  height: 9.4rem;
  background: url("../images/icon-down_arrow.svg") no-repeat;
  background-size: contain;
  transform: translateX(-50%);
}

section.solution article.solution-description .tsunagite-search {
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

section.solution article.solution-description .tsunagite-search .logo-wrapper {
  max-width: 10rem;
  height: 10.5rem;
  width: 100%;
}

section.solution
  article.solution-description
  .tsunagite-search
  .logo-wrapper
  img {
  height: 100%;
}

section.solution article.solution-description .tsunagite-search .text-wrapper {
  font-size: 1.8rem;
}

section.solution
  article.solution-description
  .tsunagite-search
  .text-wrapper
  strong {
  display: block;
  margin-bottom: 1rem;
  color: #124587;
  font-family: san-serif;
  letter-spacing: 0.5rem;
}

section.solution article.solution-description .description-list {
  gap: 1.2rem;
  max-width: 87rem;
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 3rem;
  color: #fff;
}

section.solution article.solution-description .description-list > div {
  position: relative;
  width: calc(100% / 3);
  padding: 15.5rem 2rem 3rem;
  background: rgba(17, 17, 52, 0.6);
}
section.solution article.solution-description .description-list div::before {
  position: absolute;
  content: "";
  left: 50%;
  width: 9rem;
  height: 9rem;
  transform: translateX(-50%);
  background-size: contain;
  background-repeat: no-repeat;
}

section.solution
  article.solution-description
  .description-list
  .solution-01:before {
  top: 3rem;
  background-image: url("../images/icon-article01.svg");
  background-size: contain;
}
section.solution
  article.solution-description
  .description-list
  .solution-02:before {
  top: 3rem;
  background-image: url("../images/icon-article02.svg");
  background-size: contain;
}
section.solution
  article.solution-description
  .description-list
  .solution-03:before {
  top: 3rem;
  background-image: url("../images/icon-article03.svg");
  background-size: contain;
}

section.solution article.solution-description .description-list > div p {
  font-size: 1.4rem;
}

section.solution article.solution-description .description-list > div strong {
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #bf9f58;
  font-size: 1.8rem;
}

section.solution article.solution-description .achievements {
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 72.5rem;
  width: 100%;
  margin: 2rem auto 0;
  padding: 2.5rem 0;
  background: #fff;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 255, 255, 0.8) 5%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.8) 95%,
    rgba(0, 0, 0, 0) 100%
  );
}

section.solution article.solution-description .achievements .img-wrapper {
  width: 24.5rem;
}

section.solution article.solution-description .achievements p {
  position: relative;
  padding: 0 4.5rem;
  text-align: center;
  font-size: 1.4rem;
}
section.solution article.solution-description .achievements p::before,
section.solution article.solution-description .achievements p::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 3rem;
  height: 5rem;
  background: url("../images/deco_leaf.svg") no-repeat;
  background-size: contain;
}
section.solution article.solution-description .achievements p::after {
  right: auto;
  left: 0;
  transform: scale(-1, 1);
}
section.solution article.solution-description .achievements p span {
  display: block;
}
section.solution article.solution-description .achievements p strong {
  font-size: 2.4rem;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  section.solution article.trouble {
    padding: 2.5rem;
    background-position: 60% center;
  }
  section.solution article.trouble h2 {
    max-width: 23.5rem;
    margin: 0 auto;
    font-size: 1.6rem;
  }
  section.solution article.trouble .trouble-list {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  section.solution article.trouble .trouble-list > div {
    width: 100%;
  }
  section.solution article.trouble .trouble-list h3 {
    font-size: 2rem;
  }

  section.solution article.solution-description {
    padding: 4.5rem 2rem;
  }
  section.solution article.solution-description:before {
    width: 4.5rem;
    height: 4.5rem;
  }
  section.solution article.solution-description .tsunagite-search {
    gap: 1.5rem;
  }
  section.solution
    article.solution-description
    .tsunagite-search
    .logo-wrapper {
    max-width: 7.1rem;
    height: 7.5rem;
  }
  section.solution
    article.solution-description
    .tsunagite-search
    .text-wrapper {
    font-size: 1.4rem;
    text-align: center;
  }
  section.solution article.solution-description .description-list {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  section.solution article.solution-description .description-list > div {
    width: 100%;
  }
  section.solution article.solution-description .achievements {
    padding: 1rem 0;
    width: calc(100% - 3rem);
  }
  section.solution article.solution-description .achievements .img-wrapper {
    width: 10.5rem;
  }
  section.solution article.solution-description .achievements p {
    padding: 0 2rem;
    font-size: 0.9rem;
  }
  section.solution article.solution-description .achievements p strong {
    font-size: 1.5rem;
  }
  section.solution article.solution-description .achievements p::before,
  section.solution article.solution-description .achievements p::after {
    width: 1.4rem;
    height: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  section.solution article.solution-description .achievements p::after {
    transform: scale(-1, 1) translateY(-50%);
  }
}

section.reason {
  padding: 4.5rem 0 6rem;
  color: #fff;
  background: #111134;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 52, 1) 0%,
    rgba(77, 88, 131, 1) 100%
  );
}

section.reason h2 {
  position: relative;
  padding-top: 4rem;
  text-align: center;
  font-weight: normal;
  font-size: 2.6rem;
}
section.reason h2::before {
  position: absolute;
  content: "REASON";
  top: 0;
  left: 50%;
  color: #bf9f58;
  font-size: 2.6rem;
  transform: translateX(-50%);
  letter-spacing: 0.6rem;
}

section.reason .reason-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  margin-top: 6rem;
}

section.reason .reason-wrapper .reason-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
section.reason .reason-wrapper .reason-item:nth-of-type(odd) {
  margin-left: 6.5rem;
}
section.reason .reason-wrapper .reason-item:nth-of-type(even) {
  padding-left: 30rem;
  margin-right: 8.5rem;
}

section.reason .reason-wrapper .first-reason {
  height: 20.2rem;
  background: url("../images/article-grandscape.png") no-repeat;
  background-size: 33%;
  background-position: right;
}
section.reason .reason-wrapper .second-reason {
  height: 45.1rem;
  background: url("../images/article-handshake.png") no-repeat;
  background-size: 33%;
  background-position: left;
}
section.reason .reason-wrapper .third-reason {
  height: 20.5rem;
  background: url("../images/article-information.png") no-repeat;
  background-size: 33%;
  background-position: right;
}

section.reason .reason-wrapper p {
  position: relative;
  max-width: 52rem;
  width: 100%;
}

section.reason .reason-wrapper .reason-item > p::before {
  position: absolute;
  content: "";
  top: -3.4rem;
  right: -4.5rem;
  width: 18.5rem;
  height: 7.7rem;
  background: url("../images/reason_01.svg") no-repeat;
  background-size: contain;
}
section.reason .reason-wrapper .second-reason > p::before {
  top: -4.4rem;
  right: -5.5rem;
  width: 18rem;
  height: 8.1rem;
  background: url("../images/reason_02.svg") no-repeat;
  background-size: contain;
}
section.reason .reason-wrapper .third-reason p::before {
  top: -3.4rem;
  right: -4.5rem;
  width: 16rem;
  height: 7.2rem;
  background: url("../images/reason_03.svg") no-repeat;
  background-size: contain;
}

section.reason .reason-wrapper p strong {
  display: block;
  margin-bottom: 2rem;
  font-size: 2rem;
}

section.reason .reason-wrapper .second-reason .img-wrapper {
  margin-top: 4rem;
}

section.reason .reason-wrapper .second-reason .img-wrapper div {
  justify-content: end;
  gap: 2rem;
}

section.reason .reason-wrapper .second-reason .img-wrapper p {
  margin-top: 1rem;
  font-size: 0.74rem;
}

section.reason .reason-wrapper .second-reason .img-wrapper .img-mabp {
  width: 15rem;
}

section.reason .reason-wrapper .second-reason .img-wrapper .award-list img {
  width: 7.5rem;
}

section.reason article.flow-wrapper {
  max-width: 83.5rem;
  width: 100%;
  margin: 8.5rem auto 0;
  padding: 0 3rem;
  scroll-margin-top: 3rem;
}

section.reason article.flow-wrapper > p {
  text-align: center;
  font-size: 2.4rem;
}

section.reason article.flow-wrapper .flow-list {
  display: flex;
  gap: 1.2rem;
  margin-top: 4.5rem;
}

section.reason article.flow-wrapper .flow-list .flow-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  width: calc(100% / 9);
  padding: 2rem 0 4rem;
  font-size: 1.4rem;
  border-top: 1px solid rgba(230, 236, 240, 0.3);
  background: #04070a;
}

section.reason article.flow-wrapper .flow-list .flow-item:before {
  position: absolute;
  content: "";
  top: -1px;
  left: 0;
  width: 2.8rem;
  height: 1px;
  background: #55aaff;
}

section.reason article.flow-wrapper .flow-list .flow-item .step span {
  display: block;
  font-size: 2.4rem;
}

section.reason article.flow-wrapper .flow-list .flow-item .vertical {
  writing-mode: vertical-rl;
  font-size: 1.8rem;
}

section.reason article.fee-wrapper {
  scroll-margin-top: 8.5rem;
  padding: 0 3rem;
}

section.reason article.fee-wrapper .fee-content {
  position: relative;
  max-width: 86rem;
  width: 100%;
  margin: 11rem auto 0;
  scroll-margin-top: 3rem;
  padding: 3rem 8rem;
  border: 1px solid rgba(230, 236, 240, 0.2);
  background: linear-gradient(180deg, rgb(22, 33, 45) 0%, rgb(47, 59, 77) 100%);
}
section.reason article.fee-wrapper .fee-content:before,
section.reason article.fee-wrapper .fee-content:after,
section.reason article.fee-wrapper .fee-inner:before,
section.reason article.fee-wrapper .fee-inner:after {
  position: absolute;
  display: block;
  content: "";
  width: 16px;
  height: 16px;
  background-color: #55aaff;
}
section.reason article.fee-wrapper .fee-content:before {
  top: -1px;
  left: -1px;
  -webkit-clip-path: polygon(0 0, 0% 100%, 100% 0);
  clip-path: polygon(0 0, 0% 100%, 100% 0);
}
section.reason article.fee-wrapper .fee-content:after {
  top: -1px;
  right: 0;
  -webkit-clip-path: polygon(100% 0, 0 0, 100% 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
section.reason article.fee-wrapper .fee-inner:before {
  bottom: -1px;
  left: -1px;
  -webkit-clip-path: polygon(0 100%, 100% 100%, 0 0);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
section.reason article.fee-wrapper .fee-inner:after {
  bottom: -1px;
  right: 0;
  -webkit-clip-path: polygon(100% 100%, 100% 0, 0 100%);
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

section.reason article.fee-wrapper .fee-inner > p {
  position: relative;
  text-align: center;
  font-size: 2.4rem;
}
section.reason article.fee-wrapper .fee-inner > p::before {
  position: absolute;
  content: "";
  top: -5.5rem;
  left: -6rem;
  width: 24rem;
  height: 8rem;
  background: url("../images/img-goldLabel.svg") no-repeat;
  background-size: contain;
}

section.reason article.fee-wrapper .fee-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: separate;
  border-spacing: 0.8rem;
  font-family: san-serif;
}

section.reason article.fee-wrapper .fee-table th.hide {
  opacity: 0;
}
section.reason article.fee-wrapper .fee-table tr:first-of-type {
  padding: 1rem;
}
section.reason article.fee-wrapper .fee-table tr:nth-of-type(2) th {
  text-align: left;
  background: #1a4b7d;
}
section.reason article.fee-wrapper .fee-table tr:nth-of-type(3) th {
  text-align: left;
  background: #0c3c6c;
}
section.reason article.fee-wrapper .fee-table tr:nth-of-type(4) th {
  text-align: left;
  background: #072a4d;
}
section.reason article.fee-wrapper .fee-table tr:not(:first-of-type) th {
  width: 27%;
  height: 8.6rem;
  padding: 2rem;
  border: none;
}
section.reason article.fee-wrapper .fee-table th,
section.reason article.fee-wrapper .fee-table td {
  width: 12rem;
  height: 2.5rem;
  padding: 0.3rem;
  text-align: center;
  vertical-align: middle;
  color: #e6ecf0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #344052;
}
section.reason article.fee-wrapper .fee-table th:nth-of-type(2),
section.reason article.fee-wrapper .fee-table td:nth-child(2) {
  width: 16.5rem;
  background: #e6ecf0;
}
section.reason article.fee-wrapper .fee-table th span,
section.reason article.fee-wrapper .fee-table td span {
  font-size: 1.4rem;
  font-weight: bold;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgb(22, 33, 45) 0%,
    rgb(17, 104, 190) 100%
  );
}
section.reason article.fee-wrapper .fee-table td span.num {
  font-size: 2.6rem;
}
section.reason article.fee-wrapper .fee-table th small {
  display: block;
}

section.reason article.fee-wrapper .fee-content .fee-inner {
  margin-bottom: 1.5rem;
}
section.reason article.fee-wrapper .fee-content > p {
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  section.reason {
    padding: 2rem 0;
  }
  section.reason h2 {
    padding-top: 3.5rme;
    font-size: 1.7rem;
  }
  section.reason h2::before {
    font-size: 2rem;
  }
  section.reason .reason-wrapper {
    gap: 8rem;
  }
  section.reason .reason-wrapper .reason-item {
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 375 / 450;
    height: auto;
    justify-content: flex-start;
    background-size: contain;
    background-position: bottom;
  }
  section.reason .reason-wrapper .reason-item:nth-of-type(even) {
    aspect-ratio: 375 / 745;
  }
  section.reason .reason-wrapper .third-reason {
    aspect-ratio: 1 / 1;
  }
  section.reason .reason-wrapper p {
    padding: 0 2.5rem;
  }
  section.reason .reason-wrapper .reason-item > p::before {
    top: -1.7rem;
    right: 2rem;
    width: 13.5rem;
    height: 4.4rem;
  }
  section.reason .reason-wrapper .second-reason > p::before {
    top: -1.9rem;
  }
  section.reason .reason-wrapper p strong {
    font-size: 1.7rem;
  }
  section.reason .reason-wrapper .second-reason .img-wrapper {
    margin-top: 2rem;
    padding: 0 1.5rem;
  }
  section.reason .reason-wrapper .second-reason .img-wrapper div {
    justify-content: center;
    gap: 1.5rem;
  }
  section.reason .reason-wrapper .second-reason .img-wrapper .award-list img {
    width: 5rem;
  }
  section.reason .reason-wrapper .second-reason .img-wrapper .img-mabp {
    width: 11.5rem;
  }
  section.reason .reason-wrapper .second-reason .img-wrapper p {
    padding: 0;
    font-size: 0.5rem;
    text-align: center;
  }

  section.reason article.flow-wrapper {
    margin: 2rem auto 0;
    padding: 0 2rem;
  }
  section.reason article.flow-wrapper > p {
    font-size: 1.7rem;
  }
  section.reason article.flow-wrapper .flow-list {
    margin-top: 2rem;
    padding: 1rem 0.5rem;
    flex-direction: column;
    gap: 0.6rem;
    background: #2a3747;
  }
  section.reason article.flow-wrapper .flow-list .flow-item {
    flex-direction: row;
    width: 100%;
    padding: 1.5rem;
  }
  section.reason article.flow-wrapper .flow-list .flow-item .vertical {
    writing-mode: horizontal-tb;
    font-size: 1.4rem;
  }
  section.reason article.flow-wrapper .flow-list .flow-item .step {
    font-size: 1.2rem;
    text-align: center;
  }
  section.reason article.flow-wrapper .flow-list .flow-item .step span {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  section.reason article.fee-wrapper .fee-content {
    margin: 7.5rem auto 0;
    padding: 1.5rem;
  }
  section.reason article.fee-wrapper .fee-inner > p {
    font-size: 1.7rem;
  }
  section.reason article.fee-wrapper .fee-inner > p::before {
    width: 12.6rem;
    height: 4rem;
    top: -4rem;
    left: 0;
  }
  section.reason article.fee-wrapper .fee-content:before,
  section.reason article.fee-wrapper .fee-content:after,
  section.reason article.fee-wrapper .fee-inner:before,
  section.reason article.fee-wrapper .fee-inner:after {
    width: 0.8rem;
    height: 0.8rem;
  }

  section.reason article.fee-wrapper .fee-inner .sp-only table + table {
    margin-top: 2.5rem;
  }
  section.reason article.fee-wrapper .fee-inner .sp-only th {
    padding: 1rem 0;
    font-size: 1.6rem;
    background: #1a4b7d;
  }
  section.reason article.fee-wrapper .fee-inner .sp-only th span {
    display: block;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    font-weight: normal;
    font-size: 1.2rem;
  }
  section.reason article.fee-wrapper .fee-inner .sp-only tr td {
    width: 40%;
    padding: 0.5rem 0;
    font-size: 1.4rem;
    background: #344052;
  }
  section.reason article.fee-wrapper .fee-inner .sp-only tr:last-of-type td {
    padding: 1rem 0;
    background: #fff;
  }
  section.reason
    article.fee-wrapper
    .fee-inner
    .sp-only
    tr:last-of-type
    td
    span {
    font-size: 1.6rem;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(
      180deg,
      rgb(22, 33, 45) 0%,
      rgb(17, 104, 190) 100%
    );
  }
  section.reason article.fee-wrapper .fee-inner .sp-only tr td .text-lg {
    font-size: 1.8rem !important;
  }
  section.reason article.fee-wrapper .fee-inner .sp-only tr td:first-of-type {
    width: 18%;
  }
  section.reason article.fee-wrapper .fee-content > p {
    font-size: 0.8rem;
  }
}

section.tsungaite-threePoint {
  padding: 6.5rem 3rem 8rem;
  color: #fff;
  background: url("../images/bg-threePoint.png") no-repeat;
  background-size: cover;
  background-position: center;
}

section.tsungaite-threePoint .inner {
  max-width: 86rem;
  margin: 0 auto;
}

section.tsungaite-threePoint h2 {
  width: 30rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
section.tsungaite-threePoint h2 img {
  width: 100%;
}

section.tsungaite-threePoint .cfx {
  align-items: center;
  gap: 12rem;
}

section.tsungaite-threePoint .text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

section.tsungaite-threePoint .text-wrapper p {
  font-size: 1.4rem;
}

section.tsungaite-threePoint .text-wrapper p strong {
  display: block;
  margin-bottom: 1rem;
  font-family: san-serif;
  font-size: 1.6rem;
}

@media screen and (max-width: 768px) {
  section.tsungaite-threePoint {
    padding: 2.5rem;
  }
  section.tsungaite-threePoint h2 {
    width: 23.5rem;
    margin: 0 auto 3rem;
  }
  section.tsungaite-threePoint .cfx {
    flex-direction: column;
    gap: 5rem;
  }
  section.tsungaite-threePoint .text-wrapper {
    padding: 0 0.5rem;
  }
}

footer {
  padding: 3rem 4rem 2rem;
}

footer.cfx {
  justify-content: space-between;
  align-items: center;
}

footer .logo-wrapper img:first-of-type {
  width: 30rem;
}
footer .logo-wrapper img:last-of-type {
  width: 24rem;
}

footer .logo-wrapper p {
  color: #000;
  font-size: 1.2rem;
  font-family: san-serif;
}

@media screen and (max-width: 768px) {
  footer.cfx {
    padding: 2rem 1.5rem 8.5rem;
  }
  footer.contact {
    padding: 2rem 1.5rem;
  }
  footer .logo-wrapper img:first-of-type {
    width: 26rem;
  }
  footer .logo-wrapper img:last-of-type {
    width: 18.5rem;
  }
  footer .logo-wrapper p {
    margin-top: 0.5rem;
    font-size: 1rem;
  }
}

/* 20250929 追加 */
.formrun-system-show {
  position: absolute;
  color: #8c0000;
  top: 8px;
  right: 0;
  font-size: 10px;
}

/* thanks */
main#thanks {
  padding: 15rem 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 52, 1) 0%,
    rgba(77, 88, 131, 1) 100%
  );
}

main#thanks h1 {
  margin-bottom: 2.4rem;
  font-weight: normal;
  font-size: 2.4rem;
}

main#thanks p {
  line-height: 2;
}

.bottom-menu {
  display: none;
}

@media screen and (max-width: 768px) {
  main#thanks {
    padding: 15rem 2.5rem;
  }
  main#thanks h1 {
    font-size: 1.8rem;
  }
  .bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    z-index: 999;
  }
  .bottom-menu a {
    width: calc(100% / 2 - 0.5rem);
  }
}

/* ==============================
   404ページ
   ============================== */
   main#error-404 {
    padding: 15rem 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(
      90deg,
      rgba(17, 17, 52, 1) 0%,
      rgba(77, 88, 131, 1) 100%
    );
  }
  
  main#error-404 h1 {
    margin-bottom: 2.4rem;
    font-weight: normal;
    font-size: 2.4rem;
  }
  
  main#error-404 p {
    line-height: 2;
  }
  
  main#error-404 a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s;
  }
  
  main#error-404 a:hover {
    opacity: 0.8;
  }
  
  @media screen and (max-width: 768px) {
    main#error-404 {
      padding: 15rem 2.5rem;
    }
    main#error-404 h1 {
      font-size: 1.8rem;
    }
  }
  