* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url("images/bg01.jpg");
  background-size: 100%;
  color: #333;
}

/* 改行 */
.sp-only,
.pc-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

@media screen and (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* ヘッダー固定 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

@media screen and (max-width: 767px) {
  .logo-img {
    height: 21px;
  }
}

/* メニュー */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  border: 2px solid #333;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    border: 1px solid #ddd;
    padding: 20px 10px;
  }
  .nav.active .nav-links {
    display: flex;
    text-align: center;
  }
  .hamburger {
    display: flex;
  }
}

/* ファーストビュー */
.home-fv {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.home-fv .slider img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.slider-top {
  height: 100%;
}

.slider-top img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 6s ease;
  transform-origin: center center;
  display: block;
}

.slider-top img.zooming {
  transform: scale(1.1);
}

.slider-top .slick-slide {
  height: 100vh;
}

.fv-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.fv-content img {
  width: 300px;
}

@media (max-width: 767px) {
  .fv-content img {
    width: 200px;
  }
}

/* コンテンツ全体 */
.inner {
  margin: auto;
  width: 1200px;
  max-width: 90%;
}

/* ピアノのあるモデルハウスとは？ */
.hello {
  text-align: center;
  padding: 10% 0;
  background: url("images/bg03-top.svg") no-repeat left top, url("images/bg03-bottom.svg") no-repeat right bottom;
  background-size: 600px auto, 600px auto;
}

.hello .main {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  line-height: 1.4;
  font-size: 52px;
  white-space: nowrap;
  margin-bottom: 30px;
  color: #d44040;
}

.hello .main2 {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  font-size: 23px;
  color: #888;
  margin-bottom: 7px;
}

.hello .sub {
  font-size: 17px;
  line-height: 1.8;
}

.hello .c4 {
  margin-top: 7%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
}

.hello .c4 .content {
  width: 23.5%;
  padding: 30px 25px;
  background: url("images/bg02-sp.svg");
  background-size: cover;
  border-radius: 10px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.hello .c4 .content .ttl {
  font-family: "Shippori Mincho B1", serif;
  text-align: center;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 25px;
  line-height: 1.5;
}

.hello .c4 .content .text {
  font-size: 14px;
  text-align: left;
  margin-bottom: 15px;
}

.hello .c4 .content img {
  width: 90%;
  align-self: center;
  margin-top: auto;
  display: block;
}

.hello .hm-logo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10%;
}

.hello .hm-logo img {
  margin: 0 2% 4%;
  width: 15%;
}

@media (max-width: 767px) {
  .hello {
    padding: 28% 0 25%;
    background-size: 400px auto, 400px auto;
  }
  .hello .main {
    font-size: 35px;
  }
  .hello .main2 {
    font-size: 18px;
  }
  .hello .sub {
    font-size: 15px;
  }
  .hello .c4 {
    margin-top: 15%;
  }
  .hello .c4 .content {
    width: 100%;
    margin-bottom: 8%;
    background: url(images/bg02-sp.svg);
    background-size: cover;
  }
  .hello .hm-logo {
    margin-top: 10%;
  }
  .hello .hm-logo img {
    margin: 0 2% 4%;
    width: 45%;
  }
}

