@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  background-image: url("img/夜空.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
}
li {
  list-style: none;
}
p,span,h2,h3{
  color: #fff;
}
.block_cat span{
  color: #000;
}
/* 共通設定 */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 4%;
}
@media screen and (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
@media screen and (min-width: 1200px) {
  .wrapper {
    max-width: 1200px;
    padding: 0 6%;
  }
}


/*header*/
/* --------------------
 * 基本レイアウト
 * -------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* 要素を垂直方向中央に配置 */
  padding: 10px 4%;
}

.site-title {
  max-width: 960px;
}

/* --------------------
 * ロゴ
 * -------------------- */
.logo img {
  width: 100px;/*スマホ80px*/
  height: auto;
  background-color: #fff;
}

/* --------------------
 * ハンバーガーメニューボタン (hamburger-buttonに変更)
 * -------------------- */
.hamburger-button {
  border: none;
  background-color: #008dc9;
  cursor: pointer;
  display: block;
  width: 70px;
  height: 60px;
  margin: 10px 0 0 auto;
  padding-top: 5px;
  position: relative;
  z-index: 30;
  transition: opacity 0.4s;
}

.hamburger-button:hover {
  opacity: 0.8; 
}

/* ハンバーガー線のスタイル */
.hamburger-button span {
    width: 40px;
    height: 4px;
    background: #fff;
    position: absolute;
    left: 15px;
    transition: 0.4s ease-in-out;
}

.hamburger-button span:nth-child(1) {
    top: 15px;
}

.hamburger-button span:nth-child(2) {
    top: 30px;
}

.hamburger-button span:nth-child(3) {
    top: 45px;
}

/* --------------------
 * ナビゲーションメニュー本体
 * -------------------- */
#hamburger-navigation {
  position: fixed;
  top: 0;
  left: 100%; 
  width: 100%;
  height: 15vh; 
  background-color: rgba(225, 225, 225, 0.9); /* 背景色を半透明の黒などに変更し、メニューを見やすく */
  color: #fff;
  z-index: 20;
  display: flex; /* メニュー項目を中央に配置するために追加 */
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease; /* transitionをopacityだけでなく、位置にも適用 */
}

/* active時のメニューの表示 */
#hamburger-navigation.active {
    opacity: 1;
    visibility: visible;
    left: 15%; 
    width: 84%; /* active時にwidthやheightを変更するのではなく、初期設定で制御することを推奨 */
    height: 80px;
}

/* active時のハンバーガーボタンアニメーション */
.hamburger-button.active span:nth-child(1) {
    top: 32px; /* 適切な中央位置に調整 */
    transform: rotate(-45deg);
}

.hamburger-button.active span:nth-child(2){
    opacity: 0; 
}

.hamburger-button.active span:nth-child(3) {
    top: 32px; /* 適切な中央位置に調整 */
    transform: rotate(45deg);
}

/* --------------------
 * メニューリスト
 * -------------------- */
@media screen and (min-width: 1024px) {
  section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}


.sections {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    list-style: none;
    margin: 0;
    padding-left: 0;
    padding-right: 10%;
    gap: 50px;
    width: 100%;
}

/* スマホメニューのリンクは縦に並ぶことが多いため、liのmarginは削除 (不要であれば) */
.sections li {
    margin: 0; 
}

.sections a {
    color: #000; /* メニュー本体の色に合わせて変更 */
    font-weight: bold;
    font-size: 3rem;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
  
  /* --- 全体の調整 --- */
  .wrapper {
    padding: 50px 5%; /* 左右の余白を少し広めに */
  }

  /* --- ヘッダー / ハンバーガーメニュー --- */
  /* スマホではメニューを画面いっぱいに広げる */
  #hamburger-navigation.active {
    height: 100vh;
    top: 0;
    left: 0;
    width: 100%;
  }
  
  /* メニューの文字サイズ調整 */
  .sections {
    flex-direction: column; /* 縦並び */
    
    gap: 30px;
  }
  .sections a {
    font-size: 2rem;
  }
}

/*mainvisual*/
#mainvisual{
  display: flex;
  justify-content: center;
  height: 80vh; 
  align-items: center;
}

#mainvisual .block_cat{
  width: 500px;
  height: 400px;
  border-radius: 50%;
  background-color:rgba(248, 229, 140,0.9);
  position: relative;
  margin-top: -12%;
  padding-top: 100px;
}
#mainvisual .block_cat p{
  font-size: 4rem;
  text-align: center;
  position: absolute;
  color: #24292e;
  left: 35%;
  transform: translate(-25%,0);
}
#mainvisual .block_cat .ja{
  font-weight: bold;
  font-family: "HG草書体", serif;
}
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600&display=swap');
.cursive {
  font-family: "Dancing Script", serif;
  font-size: 1.4em;
  letter-spacing: 0.05em;
  line-height: 1.6;
  padding-top: 45px;
}


@media screen and (max-width: 768px) {
  #mainvisual {
    height: 72vh; /* 高さを少し抑える */
  }
  
  #mainvisual .block_cat {
    width: 280px;  /* スマホに入るサイズに縮小 */
    height: 230px;
    padding-top: 50px; /* 文字位置調整 */
    margin-top: 0;
    border-radius: 50%;
  }
  
  #mainvisual .block_cat p {
    font-size: 2.5rem; /* 文字サイズを小さく */
  }
  
  #mainvisual .block_cat .en {
    padding-top: 50px;
  }
}

