@charset "UTF-8";

/*!
Theme Name: Cocoon Child daruma
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: noraroba
Template: cocoon-master
Version: 1.1.2
*/


/************************************
** 全体・ヒーローセクション設定
************************************/
#content-in {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('images/YMDMainImage.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 4rem 1rem;
  margin-top: 10px;
}

@media screen and (max-width: 767px) {
  .hero-section {
    background-image: url('images/sp_work1.png');
  }
}



.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  margin-top: 280px;
}

.site-tagline {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: fade-in-up 1s ease-out forwards;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}
/************************************
** スマホのみYMD-Product表示
************************************/
/* ▼ スマホ専用：YMD-Productタイトル */
.mobile-hero-title {
  display: none; /* デフォルト非表示 */
}

/* ▼ スマホ用：767px以下で表示＋ふわっと登場 */
@media screen and (max-width: 767px) {
  .mobile-hero-title {
    display: block !important;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInTop 1.6s ease-out 0.3s forwards;
    z-index: 9999;
    text-shadow:
      1px 1px 2px rgba(0,0,0,0.8),
      0 0 5px rgba(255,255,255,0.1);
  }
}


@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ▼ フェードインアニメーション定義 */
@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/************************************
** スクロールボタン
************************************/
.scroll-button {
  display: inline-block;
  margin-top: 2rem;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  animation: bounce 2s infinite;
}

/************************************
** 各セクション（事業内容・サービスなど）
************************************/
.intro-section,
.services-section,
.cta-section {
  padding: 4rem 1rem;
  background: #f9f9f9;
  text-align: center;
}
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background-color: #0073aa;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005f88;
}


.services-list {
  list-style: none;
  text-align: center; /* ← 中央寄せに変更 */
  max-width: 600px;
  margin: 0 auto;
  padding-left: 0; /* 左余白も不要になるため0に */
}

.hero-content {
  text-align: center; /* ← 追加 */
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.hero-content p,
.hero-content li {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

/************************************
** アニメーション
************************************/
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/************************************
** レスポンシブデザイン対応
************************************/
@media screen and (max-width: 768px) {
  .site-tagline {
    font-size: 1.8rem;
    margin-top: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .site-tagline {
    font-size: 1.4rem;
    margin-top: 0.3rem;
  }
}

/************************************
** 余分なロゴ類の非表示
************************************/
.site-title,
.logo-header,
.site-name-text {
  display: none !important;
}

/************************************
** ヘッダーメニュー
************************************/
/* ===== ヘッダーメニュー：全体の見た目 ===== */
/* 渋め現場系メニュー */
/* ▼ メニュー全体（同じままでOK） */
.menu-header {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #3daeae;
  padding: 1rem 0;
  flex-wrap: wrap;
}

/* ▼ メニュー全体のスタイル */
.menu-header {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #1a1a1a;
  padding: 1rem 0;
  flex-wrap: wrap;
}

/* ▼ スマホ対応 */
@media screen and (max-width: 768px) {
  .menu-header {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
}

/* ▼ Cocoon特有構造のリセット */
.menu-header .caption-wrap,
.menu-header .item-label {
  all: unset;
  display: inline;
}

/* ▼ メニューリンクの基本スタイル */
.menu-header .menu-item a {
  color: #e0e0e0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5em 1em;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1;
}

/* ▼ アイコン部分 */
.menu-header .menu-icon {
  font-size: 1rem;
  opacity: 0.75;
  margin-right: 0.4em;
}

/* ▼ ホバー時：一瞬だけ色・発光 */
.menu-header .menu-item a:hover {
  color: #ffd700;
  animation: glow-fade 0.6s ease-out;
}

/* ▼ ホバー時：光が走るような擬似要素 */
.menu-header .menu-item a::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
  z-index: 0;
}

.menu-header .menu-item a:hover::before {
  animation: shine-down 0.6s ease-out;
}

/* ▼ クリック時：LED点灯風 */
.menu-header .menu-item a:active {
  animation: led-flash 0.3s ease-out;
}

/* ▼ 上から下に走る光 */
@keyframes shine-down {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ▼ ふわっと光って戻る（ホバー） */
@keyframes glow-fade {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 200, 0);
  }
  40% {
    box-shadow: 0 0 10px rgba(255, 255, 200, 0.6);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 255, 200, 0);
  }
}

/* ▼ クリック時：LED発光 */
@keyframes led-flash {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 150, 0);
    background-color: transparent;
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 255, 150, 0.8);
    background-color: rgba(255, 255, 150, 0.05);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 255, 150, 0);
    background-color: transparent;
  }
}
