@charset "UTF-8"; 
/* ===================================
   Reset & Base
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    font-weight: 700;
    color: #585858;
    background-color: #f1ede7;
    display: block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   nav
=================================== */
.home__btn {
  width: 6vw;
  position: fixed;
  left: 4%;
  top: 4%;
  z-index: 9999;
}
.nav__btn {
  width: 3vw;
  position: fixed;
  right: 4%;
  top: 5%;
  z-index: 10000;
  pointer-events: auto;
  transform: rotate(0deg);
  transition: opacity .6s ease, transform .6s cubic-bezier(.25,.8,.25,1);
}
/* nav が開いたら回転 */
.nav__btn.is-rotate {
  transform: rotate(180deg);
}

.nav__btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav {
  opacity: 0;
  visibility: hidden;      /* ← 非表示管理はこっちが安全 */
  pointer-events: none;    /* ← クリックさせないのは初期だけ */
  display: flex;
  transition: opacity .6s cubic-bezier(.25,.8,.25,1),
              visibility .6s cubic-bezier(.25,.8,.25,1);
  position: fixed;
  width: 100%;
  height: 100vh;
  gap: 10vw;
  justify-content: flex-end;
  align-items: center;
  background: rgba(241, 237, 231, 0.90);
  z-index: 9999;
}

.nav.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__title p {
  font-size: 5rem;
  font-weight: 500;
  line-height: 2.5vw;
}
.nav__list {
  display: flex;
  height: 100vh;
  padding: 2.6vw 5vw;
  flex-direction: column;
  gap: 1vw;
  justify-content: center;
  position: relative;
}

.nav__item {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 1vw 4vw;
}
.nav__item-home {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  padding: 1vw 4vw;
}
.nav__text {
  font-size: 2rem;
  white-space: nowrap;
}
.nav__line {
  width: 12vw;
  fill: #585858;
}
.nav__line svg {
  width: 100%;
  height: auto;
}
/* 線 */
.nav__line .line {
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}
/* 丸は固定（何もしない） */
.nav__line .dot {
  transform: unset;
}
/* ホバー時 */
.nav__item.is-open .nav__line .line {
  transform: scaleX(0);
}
/* ===== アコーディオン ===== */
.nav__item a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
   max-height 0.5s ease,
   opacity 0.3s ease,
   transform 0.3s ease;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 2.5vw;
  z-index: 4;
}

.nav__item a:hover {
  transition: ease-in-out .3s;
  color: #d6863c;
}

/* 展開時 */
.nav__item.is-open a {
  max-height: 5vw; /* 行数に応じて調整 */
  opacity: 1;
  transform: translateY(0);
}

.nav__item-home {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 1vw 4vw;
}

.nav__text-home {
  font-size: 2rem;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.nav__text-home a:hover {
  transition: ease-in-out .3s;
  color: #d6863c;
}

/* ===================================
Contact Section
=================================== */
.contact {
  display: flex;
  padding: 2vw 7vw;
  width: 100%;
  background-color: #edd61c;
  z-index: 1;
}

.contact__box {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.7vw;
}

.contact__title img {
  width: 30vw;
}

.contact__text-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw 5vw 0 5vw;
}

.contact__text {
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 20px;
}

.contact__link {
  position: relative;
  font-size: 1.5rem;
  line-height: 35px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}
.contact__link:hover {
  transform: translateY(-2px);
}

/* 下線（擬似要素で制御） */
.contact__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2em;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
}

/* 矢印 */
.contact__link .arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
}

/* hover */
.contact__link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.contact__link:hover .arrow {
  transform: translateX(8px);
}

/* ===================================
Footer
=================================== */
.footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 3vw 0;
  z-index: 1;
  position: relative;
}

.footer__section {
  display: flex;
  padding: 1vw 0vw;
  justify-content: center;
}

.footer__list {
  display: flex;
  gap: 4vw;
}

.footer__item {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  padding: 1vw 2vw;
}

.footer__item-title {
  font-weight: 700;
  font-size: 2.5rem;
}

