/*
Theme Name: My Theme
Theme URI: https://yamaha-kg.co.jp/
Author: ゆいワークス
Author URI: https://yamaha-kg.co.jp/
Description: カスタムテーマ
Version: 1.0
*/
@font-face {
  font-weight: 100 900;
  font-style: normal;
}
:root {
  --font-japanese: "Sawarabi Gothic", "Yu Gothic", "Meiryo", sans-serif;
  --font-latin: "Jost", sans-serif;
}
/* 調整用スタイル */

a {
  text-decoration: none;
  color: #fff;
}

ul,
li {
  list-style: none;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-japanese), var(--font-latin);
  word-break: break-all;
  height: 100%;
  margin: 0;
}
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bg_01 {
}
main {
  flex: 1;
  width: 100%;
  height: auto;
}
.f-500 {
  font-weight: 500;
}
.font-weight-bold {
  font-weight: bold;
}
.header-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
header.header-top .inner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  transition: background 0.3s ease; /* 背景色の変化をスムーズに */
}
header.header-top .inner.scrolled {
  background: #333;
}
body:not(.home) header .inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-mv {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  min-height: 500px;
}

.header-mv .header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 動画の切り抜き調整 */
  transform: translate(-50%, -50%);
  z-index: 0; /* 背景にする */
}

.header-content {
  position: absolute;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  width: 100%;
}

