/* 基本設定 */
body {
    margin: 0;
    padding: 0;
    background-color: #ccf0ff;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
  }

main{
  position: relative;
  }

 #shootingStars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* クリックなどを邪魔しない */
  z-index: -1; /* 背景に配置 */
}

  .character-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 8em auto 0;
  }
  
  .character-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(30px); 
    animation: fadeSlideIn 1.5s ease-out forwards;
  }
  
  /* アニメーションの内容 */
  @keyframes fadeSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (min-width: 768px) {
    .character-container {
      margin: 8em 0 0 10%; /*左寄せ */
    }
  }

  
  /* キャプションを画像の上のレイヤーに表示 */
  .caption-overlay {
    white-space: nowrap;
    position: absolute;
    top: 10%; 
    left: 60%; /* 横の位置を「画像の右側」に */
    transform: translateX(0%); 
    color: #4b6ecf;
    max-width: 80%;
    font-family: "vdl-megamaru", sans-serif;
    text-align: left;
    pointer-events: none; 
  }
  
  .caption {
    font-size: 1em;
    font-weight: bold;
  }
  
  .caption2 {
    font-size: 0.9em;
    margin-top: 0.3em;
  }
  
  @media (max-width: 768px) {
    .caption-overlay {
      top: auto;
      bottom: 5%;
      right: 5%;
      left: 5%;
      max-width: 90%;
      font-size: 0.95em;
    }
  }

  @media (min-width: 768px) {
    .caption {
      font-size: 2em;
    }
  
    .caption2 {
      font-size: 1.5em;
    }
  }

  .rise-up {
    opacity: 0;
    transform: translateY(30px);
    animation: riseUp 1.5s ease-out forwards;
    animation-delay: 0.3s;
    /* ここは出現アニメーション */
  }
  
  @keyframes riseUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .caption, .caption2 {
    position: relative;
    display: block; /* ←縦に*/
    width: fit-content;
    margin-bottom: 0.5em; 
  }
  
  /* アンダーラインマーカー */
  .caption::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 0.4em;
    background: rgba(255, 255, 255, 0.7); 
    z-index: -1;
    border-radius: 0.2em;
    animation: underline-marker 0.8s ease-out forwards;
    animation-delay: 0.3s;
    pointer-events: none;
  }
  
  @keyframes underline-marker {
    from {
      width: 0%;
    }
    to {
      width: 100%;
    }
  }

  

  /* ロゴ */
.logo {
  position: fixed;
  top: 20px;
  left: 10px;
}

.logo img {
  height: 120px;
}


/* ヘッダーのSNSボタンやメニュー */
.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  font-size: 18px;
  padding: 8px 12px;
}

@media (max-width: 768px) {
  .header-nav a {
    font-size: 14px;
    padding: 4px 8px;
  }
}

/* 動画全体ラッパー */
.video-wrapper {
  position: relative;
  margin: 80px auto;
  padding: 60px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
  max-width: 250px;
}

/* 画面幅が768px以上（タブレット・PCなど）のとき */
@media screen and (min-width: 768px) {
  .video-wrapper {
    max-width: 900px; /* 大きめサイズ */
  }
}


/* レスポンシブな16:9動画 */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* タイトル */
.video-title {
  font-family: "vdl-megamaru", sans-serif;
  font-size: 20px;
  margin-top: 30px;
  text-align: center;
  color: #333;
}

@media (max-width: 768px) {
  .video-label {
    font-size: 16px;
    padding: 4px 10px;
  }

  .video-title {
    font-size: 16px;
  }
}

.video-label {
  position: absolute;
  top: 14px;
  left: 20px;
  background-color: rgba(255, 105, 180, 0.9); /* ピンク系 */
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-family: "vdl-megamaru", sans-serif;
  z-index: 2;
}

@media (max-width: 768px) {
  .video-label {
    font-size: 14px;
    padding: 4px 10px;
  }
}
 
 /*トップのニュース*/
 .news {
  max-width: 600px;
  margin: 0 auto;
  padding: 2em;
}

.news h2 {
  font-family: "vdl-megamaru", sans-serif;
  font-size: 1.8em;
  color: #4b6ecf;
  text-align: center;
  margin-bottom: 1em;
}

