:root {
  --orange-color: #FF914D;
  --accent-color: #B16536;
  --gray-text: #8F8F8F;
  --yellow-color: #FDE37C;
  --gray-background: #F7F7F7
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.head-img {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.catchcopy {
  font-size: 5rem;
  line-height: 5rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  margin: 0;
  text-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 1);
  position: absolute;
  top: 10px;
  right: 0;
  left: 0;
}

h2 {
  text-align: center;
  margin: 0;
}

header {
  padding: 1rem;
  padding-top: 3.6rem;
}

.nav-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-left: 16rem;
  display: flex;
  gap: 2rem;
  text-align: center;
}

nav ul {
  list-style-type: none; 
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li a {
  color: var(--gray-text);
  font-weight: bold;
  text-decoration: none;
  transition: text-decoration 0.3s;
  color: black;
}

nav ul li a.home-menu {
  font-size: 1.87rem;
  line-height: 2.6rem;
}

nav ul li a.sub-menu {
  font-size: 1.5rem;
  line-height: 1.5rem;
}

nav ul li a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-color: var(--orange-color);
}

nav ul li {
  transition: transform 0.3s ease;
}

nav ul li:hover {
  transform: scale(1.1);
}

.box {
  width: 1200px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.normal-button {
  background-color: var(--orange-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.875rem;
  font-weight: bold;
  width: 17.5rem;
  text-align: center;
  height: 6.25rem;
  text-decoration: none;
  line-height: 6.25rem;
  transition: background-color 0.3s;
  border-radius: 5rem;
  border-bottom: 6px solid var(--accent-color);
}

.send-button {
  display: flex;
  background-color: var(--orange-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.875rem;
  font-weight: bold;
  width: 17.5rem;
  text-align: center;
  height: 4.375rem;
  text-decoration: none;
  line-height: 4.375rem;
  transition: background-color 0.3s;
  border-radius: 5rem;
  border-bottom: 6px solid var(--accent-color);
}

.send-button:hover, .info-button:hover, .normal-button:hover {
  background-color: var(--accent-color);
}

.mail-button:hover {
  background-color: #DF3A39;
}

.line-button:hover {
  background-color: #00BF63;
}

.point {
  background-color: var(--orange-color);
  padding: 0.5rem 0rem;
  text-align: center;
  line-height: 2.75rem;
  font-size: 1.87rem;
  border-radius: 5rem;
  color: white;
  font-weight: bold;
  text-align: center;
  min-width: 200px;
}

.sub-title1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: -1.12rem;
  text-shadow: 0px 0.25rem 0px #FFFFFF;
}

.title {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0px 0.25rem 0px #FFFFFF;
}

.text {
  font-size: 1.6rem;
}

.present-text {
  font-size: 2.125rem;
  line-height: 3rem;
}

.radius-img {
  box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  object-fit: cover;
}

.sub-title2 {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0px 0.25rem 0px #FFFFFF;
}

.text-orange-color {
  color: var(--orange-color); 
}

.text {
  font-size: 1.5rem;
  line-height: 3rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  grid-template-rows: repeat(2, auto);  /* 2 rows */
  gap: 10px; /* Add spacing between grid items */
}
.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

.icon {
  width: 6rem;
  height: 5rem;
}

.yellow {
  background-color: var(--yellow-color);
}

.gray {
  background-color: var(--gray-background);
}

.title-underline {
  text-decoration: underline;
  text-decoration-thickness: 1.25rem;
  text-underline-offset: -0.5rem;
  text-decoration-color: var(--yellow-color);
}

.small-text {
  font-size: 1.2rem;
  line-height: 2.2rem;
}

.present {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFE38E20;
}

.present::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-image: url("../images/Rectangle23.png");
  background-repeat: no-repeat;
  background-size: cover;
  /* opacity: 0.2; Set image opacity */
  z-index: -1; Place it behind the content
}

.mail-button {
  background-color: #FF5757;
  color: white;
  text-align: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: bold;
  transition: background-color 0.3s;
  border-radius: 5rem;
  border-bottom: 6px solid #DF3A39;
  width: 36rem;
}

.line-button {
  background-color: #7ED957;
  color: white;
  padding: 1rem 2rem;
  border: none;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: bold;
  transition: background-color 0.3s;
  border-radius: 5rem;
  border-bottom: 6px solid #00BF63;
  width: 36rem;
}

.info-button {
  background-color: var(--orange-color);
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: bold;
  transition: background-color 0.3s;
  border-radius: 5rem;
  border-bottom: 6px solid var(--accent-color);
  width: 18rem;
}

.lease-text {
  text-shadow: 0.5rem 0.5rem 0px #FFFFFF;
  font-size: 6rem;
  line-height: 7rem;
  font-weight: bold;
}

button {
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.features {
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url("../images/bg3.png");
  background-size: cover;
  background-repeat: repeat-y;
}

.flex-image {
  width: 50%
}

table {
  background-color: var(--gray-background);
  border-collapse: separate; /* Allows border spacing */
  border-spacing: 0; /* Prevents gaps by default */
  width: 100%;
}
th {
  background-color: var(--yellow-color); /* Header background color */
  border: 1px solid white; /* Table divider color */
  padding: 8px;
}
td {
  border: 1px solid white; /* Table divider color */
  text-align: center;
  padding: 8px;
}
th:nth-child(2) {
  background-color: var(--orange-color); /* 2nd column header background */
  position: relative; /* Needed for offset */
  z-index: 1; /* Keeps elevation effect visible */
}

th:nth-child(2) {
  background-color: var(--orange-color);
  border-left: 3px solid var(--orange-color);
  border-right: 3px solid var(--orange-color);
  transform: scaleY(1.02);
  transform-origin: bottom center;
  /* position: relative */
  /* top: -4px; */
  /* z-index: 1; */
}

td:nth-child(2) {
  border-left: 3px solid var(--orange-color);
  border-right: 3px solid var(--orange-color);
  /* transform: scale(1.2); */
  /* position: relative */
  /* top: -4px; */
  /* z-index: 1; */
}

tr:nth-child(4) td:nth-child(2) {
  border-bottom: 3px solid var(--orange-color);
}

td, th {
  height: 7rem;
}

.border-background-gray {
  border: 1px solid var(--gray-text);
  background-color: var(--gray-background);
}

.dashed-border {
  width: 100%;
  border: 1px dashed var(--gray-text);
}

.checkbox {
  /* display: inline-flex; */
  align-items: center;
  cursor: pointer;
  display: flex;
}

.checkbox .icon {
  width: 1.5rem; /* Adjust size */
  height: 1.5rem;
  margin-right: 0.5rem;
  background: url('../images/check-off.svg') no-repeat center / contain;
  display: inline-block;
  transition: background 0.3s ease;
}

p.checkbox {
  margin-top: 0;
  margin-bottom: 0
}

.checkbox input:checked + .icon {
  background: url('../images/check-on.svg') no-repeat center / contain;
}

.faq-item {
  width: 100%;
  margin: 0.8rem 0;
}

.faq-question {
  background: #EBECF0;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.5rem 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq-answer {
  background: white;
  text-align: left;
  padding: 2rem 3rem 5rem;
}

.yellow-circle {
  width: 300px;
  height: 300px;
  border: 10px solid #FEC30F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ED {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.tooltip {
  /* triangle dimension */
  --b: 1em; /* control the base */
  --h: .7em; /* control the height */

  padding: 1em;
  border-radius: 1.2em;
  border-bottom-right-radius: 0;
  clip-path: polygon(100% 0,0 0,0 100%,
    calc(100% - var(--b)) 100%,
    calc(100% + var(--h)) calc(100% + var(--h)),
    100% calc(100% - var(--b)));
  background: var(--gray-background);
  border-image: conic-gradient(var(--gray-background) 0 0) 0 999 999 0/
    0 calc(var(--h) + var(--b)) calc(var(--h) + var(--b)) 0/0 var(--h) var(--h) 0;
}

.step {
  font-size: 2rem;
  flex-shrink: 1;
  padding: 0.5rem 2rem;
  font-weight: bold;
  color: white;
  width: fit-content;
  background-color: #FFD75E;
}

/* Default state for the side menu - hidden */
.side-menu {
  position: fixed;
  top: 0;
  right: -250px; /* Hidden off-screen */
  width: 250px;
  height: 100%;
  padding-top: 2rem;
  background-color: var(--orange-color);
  color: white;
  transition: right 0.3s ease;
  z-index: 100;
}

.side-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.side-menu ul li {
  padding: 1rem;
  text-align: center;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

/* Button to toggle the menu */
.menu-toggle {
  cursor: pointer;
  position: fixed;
  top: 3rem;
  right: 1rem;
  width: 54px;
  height: 54px;
  z-index: 90;
}


/* When the menu is open, slide it in */
.side-menu.open {
  right: 0;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Initially hidden */
  width: 50px;
  height: 50px;
  background-color: var(--orange-color);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: #0056b3;
}

/* PC用のスタイル */
.pc-only {
  display: block;
}
.mobile-only {
  display: none;
}

@media (max-width: 1655px) {
  .nav-list {
    margin-left: 0;
  }
  .yellow-circle {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 1248px) {
  .yellow-circle {
    width: 200px;
    height: 200px;
  }
  .catchcopy {
    font-size: 4rem;
    line-height: 4rem;
    position: relative;
    color: black;
    text-shadow: unset;
  }
}

@media (max-width: 1200px) {
  .box {
    width: auto;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 10px;
  }
  td, th {
    height: 10rem;
  }
  
  .point {
    min-width: 120px;
  }
  .menu-toggle {
    display: block;
  }
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }
  .flex-image {
    width: 100%;
  }
  .ED {
    width: 150px;
    height: 150px;
  }
  /* スマホ用のスタイル */
  .pc-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

@media (max-width: 590px) {
  .menu-toggle {
    width: 4rem;
    height: 4rem;
  }
  .lease-text {
    font-size: 4rem;
    line-height: 5rem;
  }  
}

@media (max-width: 480px) {
  .mail-button {
    width: 18rem;
  }
  .line-button {
    width: 18rem;
  }
  html {
    font-size: 8px;
  }
}

@media (max-width: 375px) {
  .point {
    min-width: 100px;
  }
}