.header-content h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
.header-top {
  height: 80vh;
  background: #333;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
@media (max-width: 896px) {
  .header-top {
    height: 60vh;
    min-height: 410px;
  }
  .header-content {
  }
  .header-mv {
    min-height: auto;
    height: 60vh;
  }
}
@media (max-width: 620px) {
  .header-mv {
    min-height: 410px;
  }
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  z-index: 20;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo img {
  max-width: 250px;
  width: 100%;
}
nav ul {
  list-style: none;
  display: flex;
  /*
  gap: 1.5rem;
  */
  margin: 0;
}
nav ul li {
  padding: 0 2em;
  list-style: none;
  height: 16px;
  display: flex;
  align-items: center;
}
nav ul li a:hover {
  color: #fff;
  opacity: 0.7;
}
/* TOP（front-page）のみ */
nav ul li:nth-child(1),
nav ul li:nth-child(2) {
  border-right: 2px solid #fff;
}
nav ul li:nth-child(4),
nav ul li:nth-child(5) {
  padding: 0;
}
nav ul li:nth-child(4) a {
  background: #882729;
  width: 130px;
  text-align: center;
  padding: 3px 0;
  margin-right: 25px;
}
nav ul li:nth-child(5) a {
  background: #fff;
  width: 130px;
  color: #000 !important;
  text-align: center;
  padding: 3px 0;
}
/* TOP（front-page）以外にだけ適用 */
body:not(.home) nav ul li:nth-child(1),
body:not(.home) nav ul li:nth-child(2) {
  border-right: 2px solid #000;
}

body:not(.home) nav ul li:nth-child(4),
body:not(.home) nav ul li:nth-child(5) {
  padding: 0;
}

body:not(.home) nav ul li:nth-child(4) a {
  background: #882729;
  width: 130px;
  text-align: center;
  padding: 3px 0;
  color: #fff !important;
}

body:not(.home) nav ul li:nth-child(5) a {
  background: #000;
  width: 130px;
  color: #fff !important;
  text-align: center;
  padding: 3px 0;
}

nav a {
  position: relative;
  text-decoration: none;
  display: inline-block; /* transform効果のために必要 */
  transition: transform 0.3s ease;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  transition: all 0.3s ease;
}
body:not(.home) .menu-toggle span {
  background: #000;
}

/* ✕ の変化 */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* モバイル表示 */
@media (max-width: 896px) {
  nav ul li:nth-child(4) a {
    margin-right: 0;
  }
  .logo img {
    max-width: 150px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    background: #95a6af;
    position: fixed;
    top: 68px;
    right: 0;
    height: 340px;
    width: 50vw;
    padding: 1rem 2rem;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 999;
    text-align: center;
    gap: 0rem;
    box-shadow: 0px 0px 15px -5px #777777;
  }
  body:not(.home) nav ul {
    background: #fff;
  }
  nav ul.active {
    opacity: 1;
    transform: translateX(0); /* スライドインして表示 */
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 1.5rem;
    z-index: 1001;
  }
  nav ul li:nth-child(1),
  nav ul li:nth-child(2) {
    border-right: none !important;
  }
  nav ul li {
    display: block;
    height: auto;
    padding: 15px 0 !important;
    border-bottom: 1px solid;
  }
  nav ul li:nth-child(5) a {
    background: #000;
    color: #fff !important;
  }
}
.inside {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 1rem 1.5rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.inside .left p {
  font-size: 65px;
  text-align: left;
  line-height: 1.2;
  margin: 0;
  opacity: 0;
  transform: translateY(30px); /* 下にずらしておく */
  animation: fadeUp 1s ease forwards;
  animation-delay: 1s; /* 1秒後にスタート */
  font-weight: 500;
}

@keyframes fadeUp {
  to {
    opacity: 0.7; /* 元の不透明度 */
    transform: translateY(0); /* 元の位置に戻す */
  }
}
@media (max-width: 320px) {
  nav ul li:nth-child(4) a,
  nav ul li:nth-child(5) a {
    width: 100px !important;
  }
}
.inside .right {
  width: 57%;
  text-align: left;
}
.inside .right p {
  margin: 0;
  font-size: 1.7em;
  letter-spacing: 0.125em;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5), 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.inside .right p {
  margin: 0;
  font-size: 1.7em;
  letter-spacing: 0.125em;
  font-weight: 400;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5), 2px 2px 2px rgba(0, 0, 0, 0.3);

  /* フェードイン用初期状態 */
  opacity: 0;
  transform: translateY(30px); /* 下にずらす */
  animation: fadeUpRight 1s ease forwards;
  animation-delay: 2s; /* 2秒後に開始 */
}

@keyframes fadeUpRight {
  to {
    opacity: 1; /* フェードイン */
    transform: translateY(0); /* 元の位置に戻す */
  }
}

@media (max-width: 896px) {
  .inside {
    display: block;
  }
  .inside .left p {
    font-size: 2.5em;
    padding-bottom: 15px;
  }
  .inside .right {
    width: 100%;
  }
  .inside .right p {
    font-size: 0.9em;
  }
}
.header-content {
  text-align: center;
  margin: auto;
}
.mv-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 50vh;
}
@media screen and (max-width: 896px) {
  .mv-hero {
    background-size: contain;
  }
}

#pageTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: none; /* 初期は非表示 */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 表示状態 */
#pageTopBtn.show {
  display: flex;
  opacity: 0.8;
}

#pageTopBtn:hover {
  opacity: 1;
  background: #555;
}
.pagetop {
  position: fixed;
  right: 10.5%;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background-color: #95a6af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0px 0px 15px -5px #777777;
}

/* 表示状態 */
.pagetop.show {
  opacity: 1;
  visibility: visible;
}

/* ホバー効果 */
.pagetop:hover {
  background-color: #95a6af;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #95a6af;
}

/* 矢印アイコン */
.pagetop::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .pagetop {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 15px;
  }

  .pagetop::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #fff;
  }
}