.footer__item-links {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.footer__link {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.25s ease,
  transform 0.25s cubic-bezier(.25,.8,.25,1),
  text-shadow 0.25s ease;
}
.footer__link:hover {
  color: #b9cf3b;
  transform: translateY(-3px);
  text-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.footer__link:hover::after {
  transform: scaleX(1);
}
.footer__link:active {
  transform: translateY(-1px);
}
.footer__link:focus-visible {
  outline: none;
  color: #b9cf3b;
  text-decoration: underline;
}

/* ===================================
Copyright
=================================== */
.copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 3vw;
  z-index: 1;
}
/* ===================================
Navigation Buttons
=================================== */
.topbtn {
  position: absolute;
  right: 4%;
  bottom: 3%;
  z-index: 1;
  width: 3vw;
  height: 3vw;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.topbtn svg {
  width: 100%;
  height: 100%;
  animation: topbtn-bounce 2.4s infinite;
  transform-origin: center;
  animation-delay: 0.6s;
}
@keyframes topbtn-bounce {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(-8px); }
  30%  { transform: translateY(0); }
  45%  { transform: translateY(-4px); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

.topbtn:hover svg {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.05);
  transition: transform 0.25s cubic-bezier(.25,.8,.25,1);
}
.topbtn:active svg {
  transform: translateY(-2px) scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .topbtn svg {
    animation: none;
  }
}

::selection {
  background: #C6D61A; /* ← 好きな色に変更OK */
  color: #585858;         /* 選択された文字色 */
}

/* Safari対応 */
::-moz-selection {
  background: #C6D61A;
  color: #585858;  
}
/* ======================================================================
   RESPONSIVE（1024px TABLET）
====================================================================== */
@media (max-width: 1024px) {
  .home__btn {
    width: 10vw;
  }
/* ===================================
nav
=================================== */
  .nav {
    justify-content: center;
  }
  .nav__list {
    gap: 6vw;
  }
  .nav__line {
    width: 25vw;
    right: -1%;
  }
  .nav__text {
    font-size: 3rem;
  }
  .nav__item a {
    font-size: 1.8rem;
    line-height: 5vw;
  }
  .nav__btn {
    width: 6vw;
  }
/* ===================================
footer
=================================== */
  .footer__list {
    gap: 3vw;
    padding: 0px 6vw;
  }
  .footer__item-title {
    font-size: 1.8rem;
  }
  .footer__link {
    font-size: 1.3rem;
  }
}
/* ======================================================================
   RESPONSIVE（810px SP）
====================================================================== */
@media (max-width: 769px) {
/* ===================================
nav
=================================== */
  .nav__btn {
    width: 6vw;
  }
  .home__btn {
    width: 12vw;
  }
  .nav__title p {
    font-size: 3rem;
    writing-mode: vertical-lr;
  }
  .nav__list {
    justify-content: center;
  }
  .nav__list {
    gap: 6vw;
  }
  .nav__line {
    width: 40vw;
    right: 0%;
  }
  .nav__text {
    font-size: 1.8rem;
  }
  .nav__item a {
    font-size: 1.2rem;
  }

/* ===================================
contact
=================================== */
  .contact {
    padding: 3vw 2vw;
  }
  .contact__box {
    flex-direction: column;
    gap: 5vw;
  }
  .contact__title img {
    width: 50vw;
  }
  .contact__text {
    font-size: 1.2rem;
  }
  .contact__text br {
    display: none;
  }
  .contact__link {
    font-size: 1.3rem;
    line-height: 30px;
  }
  .contact__link::after {
    height: 1.6px;
  }
  .contact__text-container {
    flex-direction: column;
  }
/* ===================================
footer
=================================== */
  .footer__section {
    display: flex;
    padding: 1vw 0vw;
    justify-content: flex-start;
  }
  .footer__list {
    flex-direction: column;
    gap: 5vw;
  }
  .footer__item-title {
    font-size: 1.4rem;
  }
  .footer__link {
    font-size: 1.2rem;
  }
}