body {
  background: #fbdfb0;
  background-size: auto 100vh;
  height: 100vh;
  margin: 0;
  color: #113454;
  overflow: hidden;
}

body.night-mode {
  color: white !important;
}

body.night-mode .company-section,
body.night-mode .company-section h2,
body.night-mode .company-section .company-table th,
body.night-mode .company-section .company-table td,
body.night-mode .company-section .copyright {
  color: white !important;
}

/* モーダル */
/* モーダルのスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 200000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.modal-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
}

.modal-body h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.modal-body h4 {
  color: #555;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.modal-body p {
  margin-bottom: 15px;
  color: #666;
}

.modal-body ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 5px;
  color: #666;
}

.modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8f9fa;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.modal-btn-primary {
  background: #007cba;
  color: white;
}

.modal-btn-primary:hover {
  background: #005a87;
  transform: translateY(-1px);
}

.modal-btn-secondary {
  background: #6c757d;
  color: white;
}

.modal-btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
    width: calc(100% - 20px);
    max-height: 90vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}

/* ダークモード対応 */
.night-mode .modal-content {
  background-color: #2d3748;
  color: white;
}

.night-mode .modal-header,
.night-mode .modal-footer {
  background: #1a202c;
  border-color: #4a5568;
}

.night-mode .modal-header h2 {
  color: white;
}

.night-mode .modal-body h3,
.night-mode .modal-body h4 {
  color: #e2e8f0;
}

.night-mode .modal-body p,
.night-mode .modal-body li {
  color: #cbd5e0;
}