.space-01 {
  height: 100px;
}
.features-t {
  font-size: 23px;
  letter-spacing: 7px;
  font-weight: 500;
}
.features p {
  font-weight: 300;
  line-height: 1.5;
  font-size: 16px;
}
.numbers-f {
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-size: 52px;
  font-family: "Cabin", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 700; /* Bold */
  font-style: italic; /* Italic */
  padding-left: 30px;
}
@media screen and (max-width: 896px) {
  .numbers-f {
    font-size: 1.8em;
    padding-left: 0;
  }
  .features-t {
    font-size: 1em;
    letter-spacing: 0;
  }
  .features p {
    font-size: 0.9em;
    padding-top: 10px;
  }
  .space-01 {
    height: 40px;
  }
}
.btn-01 {
  background: #862828;
  color: #fff;
  border: 1px solid #862828;
  border-radius: 10px;
  padding: 20px 3em 20px 2em;
  max-width: 450px;
  width: 100%;
  display: inline-block;
  font-size: 1.25em;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* アイコンを右端に固定 */
.btn-01 i {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  color: inherit; /* 文字色と連動 */
}

/* ホバー時：背景と文字色を反転 */
.btn-01:hover {
  background: #fff;
  color: #862828;
}
@media screen and (max-width: 896px) {
  .btn-01 {
    font-size: 1em;
    max-width: 265px;
  }
}
.footer-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  padding: 0 1em;
  height: 18px;
  display: flex;
  align-items: center;
}
.footer-list li a:hover {
  opacity: 0.7;
}
.footer-list li:not(:last-child) {
  border-right: 1px solid #000;
}
a {
  color: inherit !important;
}
footer {
  color: #575555;
}

footer .inner {
  background: #95a6af;
  color: white;
  text-align: center;
  padding: 3rem;
}
footer .inner > div {
  max-width: 1100px !important;
}
.footer-box {
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  height: auto;
  padding: 4em 3em;
  font-weight: 300;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-box > div {
  margin-bottom: 1.5em;
}
.footer-box span {
  font-size: 29px;
  letter-spacing: 20px;
  position: relative;
  display: inline-block;
  width: auto;
}
.footer-box span .last {
  margin: 0;
  font-size: 29px;
  letter-spacing: 0;
}
.footer-box p {
  font-size: 1.25em;
  line-height: 1.8;
  position: relative;
  display: inline-block;
}

.footer-box div,
.footer-box p {
  position: relative; /* 擬似要素の基準にする */
  display: inline-block; /* アンダーラインの幅を文字列に合わせる場合 */
}

/* ボーダーボトムアニメーション用の疑似要素 */
.footer-box div::after,
.footer-box p::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.6s ease;
}

/* ホバー時のアニメーション */
a:hover .footer-box div::after,
a:hover .footer-box p::after {
  width: 100%;
}

/* より滑らかなアニメーションのために時間差を追加 */
a:hover .footer-box div::after {
  transition-delay: 0s;
}
a:hover .footer-box p::after {
  transition-delay: 0.3s;
}

@media screen and (max-width: 896px) {
  footer .inner {
    padding: 1.5rem 1rem;
  }
  .footer-box {
    padding: 1.5em 1em 1em;
    margin-bottom: 1em;
  }
  .footer-box span,
  .footer-box p,
  .footer-box span .last {
    font-size: 1em;
  }
  .footer-list li {
    padding: 0 0.5em;
  }
  .footer-list li a {
    font-size: 14px;
  }
}
@media screen and (max-width: 325px) {
  .footer-list li a {
    font-size: 11px;
  }
}

