@charset "utf-8";
@font-face {
  font-family: "myfont";
  src: url("../font/Icing\ soda2_koi.ttf") format("truetype");
  font-display: swap;
}

body {
  cursor: url('../img/cursor@2x.png'), auto;
  cursor: url('../img/cursor@2x.png') 16 16, auto;
}

a:hover, button:hover {
  /* 指を指しているイラストや、光っているイラストなど */
  cursor: url('../img/cursor@2x.png'), pointer;
}

button:hover {
  cursor: url('../img/cursor@2x.png'), pointer;
}

body {
  background-color: #f9f7e4;
}

header{
  overflow: hidden;
}


#falling-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.falling-item {
  position: absolute;
  top: -150px; 
  width: 80px;
  height: auto;
  opacity: 0.9;
  will-change: transform;
  /* 落ちるアニメーションと揺れるアニメーションを両方指定 */
  animation: 
    fall linear forwards, 
    sway ease-in-out infinite alternate;
}

/* 縦に落ちる動き */
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(120vh) rotate(360deg); } /* 120vhで画面下まで */
}

/* 左右にゆらゆら揺れる動き */
@keyframes sway {
  0% { margin-left: -40px; }
  100% { margin-left: 40px; }
}

@media (min-width: 768px) {
  .falling-item { width: 115px; }
}




.falling-item {
  /* ...既存の設定... */
  pointer-events: auto !important; /* 手紙だけクリックに反応させる */
  cursor: pointer;
}

/* --- 新規：ポップアップのスタイル --- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); /* 背景を少し暗く */
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
}

#message-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#close-btn {
  position: absolute;
  top: -45px; right: 0;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}



header {
  position: relative;
}
.header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  width: 90%;
  top: 1%;
  left: 0;
}

.logo {
  width: 150px;
  margin-left: 30px;
  margin-top: 25px;
}

.header_nav ul {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 27px;
  
}

.header_nav{
  z-index: 99998;
}

.fv-text-sp{
  display: none;
}

.hamburger {
  width: 190px;
  position: fixed;
  z-index: 99999;
  right: 0;
  top: 0;
}

.header_nav a {
  color: #683c40;
  font-size: 20px;
  font-weight: bold;
  font-family: "筑紫A丸ゴシック";
}

.header_nav_inner{
  display: none;
}


.header_nav a {
  display: inline-block; /* これを追加！文字の幅に合わせます */
  color: #683c40;
  font-size: 20px;
  font-weight: bold;
  font-family: "筑紫A丸ゴシック";
  text-decoration: none;
  position: relative;
  padding-bottom: 8px;
}

/* 線の設定（ここは変更なしでOKです） */
.header_nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 105%; /* これで「a」の幅（文字の幅）いっぱいになります */
  height: 2px;
  background-color: #683c40;
  border-radius: 50% 20% 50% 20%;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header_nav a:hover::after {
  transform: scaleX(1);
}


/* ハンバーガーメニュー内のリンク設定 */
.header_nav_inner ul li a {
  display: inline-block; /* 文字幅に合わせるために必須 */
  position: relative;    /* 線の基準点 */
  padding-bottom: 5px;   /* 文字と線の距離 */
  
}

/* ホバー時の線（共通のデザイン） */
.header_nav_inner ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;           /* 線の太さ */
  background-color: #683c40;
  border-radius: 50% 20% 50% 20%; /* 手書き風の歪み */
  opacity: 0.7;
  
  /* アニメーション：左から右へ伸びる */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* マウスをかざした時、またはタップした時 */
.header_nav_inner ul li a:hover::after {
  transform: scaleX(1);
}




@media screen and (max-width: 1200px) {
  .header_nav ul {
    gap: 50px;
    margin-top: -20px;
  }

  .logo{
    width: 130px;
    margin-left: 15px;
    margin-top: -10px;
  }

.header_nav a {
  font-size: 18px;
}

.hamburger {
  width: 150px;
}

}

