/* style.css */

/* 基本のリセットと共通スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kiwi Maru', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

p {
  font-family:  'Noto Sans JP', sans-serif;
}

a {
  color: #4A90E2;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color:#16A085;
}

.bold{
  font-weight: bold;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ヘッダー */
header {
  position: relative;
  background-color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ナビゲーション */
.main-nav {
  flex-grow: 1;
  margin-left: 5px; /* 少し左寄せ調整 */
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  position: relative;
  display: block;
  padding: 5px 15px;
  border-radius: 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
  font-size: 17px;
  font-weight: 500;
  color: #555;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #4A90E2;  
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.main-nav ul li a:hover {
  color: #16A085;
  background-color: #fff;
}

.main-nav ul li a::before {
  content: '★';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4A90E2; 
  font-size: 1.2em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.main-nav ul li a:hover::before {
  opacity: 1;
  animation: rotateCircular 2s linear infinite;
}
.mobile-menu-icons{
  display: none;
}
@keyframes rotateCircular {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(30px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(30px) rotate(-360deg);
  }
}
/* style.css */

/* レスポンシブ時のハンバーガーメニュー内リンクのホバー色をメイン色に */
@media (max-width: 768px) {
  .main-nav ul li a:hover {
    color: #00bcd4 !important; /* メインカラーの水色 */
    background-color: transparent !important; /* 背景色は透明のまま */
  }
  
  .main-nav ul li a::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: gold;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    animation: none;
  }

  .main-nav ul li a:hover::before {
    opacity: 1;
    animation: rotateCircular 2s linear infinite;
  }

  /* ハンバーガーメニュー内のLINEとメールアイコンを表示 */
  .mobile-menu-icons {
    margin-top: 40px;
    display: flex !important; /* 常に表示 */
    justify-content: center;
    gap: 30px;
  }

  .mobile-menu-icons a img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-icons a:hover img {
    opacity: 0.7;
  }
}
/* header右端アイコン群 */
.header-contact-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin-left: 20px;
  flex-shrink: 0;
}

.header-contact-icons a img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header-contact-icons a:hover img {
  opacity: 0.7;
}

/* ハンバーガーメニュー */
.hamburger-menu {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* フェードインアニメーション時 */
.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* メニュー表示時に背景スクロール停止 */
body.no-scroll {
  overflow: hidden;
}

/* セクション共通 */
section {
  padding: 80px 0;
  text-align: center;
}

section:nth-of-type(odd) {
  background-color: #fff;
}
/* アニメーション付きh2タイトルスタイル */

/* 文字色のみアニメーション付きh2タイトルスタイル */

/* 基本のh2スタイルを上書き */
section h2 {
  font-size: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 40px;
  text-align: center;
  
  /* 文字色のグラデーションアニメーション */
  background: linear-gradient( 135deg, #4A90E2, #16A085
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textColorShift 10s ease-in-out infinite;
}

/* 既存の下線を保持 */
section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #16A085;
  border-radius: 2px;
}

/* 文字色のグラデーション移動アニメーション */
@keyframes textColorShift {
  0% {
      background-position: 0% 50%;
  }
  20% {
      background-position: 25% 25%;
  }
  40% {
      background-position: 75% 75%;
  }
  60% {
      background-position: 100% 50%;
  }
  80% {
      background-position: 50% 100%;
  }
  100% {
      background-position: 0% 50%;
  }
}

/* ホバー時の効果 */
section h2:hover {
  animation-duration: 5s; /* テキストアニメーションを加速 */
}

/* ニュースセクションのh2は明るい色調 */
.news-section h2 {
  /* 文字色のグラデーションアニメーション（明るめの色調） */
  background: linear-gradient(45deg, 
      #ffffff, #e1f5fe, #b3e5fc, #81d4fa, 
      #4fc3f7, #29b6f6, #03a9f4, #0288d1,
      #0277bd, #01579b, #ffffff
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lightTextColorShift 12s ease-in-out infinite;
  color: #ffffff; /* フォールバック用 */
}

/* ニュースセクション用の明るい文字色アニメーション */
@keyframes lightTextColorShift {
  0% {
      background-position: 0% 50%;
  }
  25% {
      background-position: 100% 0%;
  }
  50% {
      background-position: 0% 100%;
  }
  75% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  section h2 {
      font-size: 32px;
      animation-duration: 8s; /* モバイルでは少し早めに */
  }
  
  .news-section h2 {
      animation-duration: 10s;
  }
}


/* ヒーローセクション */
.hero-section {
  position: relative;
  background-image: url('img/hero-bgimg.png');
  background-size: cover;
  background-position: center;
  color: #333;
  padding: 150px 0;
  display: flex;
  align-items: center;
  min-height: 70vh;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.7);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.hero-section h1 {
  font-size: 65px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 40px;
  }
  
}

.hero-section h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);   /* 下から浮き上がる */
  animation: floatUp 0.6s forwards;
}