.section_title{
  text-align: center;
  align-items:flex-end;
  margin-bottom: 40px;
}
.section_title::after{
  display: inline-block;
  content: '';
  vertical-align: 25px;
  width: 30%;
  height: 3px;
  text-align: center;
  background-color: #fff;
}
.section_title .en{
  font-size: 2.5rem;
  display: block;
  text-align: center;
  line-height: 1;
}
.section_title .ja {
  font-size: 1rem;
  display: block;
  padding-top: 5px;
  line-height: 1;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .section_title .en{
    font-size: 3rem;
  }
  .section_title .ja {
    font-size: 24px;
  }
}

/*about*/
#about{
  max-width: 1000px; 
  height: auto; 
  text-align: center;
  margin: 80px auto; 
  padding: 0 4%;
  }
.name{
  font-size: 1.5rem;
  max-width: 807px;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 50px 300px 60px 300px;
  padding: 10px;
}
.content {
  background-color: rgba(0, 0, 0, 0.5);
  max-width: 807px;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  }
  .content p, .content span{
   font-size: 1rem;
   display: block; 
   margin-bottom: 10px;
   line-height: 1.6;
  }

@media screen and (max-width: 768px) {
  .name {
  display: flex;
  flex-direction: column;   /* ← 縦に並べる */
  background-color: rgba(0, 0, 0, 0.5);
  max-width: 807px;
  margin: 50px auto 60px;
  padding: 12px;
  }
}


/*work*/
#works{
  max-width: 1000px;
  height: auto;
  text-align: center;
  padding: 100px 4% 0;
}
#works h2,
.illust_supplement,
.web_supplement{
  background-color: rgba(0, 0, 0, 0.5);
}
.illust_sub_title,
.web_sub_title{
  max-width: 800px;
  margin: 40px 250px auto;
  padding: 10px;
}

.illust_supplement,
.web_supplement {
  max-width: 800px;
  margin: 40px 90px auto;
  padding: 10px;
}

.illust_sub_title,
.web_sub_title{
   font-size: 2rem;
}
.illust_supplement,
.web_supplement{
  font-size: 1rem;
}
@media screen and (max-width: 768px) {
  .illust_sub_title,
  .web_sub_title {
    margin: 30px auto;
    width: 90%;
    max-width: none;
    padding: 10px;
    font-size: 1.5rem;
  }

  .illust_supplement,
  .web_supplement {
    margin: 10px auto 20px;
    width: 90%;
    max-width: none;
    padding: 8px;
    font-size: 0.9rem;
  }
}

.swiper{
  width: 100%;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
  background-color:rgba(255,255,255,0.5);
  margin-bottom: 60px;
}

#illust .swiper-slide img{
  width: 100%;
  height: 80%;
  object-fit: contain; 
  margin: 0 auto;
}
#web .swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-bottom: 20px;
}

.swiper p{
  font-size: 1.5rem;
  margin-top: 5px;
  color: #000;
}
.swiper-button-prev,
.swiper-button-next{
  width: 40px;
  height: 40px;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}
.swiper-button-prev img,
.swiper-button-next img {
  width: 200%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s;
}
.swiper-button-next{
  padding-top: 10px;
  transform: rotate(90deg);
}
.swiper-button-prev{
  padding-bottom: 0;
  transform: rotate(-90deg);
}

@media screen and (max-width: 768px) {
  .swiper {
    height: auto;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  /* 矢印ボタンを少し小さくして位置調整 */
  .swiper-button-prev,
  .swiper-button-next {
    width: 28px;
    height: 28px;
  }

  #illust .swiper-slide img,
  #web .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
  }
  .swiper p {
    font-size: 1.1rem;
    padding: 0 18px;
  }
}

@media screen and (min-width: 1024px) {
  #about {
    margin: 140px auto;
  }

  #works {
    padding-top: 160px;
  }
}

/* === 星座占いセクション === */
#spiritual {
  text-align: center;
  position: relative;
  padding-top: 40px;
}

#spiritual h3 {
  font-size: 2rem;
  margin: 40px 190px auto;
  background-color: rgba(0, 0, 0, 0.5);
}

#spiritual img {
  width: 40%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 50px;
  object-fit: cover;
}

#spiritual .block_cat {
  width: 50%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 200px;
  background-color: #f8e58c;
  padding: 5px;
}

#spiritual .block_cat .kantei {
  font-size: 1.5rem;
  color: #000;
}

@media screen and (max-width: 768px) {
  #spiritual {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  /* ===== タイトル ===== */
  #spiritual h3 {
    margin: 15px auto;
    width: 90%;
    max-width: none;
    padding: 10px;
    font-size: 1.5rem;
  }

  /* ===== 星座画像 ===== */
  #spiritual img {
    width: 85%;
    max-width: none;
    margin: 15px auto;
    padding-bottom: 0;
    display: block;
  }

  /* ===== ボタン ===== */
  #spiritual .block_cat {
    width: 70%;
    margin: 15px auto 0;
    padding: 10px;
  }

  #spiritual .block_cat .kantei {
    font-size: 1.3rem;
  }
}

.ground {
    position: relative;
    height: auto; /* コンテンツに合わせて高さを調整 */
}

footer img {
  display: block;
  max-width: 100%;
  height: 100%;
  margin-bottom: 10px; 
}

.ground::after {
  content: ""; 
  position: absolute;
  bottom: 0; 
  width: 100%;
  height: 20px;
  background-color: rgb(184, 210, 0);
}