/* イメージ */
.image {
  width: 100%;
  height: 50vh;
  overflow: auto;
  background: url("images/bg05.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
}

/* -- モデルハウス検索 -- */
.place {
  padding: 120px 5% 100px;
}

.place .main {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  text-align: center;
  font-size: 45px;
  font-weight: 600;
  margin-bottom: 20px;
}

.place .sub {
  text-align: center;
  font-size: 16px;
  margin-bottom: 50px;
}

@media (max-width: 767px) {
  .place {
    padding: 60px 0 50px;
  }
  .place .main {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .place .sub {
    margin-bottom: 30px;
  }
  .place .sub span {
    margin-top: 5px;
    font-size: 75%;
  }
}

/* タブ */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-buttons label {
  width: 11.7%;
  margin: 0.4%;
  text-align: center;
  cursor: pointer;
  padding: 8px 5px;
  background: #f0f0f0;
  transition: background 0.3s;
  font-size: 1rem;
  color: #aed2df;
  background: rgba(174, 210, 223, 0.2);
}

label[for="tab7"],
label[for="tab9"],
label[for="tab10"],
label[for="tab11"],
label[for="tab13"],
label[for="tab14"],
label[for="tab15"],
label[for="tab22"],
label[for="tab23"],
label[for="tab27"],
label[for="tab34"] {
  background: #8cabb8;
  color: #fffef9;
}

.tab-buttons label:last-child {
  border-right: none;
}

.tab-buttons label:hover {
  color: #fffef9;
  background: url(images/bg-red-sp.svg);
  background-size: cover;
}

input[type="radio"] {
  display: none;
}

.tab-content {
  display: none;
}

#tab1:checked ~ .contents #content1,
#tab2:checked ~ .contents #content2,
#tab3:checked ~ .contents #content3,
#tab4:checked ~ .contents #content4,
#tab5:checked ~ .contents #content5,
#tab6:checked ~ .contents #content6,
#tab7:checked ~ .contents #content7,
#tab8:checked ~ .contents #content8,
#tab9:checked ~ .contents #content9,
#tab10:checked ~ .contents #content10,
#tab11:checked ~ .contents #content11,
#tab12:checked ~ .contents #content12,
#tab13:checked ~ .contents #content13,
#tab14:checked ~ .contents #content14,
#tab15:checked ~ .contents #content15,
#tab16:checked ~ .contents #content16,
#tab17:checked ~ .contents #content17,
#tab18:checked ~ .contents #content18,
#tab19:checked ~ .contents #content19,
#tab20:checked ~ .contents #content20,
#tab21:checked ~ .contents #content21,
#tab22:checked ~ .contents #content22,
#tab23:checked ~ .contents #content23,
#tab24:checked ~ .contents #content24,
#tab25:checked ~ .contents #content25,
#tab26:checked ~ .contents #content26,
#tab27:checked ~ .contents #content27,
#tab28:checked ~ .contents #content28,
#tab29:checked ~ .contents #content29,
#tab30:checked ~ .contents #content30,
#tab31:checked ~ .contents #content31,
#tab32:checked ~ .contents #content32,
#tab33:checked ~ .contents #content33,
#tab34:checked ~ .contents #content34,
#tab35:checked ~ .contents #content35,
#tab36:checked ~ .contents #content36,
#tab37:checked ~ .contents #content37,
#tab38:checked ~ .contents #content38,
#tab39:checked ~ .contents #content39,
#tab40:checked ~ .contents #content40,
#tab41:checked ~ .contents #content41,
#tab42:checked ~ .contents #content42,
#tab43:checked ~ .contents #content43,
#tab44:checked ~ .contents #content44,
#tab45:checked ~ .contents #content45,
#tab46:checked ~ .contents #content46,
#tab47:checked ~ .contents #content47 {
  display: block;
}

#tab1:checked ~ .tab-buttons label[for="tab1"],
#tab2:checked ~ .tab-buttons label[for="tab2"],
#tab3:checked ~ .tab-buttons label[for="tab3"],
#tab4:checked ~ .tab-buttons label[for="tab4"],
#tab5:checked ~ .tab-buttons label[for="tab5"],
#tab6:checked ~ .tab-buttons label[for="tab6"],
#tab7:checked ~ .tab-buttons label[for="tab7"],
#tab8:checked ~ .tab-buttons label[for="tab8"],
#tab9:checked ~ .tab-buttons label[for="tab9"],
#tab10:checked ~ .tab-buttons label[for="tab10"],
#tab11:checked ~ .tab-buttons label[for="tab11"],
#tab12:checked ~ .tab-buttons label[for="tab12"],
#tab13:checked ~ .tab-buttons label[for="tab13"],
#tab14:checked ~ .tab-buttons label[for="tab14"],
#tab15:checked ~ .tab-buttons label[for="tab15"],
#tab16:checked ~ .tab-buttons label[for="tab16"],
#tab17:checked ~ .tab-buttons label[for="tab17"],
#tab18:checked ~ .tab-buttons label[for="tab18"],
#tab19:checked ~ .tab-buttons label[for="tab19"],
#tab20:checked ~ .tab-buttons label[for="tab20"],
#tab21:checked ~ .tab-buttons label[for="tab21"],
#tab22:checked ~ .tab-buttons label[for="tab22"],
#tab23:checked ~ .tab-buttons label[for="tab23"],
#tab24:checked ~ .tab-buttons label[for="tab24"],
#tab25:checked ~ .tab-buttons label[for="tab25"],
#tab26:checked ~ .tab-buttons label[for="tab26"],
#tab27:checked ~ .tab-buttons label[for="tab27"],
#tab28:checked ~ .tab-buttons label[for="tab28"],
#tab29:checked ~ .tab-buttons label[for="tab29"],
#tab30:checked ~ .tab-buttons label[for="tab30"],
#tab31:checked ~ .tab-buttons label[for="tab31"],
#tab32:checked ~ .tab-buttons label[for="tab32"],
#tab33:checked ~ .tab-buttons label[for="tab33"],
#tab34:checked ~ .tab-buttons label[for="tab34"],
#tab35:checked ~ .tab-buttons label[for="tab35"],
#tab36:checked ~ .tab-buttons label[for="tab36"],
#tab37:checked ~ .tab-buttons label[for="tab37"],
#tab38:checked ~ .tab-buttons label[for="tab38"],
#tab39:checked ~ .tab-buttons label[for="tab39"],
#tab40:checked ~ .tab-buttons label[for="tab40"],
#tab41:checked ~ .tab-buttons label[for="tab41"],
#tab42:checked ~ .tab-buttons label[for="tab42"],
#tab43:checked ~ .tab-buttons label[for="tab43"],
#tab44:checked ~ .tab-buttons label[for="tab44"],
#tab45:checked ~ .tab-buttons label[for="tab45"],
#tab46:checked ~ .tab-buttons label[for="tab46"],
#tab47:checked ~ .tab-buttons label[for="tab47"] {
  background: url(images/bg-red-sp.svg);
  background-size: cover;
  color: #fffef9;
}