@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section p {
  margin-top: 0;
  margin-bottom: 40px;
  line-height: 2;
}

/* 流れ星のスタイル */
.shooting-star {
  position: absolute;
  top: -10px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(-45deg, white, rgba(255,255,255,0));
  opacity: 0;
  border-radius: 999px;
  filter: drop-shadow(0 0 3px white);
  transform: translateX(0) translateY(0) rotate(-45deg);
  animation-name: shootingStarMove;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes shootingStarMove {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(-45deg);
  }
  100% {
    opacity: 0;
    transform: translateX(100vw) translateY(100vh) rotate(-45deg);
  }
}

/* ニュースセクション */
/* お知らせセクション - 装飾画像を2つに制限 */
.news-section {
  background-image: url(img/newsbg-img.png);
  background-size: cover;
  color: #e0e6ff;
  position: relative;
  /* 他の装飾要素をリセット */
  overflow: hidden;
}

/* 右上のUFO画像のみ残す */
.news-section::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 100px;
  height: 100px;
  background-image: url('img/rocket_icon.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
  animation: floatUpDown 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

/* 左下の惑星画像のみ残す */
.news-section::before {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 120px;
  height: 120px;
  background-image: url('img/news_icon-2.png');
  background-repeat: no-repeat;
  background-size: contain;
  animation: floatUpDownReverse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 9;
}
/* 右上の浮遊アニメーション */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 左下の逆方向浮遊アニメーション */
@keyframes floatUpDownReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
}



.news-section a {
  color: #ffffff;
}

.news-section a:hover {
  color: #16A085;
}


/* もっと見るボタンの色調整 */
.btn-more-news {
  background-color: #16A085;
  color: #fff;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 20px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.btn-more-news:hover {
  background-color: #0F5C4A; 
  color: #e0e6ff;
}


/* 実績セクション */
/* スライダーコンテナ */
.works-slider-container {
  position: relative;
  overflow-x: hidden;
}
/* style.css */

/* お知らせセクション内の各ニュース記事を白背景、黒文字に */
.news-list .news-item {
  background-color: #fff;    /* 白背景 */
  color: #000;               /* 黒文字 */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
  position: relative;
  z-index: 20; /* 浮遊イメージより前面に表示 */
}

/* お知らせ記事見出しリンクを黒色に */
.news-list .news-item h3 a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-list .news-item h3 a:hover {
  color: #16A085;
}

/* 日付（time要素）も見やすく黒寄りに */
.news-list .news-item time {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555; /* 少し薄めの黒で読みやすさ */
}

/* ニュース本文 */
.news-list .news-item p {
  font-size: 16px;
  line-height: 1.6;
}
.news-list a{
  color: #16A085;
}
.works-section{ 
  position:relative; 
}  
.works-section::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100px;
  height: 100px;
  background-image: url('img/person.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1; /* 透明度元に戻す */
  animation: floatUpDown 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

.works-section::before {
  content: "";
  position: absolute;
  bottom: 60px;
  right: 10px;
  width: 100px;
  height: 100px;
  background-image: url('img/wakusei.png');
  background-repeat: no-repeat;
  background-size: contain;
  animation: floatUpDownReverse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 9;
}

@media (max-width: 768px) {
  .works-section::after {
    width: 50px;
  }
  
  .works-section::before {
    width: 80px;
  }
}

/* works-grid 横並びに戻す */
.works-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.works-grid::-webkit-scrollbar {
  display: none;
}

/* work-item 基本スタイル */
.work-item {
  flex-shrink: 0;
  width: 300px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
  will-change: transform;
  transform-origin: center center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  justify-content: center; /* centers horizontally */
  align-items: center; /* centers vertically if needed */
  
}

/* hover またはアクティブ時 */
.work-item:hover,
.work-item.is-active {
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  z-index: 10;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 画像設定 */
.work-item img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background-color: transparent;
  margin-bottom: 10px;
  
}

/* 小さい画像用の背景 */
.work-item img.small-img {
  background-color: #e6f2f8;
  padding: 8px;
  border-radius: 4px;
}

/* タイトル */
.work-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
  text-align: center;
}