.news-list {
  font-family: 'Zen Maru Gothic', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.news-item {
  background-color: white;
  border-radius: 15px;
  padding: 1em;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.news-date {
  font-size: 0.9em;
  color: #888;
}

.news-title {
  font-weight: bold;
  margin: 0.3em 0;
}

.news-text {
  font-size: 0.95em;
  color: #333;
}

.news-text a {
  color: #6cc5ff;   /* 水色っぽいリンク色 */
  text-decoration: underline;
}

.news-text a:hover {
  color: #4da9e0;   /* ホバー時に少し濃く */
}
 
  
  /* SNSリンク右側縦配置 */
  a i {
    font-size: 50px;
    color: #ffffff;
    margin: 10px 0;
    transition: transform 0.2s, filter 0.2s;
  }

  .icon-combo {
    position: relative;
    display: inline-block;
    font-size: 50px;
  }
  
  .icon-combo .pencil {
    position: absolute;
    right: -5px;
    bottom: -5px;
    font-size: 20px;
    color: #ffffff;
  }

  /* ホバー時（PC） */
  a:hover i {
  transform: scale(1.15);
  filter: brightness(1.3); /* 少し明るく */
  }

/* アクティブ時（タップなど） */
  a:active i {
  transform: scale(0.9);
  filter: brightness(0.8); /* 少し暗く */
  }

  .sns-links {
    position: fixed;
    right: 30px;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .sns-links i {
    font-size: 40px;
  }

  .repuest-button {
    font-family: 'Zen Maru Gothic', sans-serif;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 36px;
    padding: 12px;
    margin: 10px 0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    max-width: 360px;
  }
  
  .repuest-button:hover {
    transform: scale(1.02);
  }
  
  .icon-area {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f3f3f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
  }
  
  .icon-area img {
    width: 24px;
    height: 24px;
  }

  .icon-area i {
    font-size: 24px;
    color: #85baff;
  }
  
  .text-area .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }
  
  .text-area .subtitle {
    font-size: 13px;
    color: #666;
  }
  
  .repuest-button:hover {
    transform: scale(1.02);
    background-color: #ff69b4; /* 異なる背景に */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .repuest-button:hover .title {
    color: #ffffff; /* タイトル文字の色を変更 */
  }
  
  .repuest-button:hover .subtitle {
    color: #ffffff; /* サブ文字も */
  }

/* お手紙アイコン */
.request-toggle {
  position: fixed;
  bottom: 30px;
  right: 1em;
  height: auto;
  cursor: pointer;
  z-index: 1000;
  animation: shake 2s ;
  touch-action: manipulation;
}

.request-toggle img {
  width: 100px;
  height: auto;
  transition: transform 0.3s;
}

/* 画面幅が768px以上（タブレット・PCなど）のとき */
@media screen and (min-width: 768px) {
  .request-toggle img {
    width: 150px; /* 大きめサイズ */
  }
}

 /* ホバー時（PC） */
.request-toggle:hover img {
  transform: scale(1.1);
}

 /* タップ時（スマホ） */
.request-toggle:active img {
  transform: scale(1.15);
}

/* お手紙がクリックされたらSkeb/ココナラが左側ににょっと表示 */
.request-links {
  position: fixed;
  bottom: 80px;         
  right: 10px;          
  transform: translateX(0);  
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 998;
}

.request-links.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-35%); /* にょっと左に出す */
}

/* 画面幅が768px以上（タブレット・PCなど）のとき */
@media screen and (min-width: 768px) {
  .request-links.active {
    transform: translateX(-100%); /* にょっと左に出す */
  }
}

/* 最初非表示 */
.hidden {
  opacity: 0 + pointer-events none
}

