/* Base styles */
@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&family=Sawarabi+Mincho&family=Roboto:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0);
  }

  10% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }

  90% {
    opacity: 1;
    transform: translateY(80px) rotate(-360deg);
  }

  100% {
    opacity: 0;
    transform: translateY(80px) rotate(-360deg);
  }
}

/* Basic Reset & Typography */
:root {
  --primary-color: #1fbea5;
  /* Main brand color */
  --secondary-color: #00a0e9;
  /* Lighter blue */
  --accent-color: #f08200;
  /* Example orange for buttons if needed */
  --text-color: #333;
  --light-text-color: #fff;
  --border-color: #ddd;
  --dummy-bg-color: #f0f0f0;
  --dummy-border-color: #ccc;
  --font-family: "Zen Kaku Gothic New", "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --hexagon: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --ease-in-out: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

.breadcrumbs {
  margin-left: 6rem;
  font-size: 0.8rem;
}

.sp_br {
  display: none;
}

.align-right {
  text-align: right;
}

.sub-heading01 {
  font-size: 1.4rem;
  position: relative;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.mb1 {
  margin-bottom: 2rem;
}

.mb11 {
  margin-bottom: 3rem;
}

.mb2 {
  margin-bottom: 4rem;
}

.mb3 {
  margin-bottom: 6rem;
}

.mb4 {
  margin-bottom: 8rem;
}

.mb5 {
  margin-bottom: 3.4vw;
}

.mb6 {
  margin-bottom: 2vw;
}

.mb7 {
  margin-bottom: 1vw;
}

.mt1 {
  margin-top: 3.5rem;
}

.mt2 {
  margin-top: 1.5vw;
}

.mt3 {
  margin-top: 0.5vw;
}

.mt4 {
  margin-top: 1.5rem;
}

.pd1 {
  padding-top: 2vw;
}

.pd2 {
  padding-top: 4vw;
}

.pd3 {
  padding-top: 1vw;
}

.pd4 {
  padding-bottom: 4vw;
}

.pd5 {
  padding-bottom: 32rem;
}

.page-contents .mb-company {
  margin-bottom: 4rem;
}

.font18 {
  font-size: 1.125rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  color: #3c3c3c;
  line-height: 1.7;
  background-color: #fff;
  margin: 0 auto;
  font-size: 1rem;
  /* Base font size */
}

main {
  margin-top: 96px;
}

a {
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: #1fbea5;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 2.8rem;
}

/* Base size, adjust per section */
h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.4rem;
}

.indent {
  text-indent: -1em;
  padding-left: 1em;
}

.clear {
  clear: both;
}

.btn-group-photo {
  position: absolute;
  width: 290px;
  height: 60px;
  margin: 0 auto;
  bottom: 4rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 32px;
}

.btn-group-photo2 {
  position: absolute;
  width: 290px;
  height: 60px;
  margin-right: auto;
  bottom: 4rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 32px;
}

.btn {
  font-weight: 600;
  padding-right: 15px;
  font-size: 1.125rem;
}

.btn::after {
  content: url(../img/arrow03.svg);
  position: absolute;
  padding: 1px 0 0 8px;
  transition: 0.2s;
}

.btn2 {
  font-weight: 600;
  padding-right: 15px;
  font-size: 1.125rem;
}

.btn2::after {
  content: url(../img/arrow05.svg);
  position: absolute;
  padding: 1px 0 0 8px;
  transition: 0.2s;
}

.btn3 {
  font-weight: 600;
  padding-right: 15px;
  font-size: 1.125rem;
}

.btn3::after {
  content: url(../img/arrow03.svg);
  position: absolute;
  padding: 1px 0 0 8px;
  transition: 0.2s;
}

.btn-group-photo:hover {
  color: var(--light-text-color);
}

.btn-group-photo:hover .btn::after {
  content: url(../img/arrow03.svg);
  position: absolute;
  padding: 1px 0 0 15px;
}

.btn-group-photo2:hover {
  color: var(--light-text-color);
}

.btn-group-photo2:hover .btn::after {
  content: url(../img/arrow03.svg);
  position: absolute;
  padding: 1px 0 0 15px;
}

/* Header */
.header {
  background-color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 27rem;
}

.global-nav {
  margin: 0 5rem 0 auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
}

@media (max-width: 1120px) {
  .global-nav ul {
    display: none;
  }
}

.global-nav li {
  margin-left: 2.5rem;
}

.global-nav a {
  font-weight: 600;
  font-size: 0.95rem;
}

.global-nav a.btn-contact {
  background-color: var(--secondary-color);
  padding: 0.5rem 1rem;
}

.global-nav a.btn-contact:hover {
  background-color: darken(var(--secondary-color), 10%);
}

/* Hero Section */
.hero-content {
  position: absolute;
  z-index: 1;
  padding: 0;
  top: 10%;
  right: 4%;
  height: 75%;
}

.hero-text {
  overflow: hidden;
}

.hero-text h1 {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 200;
  font-style: normal;
  text-align: right;
  font-size: 3.4722vw;
  /* Large text */
  letter-spacing: 0.5rem;
  margin-bottom: 2rem;
  color: #fff;
  line-height: 1.1;
  padding-right: 2rem;
  text-shadow: 2px 2px 8px rgba(1, 10, 38, 0.7);
  transition-delay: 1s;
  animation: textAnime 1s 0.5s forwards ease-in-out;
  transform: translateY(180%);
}

@keyframes textAnime {
  to {
    transform: translateY(0px);
  }
}

/* フッターボタンの表示・非表示設定 */
.hidden {
  animation: fade 0.2s ease-in-out forwards;
  pointer-events: none;
  /* 重要 */
}

@keyframes fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.visible {
  animation: fadeOut 0.2s ease-in-out forwards;
  pointer-events: all;
  /* 重要 */
}

@keyframes fadeOut {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-bottom-logo-dummy {
  /* As per PDF image */
  width: 60px;
  height: 60px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  border-radius: 4px;
}

/* Anniversary Section */
.anniversary-content {
  position: absolute;
  padding: 0;
  top: 10%;
  width: 100%;
}

.anniversary h2 {
  margin: 0 auto;
}

.anniversary-message {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 200;
  font-style: normal;
  font-size: 1.5rem;
  color: #fff;
  max-width: 80%;
  margin: 1.5em auto;
  line-height: 2em;
  letter-spacing: 0.5rem;
}

/* House Making Desire Section */
.house-making {
  padding: 1rem 0 3rem;
  background: url(../img/bg_page.webp) repeat-y;
  background-size: contain;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.house-making-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.house-making-text {
  flex: 1;
  margin: 0 16%;
  text-align: justify;
}

.scroll-text {
  align-items: center;
  color: #fff;
  display: flex;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  z-index: 1;
  margin-top: -5rem;
  margin-bottom: -1rem;
}

.scroll-text ul {
  animation: flowing 40s linear infinite;
  font-size: 10rem;
  font-family: "Roboto", sans-serif;
  transform: translateX(100%);
  margin: 0;
  padding: 0;
}

.scroll-text ul li {
  display: inline-block;
  /* Space between items */
}

@keyframes flowing {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.house-making-text .sub-heading {
  font-size: 1.5rem;
  /* "家つくりへの想い" */
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: bold;
  color: #3c3c3c;
  position: relative;
}

.house-making-text .description {
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 0.3rem;
}

.house-making-image-dummy {
  flex: 1;
  height: 350px;
  /* Adjust as needed */
  border-radius: 8px;
}

/* company link Section */
.company-link {
  display: flex;
  height: 18.75rem;
  /* Full viewport height */
  max-height: 300px;
}

.company-overview {
  position: relative;
  overflow: hidden;
  width: 50%;
}

.company-overview::after {
  position: absolute;
  background: url(../img/bg_company_overview.webp) no-repeat;
  background-size: cover;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  transition: 0.3s;
}

.company-overview a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  height: 100%;
}

.company-overview:hover::after {
  transform: scale(1.1);
}

.company-recruit {
  position: relative;
  overflow: hidden;
  width: 50%;
}

.company-recruit a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  height: 100%;
}

.company-recruit::after {
  position: absolute;
  background: url(../img/bg_company_recruit.webp) no-repeat;
  background-size: cover;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  transition: 0.3s;
}

.company-recruit:hover::after {
  transform: scale(1.1);
}

/* Promotion Video Section */
.promotion-video {
  padding: 4rem 4rem 0 4rem;
}

.promotion-video-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.video-info video {
  width: 100%;
  filter: drop-shadow(1rem 1rem 0 #a6ebde);
  margin-bottom: 1rem;
  margin-top: 1rem;
}

/* News Section */
.news {
  padding: 4rem 0;
}

.news h2 a:hover {
  color: #3c3c3c;
}

.news h2 {
  font-size: 1.8rem;
  display: inline;
}

.news-list-container {
  display: block;
}

.news-list {
  width: 70%;
  margin-left: auto;
}

.news-line {
  display: flex;
  padding: 2rem 0;
}

.ca-ti {
  display: flex;
  width: 100%;
}

.ca-ti dd {
  font-weight: 600;
}

.news-category {
  font-size: 0.85rem;
  min-width: 90px;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.news-category span {
  display: block;
  margin-right: 1rem;
  border: 1px solid #afafaf;
  text-align: center;
  border-radius: 6px;
}

.news-line dd {
  width: 100%;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.125rem;
}

.news-list a {
  color: #3c3c3c;
  position: relative;
  bottom: 0.2em;
}

.news-list a:hover {
  color: var(--primary-color);
}

.news-footer-actions {
  text-align: center;
  margin-top: 2rem;
}

/* achievements Section */
.achievements {
  padding: 4rem 0 2.2rem;
  background: url(../img/bg_page.webp) repeat-y;
  background-size: contain;
}

.achievements h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.achievements-container {
  display: flex;
  max-width: 77.375rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.achievements-img {
  max-width: 41.25rem;
  margin-right: 2rem;
}

.achievements-img img {
  width: 100%;
  border-radius: 0px 50px 50px 0px;
}

.achievements-text {
  line-height: 2rem;
  max-width: 29.625rem;
  padding-top: 4rem;
}

.achievements-text h3 {
  display: inline;
}

.achievements-description {
  text-align: justify;
  margin-top: 1.5rem;
}

.achievements-list img {
  width: 100%;
}

/* group photo Section */
.group-photo {
  padding: 0;
  background: url(../img/bg_groupphoto.webp) no-repeat;
  background-size: cover;
  background-position: center center;
  height: 42.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
  max-height: 42.5rem;
}

.group-text1 {
  color: #fff;
  font-weight: normal;
  font-size: 2.8rem;
  font-family: "Sawarabi Mincho", serif;
  letter-spacing: 0.5rem;
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.9;
}

.group-text2 {
  font-family: "Sawarabi Mincho", serif;
  color: #fff;
  text-align: right;
}

.group-text2 .name {
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background-color: #fff;
  padding: 0 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  /* Adjust as per PDF */
  margin-bottom: 2rem;
  padding-top: 4rem;
  flex-wrap: wrap;
}

.footer-company-logo a img {
  width: 85%;
}

.footer-company p {
  font-size: 0.87rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.company-address {
  margin-bottom: 0.5rem;
}

.group-logo01 a img {
  width: 72%;
}

.group-logo02 a img {
  width: 50%;
}

.footer-navmenu {
  margin-top: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 5rem;
  /* row-gap column-gap */
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  font-size: 0.87rem;
}

.footer-nav li {
  margin-bottom: 0.88rem;
}

.footer-nav a {
  font-size: 0.87rem;
}

.ecoaction {
  width: 3.56rem;
}

.copyright {
  display: flex;
  width: 90%;
  margin: 0 auto 3rem auto;
  justify-content: flex-end;
}

.copyright p {
  font-size: 0.8rem;
  padding-top: 1rem;
  margin-top: 1rem;
  margin-right: 1rem;
}

/* Hamburger Menu Styles */
.hamburger {
  position: relative;
  z-index: 100;
  width: 2.5rem;
  height: 64px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger__line {
  position: absolute;
  width: 2.5rem;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) {
  top: 12px;
}

.hamburger__line:nth-of-type(2) {
  top: 23px;
}

.hamburger__line:nth-of-type(3) {
  top: 35px;
}

.hamburger_text {
  position: absolute;
  top: 36px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(13px) rotate(-45deg);
  background-color: #fff;
}

.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
  background-color: #fff;
}

.hamburger.active .hamburger_text {
  color: #fff;
}

.nav.active {
  opacity: 1;
  pointer-events: auto;
}

#nav-menu.nav .fade2 {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#nav-menu.nav.active .fade2 {
  opacity: 1;
  transform: translateY(0);
}

/* 展開時 */
.nav-container {
  overflow: auto;
  height: 100vh;
  padding-bottom: 5rem;
}

.hbmenu-menu h3 {
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #fff;
}

.hbmenu-list-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hbmenu-list-container a {
  color: #fff;
  transition: 0.5s;
}

.hbmenu-list-container a:hover {
  color: #00ffd7;
}

.hbmenu-list1,
.hbmenu-list2 {
  flex: 1;
}

.hbmenu-menu img {
  width: 9.4rem;
  margin-top: 0.7rem;
}

#nav-menu.show {
  max-height: 600px;
  /* 適宜調整可能 */
  padding: 16px;
}

#nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-menu li {
  padding: 10px 0;
  color: #fff;
}

.sl-logo {
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .anniversary h2 {
    font-size: 3.5rem;
  }

  .house-making-text h2 {
    font-size: 2.2rem;
  }

  .house-making-container {
    flex-direction: column;
    text-align: center;
  }

  .house-making-image-dummy {
    height: 250px;
    width: 100%;
    max-width: 400px;
    /* Limit width on tablet */
    margin-top: 2rem;
  }
}

/* スクロールダウン */
.scroll_down {
  position: absolute;
  width: 0%;
  height: 1vh;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  left: 2.5%;
  top: 47%;
}

.scroll_down:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 80%;
  background: linear-gradient(
    180deg,
    rgba(#3c3c3c, 0) 0,
    rgba(#3c3c3c, 0.8) 80%,
    rgba(#3c3c3c, 0.8) 100%
  );
}

.scroll_down p {
  display: inline-block;
  position: absolute;
  right: 0%;
  bottom: 0;
  left: 0%;
  z-index: 2;
  padding: 0rem 1rem 4.3rem;
  font-size: 0.6rem;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  line-height: 0.6;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  transition: 0.2s;
  overflow: hidden;
  margin: auto;
  color: #000;
}

.scroll_down p:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 57%;
  width: 1px;
  height: 4rem;
  background: #ddd;
}

.scroll_down p:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 57%;
  width: 1px;
  height: 4rem;
  background: #3c3c3c;
}

#type01 p:after {
  animation: sdl01 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes sdl01 {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* scroll object */
/* .cScroll {
	opacity: 1;
	transform: translateY(0);
	top: 12rem;
	left: -2rem;
	bottom: auto;
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.cScroll__text {
	writing-mode: vertical-rl;
	font-size: calc(10rem / 16);
	line-height: calc(19rem / 16);
}

.cScroll__bar {
	position: relative;
	width: 1px;
	height: 80px;
	background-color: #000;
}

.cScroll__bar_hexagon {
	position: absolute;
	top: 0;
	left: calc(50% - 5px);
	width: 10px;
	height: 9px;
	-webkit-clip-path: var(--hexagon);
	clip-path: var(--hexagon);
	background-color: #1a1311;
	opacity: 0;
	animation: scrollDown 3s var(--ease-in-out) infinite;
} */

/* 投稿アイテムの基本状態（最初は表示）*/
.post-item {
  display: block;
  /* または display: flex; などテーマに合わせてください */
  margin-bottom: 2em;
}

/* カテゴリーボタンのレイアウト */
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  align-items: center;
}

/* ボタンの基本スタイル */
.cat-button {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #f7f7f7;
  color: #333;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  min-width: 5em;
  text-align: center;
}

/* ボタンにカーソルを合わせたときのスタイル */
.cat-button:hover {
  background-color: #e0e0e0;
}

/* 選択中のボタンのスタイル */
.cat-button.active {
  background-color: #0073aa;
  /* WordPressの標準的な青色 */
  color: #fff;
  border-color: #0073aa;
}

.t-title a:hover {
  color: #3c3c3c;
}

.more {
  padding-right: 1.2rem;
}

.more a::after {
  content: url(../img/arrow01.svg);
  position: absolute;
  padding: 0.1rem 0 0 0.3rem;
  transition: 0.2s;
}

.more a:hover::after {
  content: url(../img/arrow02.svg);
  position: absolute;
  padding: 0.1rem 0 0 0.5rem;
}

.sl-achievements01 {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.sl-achievements01 img {
  width: 100%;
}

.sl-achievements02 {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.sl-achievements02 img {
  width: 100%;
  position: relative;
  left: -9rem;
}

/* 文字のフェードイン */
.fadein {
  opacity: 0;
  transform: translateY(50%);
  transition-property: transform, opacity;
  transition-duration: 1s;
  transition-delay: 0s;
}

.fadein.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* PC版 */
@media (min-width: 769px) {
  .container {
    width: 90%;
    max-width: 1440px;
    /* Adjusted max-width */
    margin: 0 auto;
  }

  .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
  }

  .br-sp {
    display: none;
  }

  .br-pc {
    display: block;
  }

  /* 展開時 */
  .hbmenu-menu {
    width: 35vw;
    margin: 3rem 8rem 0 auto;
  }

  .nav {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(../img/bg_hbmenu.webp) no-repeat center center;
    background-size: cover;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    z-index: 90;
    padding: 1rem 0;
    opacity: 0;
    pointer-events: none;
  }

  .hero {
    position: relative;
    background: url(../img/bg_hero.webp) no-repeat;
    background-size: 100% 51%;
    background-position: bottom;
    display: flex;
    text-align: left;
  }

  .hero-slideshow {
    text-align: right;
    margin-bottom: 6%;
    width: 86%;
    margin-left: auto;
    border-radius: 50px 0 0 50px;
    overflow: hidden;
  }

  .footer-btn {
    position: fixed;
    z-index: 100;
    display: flex;
    width: 438px;
    justify-content: space-between;
    right: 4rem;
    bottom: 4rem;
  }

  .footer-btn .contact-btn p {
    width: 210px;
    height: 40px;
    color: #fff;
    background-color: #1fbea5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    transition: 0.2s;
  }

  .footer-btn .contact-btn p:hover {
    background-color: #1f9a87;
  }

  .footer-btn .contact-btn p::before {
    content: "";
    display: inline-block;
    width: 23px;
    height: 17px;
    background-image: url(../img/icon_mail.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    padding-right: 30px;
  }

  .footer-btn .recruit-btn p {
    width: 210px;
    height: 40px;
    color: #fff;
    background-color: #1fbea5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    transition: 0.2s;
  }

  .footer-btn .recruit-btn p:hover {
    background-color: #1f9a87;
  }

  .footer-btn .recruit-btn p::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 20px;
    background-image: url(../img/icon_people.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    padding-right: 30px;
  }

  .footer-btn2 {
    position: fixed;
    z-index: 100;
    display: flex;
    width: 290px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background-color: #1fbea5;
    right: 4rem;
    bottom: 4rem;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    transition: 0.2s;
    color: #fff;
  }

  .footer-btn2:hover {
    background-color: #1f9a87;
  }

  .footer-btn2 p {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-btn2 p::before {
    content: "";
    display: inline-block;
    width: 23px;
    height: 17px;
    background-image: url(../img/icon_mail.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    padding-right: 30px;
  }

  .mynavi-btn {
    position: fixed;
    z-index: 100;
    width: 144px;
    height: 140px;
    top: 50%;
    right: 0;
    background-color: #00aaeb;
    border-radius: 14px 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }

  .mynavi-btn:hover {
    background-color: #0389bd;
  }

  .anniversary {
    padding: 0;
    text-align: center;
    position: relative;
    display: flex;
    background: url(../img/bg_anniversary.webp) no-repeat;
    background-size: cover;
    height: 57.5rem;
    overflow: hidden;
    margin-top: -1px;
    /* Full viewport width */
  }

  .sub-heading01::after {
    content: url(../img/house-making_point.svg);
    position: absolute;
    top: 2%;
    margin-left: 0.5rem;
  }

  .sub-heading02 {
    font-size: 1.4rem;
    position: relative;
    margin-bottom: 0.3rem;
    font-weight: 600;
  }

  .sub-heading02::after {
    content: url(../img/house-making_point.svg);
    position: absolute;
    top: 15%;
    margin-left: 0.5rem;
  }

  .sub-heading03 {
    font-size: 1.875rem;
    position: relative;
    margin-bottom: 0.3rem;
    font-weight: 600;
  }

  .sub-heading03::after {
    content: url(../img/house-making_point.svg);
    position: absolute;
    top: 15%;
    margin-left: 0.5rem;
  }

  .sub-heading04 {
    font-size: 1.4rem;
    position: relative;
    margin-bottom: 0.2rem;
    font-weight: 600;
  }

  .sub-heading04::after {
    content: url(../img/house-making_point.svg);
    position: absolute;
    top: 9%;
    margin-left: 0.5rem;
  }

  .sub-heading05 {
    font-size: 1.875rem;
    position: relative;
    margin-bottom: 0.3rem;
    font-weight: 600;
  }

  .sub-heading05::after {
    content: url(../img/house-making_point.svg);
    position: absolute;
    top: 10%;
    margin-left: 0.5rem;
  }

  .video-info h3 {
    font-size: 1.8rem;
    display: inline;
    /* プロモーション動画 */
  }

  .news-date {
    padding-right: 2.5rem;
    padding-bottom: 2rem;
    color: #afafaf;
    font-size: 0.9rem;
    min-width: 70px;
    /* For alignment */
    border-bottom: 1px solid #3c3c3c;
  }

  .group-photo-text {
    width: 28rem;
    height: 25.5rem;
    text-align: left;
    position: absolute;
    top: 13%;
    left: 61%;
  }
}

/* スマホ版 */

@media (max-width: 768px) {
  body {
    margin-bottom: 4rem;
  }

  body p {
    font-size: 0.875rem;
    text-align: justify;
  }

  main {
    margin-top: 4.9rem;
  }

  .br-sp {
    display: block;
  }

  .br-pc {
    display: none;
  }

  .indent2 {
    text-indent: 0;
    padding-left: 0;
  }

  #nav-menu .logo {
    margin-top: 0.1rem;
  }

  .logo a img {
    width: 16.25rem;
  }

  .header {
    padding: 0;
    width: 100%;
  }

  .container {
    width: calc(100% - 2.5rem);
    margin: 0 auto;
  }

  .breadcrumbs {
    margin-left: 0rem;
  }

  /* Hamburger Menu Styles */
  .hamburger {
    position: relative;
    z-index: 100;
    width: 30px;
    height: 70px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-right: 0.1rem;
  }

  .hamburger__line {
    position: absolute;
    width: 30px;
    height: 1px;
    background-color: #333;
    transition: all 0.4s;
  }

  .hamburger__line:nth-of-type(1) {
    top: 21px;
  }

  .hamburger__line:nth-of-type(2) {
    top: 29px;
  }

  .hamburger__line:nth-of-type(3) {
    top: 37px;
  }

  .hamburger_text {
    position: absolute;
    top: 36px;
    font-size: 12px;
  }

  /* メニューオープン時 */
  .hamburger.active .hamburger__line:nth-of-type(1) {
    transform: translateY(7px) rotate(-45deg);
    background-color: #fff;
  }

  .hamburger.active .hamburger__line:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
    background-color: #fff;
  }

  .hamburger.active .hamburger_text {
    color: #fff;
  }

  .hamburger_text {
    position: absolute;
    top: 36px;
  }

  .nav {
    background: url(../img/bg_hbmenu_sp.webp) no-repeat;
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    z-index: 90;
    padding: 1rem 0;
    opacity: 0;
    pointer-events: none;
  }

  .hbmenu-menu h3 {
    font-size: 1rem;
  }

  .hbmenu-menu img {
    width: 8.3rem;
    margin-top: 0.4rem;
  }

  .hero {
    position: relative;
    background: url(../img/bg_hero_sp.webp) no-repeat;
    background-size: 100% 53%;
    background-position: bottom;
    display: flex;
    text-align: left;
    padding-top: 0.6rem;
  }

  .hero-slideshow {
    text-align: right;
    margin-bottom: 2.25rem;
    width: 90%;
    margin-left: auto;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
  }

  .hero-content {
    top: 3.3rem;
    right: 0;
  }

  .scroll_down {
    left: 0%;
  }

  .scroll_down p:before {
    bottom: 1rem;
    height: 3rem;
  }

  .scroll_down p:after {
    bottom: 1rem;
    height: 3rem;
  }

  .sp_br {
    display: block;
  }

  .header-container {
    display: flex;
    align-items: center;
  }

  .hbmenu-menu {
    width: 11.5rem;
    font-size: 0.8rem;
    position: absolute;
    right: 1.5rem;
    top: 5.25rem;
  }

  .hbmenu-list-container {
    display: block;
    line-height: 1rem;
  }

  .global-nav {
    display: none;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    position: fixed;
    align-items: flex-end;
    gap: 1rem;
    z-index: 1000;
    left: 0;
  }

  .footer-btn {
    position: fixed;
    z-index: 100;
    display: flex;
    width: 274px;
    justify-content: space-between;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  .footer-btn .contact-btn p {
    width: 137px;
    height: 45px;
    color: #fff;
    background-color: #1fbea5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px 0 0 0;
    transition: 0.2s;
    border-right: 1px #fff solid;
  }

  .footer-btn .contact-btn p:hover {
    background-color: #1f9a87;
  }

  .footer-btn .contact-btn p::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 13px;
    background-image: url(../img/icon_mail.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    padding-right: 20px;
  }

  .footer-btn .recruit-btn p {
    width: 137px;
    height: 45px;
    color: #fff;
    background-color: #1fbea5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0 20px 0 0;
    transition: 0.2s;
  }

  .footer-btn .recruit-btn p:hover {
    background-color: #1f9a87;
  }

  .footer-btn .recruit-btn p::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 19px;
    background-image: url(../img/icon_people.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    padding-right: 20px;
  }

  .footer-btn2 {
    position: fixed;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  .footer-btn2 p {
    width: 208px;
    height: 45px;
    color: #fff;
    background-color: #1fbea5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px 20px 0 0;
    transition: 0.2s;
  }

  .footer-btn2:hover {
    background-color: #1f9a87;
  }

  .footer-btn2 p::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 13px;
    background-image: url(../img/icon_mail.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    padding-right: 20px;
  }

  .footer-logo-link {
    display: flex;
    justify-content: space-between;
  }

  .ecoaction {
    width: 2.5rem;
  }

  .mynavi-btn {
    position: fixed;
    z-index: 100;
    width: 105px;
    height: 103px;
    top: 50%;
    right: 0;
    background-color: #00aaeb;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }

  .mynavi-btn img {
    width: 88px;
    height: 71px;
  }

  .mynavi-btn:hover {
    background-color: #0389bd;
  }

  .hero-actions .btn {
    width: 180px;
    margin: 0;
    padding: 0.5rem 0 0.5rem 0;
  }

  .hero-actions .btn-hero-contact {
    border-radius: 32px 0 0 0;
    margin-right: -4px;
    padding-left: 48px;
    border-right: 2px solid #fff;
    font-size: 12px;
  }

  .hero-actions .btn-hero-recruit {
    border-radius: 0 32px 0 0;
    padding-left: 24px;
    font-size: 12px;
  }

  .anniversary {
    height: 35.2rem;
    text-align: center;
    position: relative;
    display: flex;
    background: url(../img/bg_anniversary_sp.webp) no-repeat;
    background-size: cover;
    overflow: hidden;
    margin-top: -1px;
  }

  .anniversary-message {
    letter-spacing: 0.1em;
  }

  .anniversary-content {
    top: 9%;
  }

  .anniversary-content img {
    width: 6rem;
  }

  .anniversary h2 {
    font-size: 3rem;
  }

  .anniversary h3 {
    font-size: 1rem;
    line-height: 2.3;
  }

  .anniversary h3::before {
    content: "";
    position: relative;
    left: 50%;
    transform: translate(-50%);
    display: block;
    width: 0.875rem;
    border-bottom: #fff 2px solid;
    margin-bottom: 1rem;
  }

  .scroll-text {
    margin-top: -2rem;
    margin-bottom: -0.5rem;
  }

  .scroll-text ul {
    font-size: 4.37rem;
  }

  .house-making {
    background-size: auto;
    background-position-x: center;
  }

  .house-making-text {
    margin: 0 3%;
  }

  .sub-heading01 {
    font-size: 1.375rem;
  }

  .sub-heading01::after {
    content: "";
    display: inline-block;
    width: 1.625rem;
    height: 1.625rem;
    background: url(../img/house-making_point.svg) no-repeat;
    background-size: contain;
    margin-left: 0.4rem;
    position: absolute;
    top: 0.22rem;
  }

  .sub-heading02 {
    font-size: 1.375rem;
    text-align: left;
  }

  .sub-heading02::after {
    content: "";
    display: inline-block;
    width: 1.625rem;
    height: 1.625rem;
    background: url(../img/house-making_point.svg) no-repeat;
    background-size: contain;
    margin-left: 0.4rem;
    position: relative;
    top: 0.22rem;
  }

  .sub-heading03 {
    font-size: 1.375rem;
    text-align: left;
  }

  .sub-heading03::after {
    content: "";
    display: inline-block;
    width: 1.625rem;
    height: 1.625rem;
    background: url(../img/house-making_point.svg) no-repeat;
    background-size: contain;
    margin-left: 0.4rem;
    position: relative;
    top: 0.31rem;
  }

  .sub-heading05 {
    font-size: 1.375rem;
    text-align: left;
  }

  .sub-heading05::after {
    content: "";
    display: inline-block;
    width: 1.625rem;
    height: 1.625rem;
    background: url(../img/house-making_point.svg) no-repeat;
    background-size: contain;
    margin-left: 0.4rem;
    position: relative;
    top: 0.31rem;
  }

  .t-title {
    margin-bottom: 0.2rem;
  }

  .t-title h3 {
    display: inline;
  }

  .video-info {
    width: 95%;
    margin: 0 auto;
  }

  .video-info video {
    filter: drop-shadow(0.5rem 0.5rem 0 #a6ebde);
    margin-bottom: 0.4rem;
    margin-top: 0.8rem;
  }

  .house-making {
    padding: 1rem 0 2rem;
  }

  .house-making-text .description {
    font-size: 0.875rem;
    line-height: 2.1;
  }

  .company-link {
    height: 12.19rem;
  }

  .company-link img {
    height: 4.375rem;
  }

  .company-overview::after {
    background: url(../img/bg_company_overview_sp.webp) no-repeat;
    background-size: cover;
  }

  .company-recruit::after {
    background: url(../img/bg_company_recruit_sp.webp) no-repeat;
    background-size: cover;
  }

  .promotion-video {
    padding: 2rem 0;
  }

  .news {
    padding: 0;
    margin-bottom: 2.5rem;
    width: 95%;
  }

  .news h2 {
    font-size: 1.375rem;
  }

  .news-list {
    width: 100%;
    margin: 0 auto 0.8rem auto;
  }

  .news-list dl {
    display: block;
    padding: 0;
  }

  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .news-date {
    padding-top: 0.8rem;
    padding-bottom: 0.2rem;
    color: #afafaf;
    font-size: 0.9rem;
  }

  .news-category {
    padding-bottom: 1.3rem;
    min-width: 4.5rem;
    font-size: 0.81rem;
  }

  .news-category span {
    margin-right: 0.5rem;
  }

  .news-line dd {
    padding-bottom: 0;
  }

  .achievements {
    background: url(../img/bg_page.webp) repeat-y;
    background-size: auto;
    background-position-x: center;
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
  }

  .achievements-container {
    flex-direction: column;
  }

  .achievements-img {
    width: 92%;
    margin-left: 0;
    margin-bottom: 0.5rem;
  }

  .achievements-img img {
    width: 100%;
    border-radius: 0px 20px 20px 0px;
  }

  .achievements-text {
    line-height: 2;
    flex: 1;
    max-width: 85%;
    margin: 0 auto;
  }

  .achievements-text .t-title {
    margin-bottom: -0.3rem;
  }

  .achievements-description {
    margin-top: 0.6rem;
  }

  .group-photo {
    background: url(../img/bg_groupphoto_sp.webp) no-repeat;
    background-size: 100% auto;
    height: 15rem;
    padding: 0;
  }

  .group-photo-text {
    width: 14.375rem;
    margin: 0 auto;
    height: 12.125rem;
    padding-top: 1.5rem;
  }

  p.btn {
    font-size: 1rem;
  }

  p.btn2 {
    font-size: 1rem;
  }

  p.btn3 {
    font-size: 0.81rem;
  }

  .group-text1 {
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
  }

  .group-text2 {
    font-size: 2.5vw;
  }

  .btn-group-photo {
    width: 230px;
    height: 54px;
    border-radius: 27px;
    bottom: 1.5rem;
  }

  .btn-group-photo2 {
    width: 230px;
    height: 54px;
    border-radius: 27px;
    position: static;
    margin-top: 0.8rem;
  }

  .company-info-links-container {
    flex-direction: column;
    align-items: center;
  }

  .related-links {
    margin-bottom: 1.5rem;
  }

  .footer {
    padding: 0;
  }

  .footer-content {
    padding: 1.8rem 2rem 0 2rem;
    flex-direction: column;
    text-align: left;
  }

  .footer-company p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .footer-company-logo a img {
    width: 16.37rem;
  }

  .company-address-logo {
    flex-direction: column;
    text-align: center;
  }

  .footer-company-logo img {
    width: 100%;
  }

  .copyright {
    margin: 0 auto;
  }

  .copyright p {
    padding-top: 0;
  }

  .mt5 {
    margin-top: -1.5rem !important;
  }

  .mb1 {
    margin-bottom: 0.3rem;
  }

  .mb11 {
    margin-bottom: 1.5rem;
  }

  .mb2 {
    margin-bottom: 2rem;
  }

  .mb6 {
    margin-bottom: 0;
  }

  .mb8 {
    margin-bottom: 6vw;
  }

  .mb9 p {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1170px) {
  .footer-navmenu {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .achievements-container {
    display: block;
  }

  .achievements-text {
    margin-left: 5rem;
  }
}

.slick-slider {
  margin: 0;
  padding: 0;
}

.slick-slider img {
  width: 100%;
  height: 100%;
}

.sl-top {
  background-color: #fff;
}