/* 説明文 */
.work-item p {
  font-size: 15px;
  color: #555;
  text-align: center;
  margin-bottom: 0;
  padding: 0 10px;
}

/* 矢印ボタン */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,188,212,0.8);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.slider-arrow:hover {
  background-color: #00bcd4;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* 実績セクション - 検索・フィルター機能のスタイル */

/* 検索・フィルターエリア */
.works-filter {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 20;
}

/* 検索バー */
.search-container {
  position: relative;
  margin-bottom: 25px;
}

.search-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.search-input:focus {
  outline: none;
  border-color: #16A085;  /* ティールに変更 */
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
}

/* カテゴリ・タグフィルター */
.filter-section {
  margin-bottom: 20px;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn {
  padding: 8px 20px;
  border: 2px solid #e0e0e0;
  background-color: #fff;
  color: #666;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.category-btn:hover {
  border-color: #16A085;  /* ティールに変更 */
  color: #16A085;
}

.category-btn.active {
  background-color: #16A085;  /* ティールに変更 */
  border-color: #16A085;
  color: #fff;
}

/* タグフィルター */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  padding: 6px 15px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  color: #666;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  position: relative;
}

.tag-btn:hover {
  background-color: #e9ecef;
  border-color: #16A085; 
}

.tag-btn.active {
  background-color: #16A085;  /* ティールに変更 */
  border-color: #16A085;
  color: #fff;
}

.tag-btn::before {
  content: "#";
  margin-right: 2px;
}

/* フィルター情報表示 */
.filter-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.clear-filters {
  color: #16A085;
  cursor: pointer;
  font-weight: 500;
}

.clear-filters:hover {
  text-decoration: underline;
}

/* 作品グリッド - 既存スタイルを上書き */
.works-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
  z-index: 20;
  overflow: visible !important;
  scroll-behavior: auto !important;
}

/* 作品アイテム - 既存スタイルを上書き */
.work-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  display: block !important;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  width: auto !important;
  flex-shrink: 1 !important;
  will-change: auto !important;
  transform-origin: center center;
  z-index: 1;
}

.work-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
  z-index: 10;
}

.work-item.is-active {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
  z-index: 10;
}

.work-item img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background-color: transparent;
  margin-bottom: 15px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.work-item img.small-img {
  background-color: #e6f2f8;
  padding: 8px;
  border-radius: 4px;
}