@media screen and (max-width: 850px) {
  .header_nav ul {
    gap: 40px;
    margin-top: -20px;
  }

  .logo{
    
    margin-left: 15px;
    margin-top: -10px;
  }

.header_nav a {
  font-size: 17px;
}

.hamburger {
  width: 120px;
}

}

@media screen and (max-width: 768px) {
  .hamburger img{
  width: 160px;
  position: fixed;
  z-index: 99999;
  right: 0;
  top: 0;
}
}


.header_nav_inner {
    position: fixed;
    top: 0;
    right: -50%; /* 最初は画面の右側に隠しておく */
    width: 50%;  /* 縦半分 */
    height: 100%;
    background-image: url('../img/inner_back_2@2x.webp'); /* 提供された背景画像 */
    background-size: cover;
    background-position: center;
    z-index: 99999;
    transition: all 0.5s ease; /* アニメーションの速度 */
   
    
    /* 中身を上下中央に整列 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6%;
    padding: 0px 0;

    border-top-left-radius: 60px; /* 左上の角を丸くする。数字はお好みで調整してください。 */
    border-bottom-left-radius: 60px; /* 左下の角を丸くする。 */
    
    /* 必須：中身が角からはみ出さないようにする */
    overflow: hidden;
}



.menu-top-logo{
  text-align: center;
  margin-top: 10%;
}

.menu-top-logo img{
  width: 50%;
}

/* メニューが開いた時の状態 */
.header_nav_inner.open {
    right: 0; /* 画面内にスライドイン */
}

/* リストの装飾 */
.header_nav_inner ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.header_nav_inner ul li {
    margin: 30px 0;
}

.header_nav_inner ul li a {
    text-decoration: none;
    font-size: 38px;
    font-family: "myfont","sanserif";
    letter-spacing: 0.1em;
}

/* ロゴと閉じるボタンを横に並べる箱 */
.menu-header {
    display: flex;
    align-items: center;    /* 垂直方向の真ん中 */
    justify-content: center; /* 基本は中央寄せ */
    width: 100%;
    position: relative;     /* 閉じるボタンを右端に固定するための基準 */
  
}


/* 閉じるボタンの設定 */
.menu-close {
    position: absolute;
    right: 50px; /* 右端から20pxの位置 */
    cursor: pointer;
}

.menu-close img {
    width: 50px; /* 閉じるボタンのサイズ */
    height: auto;
}

.header_nav_inner.open {
    right: 0 !important;
}


/* スマホだと50%は狭すぎるので、レスポンシブ調整 */
@media (max-width: 768px) {
    .header_nav_inner {
        width: 100%; /* スマホでは8割くらい占有 */
        right: -110%;
    }

    .header_nav_inner ul li {
    margin: 20px 0;
    font-size: 16px;
}
}

@media (max-width: 500px) {
    

    .menu-top-logo img{
      width: 130px;
    }

    .header_nav_inner ul li {
    margin: 15px 0;
  
}
}



.fv {
  aspect-ratio: 1441/1208;
  height: 100%;
}
.fv img {
  position: absolute;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1441/1208;
}

.sp-visual{
  display: none;
}