.p-make-up {
  padding: 0 3.1em 2.3em !important;
}
.make-up {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #862828;
  margin: 0 auto;
}
.make-up span {
  display: inline-block;
  padding: 1em;
  color: #fff;
  text-align: left;
  font-size: 1.5em;
}
@media screen and (max-width: 896px) {
  .p-make-up {
    padding: 0 !important;
  }
  .make-up span {
    font-size: 1em;
    padding: 2em 1em;
  }
  .make-up {
    max-width: 300px;
  }
}
@media screen and (max-width: 620px) {
  .make-up {
    max-width: 160px;
  }
}
.service > div {
  max-width: 1100px;
  margin: 0 auto;
}
.service h2,
.access h2 {
  font-size: 43px;
  letter-spacing: 10px;
  font-weight: 400;
  color: #95a6af;
  margin: 0;
  text-align: center;
  padding-bottom: 20px;
}
.service p {
  color: #575555;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}
.sp_block {
  display: none;
}
.strengths,
.features,
.company {
  background: #95a6af;
  color: #fff;
}
.strengths .container,
.features .container,
.news .container {
  max-width: 1100px;
  margin: 0 auto;
}
.strengths h2 {
  font-size: 60px;
  letter-spacing: 15px;
  font-weight: 300;
}
.features h2,
.company h2 {
  font-size: 43px;
  letter-spacing: 15px;
  font-weight: 400;
}
.company h2 {
  padding-right: 1em;
}
.strengths .caption {
  font-size: 2em;
  letter-spacing: 9px;
  font-weight: 300;
}
.strengths p {
  line-height: 1.8;
  font-size: 18px;
  font-weight: 300;
}
.worries {
  color: #95a6af;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.worries h2 {
  font-size: 43px;
  letter-spacing: 10px;
  font-weight: 400;
  color: #95a6af;
  margin: 0;
  padding: 1em 0 0;
}
.worries p {
  line-height: 1.8;
  font-weight: 500;
}
.emphasis {
  background: #862828;
  padding: 5.5em 0 4em;
  text-align: center;
  background-attachment: fixed;
}

.emphasis p {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  line-height: 1.6;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 15px;
  max-width: 925px;
}
.triangle {
  position: relative;
  height: auto;
  padding-top: 3em;
}
.triangle::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 60px 100px 0 100px;
  border-color: #fff transparent transparent transparent;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
}
.expansion {
  overflow: hidden;
}
.expansion img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.expansion img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.news-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  color: #575555;
  margin: 0;
  font-size: 1.25em;
  font-weight: 300;
}

.news-list .info {
  min-width: 200px;
  background: #f8f8f8;
  padding: 10px;
  border-radius: 5px;
  flex-shrink: 0;
}

.news-list .info dt {
  font-weight: bold;
  margin-bottom: 5px;
}

.news-list .info dd {
  margin: 0;
  min-width: 100%;
}
.info a {
  color: #000;
}
.info a:hover {
  opacity: 0.7;
}
.news h2 {
  font-size: 43px;
  letter-spacing: 10px;
  font-weight: 400;
  color: #95a6af;
  margin: 0;
  text-align: center;
  padding-bottom: 30px;
}
.w-news {
  max-width: 500px;
  margin: 0 auto;
}
.w-news dt {
  font-weight: 300;
}
@media screen and (max-width: 896px) {
  .news-list {
    font-size: 0.9em;
    gap: 5px;
  }
  .w-news {
    padding: 0 1.5em;
  }
}
@media screen and (max-width: 896px) {
  .worries h2,
  .service h2,
  .strengths h2,
  .features h2,
  .news h2,
  .company h2,
  .access h2 {
    font-size: 30px;
  }
  .company h2 {
    padding-right: 0;
    margin: 0;
  }
  .strengths .caption {
    font-size: 1em;
    letter-spacing: 6px;
  }
  .strengths p {
    font-size: 0.9em;
  }
  .worries p {
    font-size: 0.7em;
  }
  .worries {
    padding: 0 1.5em;
  }
  .sp_block {
    display: block;
  }
  .emphasis p {
    font-size: 1.2em;
    letter-spacing: 0;
    padding: 0 2em;
  }
  .triangle::before {
    border-width: 30px 40px 0 40px;
  }
  .emphasis {
    padding: 3.5em 0 2em;
  }
  .service p {
    font-size: 0.8em;
  }
  footer .copy {
    font-size: 0.9em;
  }
}
@media screen and (max-width: 320px) {
  footer .copy {
    font-size: 0.7em;
  }
}

.company-list {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  color: #95a6af;
  font-size: 1.25em;
}