/* ふるふるアニメーション */
@keyframes shake {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(0) rotate(5deg); }
  50% { transform: translateX(0) rotate(-5deg); }
  75% { transform: translateX(0) rotate(3deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

   /* 右上にボタンを固定 */
  #menu-button {
  position: fixed;
  top: 20px;        
  right: 20px;       
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 1100;
}

#menu-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
  
/* 画面幅が768px以上（タブレット・PCなど）のとき */
@media screen and (min-width: 768px) {
  #menu-button img {
    top: 20px;        
    right: 80px;       
    width: 100px;
    height: 100px;
  }
}
  /* メニュー表示のアニメーション */
  .hamburger {
    width: 40px; 
    transition: transform 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
  }
  
  /* ホバー時（PC） */
  .hamburger:hover {
    transform: scale(1.1);
  }
  
  /* タップ時（スマホなど） */
  .hamburger:active {
    transform: scale(1.15);
  }

.menu-panel {
    position: fixed;
    top: 30%;
    left: 40%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #fff;
    border: 2px solid #ffb6c1;
    border-radius: 60px;
    padding: 40px 50px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  /* タップ・クリックしたときに沈む */
  .menu-panel a:active {
  transform: scale(0.95);
}

  /* 画面幅が768px以上（タブレット・PCなど）のとき調整 */
@media screen and (min-width: 500px) {
  .menu-panel {
    top: 30%;
    left: 80%;
  }
}
  
  .menu-panel.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .menu-panel a {
    font-family: "vdl-megamaru", sans-serif;
    display: block;
    margin: 18px 0;
    color: #ff778b;
    text-decoration: none;
    font-size: 20px;
  }




  .about-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
  }
  
  .about-title {
    font-family: "vdl-megamaru", sans-serif;
    font-size: 28px;
    margin: 80px ;
    color:#85baff;
    margin-bottom: 20px;
  }

  .about-subtitle {
    font-family: "vdl-megamaru", sans-serif;
    font-size: 20px;
    margin: 10px ;
    color:#85baff;
    margin-bottom: 20px;
  }
   /* 画面幅が768px以上（タブレット・PCなど）のとき */
@media screen and (min-width: 768px) {
  .about-title {
    font-size: 50px;
  }
}
  /* 画面幅が768px以上（タブレット・PCなど）のとき */
   @media screen and (min-width: 768px) {
    .about-subtitle {
      font-size: 25px;
    }
  }

.text{
  font-family: "vdl-megamaru", sans-serif;
  font-size: 14px;
  color:#85baff;
  margin-bottom: 40px;
}
   /* 画面幅が768px以上（タブレット・PCなど）のとき */
   @media screen and (min-width: 768px) {
    .text {
      font-size: 20px;
    }
  }
  
  .about-buttons {
    font-family: "vdl-megamaru", sans-serif;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
  }
  
  .about-btn {
    display: inline-block;
    background-color:#85baff;
    color: white;
    font-size: 15px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
  }
    /* 画面幅が768px以上（タブレット・PCなど）のとき */
@media screen and (min-width: 768px) {
  .about-btn {
    font-size: 25px;
  }
}
  
  .about-btn:hover {
    transform: scale(1.05);
  }
  
  .about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .profile {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
  }

  .profile img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 2px;
    border: 3px solid #ddd;
  }

  .profile-text {
    font-family: "vdl-megamaru", sans-serif;
    font-size: 9px;
    flex: 1;
  }

  .period {
    display: flex;           
    align-items: flex-start; 
    margin: 4px 0;   
    margin-top: 1rem;        
  }
  
  .year {
    width: 4em;             
    text-align: right;     
    margin-right: 0.5em;    
  }

  @media screen and (min-width: 768px) {
    .profile {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }

    .profile img {
      margin-right: 0;
      margin-bottom: 15px;
    }

    .profile-text {
      font-size: 15px;
    }
  }

  .tools-summary {
    font-family: "vdl-megamaru", sans-serif;
    color: #0077cc; 
    cursor: pointer;  
    font-size: 8px;
  }

  /* 画面幅が768px以上（タブレット・PCなど）のとき */
  @media screen and (min-width: 768px) {
    .tools-summary  {
      font-size: 15px;
    }
  }

  .tools-list li {
    list-style-position: inside;
    padding-left: 0;              /* 左の余白を消す */
  margin: 0;
    font-family: "vdl-megamaru", sans-serif;
    color: #0077cc; 
    font-size: 8px;
    margin-bottom: 1em;
  }

   /* 画面幅が768px以上（タブレット・PCなど）のとき */
   @media screen and (min-width: 768px) {
    .tools-list li  {
      font-size: 15px;
    }
  }

  .characters {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 100px;
  }

  .character {
    width: 100px;
    text-align: center;
    text-decoration: none;
  }

  .character img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    transition: transform 0.2s;
  }

  .character img:hover {
    transform: scale(1.05);
  }

  .character-name {
    font-family: "vdl-megamaru", sans-serif;
    color: #0077cc;
    margin-top: -5px;
    font-size: 0.9rem;
  }