.main-visual {
  max-width: 1000px;
  width: 80%;
  height: 100%;
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.key1,
.key2,
.key3,
.key4,
.key5,
.key3__sec{
  position: absolute;
}
.key1 {
  width: 48%;
  right: 5%;
  top: 16%;
}
.key2 {
  left: 10%;
  bottom: 18%;
  width: 45%;
}
.key3 {
  top: 45%;
  left: 50.1%;
  transform: translate(-50%, -50%);
  display: block;
  max-width: 1000px;
  width: 65%;
  margin: 0 auto;
  z-index: 10;
}
.key3__sec {
  top: 50%;
  z-index: 99999;
  width: 87%;
}
.key4 {
  width: 39%;
  left: 0%;
  top: 22%;
  z-index: 11;
}
.key5 {
  width: 42%;
  right: -10%;
  bottom: 25%;
  z-index: 11;
}
@media screen and (min-width: 1200px) {
  .fv {
    height: 1592px;
  }
  .fv img {
    height: 1330px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: bottom;
  }
  .key1 {
    top: 330px;
  }
  .key2 {
    bottom: 500px;
  }
  .key4 {
    top: 470px;
  }
  .key5 {
    bottom: 440px;
  }

  .key3__sec{
    top: 48.3%;
  }

 
}


@media screen and (max-width:1200px){
  .main-visual {
    top: 50%;
  }

}

@media screen and (max-width:768px){

   .header_nav{
    display: none;
  }

  .header_inner {
        flex-direction: column; /* 縦に並べる */
        align-items: center;    /* 中央揃え */
    }

  
    .logo {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 20px; /* 位置調整 */
    width: 130px;     /* 必要に応じてサイズ調整 */
    display: block;   /* blockにしないと中央に寄りません */
  }

  .hamburger img{
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 150px; /* 右上の看板メニューのサイズ */
    }

 


  .main-visual{
    display: none;
  }

  .fv {
        display: none;
    }

 .sp-visual {
        display: block; /* ここで表示させる */
        width: 100%;
        height: auto;
    }

    .sp-visual img {
        width: 100%;
        height: auto;
        display: block; /* 画像の下の隙間を消す */
    }
  .fv-text-sp {
    display: flex;
    justify-content: center; /* 2行セットで画面中央に配置 */
    gap: 10px;               /* 行間の隙間 */
    margin: 100px 0;        /* 画像との距離 */
  }

  .vertical-text-sp {
    writing-mode: vertical-rl;
    font-size: 35px;         /* 画像に合わせて調整してください */
    font-family: "myfont", sans-serif;
    color: #683c40;
    line-height: 1.5;
  }

  /* 「想いを詠み、」の設定（右側） */
  .text-right {
    margin-top: 2em;           /* 上にピタッと合わせる */
  }

  /* 「デザインする。」の設定（左側） */
  .text-left {
    margin-top: 0;         /* ここで位置を下げる。数値は好みで調整してください */
  }

  }


@media screen and (max-width: 540px) {
  
  .logo{
    width: 100px;
  }

  .hamburger img{
  width: 110px;
}

}

@media screen and (max-width: 480px) {
  
.logo{
     margin-top: 10px; /* 位置調整 */
  }

  .hamburger img{
  width: 90px;
}

  .hamburger img{
  width: 97px;
}

}

@media screen and (max-width: 400px) {
  .logo{
     margin-top: 5px; /* 位置調整 */
  }
}


.fv-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 中央に固定 */
  width: 100%;  /* main-visualの幅いっぱいに広げる */
  height: 80%; /* 文字の上下位置の基準 */
  pointer-events: none; /* 文字が重なっても下のボタンが押せるようにする */
}

.vertical-text {
  position: absolute;
  writing-mode: vertical-rl; /* 縦書きにする魔法の言葉 */
  font-family: "myfont", serif;
  font-size: 3.5rem; /* 画面サイズに合わせるならremが便利 */
  font-weight: 800;
  color: #683c40;
  letter-spacing: 0.2em; /* 文字の間隔を少し広げると綺麗 */
}

/* 左側の「デザインする。」の位置 */
.text-left {
  left: -8%;
  top: 45%;
}

/* 右側の「想いを詠み、」の位置 */
.text-right {
  right: -5%;
  top: 9%;
}

@media screen and (max-width: 1200px) {

  .vertical-text {
    font-size: 40px; /* 画面サイズに合わせるならremが便利 */
}

  .text-left {
    left: -4%;
    top: 46%;
}

  .text-right {
  top: 7%;
}

}

@media screen and (max-width: 960px) {

  .vertical-text {
    font-size: 36px; /* 画面サイズに合わせるならremが便利 */
}

  .text-right {
  top: 5%;
}

}

@media screen and (max-width: 870px) {

  .vertical-text {
    font-size: 32px; /* 画面サイズに合わせるならremが便利 */
}

  .text-right {
  top: 4%;
}

  .text-left {
    left: -3%;
}

}




