@charset "utf-8";
/*==================
common
==================*/
:root {
  --primary-brown: #4E342E;
  --primary-beige: #FFF9E1;
  --primary-green: #B4D373;
  --primary-red:#FF5252;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Inria Sans", "Noto Sans JP", sans-serif;
  font-style: normal;
  color: var(--primary-brown);
  background-color: var(--primary-beige);
  line-height: 1.7;
}

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

/* ==================
Header
================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 60px 80px;
  z-index: 100;
  box-sizing: border-box;
}

.header__nav {
  position: relative;
}

/* ロゴ：左 */
.header__logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* 中央メニュー：画面ど真ん中 */
.header__list {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  list-style: none;
  display: flex;
  gap: 40px;
  font-size: 3rem;
  margin: 0 auto;
  padding: 0;
}

/* CONTACT：右 */
.btn-contact {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  font-size: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.hamburger-morph, .nav-morph { 
  display: none; 
}

@media (max-width: 768px) {
  /* PC用メニューを隠す */
  .header__list, .btn-contact { 
    display: none; 
  }

  .header {
    position: absolute;
  }

  .top__logo {
    width: 15%;
  }

  .hamburger-morph {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .hamburger-morph__icon {
    width: 100%;
    height: 100%;
  }

  .hamburger-morph__line {
    fill: none;
    stroke: var(--primary-brown);
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hamburger-morph__line:nth-child(1) {
    stroke-dasharray: 60 207;
  }

  .hamburger-morph__line:nth-child(2) {
    stroke-dasharray: 60 60;
  }

  .hamburger-morph__line:nth-child(3) {
    stroke-dasharray: 60 207;
  }

  .hamburger-morph.active .hamburger-morph__line:nth-child(1) {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
  }

  .hamburger-morph.active .hamburger-morph__line:nth-child(2) {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
  }

  .hamburger-morph.active .hamburger-morph__line:nth-child(3) {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
  }

  .nav-morph {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 249, 225, 0.98);
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
  }

  .nav-morph.active {
    clip-path: circle(150% at calc(100% - 44px) 44px);
  }

  .nav-morph__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .nav-morph__list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  .nav-morph__item .nav-morph__contact {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-morph.active .nav-morph__item .nav-morph__contact {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-morph.active .nav-morph__item:nth-child(1) { transition-delay: 0.3s; }
  .nav-morph.active .nav-morph__item:nth-child(2) { transition-delay: 0.4s; }
  .nav-morph.active .nav-morph__item:nth-child(3) { transition-delay: 0.5s; }
  .nav-morph.active .nav-morph__contact { transition-delay: 0.6s; }

  .nav-morph__link {
    position: relative;
    display: inline-block;
    padding: 15px 0;
    font-size: 13.7px;
    text-decoration: none;
    overflow: hidden;
  }

  .nav-morph__text {
    display: block;
    transition: transform 0.3s ease;
  }

  .nav-morph__contact {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    
    background-color: #FFD700; /* 黄色 */
    color: var(--primary-brown);
    text-decoration: none;
    
    border-radius: 50px;
    position: relative;  
    box-shadow: 0 5px 0 #ccae00; /* 下方向に少し濃い黄色の影を出す */
    transition: all 0.2s;
    margin: 30px auto;     
    padding: 5px 30px;
  }

  .btn_nav-contact {
    width: 10px;
    height: 10px;
    background-color: var(--primary-brown);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transform: translateY(1px);
  }

  .btn_nav-contact::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 2px 0 2px 4px; /* 少し小さめに調整 */
    border-color: transparent transparent transparent #FFD700;
  }
}

/*==================
hero
==================*/
.hero {
  position: relative;
  overflow: hidden;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero__title {
  font-size: 22rem;
  color: #FFD700;
  font-family: "Pacifico", sans-serif;
  position: relative; 
}

.hero__title::before {
  content: attr(data-text); /* HTMLのdata-textの中身を表示 */
  position: absolute;
  top: 0;
  z-index: -1;
  -webkit-text-stroke: 25px var(--primary-brown); 
  stroke-linejoin: round; 
  text-shadow: 25px 25px 0 #4F651A;
}

.hero__subtitle {
  font-size: 3rem;
  position: absolute;
  top: 75%;
  left: 75%;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
  color: var(--primary-brown);
}

.hero__under {
  font-size: 11.4rem;
  position: absolute;
  left: 0;
  bottom: -0.4em;
  width: 100%;
  text-align: center;
  z-index: 5;
  color: var(--primary-beige);
  font-family: "Inria Sans", sans-serif;
  font-style: italic;
  white-space: nowrap; 
  overflow: hidden;
  pointer-events: none;
}

.hero__under-inner {
  display: flex;
  width: fit-content; /* 中身の幅に合わせる */
  animation: hero-marquee 20s linear infinite;
}

.hero__under-inner span {
  display: inline-block;
  padding-right: 0; /* 文字の繋ぎ目の余白 */
}

@keyframes hero-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero__inner {
  position: relative;
  width: 97%;
  margin: 0 auto;
  height: auto;
  background-color: var(--primary-green);
  
  /* マスク画像の設定 */
  -webkit-mask-image: url('../images/mainFrame.png');
  mask-image: url('../images/mainFrame.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  margin-top: 20px;
  
  overflow: hidden;
  z-index: 0;
}

.hero__deco-contact{
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

/* 左下の茶色の円 */
.hero__deco-circle {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 30vw;
  height: 30vw;
  background-color: var(--primary-brown);
  border-radius: 50%;
  z-index: 1;
}

/* 外側の線だけの円 */
.hero__deco-circle::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  border: 3px solid var(--primary-brown);
  border-radius: 50%;
  z-index: -1;
}

.hero__deco-contact_sp {
  display: none;
}

@media (max-width: 768px) {
  /* 1. logoとハンバーガーメニューを一列に左右に配置 */
  .header {
    padding: 20px; /* 余白をスッキリさせる */
  }

  .header__logo {
    position: static; /* PC版の絶対配置を解除 */
    transform: none;
  }

  .hero__inner {
    height: 700px;
    background: var(--primary-green);
    margin-top: 0;
    width: 100%;
    -webkit-mask-image: url('../images/mainFrame_sp.png');
    mask-image: url('../images/mainFrame_sp.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    overflow: hidden;
    z-index: 0;
  }
  
  .hero__title {
    font-size: 6.4rem;
    margin-top: 280px;
  }

  .hero__subtitle {
    font-size: 1.0rem;
  }

  .hero__title::before {
    -webkit-text-stroke: 10px var(--primary-brown); /* 縁取りを細く */
    text-shadow: 8px 8px 0 #4F651A; /* 影の距離を短く */
  }

  .hero__under {
    bottom: -18px;
  }
  
  .hero__under-inner {
    font-size: 4.5rem;
  }

  .hero__deco-circle {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
  }

  .hero__inner {
    position: relative;
  }

  .hero__deco-contact {
    display: none;
  }

  .hero__deco-contact_sp {
    display: block;
    position: absolute;
    top: 0;
    right: 0; /* 右端に密着 */
    width: 130px;
    z-index: 10;
  }
}

/*==================
works
==================*/
.section-title {
  font-size: 3.8rem;
  letter-spacing: 0.3em;
  font-weight: bold;
  text-align: center;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC時は2列 */
  gap: 150px 50px; /* カード間の余白 */
  padding-bottom: 100px;
}

.works {
  padding: 80px;
}

.works__item {
  margin-top: 62px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.works__img {
  width: 85%;
  position: relative;
  z-index: 1;
}

.works__img img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  border: 6px solid var(--primary-brown);
  display: block;
}

.works__number {
  position: absolute;
  bottom: -15%;
  right: -5%;
  font-size: 12rem;
  font-family: "Inria Sans", sans-serif;
  font-style: italic;
  font-weight: bold;
  color: var(--primary-brown); 
  z-index: 2;
}

.works__number::before {
  content: attr(data-text); /* HTMLのdata-textの中身を表示 */
  position: absolute;
  top: 0;
  z-index: -1;
  -webkit-text-stroke: 75px #F9F1DA; 
  stroke-linejoin: round;
}

.works__info {
  position: absolute;
  bottom: -120px;
  right: 0;
  width: 90%; 
  border-radius: 40px;
  border: 3px solid var(--primary-brown);
  padding: 220px 30px 10px 40px;
  box-sizing: border-box;
  z-index: 0;
  background-color: #F9F1DA;
}

.works__tags {
  display: flex;
  gap: 30px;
  font-size: 1.7rem;
  line-height: 1;
  margin-top: 20px;
}

.works__name {
  font-size: 2.3rem;
  margin-top: 0;
  line-height: 1;
  font-weight: 400;
}

.works__names{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.works__link {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid var(--primary-brown);
}

.viewmore__btn {
  margin: 100px 0;
  display: flex;
  justify-content: center;
}

.viewmore__btn-text {
  display: inline-flex;
  align-items: center;
  gap: 72px;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  color: inherit;
  text-decoration: none;
}


/* モバイル表示への切り替え */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.4rem;
  }

  .works {
    padding: 40px 16px;
  }

  .works__item {
    margin-top: 40px;
  }

  .works__number {
    font-size: 6rem;
  }

  .works__number::before {
    -webkit-text-stroke: 27px #F9F1DA;
  }

  .works__names {
    display: flex;
    flex-direction: column; /* ← 縦にする */
    align-items: flex-start; 
  }

  .works__name {
    font-size: 1.5rem;
  }

  .works__tags {
    font-size: 0.95rem;
    gap: 12px;
  }

  .works__link {
    font-size: 0.75rem;
    align-self: flex-end;
  }

  .works__link img {
    width: 12px;
    height: auto;
  }

  .works__grid {
    grid-template-columns: 1fr; /* スマホ時は1列 */
  }

  .works__img {
    width: 90%;
    margin-bottom: -18px;
  }

  .works__img img {
    border-radius: 24px;
    border-width: 3px;
  }

  .works__info {
    width: 90%;
    padding: 80px 16px 20px;
    border-radius: 24px;
    border-width: 2px;
  }

  .works__item:nth-of-type(4) {
    display: none;
  }

  .viewmore__btn {
    margin: 80px 0;
  }

  .viewmore__btn-text {
    font-size: 1.2rem;
    gap: 15px;
  }

  .viewmore__btn-arrow {
    width: 18%;
  }
}

.marquee-grid {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-top: 4px solid var(--primary-brown);
  border-bottom: 4px solid var(--primary-brown);
  
  /* 格子模様（1pxの線を10px間隔で引く） */
  background-image: 
    linear-gradient(var(--primary-brown) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-brown) 1px, transparent 1px);
  background-size: 17px 17px; /* 格子の細かさ */
  margin-bottom: 100px;
}

.marquee__text {
  font-size: 22rem;
  font-weight: bold;
  font-family: "Inria Sans", sans-serif;
  font-style: italic;
  white-space: nowrap;
  letter-spacing: 0.05em;
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee__text {
    font-size: 11.1rem;
  }

  .marquee-grid {
    width: 100%;
    height: 110px;
  }
}

/* ==================
Profile
================== */
.profile__intro {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 52px;
}

.profile__text {
  width: 30%;
}

.profile__name {
  font-size: 4.6rem;
  margin-top: 0
}

.profile__detail {
  font-size: 1.9rem;
  line-height: 1.8;
}

/* 白いアーチ型のコンテナ */
.profile__container {
  margin: 0 auto;
  background-color: var(--primary-green);
  background-image: radial-gradient(rgba(79,101,26,0.1) 3px, transparent 2px);
  background-size: 15px 15px; /* ドットの間隔 */
  padding: 180px 0 100px;
  border-radius: 800px 800px 0 0;
  position: relative;
}

.deco__cherry {
  position: absolute;
  top: -40px;
  left: 100px;
  width: 22%;
  z-index: 5;
}

@media (max-width: 768px) {
  .profile__intro {
    flex-direction: column-reverse; /* 画像(下にある要素)を上にする */
    align-items: center;
    gap: 30px;
  }

  .profile__text {
    width: 80%;
    text-align: left;
  }

  .profile__name {
    font-size: 1.4rem;
  }

  .profile__detail {
    font-size: 1.2rem;
  }

  .profile__img {
    width: 45%;
  }

  .profile__container {
    border-radius: 200px 200px 0 0; /* SP用にアーチを少し緩める */
    background-image: radial-gradient(rgba(79,101,26,0.1) 1.5px, transparent 1px);
    background-size: 5px 5px; /* ドットの間隔 */
    padding-top: 100px;
  }

  .deco__cherry {
    width: 100px;
    left: 40px;
    top: -30px;
  }
}

/* ==================
Contact
================== */
.contact {
  padding: 8rem 0;
  text-align: center;
}

.contact__box {
  background-color: var(--primary-brown); /* 濃い茶色 */
  border-radius: 60px; /* 大きめの角丸 */
  padding: 60px 40px;
  text-align: center;
  color: #FFD700; /* デザインにある黄色の文字色 */
  margin: 0 auto;
  width: 80%;
}

.contact__text {
  font-size: 2.4rem;
  margin-bottom: 50px;
}

.contact-btn {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  
  background-color: #FFD700; /* 黄色 */
  color: var(--primary-brown);
  text-decoration: none;
  font-weight: bold;
  font-size: 2.4rem;
  
  padding: 20px 60px;
  border-radius: 50px;
  position: relative;
  
  /* 立体感を作る影（デザインの濃い影） */
  box-shadow: 0 8px 0 #ccae00; /* 下方向に少し濃い黄色の影を出す */
  transition: all 0.2s;
}

/* 3. ボタン内の茶色の丸アイコン（再生ボタン風） */
.btn-play {
  width: 32px;
  height: 32px;
  background-color: var(--primary-brown);
  border-radius: 50%;
  position: relative;
}

.btn-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #FFD700; /* 中は黄色い三角 */
}

@media (max-width: 768px) {
  .contact__box {
    width: 75%;
    padding: 24px;
    border-radius: 12.5px;
  }

  .contact__text {
    font-size: 0.8rem;
    margin-bottom: 24px;
  }

  .contact-btn {
    font-size: 1.2rem;
  }

  .contact-btn {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    
    background-color: #FFD700; /* 黄色 */
    color: var(--primary-brown);
    text-decoration: none;
    
    border-radius: 50px;
    position: relative;  
    box-shadow: 0 5px 0 #ccae00; /* 下方向に少し濃い黄色の影を出す */
    transition: all 0.2s;
    margin: 24px auto;     
    padding: 5px 30px;
  }

  .btn-play {
    width: 10px;
    height: 10px;
    background-color: var(--primary-brown);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transform: translateY(1px);
  }

  .btn-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 2px 0 2px 4px; /* 少し小さめに調整 */
    border-color: transparent transparent transparent #FFD700;
  }
}

/* ==================
Footer
================== */
.footer {
  padding: 80px 42px;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; 
  align-items: flex-start;
}

/* ロゴ部分 */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 4.5rem;
  font-weight: bold;
  margin: 0;
}

.footer__logo img {
  width: 60px;
  height: auto;
}

.copy {
  margin-top: 70px;
  font-size: 2rem;
  text-align: center;
}

/* ナビゲーション部分 */
.footer__list {
  display: flex;
  gap: 45px;
  list-style: none;
}

.footer__list a {
  text-decoration: none;
  color: inherit;
  font-size: 2.7rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 18px;
  }

  .footer__logo {
    font-size: 1.4rem;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .footer__logo img {
    width: 25%;
  }

  .footer__list {
    gap: 14px;
  }
  
  .footer__list a {
    font-size: 1rem;
  }

  .footer__contact {
    display: none;
  }

  .copy {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 24px;
  }
}

.back_top {
  display: none;
}

/* TOPへ戻るボタン */
@media screen and (max-width: 769px) {
  .back_top {
    display: block;
    width: 100px;       /* 幅 */
    height: 100px;
    position: fixed;   /* 画面に固定 */
    bottom: 10px;      /* 下から10px */
    right: 10px;       /* 右から10px */
    width: 85px;       /* 幅 */
    height: 85px;      /* 高さ */
    z-index: 1000;     /* 手前に表示 */
    cursor: pointer;
  }

  .back_top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: 0.3s;
  }

  .back_top img:nth-of-type(2) {
    opacity: 0;            /* 2枚目は最初は隠す */
  }

  .back_top:hover img:nth-of-type(1) {
    opacity: 0;           /* 1枚目はホバー時に透明に */
  }

  .back_top:hover img:nth-of-type(2) {
    opacity: 1;            /* 2枚目を表示 */
  }
}