.work-category {
  display: inline-block;
  background: linear-gradient(135deg, #16A085, #1ABC9C);  /* ティール系グラデーションに変更 */
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.work-item h3 {
  font-size: 18px !important;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px !important;
  text-align: center;
}

.work-item p {
  color: #666;
  font-size: 14px !important;
  line-height: 1.5;
  margin-bottom: 12px !important;
  text-align: center;
  padding: 0 10px;
}

.work-client {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
  justify-content: center;
}

.work-tag {
  background-color: #f0f9ff;
  color: #0284c7;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.work-more {
  display: inline-flex;
  align-items: center;
  color: #00bcd4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.work-more:hover {
  color: #0097a7;
}

.work-more::after {
  content: "→";
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.work-more:hover::after {
  transform: translateX(3px);
}

/* 結果なし表示 */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

/* 隠す用のクラス */
.hidden {
  display: none !important;
}

/* 初期非表示項目 */
.hidden-item {
  display: none;
}

/* セクション内のもっと見るボタン */
.btn-more-works {
  background: linear-gradient(135deg, #00bcd4, #4fc3f7);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-more-works:hover {
  background: linear-gradient(135deg, #0097a7, #29b6f6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-more-works::after {
  content: "▼";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-more-works:hover::after {
  transform: translateY(2px);
}

/* フェードイン効果 */
.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ボタンが非表示の時 */
.btn-more-works.hidden {
  display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .works-filter {
      padding: 20px;
  }

  .works-grid {
      grid-template-columns: 1fr !important;
      gap: 20px;
  }

  .category-filters {
      justify-content: center;
  }

  .filter-info {
      flex-direction: column;
      gap: 10px;
      align-items: center;
  }

  .btn-more-works {
      padding: 10px 25px;
      font-size: 14px;
  }
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
  cursor: pointer; /* 追加 */
  transition: color 0.3s ease, transform 0.2s ease; /* 追加 */
  user-select: none; /* 追加 */
}

.search-icon:hover {
  color: #16A085;
  transform: translateY(-50%) scale(1.2);
}

.search-icon:active {
  transform: translateY(-50%) scale(0.95);
}

/* プロフィール */

.profile-section {
  position: relative;
  background-image: url(img/profbgimg.png);
  background-size: cover;
  background-position: center;
  color: #333; /* 文字色は暗め */
  padding: 80px 0;
  overflow: hidden;
}

.profile-content {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 250, 0.85); /* 半透明オフホワイト背景をテキスト全体に */
  border-radius: 16px;
  padding: 40px 40px 60px 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
  flex-wrap: nowrap;
}
@media (max-width: 768px) {
  .profile-content {
    flex-direction: column;
  }
}



/* テキスト部分にも余白と背景 */
.profile-text {
  background-color: transparent; /* 背景は.profile-contentに集約 */
  padding: 0;
}

/* 小さい画面での調整：paddingの縮小 */
@media (max-width: 768px) {
  .profile-content {
    padding: 20px 20px 30px 20px;
    margin: 0 10px;
  }
  .profile-section {
    padding: 60px 0;
  }
}


/* 左側縦並びラッパー */
.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
  width: 250px; /* 左カラムの横幅固定 */
}


/* プロフィール写真 */
.profile-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 右側紹介文 */
.profile-text {
  flex-grow: 1;
}
.profile-sub-section {
  margin-bottom: 40px;
}

.profile-sub-section:last-child {
  margin-bottom: 0;
}

.profile-sub-section h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.profile-sub-section p {
  font-size: 17px;
  margin-bottom: 0;
  line-height: 1.7;
  text-align: left;
}

.profile-sub-section a{
  color:  #4A90E2;
}
/* ふにゃっとした切り抜き */
.clip-soft {
  clip-path: polygon(
    15% 0%, 85% 0%, 
    100% 15%, 100% 85%, 
    85% 100%, 15% 100%, 
    0% 85%, 0% 15%
  );
  transition: transform 0.3s ease;
}

/* --- 修正・追加部分 --- */

/* ランダム画像親要素のサイズを大きく */
.random-images {
  position: relative;
  width: 400px;   /* 元300pxから大きく */
  height: 450px;  /* 元350pxから大きく */
  margin: 0 auto;
}

/* 各画像要素サイズを大きくし、間隔を空け、位置調整 */
/* さらにclip-pathで少しずつ形を変えて凹凸を付ける */
.random-images img.random-pos {
  position: absolute;
  width: 170px;  /* 拡大 */
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  user-select: none;
  cursor: default;
  transition: transform 0.3s ease;
  border-radius: 50%; /* ベースは丸 */
  /* 凹みをclip-pathで表現 */
}

/* １枚目 */
.random-images img.random-pos:nth-child(1) {
  top: 5px;
  left: 10px;
  width: 180px;
  clip-path: polygon(
    30% 0%, 70% 5%, 
    100% 30%, 95% 70%, 
    70% 100%, 30% 95%, 
    0% 70%, 5% 30%
  );
  transform: rotate(-8deg);
}

/* ２枚目 */
.random-images img.random-pos:nth-child(2) {
  top: 150px;
  left: 110px;
  width: 160px;
  clip-path: polygon(
    20% 0%, 80% 15%, 
    100% 40%, 85% 80%, 
    50% 100%, 25% 85%, 
    5% 50%, 10% 20%
  );
  transform: rotate(10deg);
}

/* ３枚目 */
.random-images img.random-pos:nth-child(3) {
  top: 280px;
  left: 30px;
  width: 200px;
  clip-path: polygon(
    25% 5%, 75% 0%, 
    95% 25%, 100% 70%, 
    75% 95%, 25% 100%, 
    5% 75%, 0% 30%
  );
  transform: rotate(-4deg);
}

/* ホバー時は角度をリセットし少し拡大 */
.random-images img.random-pos:hover {
  transform: scale(1.07) rotate(0deg);
  z-index: 10;
}
/* お問い合わせ */
.contact-text {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  text-align: left;
}

.contact-text .a a {
  color:  #4A90E2;
  font-weight: 600;
  text-decoration: none;
}

/* キラキラボタン */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(5px, -5px) scale(1.2);
  }
}

.btn-sparkle {
  position: relative;
  display: inline-block;
  background-color:  #16A085;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  text-align: center;
  user-select: none;
}
.btn-sparkle a {
  color: #ffffff;
}
.btn-sparkle a:hover {
  color: #16A085;
}
@media (max-width: 768px) {
  .hero-section .btn-sparkle {
    display: block;
    margin: 20px auto 0 auto;
    text-align: center;
  }
}

.btn-sparkle:hover {
  background-color: #fff;
  color:  #16A085;
}

/* フッター */
footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
  font-size: 15px;
  position: relative;
}

/* footerアイコン用 */
.footer-contact-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.footer-contact-icons a img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.footer-contact-icons a:hover img {
  opacity: 0.7;
}

/* ハンバーガーメニューの表示制御（スマホ用） */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul li {
    margin: 20px 0;
  }

  .main-nav ul li a {
    font-size: 28px;
    color: #333;
    background-color: transparent;
    box-shadow: none;
    transform: none;
    padding: 5px 0;
  }

  .main-nav ul li a:hover {
    color:#16A085;
    background-color: transparent;
    transform: none;
  }

  .main-nav ul li a::before {
    display: none !important;
  }

  .mobile-menu-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
  }

  .mobile-menu-icons a img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-icons a:hover img {
    opacity: 0.7;
  }

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 32px;
  }

  /* header背景の地球画像はスマホで非表示 */
  header::before {
    display: none;
  }
  
  /* header右端アイコンも非表示 */
  .header-contact-icons {
    display: none;
  }
}