@media (max-width: 767px) {
  .tab-buttons label {
    width: 30%;
    width: 31.5%;
    margin: 0.916%;
  }
}

/* 住宅展示場 */
.tab-content-flex {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: #fff;
  border: 1px solid #ecede8;
  margin-bottom: 30px;
  box-shadow: 5px 5px 3px #ecede8;
  flex-wrap: wrap;
}

.tab-content-flex01 {
  width: 45%;
}

.slideshow-js {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 20px 13px;
  cursor: pointer;
  z-index: 2;
}

.prev {
  left: 0;
}
.next {
  right: 0;
}

.tab-content-flex02 {
  width: 53%;
  margin: auto 0px;
}

.tab-content-flex02 .name {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #325167;
  font-weight: 600;
  font-family: "Shippori Mincho B1", serif;
}

.tab-content-flex02 .add {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #bbb;
}

.tab-content-flex02 .add2 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #bbb;
}

.tab-content-flex02 .piano {
  font-size: 15px;
  margin-bottom: 25px;
}

.tab-content-flex02 .btn a {
  display: block;
  font-size: 17px;
  font-weight: 500;
  background-color: #9cbece;
  color: #fff;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  letter-spacing: 1.5px;
}

@media (max-width: 767px) {
  .tab-content-flex01 {
    width: 100%;
    margin-bottom: 15px;
  }
  .tab-content-flex02 {
    width: 100%;
  }
  .tab-content-flex02 .name {
    font-size: 25px;
  }
  .tab-content-flex02 .add,
  .tab-content-flex02 .add2,
  .tab-content-flex02 .piano {
    font-size: 15px;
  }
}
/* -- モデルハウス検索 -- */