.company-list div {
  display: grid;
  grid-template-columns: 11.3em 1fr;
  align-items: center;
  margin: 1.3em 0;
}

.company-list dt {
  margin: 0;
  text-align: justify; /* 両端揃え */
  text-align-last: justify; /* 最終行も両端揃え */
  padding-right: 1em;
  border-right: 2px solid;
  font-weight: 500;
}

.company-list dd {
  margin: 0;
  padding-left: 1em;
  font-weight: 500;
}

.access h3 {
  font-size: 43px;
  letter-spacing: 15px;
  font-weight: 300;
  color: #95a6af;
  text-align: center;
  font-weight: 500;
  margin: 0;
}
.map-container {
  text-align: center;
}
.map-container iframe {
  width: 100%;
  height: 700px; /* デフォルトの高さ */
  display: block;
}
.map-container span {
  color: #95a6af;
  font-size: 1.25em;
  padding: 15px 0;
  display: block;
  font-weight: 500;
}
/* --- 896px 以下のレスポンシブ対応 --- */
@media (max-width: 896px) {
  .map-container iframe {
    height: 300px; /* スマホでの高さを縮小 */
  }
  .access h3 {
    font-size: 22px;
    letter-spacing: 0;
    padding: 0;
  }
  .map-container span {
    font-size: 0.8em;
    text-align: left;
    padding-bottom: 0;
  }
  .company-list {
    font-size: 0.7em;
    padding: 0 30px;
  }
  .company-list div {
    margin: 0.3em 0;
    grid-template-columns: 13em 1fr;
  }
}
.flex-text {
  display: flex;
  justify-content: space-between; /* 左端と右端を揃える */
}
.dl-horizontal {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px 50px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  font-size: 18px;
  padding-left: 3em;
}

.dl-horizontal dt {
  text-align: justify;
  text-align-last: justify; /* 最終行も両端揃え */
  font-weight: 500;
}
.dl-horizontal dd {
  margin: 0;
  text-align: left;
  font-weight: 500;
}
@media (max-width: 896px) {
  .dl-horizontal {
    display: block;
    font-size: 1em;
    padding: 0 20px;
  }
  .dl-horizontal dt,
  .dl-horizontal dd {
    display: block;
    text-align-last: auto;
  }
  .dl-horizontal dt {
    background: #8496a0;
    padding-left: 10px;
    margin-bottom: 10px;
    letter-spacing: 15px;
  }
  .dl-horizontal dd {
    margin-left: 0;
    padding-left: 10px;
    margin-bottom: 10px;
  }
  .lt-01 {
    letter-spacing: 0 !important;
  }
}
@media (max-width: 320px) {
  .dl-horizontal dd {
    font-size: 0.8em;
  }
}
.first-view,
.company > div,
.access > div {
  max-width: 1100px;
  margin: 0 auto;
}
.first-view h2 {
  font-size: 24px;
  letter-spacing: 10px;
  font-weight: 500;
  color: #95a6af;
  margin: 0;
  padding: 1em 0;
  line-height: 1.8;
}
@media (max-width: 896px) {
  .first-view h2 {
    letter-spacing: 0;
    font-size: 16px;
    padding: 0;
  }
}
@media (max-width: 320px) {
  .first-view h2 {
    font-size: 15px;
  }
  .company-list {
    padding: 0px 10px;
  }
  .access h3 {
    font-size: 18px;
  }
}
.news-box {
  padding: 4em 1em;
  max-width: 1100px;
  margin: 0 auto;
}
.news-box h1 {
  color: #575555;
  font-weight: 400;
  padding-bottom: 1.5em;
  font-size: 2rem;
}
.news-box p {
  line-height: 1.8;
}
@media (max-width: 896px) {
  .news-box h1 {
    font-size: 1.5rem;
  }
  .news-box p {
    font-size: 0.9em;
  }
}