/* タップ・クリックしたときに沈む */
.character-name:active {
  transform: scale(0.95);
  color: #005999;
}

  /* サムネを正方形にする */
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;  /* 正方形 */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* モーダル */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.4s ease; /* ← 追加 */
}

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

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

.memo-text {
  font-family: "vdl-megamaru", sans-serif;
  color: #fff;
  margin-top: 20px;
  font-size: 16px;
  padding: 0 20px;
  text-align: center;
}


  .x-button {
    font-family: "vdl-megamaru", sans-serif;
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #1DA1F2; /* Xのブランドカラー */
    color: white;
    font-size: 14px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.2s;
  }
  
  .x-button:hover {
    background-color: #0d8ddb;
    transform: scale(1.05);
  }

  .date{
    font-family: "vdl-megamaru", sans-serif;
    font-size: 10px;
    color:#85baff;
  }

  .site-footer {
   
    background-color: #f9f9ff; 
    color: #9d9d9f;             
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #ffffff;
  }
  

 /*キャラ紹介*/
  .character-profile {
    padding: 20px;
  }
  
  .main-image {
    width: 120%; 
    max-width: none; 
    height: auto;
    margin-bottom: 20px;
    margin-left: -10%; 
  }

   /* 画面幅が768px以上（タブレット・PCなど）のとき */
   @media screen and (min-width: 768px) {
    .main-image  {
      width: 80%; 
    }
  }
  
  .faces {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .faces img {
    width: 80px;
    height: auto;
    border-radius: 100px;
    background: white;
    padding: 5px;
  }
  
  .text .name {
    font-size: 1.8em;
    margin: 10px 0 5px;
    color: #ff66cc;
  }
  
  .text .cv {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
  }
  
  .text .description {
    color: #4b6ecf;
    font-size: 1em;
    line-height: 1.6;
  }
  .text .description-hao {
    color: #C578DC;
    font-size: 1em;
    line-height: 1.6;
  }

/*以下おしごと*/
details {
  margin-bottom: 1em;
}

summary {
  font-family: 'Zen Maru Gothic', sans-serif;
  cursor: pointer;
  font-weight: bold;
  color: #0077cc;
  font-size: 1em;
  outline: none;
}

details p {
  font-family: 'Zen Maru Gothic', sans-serif;
  margin: 0.8em 0 0 0;
  font-size: 0.8em;
  color: #0077cc;
  line-height: 2;
  padding-left: 0.5em;
  padding-right: 0.5em;
  margin-bottom: 4em;
}

.work {
  max-width: 800px;
  margin: 20px auto;
  margin-top: 4rem;
  margin-bottom: 6rem;
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.work-video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.work-text-box {
  display: block; 
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: fit-content;       
  margin-left: auto;
  margin-right: auto;  
}

.work-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #85baff;
}

.work-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #85baff;
}

video {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/*以上おしごと*/

/*以下その他*/
.content {
  font-family: "vdl-megamaru", sans-serif;
  max-width: 600px;
  margin: 2em auto;
  padding: 1em;
}

.content h2 {
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 1em;
  color: #85baff;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.item-card {
  background-color: white;
  border-radius: 15px;
  padding: 1em;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  text-align: center;
}

.item-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5em;
}

.item-title {
  font-weight: bold;
  margin: 0.5em 0;
}

.item-link {
  color: #6cc5ff;
  text-decoration: underline;
  display: inline-block;
  margin-top: 0.3em;
}

.item-link:hover {
  color: #4da9e0;
}
  /*以上その他*/