.about {
    position: relative;        /* 子要素の「基準点」 */
    width: 100%;               
    max-width: 1000px;         /* 大きくなりすぎないように制限 */
    margin: 30px auto;         /* 真ん中に寄せる */
    display: flex;             /* 中身を真ん中に置くための準備 */
    align-items: center;       /* 上下真ん中 */
    justify-content: center;    /* 左右真ん中 */
}

.about img{
    width: 70%;                
    height: auto;              /* 縦横比を保つ */
    z-index: 1;               
}

.about-title {
    position: absolute;        /* 自由に動かせるモード（シール状態） */
    top: 20%;                  
    right: 25%;               
    font-family: "myfont";
    font-size: clamp(20px, 4vw, 40px); /* 画面サイズに合わせて文字の大きさが自動で変わる */
    z-index: 2;   
} 

@media screen and (max-width:768px){

  .header_inner{
    width: 100%;
  }
  
  .about {
    max-width: 600px;
  }

  .about img{
    width: 100%;
  }

}

.cando {
  max-width: 800px; /* 少し小さめがバランス良し */
  margin: 150px auto;
  text-align: center;
}

/* 画像を背景に設定するエリア */
.cando-inner {
  aspect-ratio: 1 / 1; /* 正方形を保つ（超重要！） */
  background: url("../img/abeletodo@2x.webp") no-repeat center / contain;
  
  /* 中の文字を上下左右真ん中に置く */
  display: grid;
  place-content: center; 
  padding: 40px;
}

.cando-sp-br{
  display: none;
}


.cando-title{
    font-family: "myfont";
    font-size: clamp(20px, 4vw, 40px);
    margin-bottom: 40px;
}

.s-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 2.50;
  margin-top: 140px;
}

.cando-text {
  font-size: 14px;
  line-height: 2.50;
}

.top-works-back {
  background: url("../img/top_works_back@2x.webp") no-repeat center / 110% 100%;
  width: 100%;
  padding: 150px 0; /* 上下の余白 */
}

@media screen and (max-width:768px){

  .cando-sp-br{
    display: block;
  }

  .cando-inner {
        width: 100%;            /* スマホでは幅を広げる */
        background-size: 100%; /* 背景画像をコンテナの幅いっぱいに強制する */
        padding: 40px;         /* 中の文字がはみ出さないよう余白を調整 */
    }

  .s-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 2.0;

}

.cando-text {
  font-size: 14px;
  line-height: 2.0;
}

}

@media screen and (max-width:650px){

  .s-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.86;
  margin-top: 150px;

}

.cando-text {
  font-size: 13px;
  line-height: 1.86;
}

}

@media screen and (max-width:580px){

  .s-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.76;
  margin-top: 120px;

}

.cando-text {
  font-size: 12px;
  line-height: 1.76;
}

}


@media screen and (max-width:480px){

  .s-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.56;
  margin-top: 90px;

}

.cando-text {
  font-size: 10px;
  line-height: 1.56;
}

}

@media screen and (max-width:380px){

  .s-title {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.56;
  margin-top: 90px;

}

}

/* タイトルと説明文を横に並べる */
.works-top-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* 文字とタイトルの間の距離 */
  margin-bottom: 40px;
  /*margin-left: 15%;*/
}

.works-top-main h2 {
  font-family: "myfont";
  font-size: 60px;
  margin: 0;
  color:  #f9f7e4;
}

.works-top-main p{
  color:  #f9f7e4;
  line-height: 1.56;
  letter-spacing: 0.5em;

}

/* 作品エリア全体（矢印＋画像） */
.works-container {
  
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 95%;

}

/* 画像3つを並べる部分 */
.works-list {
  width: 100%;
  margin: 0 auto;
}

.works-list a{
  display: block;
  outline: none;
  padding: 0 10px; /* 画像同士の隙間 */
}

.works-list img {
  width: 100%;
  height: auto;
  display: block;
  height: auto !important;
}