.fuji-image {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  width: auto;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

body.bg-fuji .fuji-image {
  opacity: 1;
}
body.bg-fuji {
  overflow: unset;
}

body.bg-fuji-dim .fuji-image {
  opacity: 0.2 !important;
}
/* #scroll-js {
  position: sticky;
  top: 0;
} */
.contents-wrap {
  /* overflow: hidden; */
}

.container {
  position: relative;
  max-width: 1500px;
  width: 100vw;
  height: 110vh;
  margin: 0 auto;
  overflow: hidden;
}

.corner-img {
  position: fixed;
  height: auto;
  z-index: 1000;
}

.top-left {
  top: -5vh;
  left: 0;
  height: 80vh;
  transform: translate(-20vw, 20vh) rotate(-10deg);
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 0% 0%;
  z-index: 1003;
}

.top-right {
  bottom: 0;
  right: -15vh;
  height: 95vh;
  transform: translate(20vw, 20vh) rotate(10deg);
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 100% 0%;
}

.bottom-left {
  bottom: 0;
  left: -20vh;
  height: 80vh;
  transform: translateX(-100vw) rotate(-10deg);
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 0% 100%;
  z-index: 1004;
}

.bottom-right {
  bottom: -2vh;
  right: -2vh;
  height: 60vh;
  transform: translateX(100vw) rotate(10deg);
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 100% 100%;
}

.bottom-right.slide-in {
  opacity: 1 !important;
  transform: translateX(0) rotate(-10deg) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-right.slide-in-final {
  transform: translateX(0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ninja-top-center {
  right: 0;
  left: 14vw;
  margin: auto;
  top: 19vh;
  width: 21vh;
  height: auto;
  z-index: 1005;
  opacity: 0;
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100vw) rotate(10deg);
}

.ninja-top-center.slide-in {
  opacity: 1 !important;
  transform: translateX(0) rotate(-10deg) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ninja-top-center.slide-in-final {
  transform: translateX(0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dog-bottom-right {
  position: fixed;
  right: 8vh;
  bottom: -3vh;
  width: 50vh;
  height: auto;
  z-index: 1005;
  opacity: 0;
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100vw) rotate(10deg);
}

.dog-bottom-right.slide-in {
  opacity: 1 !important;
  transform: translateX(0) rotate(-10deg) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dog-bottom-right.slide-in-final {
  transform: translateX(0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tokyo-bottom-center {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100vh);
  width: 40vw;
  height: auto;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.tokyo-bottom-center.slide-in {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

.business-card p {
  font-size: 16px;
  line-height: 1.8;
}

@media (min-width: 1500px) {
  .container {
    width: 1500px;
  }
}

.about-section {
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
.about-section.active {
  opacity: 1;
}

/* SP対応 */

@media (max-width: 768px) {
  .top-left {
    display: none;
  }

  .top-right {
    bottom: 0;
    right: -8vh;
    height: 60vh;
    transform: translate(10vw, 10vh) rotate(5deg);
  }

  .bottom-left {
    bottom: 0;
    left: -15vh;
    height: 46vh;
    transform: translateX(-100vw) rotate(-5deg);
  }

  .bottom-right {
    bottom: -1vh;
    right: -1vh;
    height: 35vh;
    transform: translateX(100vw) rotate(5deg);
  }

  .ninja-top-center {
    top: 15vh;
    right: -18vw;
    width: 17vh;
    z-index: 1008;
  }

  .dog-bottom-right {
    right: -2vh;
    bottom: -2vh;
    width: 30vh;
  }

  .tokyo-bottom-center {
    width: 60vw;
    display: none;
  }

  .red-ball {
    width: 8vh;
    height: 8vh;
  }

  .white-box {
    padding: 200px 15px 48px;
    font-size: 14px;
    margin: 30px auto;
    max-width: 875px;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  .white-box h1 {
    font-size: 2.5rem !important;
  }

  .white-box h2 {
    font-size: 1.8rem !important;
  }

  .white-box h3 {
    font-size: 1.4rem !important;
  }

  .white-box p {
    font-size: 14px !important;
  }

  .business-card {
    font-size: 14px !important;
    padding: 0 0 1em 0;
  }

  .business-card h3 {
    font-size: 1.4rem !important;
  }

  .business-card p {
    font-size: 14px !important;
  }

  .creative-cards {
    width: 100%;
    flex-direction: column;
    gap: 1em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
  }

  .creative-card {
    padding: 8px 24px;
    font-size: 14px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: none !important;
    min-width: 100% !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  .creative-card img {
    width: 80px !important;
    height: auto;
    margin-bottom: 8px !important;
  }

  .company-table {
    font-size: 14px !important;
  }

  .company-table th,
  .company-table td {
    padding: 0.5em 0.7em;
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: none;
    font-size: 14px !important;
  }

  .company-table th {
    width: 100%;
    background: rgba(17, 52, 84, 0.1);
    font-weight: bold;
    margin-top: 1em;
    padding-top: 0.8em;
    padding-bottom: 0.3em;
  }

  .company-table th:first-child {
    margin-top: 0;
  }
  .company-table th {
    margin-top: 1em;
    padding-top: 0.8em;
    padding-bottom: 0.3em;
  }

  .company-table td {
    padding-top: 0.3em;
    padding-bottom: 0.8em;
    border-bottom: 1px solid rgba(17, 52, 84, 0.3);
    padding: 0.1em 1em 1em !important;
    font-weight: 400;
  }

  .scroll-flow-box {
    min-width: 60vw;
    height: 60vw;
    max-width: 200px;
    max-height: 200px;
  }

  .swiper-slide.scroll-flow-box {
    width: 300px !important;
    height: 300px !important;
    min-width: 300px;
    min-height: 300px;
    max-width: 300px;
    max-height: 300px;
  }

  .swiper-slide.scroll-flow-box img {
    border-radius: 20px !important;
  }

  .swiper-container.wood-slider {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0;
    margin: 0 !important;
    overflow: hidden !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 100%;
  }

  .swiper-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
    overflow: hidden !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .swiper-slide.scroll-flow-box {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    margin: 0 2px !important;
    padding: 0 !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .swiper-slide.scroll-flow-box img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 12px !important;
    object-fit: cover;
  }

  .wood-images {
    gap: 8px;
  }

  .wood-images img {
    height: 80px;
    border-radius: 8px;
  }

  .night-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/night_lp.png") no-repeat center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
  }
}

.corner-img,
.dog-bottom-right,
.tokyo-bottom-center {
  opacity: 0;
  transition: opacity 0.7s, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in {
  opacity: 1 !important;
}

/* bottom-left */

.bottom-left.slide-in {
  transform: translateX(0) rotate(10deg) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-left.slide-in-final {
  transform: translateX(0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* top-left */

.top-left.slide-in {
  transform: translate(0, 0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-right.slide-in {
  transform: translate(0, 0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* bottom-right */

.bottom-right.slide-in {
  transform: translateX(0) rotate(-10deg) !important;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-right.slide-in-final {
  transform: translateX(0) rotate(0deg) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* top-right */

.red-ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 8vh;
  height: 8vh;
  border-radius: 50%;
  object-fit: contain;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
  display: none;
}

.bg-fuji .red-ball {
  display: block;
}

.white-box {
  background: rgba(255, 255, 255, 0.6);
  max-width: 872px;
  width: 100%;
  /* margin: 60px auto; */
  margin: 0 auto 60px;
  padding: 72px 48px;
  /* border-radius: 16px; */
  /* box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); */
  /* position: relative; */
  position: sticky;
  top: 0;
  z-index: 20000;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-weight: bold;
  color: #113454;
  font-size: 1.35rem;
  line-height: 2.2;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s, background 0.8s ease;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .white-box {
    width: auto;
    padding: 72px 20px;
    position: relative;
  }
}

/* 夜モード時の背景調整 */
body.night-mode .white-box {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.white-box.visible {
  opacity: 1;
  pointer-events: auto;
}

/* .white-box.visible::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transition: opacity 0.7s, background 0.8s ease;
  z-index: -1;
} */

.logo {
  width: 100px;
  display: block;
  margin: 0 auto 24px auto;
}

.logo-center {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 10001;
  pointer-events: none;
  transition: opacity 0.5s;
}

.logo-blue {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-white {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 夜モード時のロゴ切り替えを削除し、スクロールベースの切り替えに変更 */
/* body.night-mode .logo-blue {
  opacity: 0;
}

body.night-mode .logo-white {
  opacity: 1;
} */

.logo-center.visible {
  opacity: 1;
}

.logo-center.hide {
  opacity: 0;
}

.white-box h2 {
  text-align: center;
  height: max-content;
}

.business-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  align-items: center;
  margin-top: 2em;
}

.business-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 1.5em 0;
  width: 100%;
  min-width: 220px;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-size: 1.05em;
  overflow: hidden;
}

.business-card h3,
.business-card,
.creative-card,
.business-section h2,
.company-section h2,
.white-box h2,
.white-box h1 {
  color: #113454 !important;
}

.business-card h3 {
  margin: 0;
  font-size: 1.15em;
}

.business-card h3 + p,
.business-card h3 + div {
  margin-top: 0;
}

.scroll-flow-row {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
  overflow-x: auto;
  width: 100vw;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-flow-box {
  min-width: 20vw;
  height: 20vw;
  max-width: 300px;
  max-height: 300px;
  background: #e3e8f0;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  color: #1a237e;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.scroll-flow-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/service_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  border-radius: 30px;
  z-index: 2;
  pointer-events: none;
}

.scroll-flow-box img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.swiper-slide.scroll-flow-box {
  width: 20vw !important;
  max-width: 300px;
  min-width: 200px;
  height: 20vw;
  max-height: 300px;
  min-height: 120px;
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
  display: none !important;
}

.creative-cards {
  display: flex;
  gap: 1.5em;
  margin-top: 1em;
  justify-content: flex-start;
}

.creative-card {
  background: url("images/service_bg.png") center center/cover no-repeat;
  border-radius: 30px;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  min-width: 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 4px solid #113454;
}

.company-section {
  margin-top: 4em;
}

.company-table {
  width: 100%;
  margin: 2em auto 0 auto;
  border-collapse: collapse;
  font-size: 1.05em;
}
.company-table th {
  white-space: nowrap;
}

.company-table th,
.company-table td {
  padding: 0.7em 1em;
  border-bottom: none;
  text-align: left;
  color: #113454;
}

.company-table th {
  width: auto;
  font-weight: bold;
  /* margin-top: 1em;
  padding-top: 0.8em; */
  /* padding-bottom: 0.3em; */
}

.company-table th:first-child {
  margin-top: 0;
}

.company-table td {
  /* padding-top: 0.3em;
  padding-bottom: 0.8em; */
  border-bottom: none;
}

.fade-section {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-section.visible {
  opacity: 1;
}

.business-section {
  margin-top: 100px;
}

/* SP用の縦書き→横書き対応 */

.mission-container {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  margin-bottom: 10vh;
  margin-top: 10vh;
  width: 100%;
}

.mission-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: max-content; /* 明示的な高さ指定 */
  margin: 0;
  display: flex;
  justify-content: center;
  margin-left: 7vw;
}

.mission-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  margin: 0;
  order: 2;
  display: flex;
  justify-content: center;
}

.mission-title {
  font-size: 3.4rem !important;
  line-height: 1.5;
  margin: 0;
}

.mission-subtitle {
  margin-top: 2em;
  display: block;
}

.mission-label-text {
  font-size: 1.5rem;
  color: #1a237e;
  font-weight: bold;
}

@media (max-width: 768px) {
  .mission-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
  }

  .mission-label {
    order: 1;
    text-align: center;
  }

  .mission-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    margin-bottom: 1em;
    margin-left: 0;
    display: block;
    order: 2;
    text-align: center;
  }

  .mission-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    text-align: center;
    margin-left: 0;
    margin-bottom: 1em;
  }

  .mission-title {
    font-size: 2.2rem !important;
    line-height: 1.5;
    text-align: center;
  }
  .mission-subtitle{
    margin-top: 0;
  }
}
/* 言語切り替えセレクトボックスのスタイル */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
}

.lang-select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  min-width: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-select:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #999;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lang-select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.lang-select option {
  padding: 8px;
  background: white;
  color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .language-switcher {
    top: 10px;
    right: 10px;
  }

  .lang-select {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 80px;
  }
}

/* ダークモード対応 */
.night-mode .lang-select {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-color: #555;
}

.night-mode .lang-select:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: #777;
}

.night-mode .lang-select option {
  background: #333;
  color: white;
}

/* SP用の富士山背景調整 */

body::before {
  background-size: cover;
  background-position: center bottom;
}

.wood-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1em;
  width: 100%;
}

.wood-images img {
  width: calc(50% - 6px);
  /* height: 120px; */
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .wood-images {
    gap: 8px;
  }

  .wood-images img {
    height: 80px;
    border-radius: 8px;
  }
}

.copyright {
  text-align: center;
  margin-top: 3em;
  font-size: 0.9em;
  color: white;
  opacity: 0.8;
}

.night-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/night_lp.png") no-repeat center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .night-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transform: none;
  }
}

.night-bg.visible {
  opacity: 1;
}

.corner-img.fade-out {
  opacity: 0 !important;
}

.fuji-image.fade-out {
  opacity: 0 !important;
}

.ninja-top-center.fade-out,
.dog-bottom-right.fade-out,
.tokyo-bottom-center.fade-out,
.red-ball.fade-out {
  opacity: 0 !important;
}

/* Screen Reader Only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* お問い合わせフォーム */
.contact-section {
  margin-top: 4em;
}

.contact-section h2 {
  padding: 0 2em;
  border-radius: 8px;
  text-align: center;
  color: white !important;
}

.contact-form {
  max-width: 600px;
  margin: 2em auto 0 auto;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: white;
  font-size: 1.05em;
  white-space: nowrap;
}

.required {
  color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 0.8em;
  border: unset;
  border-bottom: 1px solid rgba(255, 255, 255, 1);
  /* border-radius: 8px; */
  font-family: inherit;
  font-size: 1em;
  background: rgba(255, 255, 255, 0);
  /* backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); */
  /* transition: border-color 0.3s ease; */
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #113454;
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  /* min-height: 120px; */
}

.privacy {
  /* 見た目をリセット */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* 基本的なリセット */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 200% */
  letter-spacing: 1.56px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  cursor: pointer;
  font-size: 0.95em;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: white;
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.submit-btn {
  /* background: linear-gradient(135deg, #113454, #1a237e); */
  background: #113454;
  color: #fff;
  font-family: "Hiragino Mincho ProN";
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 150% */
  letter-spacing: 2.08px;
  border: none;
  padding: 1em 2em;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
  /* max-width: 200px; */
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1a237e, #113454);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 52, 84, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* SP対応 */
@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
    margin: 1.5em auto 0 auto;
  }

  .form-group {
    margin-bottom: 1.2em;
  }

  .form-group label {
    font-size: 0.8em;
  }

  .form-group input[type="text"],
  .form-group input[type="url"],
  .form-group textarea {
    padding: 0.7em;
    font-size: 16px; /* iOSでズームを防ぐ */
  }

  .submit-btn {
    padding: 0.9em 1.5em;
    font-size: 0.8em;
    max-width: 100%;
  }

  .checkbox-label {
    font-size: 0.9em;
  }
}