/* 来場記念品 */
.benefit {
  background-color: #ecede8;
  padding: 80px 5%;
}

.benefit .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.benefit .flex .flex-text {
  width: 65%;
}

.benefit .flex .flex-img {
  width: 25%;
}

.benefit .flex .flex-img img {
  width: 100%;
}

.benefit .main {
  font-size: 45px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: "Shippori Mincho B1", serif;
}

.benefit .sub {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  font-size: 20px;
}

.benefit .text {
  font-size: 17px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .benefit {
    padding: 60px 0;
  }
  .benefit .flex .flex-text {
    width: 100%;
  }
  .benefit .flex .flex-img {
    width: 100%;
    text-align: center;
  }
  .benefit .flex .flex-img img {
    width: 50%;
  }
  .benefit .main {
    font-size: 35px;
    text-align: center;
  }
  .benefit .sub {
    font-size: 18px;
    text-align: center;
  }
  .benefit .text {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

/* 現在拡大中 */
.forhomebuilders {
  padding: 80px 5%;
  text-align: center;
  color: #fff;
  background-color: #325167;
  position: relative;
}

.forhomebuilders img {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 180px;
}

.forhomebuilders .main {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  font-size: 45px;
  margin-bottom: 30px;
}

.forhomebuilders .sub {
  font-family: "Shippori Mincho B1", serif;
  font-size: 20px;
  margin-bottom: 5px;
}

.forhomebuilders .text {
  line-height: 2;
  font-size: 17px;
}

.forhomebuilders a {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 23px;
  margin-top: 30px;
  background-color: #fff;
  color: #325167;
  display: inline-block;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .forhomebuilders {
    padding: 70px 0 150px;
  }
  .forhomebuilders .main {
    font-size: 28px;
  }
  .forhomebuilders .sub {
    font-size: 18px;
  }
  .forhomebuilders .text {
    font-size: 15px;
  }
  .forhomebuilders a {
    font-size: 20px;
    display: block;
    padding: 20px;
  }
}

/* スマホ固定ボタン */
.sp-fixed-btn {
  display: none;
  display: block;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  background-color: #0f2635;
  padding: 0.65rem 1rem;
  text-align: center;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sp-fixed-btn a {
  text-decoration: none;
  display: block;
  color: #fff;
  background-color: #325167;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
}

@media (max-width: 767px) {
  .sp-fixed-btn {
    display: block; /* ← スマホだけ表示 */
  }
  .sp-fixed-btn.show {
    opacity: 1;
    pointer-events: auto;
  }
}

/* フッター */
footer {
  padding: 3% 10% 1%;
  background-color: #0f2635;
  color: #fff;
}

footer .flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer .flex .flex-logo {
  width: 50%;
}

footer .flex .flex-nav {
  font-size: 13px;
  width: 50%;
}

footer .flex .flex-nav .flex-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 30px;
  row-gap: 10px;
  justify-content: end;
}

footer .flex .flex-nav .flex-nav-grid a {
  display: block;
  text-decoration: none;
  color: #fff;
}

.footer-logo {
  width: 150px;
  display: block;
  margin-bottom: 10px;
}

footer .company {
  font-size: 17px;
  margin-top: 5%;
  margin-bottom: 5px;
}

footer .company2 {
  font-size: 12px;
}

.footer-copy {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  footer {
    padding: 10% 5% 2%;
  }

  footer .company2 {
    margin-bottom: 30px;
  }

  footer .flex .flex-logo {
    width: 100%;
  }

  .footer-logo {
    width: 140px;
    margin-bottom: 30px;
  }

  footer .flex .flex-nav {
    width: 100%;
  }
  footer .flex .flex-nav .flex-nav-grid {
    display: block;
    margin-bottom: 5%;
  }
  footer .flex .flex-nav .flex-nav-grid a {
    line-height: 2;
  }
}