/* ホバーした時に濃い緑に変更 */
.btn-more:hover {
  background-color: #666b1c; /* ここに濃い緑のカラーコードを指定 */
  color: #f2e9a5;            /* ホバー時に文字を白くするなど */
  transform: translateY(-2px); 
  opacity: 1;
}

.yajirushi {
  width: 40px; /* 矢印のサイズを固定すると扱いやすい */
  cursor: pointer;
  z-index: 100;    /* スライダーより前面に出す */
  position: relative; 
  transition: opacity 1;
}

@media screen and (max-width: 1200px) {
  .yajirushi {
    display: none !important;
  }
}

.yajirushi:hover {
  opacity: 0.7;    /* ホバー時に少し薄くして「押せる感」を出す */
}

/* Slickが自動生成するデフォルトの矢印ボタン（不要なもの）を完全に消す */
.slick-prev, .slick-next {
  display: none !important;
}

/* もっとみたいボタン */
.works-more {
  text-align: right;
  max-width: 1000px;
  margin: 30px auto 0;
  text-align: center;

}

@media screen and (max-width:768px){

  .work-list{
  width: 70%;
}

.works-more{
  padding-right: 5%;
}

.works-top-main{
  display: block;
  margin: 0 auto;
  align-items: center;
  
}


.works-top-main h2 {
  text-align: center;
}

.works-top-main p{
  text-align: center;

}

.footer-nav{
  display: none;
}

}

@media screen and (max-width:680px){



.works-top-main h2 {
  font-family: "myfont";
  font-size:50px;
  margin: 0;
}

.works-top-main p{
  line-height: 1.56;
  letter-spacing: 0.1em;
  font-size: 13px;
  padding: 20px 0;

}

.works-more {
  text-align: center;
  margin-top: 20px;

}



}

.btn-more {
  display: inline-block;
  background-color: #98ab4b; /* 画像の色に合わせた緑 */
  color: #fff;
  padding: 10px 30px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

.profile {
  margin-top: 150px;
  display: flex;
  justify-content: center; /* 横方向の中央揃え */
}

/* 画像を囲うコンテナ：ここで幅をコントロール */
.profile-inner {
  width: 60%; /* PC版での表示幅 */
  max-width: 800px; /* 大きくなりすぎないように制限（任意） */
}

/* 画像自体の設定 */
.profile-image-wrapper {
  display: block;
  width: 100%;
}

.profile-main-img {
  width: 100%; /* 親の .profile-inner の幅いっぱい（50%分）に広がる */
  height: auto;
  display: block;
}


.contact-top{
  margin-top: -550px;
}



.contact-top img{
    position: relative;
    z-index: -3;
}

.footer-nav{
  z-index: 99998;
}

.contact-footer-container {
  display: flex;
  flex-direction: column; /* 縦に並べる場合 */
  align-items: center;
}

/* 2. ナビゲーションの基本設定 */
.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 60px; 
  list-style: none;
  padding: 0;
}

/* 3. ここが重要：aタグをインラインブロックにする */
.footer-nav li a {
  display: inline-block;
  text-decoration: none;
  font-size: 17px;
  position: relative; /* 線の基準点 */
  padding-bottom: 8px; /* 文字と線の距離 */
}

/* 4. ホバー時の線（初期状態：幅0） */
.footer-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #683c40;
  border-radius: 50% 20%; /* 手書き風の歪み */
  
  /* アニメーションの準備 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* 5. マウスをかざした時に線を出す */
.footer-nav li a:hover::after {
  transform: scaleX(1);
}


.copy-top{
  margin-top: -90px;
  text-align: center;
  font-size: 13px;
  color:#f9f7e4; 
}

@media screen and (max-width: 1000px) {
    .contact-top{
      margin-top: -350px;
}
}



@media screen and (max-width: 768px) {

  .contact-top{
    margin-top: -250px;
  }
  
  .profile-inner {
    width: 100%; /* スマホでは画面いっぱいに近く表示 */
  }

}