/* ローディングオーバーレイ */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-overlay .loading-logo {
  width: 200px;
  margin-bottom: 40px;
  user-select: none;
  pointer-events: none;
}

.loading-dots {
  display: flex;
  gap: 15px;
}

.loading-dot {
  width: 16px;
  height: 16px;
  background-color:#16A085;
  border-radius: 50%;
  animation-name: bounce;
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.loading-dot:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

/* character-section配置 */
.character-section {
  position: relative;
  padding: 40px 0 80px 0;
  background-color: #ffffff; /* お問い合わせセクションと近い背景色で自然に繋ぐ */
  overflow: visible;
}

/* container内で画像を横並びに中央寄せ */
.character-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 20px;
}

/* 画像共通 */
.character-images img {
  max-width: 160px;
  height: auto;
  cursor: default;
  user-select: none;
  transition: transform 0.3s ease;
}

/* ホバーで少し拡大 */
.character-images img:hover {
  transform: scale(1.1);
}

/* 画面幅が狭い時は縦並びに */
@media (max-width: 768px) {
  .character-images {
    gap: 20px;
  }
  .character-images img {
    max-width: 80px;
  }
}
.character-left {
  position: relative;
  top: -50px; /* 少し上にずらす */
}

.character-right {
  position: relative;
  top: -50px; /* 少し上にずらす */
}

.wave{
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 80px; display: block;
}
.wave path{ fill:#ffffff; } 

.wave2{
  position:absolute; left:0; right:0; bottom:-1px;
  width:100%; height:80px; display:block;
}
.wave2 path{ 
  fill:#c8d7ec; }