/* ===========================================
   トップページ メインビジュアル
   =========================================== */

/* --- レイアウト --- */
/*
.main-container {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}*/
.main-container {
    background-image: url(https://yamamotoweb.jp/colorist/wp-content/uploads/mainlogo.png);
    background-position: left top;
    background-size: auto 100%;
    background-repeat: no-repeat;
    height: calc(100vh - 100px);
    margin-bottom: 20px;
}
/*上の詰まり*/
.site-body {
	padding-top:10px;
}
.free-layout-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 60vh;
  margin: 0 auto;
}

/* --- 写真（gallery-item） --- */
.gallery-item {
/*  position: absolute;
  visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);*/
  position: absolute;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PC配置 */
.gallery-item.pos-1 { 
  width:40%;
  top: 5%;
  right: 10%;
}
.gallery-item.pos-2 { 
  width: 25%;
  top: 56%;
  right: 5%;
}
.gallery-item.pos-3 { 
  width: 25%;
  top: 20%;
  left: 40%;
  z-index: 2;
}
/*
.gallery-item.pos-4 { width: 25%; top: 3%;  right: 5%; }
.gallery-item.pos-5 { width: 18%; bottom: 10%; left: 10%; }
.gallery-item.pos-6 { width: 22%; bottom: 5%;  left: 35%; }
.gallery-item.pos-7 { width: 20%; bottom: 8%;  right: 10%; }*/
.pos-4 { top: 60%; left: 50%; width: 22%; }
.pos-5 { top: 38%; left: 50%; width: 20%; z-index: 3;}
.pos-6 { top: 45%; left: 27%; width: 30%; z-index: 5; }
.pos-7 { top: 75%; left: 60%; width: 20%; }

/* --- テキスト画像 --- */
.final-sub-image,
.final-sub-image-2,
.final-sub-image-3 {
  position: absolute;
  z-index: 10 !important;
  left: 30%;
  width: 30%;
  display: block;
  opacity: 0;
  visibility: hidden;
}
/* --- ① 1行目 --- */
.final-sub-image {
  top: 5%;  /* 画面の上から35%の位置 */
}

/* --- ② 2行目 --- */
.final-sub-image-2 {
  top: 15%;  /* 1行目の下（間隔は%の差で調整） */
}

/* --- ③ 3行目 --- */
.final-sub-image-3 {
  top: 24%;  /* 2行目の下 */
  width:28%;
}

/* --- 最終テキスト（カラリスト検定ロゴ） --- */
.final-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-30%, 0);
  text-align: center;
  visibility: hidden; /* GSAPで制御 */
  z-index: 10;
  width: 90%;
  max-width: 800px;
}
.final-text img {
  width: 100%;
  height: auto;
}
.final-text .pc-img {
  display: block;
}
.final-text .sp-img {
  display: none;
}

/* --- 赤丸背景（show-semicircle） --- */
/*.main-container.show-semicircle::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at bottom, #e50113 0%, transparent 70%);
  opacity: 0.15;
  z-index: 0;
  transition: opacity 0.8s ease;
}*/

/* ===========================================
   検定バナー
   =========================================== */
.kentei_block {
  padding: 0 !important;
  margin: 20px 0;
}
.kentei_ban {
  width: 100%;
  text-align: center;
}
.kentei_ban img {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

/* ===========================================
   後援団体スライダー
   =========================================== */
.support-org-section {
    text-align: center;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}
.support-title {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
    display: inline-block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.mySupportSwiper {
	width: 100%;
	padding: 10px 10px 50px 10px !important;
	box-sizing: border-box;
}
.mySupportSwiper .swiper-slide {
  height: auto;
  display: flex;
  padding: 5px;
  box-sizing: border-box;
}
.support-item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px 5px;
  text-decoration: none;
  color: #000 !important;
  font-size: 12px;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.support-item:hover {
  background-color: #f0f0f0;
  border-color: #ddd !important;
}

/* ===========================================
   INFORMATION（お知らせ）セクション
   =========================================== */
.news-width-container {
  width: 80%;
  margin: 0 auto;
}
.custom-post-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  border-bottom: 1px dashed #000;
  padding: 1.5em 1em;
  margin: 0;
  list-style: none;
}
.custom-post-cat {
  width: 30%;
  margin-bottom: 0;
  margin-right:2em;
}
.custom-post-body {
  width: 100%;
  display: flex;
  align-items: center;
}
.custom-post-date {
  margin-right: 1em;
  white-space: nowrap;
  font-size: 0.85rem;
}
.custom-post-title a {
  color: #000 !important;
  text-decoration: none;
}
.custom-post-title h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
/* カテゴリ別カラー */
.cat-design {
  padding: 5px;
  border-radius: 5px;
  color: #fff;
  font-size: 0.85em;
  text-align: center;
}
.cat-design.seminar     { background-color: #26ba9d; }
.cat-design.examination { background-color: #4a6bcf; }
.cat-design.voice       { background-color: #ffcf00; }
.cat-design.activity    { background-color: #e60213; }
.cat-design.topics      { background-color: #f19db1; }

.kako {
padding-right:10%;
}

/* ===========================================
   カラリスト検定とは（3つの丸）
   =========================================== */
.list-container {
	position: relative;
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 100px 0;
    z-index: 1;
}
.list-container::before {
    content: '';
    position: absolute;
    bottom: 0;                 /* 下端 */
    left: 50%;
    transform: translateX(-50%); /* 左右中央 */
    
    /* ドーム型（上向き） */
    width: 120%;
    height: 70%;
    border-radius: 50% 50% 0 0;
    
    background-color: #f2f2f2; /* 背景色 */
    z-index: -1;               /* コンテンツの後ろへ */
}
.list-item {
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  text-align: center;
}
.top-area {
  margin-bottom: 20px;
}
.circle01, .circle02, .circle03 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.circle01 {
    width: 300px;
    height: 300px;
    background: #fce3cd;
    border-radius: 50%;
    text-align: center;
    line-height: 10px;
    padding-top: 50px;
}
.circle02 { 
    width: 300px;
    height: 300px;
    background: #fadce2;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    padding-top: 50px;
}
.circle03 { 
    width: 300px;
    height: 300px;
    background: #fbdad1;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    padding-top: 50px;
}
.circle01 img, .circle02 img, .circle03 img {
  width: 60%;
  margin-bottom: 5px;
}
.circle01 p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}
.circle02 p, .circle03 p {
  font-size: 12px;
  line-height: 1.4;
  margin-top:20px;
}
.circle01 .mini {
    font-weight: bold;
    font-size: 0.8em;
    margin-bottom: 10px !important;
}
.circle01-txt {
  font-weight: bold;
}
.top-area p {
    font-weight: bold;
    font-size: 1.25em;
    color: #4F4F4F;
}
.top-area a {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: none !important;
}
.bottom-area .txtbox {
  padding: 20px;
  text-align: left;
}
.bottom-area .txtbox p.midashi {
    font-weight: bold;
    font-size: 20px;
    text-align: left;
}
.bottom-area .txtbox p {
    font-size: 16px;
    font-weight: normal;
    text-align: left;
}
.btn-detail {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
/*    padding: 10px 30px;*/
padding: .6em 1.5rem !important;
	background-color: transparent;
    border: 1px solid #cc0000;
    color: #cc0000;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 5px;
	font-size:16px !important;
}
.btn-detail:hover {
  background: #e50113;
  color: #fff !important;
}

/* ===========================================
   活躍するカラリストたち（over-gray背景）
   =========================================== */
.over-gray {
  background-color: #f5f5f5;
}
.cus-img .wp-block-media-text__media img {
  border-radius: 0;
}

/* ===========================================
   3カラムの案内セクション
   =========================================== */
.guidance {
  list-style: none;
  padding: 0;
}
.guidance .wp-block-post {
  text-align: center;
}
.guidance .guidance-3block {
    color: #333333;
    border-radius: 3px;
    box-shadow: 0px 1px 10px 3px rgba(0, 0, 0, 0.13);
}

/* ===========================================
   マーキー（流れるテキスト）
   =========================================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    color: #999;
    padding: 15px 0;
}
.marquee-content {
	display: flex;
    width: fit-content;
    animation: marquee-animation 50s linear infinite;
}
.marquee-text {
    white-space: nowrap;
    font-size: 200px;
    font-weight: bold;
    opacity: 0.2;
}
  @keyframes marquee-animation {
    /* 開始時（0%） */
    0% {
      transform: translateX(0);
    }
    /* 終了時（100%） */
    /* テキスト2つ分のうち、1つ分（=50%）だけ左に移動して0%に戻る */
    100% {
      transform: translateX(-50%);
    }
  }

/* ===========================================
   フローティングメニュー（PC）
   =========================================== 
.floating-menu {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s;
}
.floating-menu.hero-mode {
  opacity: 0;
  pointer-events: none;
}
.floating-menu .fix-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  background: #e50113;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 15px 5px;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}
.floating-menu .fix-btn:hover {
  background: #c00010;
}
.floating-menu .vertical {
  writing-mode: vertical-rl;
  margin: 0;
  letter-spacing: 0.2em;
}*/
/* ===========================================
   フローティングメニュー（スマホ）a
   =========================================== */
@media (max-width: 991px) {
	.floating-menu.hero-mode {
		position: absolute !important;
		top: 550px !important;
		left: 0 !important;
		width: 100% !important;
		flex-direction: row !important;
		justify-content: center !important;
		gap: 15px !important;
		right: auto !important;
		z-index: 9999 !important;
		opacity: 0;
		visibility: hidden;
	}
	.floating-menu.hero-mode .fix-btn {
		width: 45% !important;
		max-width: 200px !important;
		padding: 15px 0 !important;
		height: auto !important;
		border-radius: 50px !important;
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
	}
	.floating-menu.hero-mode .vertical {
		writing-mode: horizontal-tb !important;
		text-orientation: mixed !important;
		margin: 0 !important;
		font-size: 14px !important;
	}
	.fix-btn {
		display: flex;
		border-radius: 5px;
		width: 50px;
		padding: 25px 60px 10px 0;
		background: #e50113;
		color: white;
		text-decoration: none;
		text-align: center;
		font-size: 16px;
		font-weight: bold;
		box-shadow: 1px 1px 5px #aaa;
		transition: transform 0.3s;
	}
	.sp-floating-menu {
	  display: none;
	  position: fixed;
	  bottom: 0;
	  left: 0;
	  width: 100%;
	  z-index: 998;
	  background: #fff;
	  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	  padding: 8px;
	  gap: 8px;
	  opacity: 0;
	  transform: translateY(100%);
	  transition: opacity 0.3s, transform 0.3s;
	}
	.sp-floating-menu.is-visible {
	  opacity: 1;
	  transform: translateY(0);
	}
	.sp-floating-banner {
	  display: none;
	  position: fixed;
	  bottom: 70px;
	  left: 0;
	  width: 100%;
	  z-index: 997;
	  padding: 0 8px;
	  opacity: 0;
	  transform: translateY(100%);
	  transition: opacity 0.3s, transform 0.3s;
	}
	.sp-floating-banner.is-visible {
	  opacity: 1;
	  transform: translateY(0);
	}
	.sp-floating-banner img {
	  width: 100%;
	  border-radius: 8px;
	}
	.sp-btn {
	  flex: 1;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  padding: 10px;
	  border-radius: 6px;
	  text-decoration: none;
	  font-size: 13px;
	  font-weight: bold;
	  text-align: center;
	}
	.sp-btn-left {
	  background: #fff;
	  border: 2px solid #e50113;
	  color: #e50113 !important;
	}
	.sp-btn-right {
	  background: #e50113;
	  color: #fff !important;
	}

	.banner-hide {
	  opacity: 0 !important;
	  pointer-events: none !important;
	  transition: opacity 0.3s;
	}
}
/* ===========================================
   固定バナー（PC下部）
   =========================================== */
.button-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 996;
  width: 90%;
  max-width: 800px;
}
.button-container button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.button-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===========================================
   スティッキーロゴ（スクロール時にナビに表示）
   =========================================== */
.menu-item-sticky-logo {
  display: flex;
  align-items: center;
  margin-right: 20px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-item-sticky-logo img {
  height: 40px;
  width: auto;
  max-width: none;
  vertical-align: middle;
}
body.is-scrolled .menu-item-sticky-logo {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================================
   スマホ用メニューボタン位置調整 b
   =========================================== */
@media (max-width: 991px) {
  .menu-item-sticky-logo {
    display: none !important;
  }
  .vk-mobile-nav-menu-btn {
    top: 10px !important;
    bottom: auto !important;
  }
  .sp-floating-menu {
    display: flex;
  }
  .sp-floating-banner {
    display: block;
  }
  .floating-menu {
    display: none;
  }
  .button-container {
    display: none;
  }

}

/* ===========================================
   スマホ用レイアウト調整
   =========================================== */
@media (max-width: 767px) {
	.main-container {
		height: 600px;
		background-image: none;
		overflow: hidden;
		position: relative;
	}
	.main-container.show-semicircle::before {
        opacity: 1;
    }
    .main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 480px;
        background-image: url(https://yamamotoweb.jp/colorist/wp-content/uploads/mainlogo.png);
        background-position: left top;
        background-size: auto 480px;
        background-repeat: no-repeat;
        opacity: 0;
        z-index: 0;
        transition: opacity 1.5s ease;
    }
	  .custom-post-cat {
		width: 20%;
	  }
	.gallery-item {
		width: 35% !important;
	  }
	.gallery-item.pos-1 { 
		width: 45% !important;
        top: 5% !important;
        left: 55% !important;
	}
	.gallery-item.pos-2 { 
        width: 40% !important;
        top: 35% !important;
        left: 50% !important;
	}
	.gallery-item.pos-3 { 
	  width: 25%;
	  top: 20%;
	  left: 40%;
	  z-index: 2;
	}
	.pos-4 {
        width: 32% !important;
        top: 60% !important;
        left: 8% !important;
    }
    .pos-5 {
        width: 35% !important;
        left: 5% !important;
    }
    .pos-6 {
        width: 48% !important;
        top: 12% !important;
        left: 2% !important;
    }
	.pos-7 {
        width: 35% !important;
        top: 62% !important;
        left: 58% !important;
    }
	.final-text {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        margin: 0 !important;
	}
    .final-sub-image, .final-sub-image-2, .final-sub-image-3 {
        width: 80% !important;
        left: 50% !important;
        transform: translateX(-50%);
        margin: 0;
    }
    .final-sub-image {
        top: 30%;
    }
    .final-sub-image-2 { top: 45% !important; }
    .final-sub-image-3 { top: 60% !important; }
    .final-text .pc-img { display: none; }
    .final-text .sp-img { 
    	display: block !important;
    	width: auto !important;
    	height: auto !important;
    	max-height: 50vh !important;
    	max-width: 50% !important;
    	object-fit: contain !important;
    	position: absolute !important;
    	top: 10px !important;
    	right: 10px !important;
    	margin: 0 !important;
    }
    .list-container {
    	flex-direction: column;
    	align-items: center;
    }
    .news-width-container {
		width: 95%;
    }
    .list-container::before {
    	display:none;
    }
    .custom-post-layout {
    	padding: 1em 0.5em;
    }
    .marquee-text {
		font-size: 40px;
    }

}

@media (min-width: 768px) {
  .custom-post-layout {
    flex-wrap: nowrap;
    gap: 0;
    padding-left: 4em;
    box-sizing: border-box;
  }
  .custom-post-cat {
    width: 20%;
  }
  .custom-post-date {
    font-size: 1em !important;
  }
  .custom-post-title {
    width: 80%;
  }
}

/* ===========================================
   共通スタイル
   =========================================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: #4F4F4F;
}
.global-nav-name {
  font-weight: normal;
}
address {
  color: #999 !important;
}
#site-header,
.site-header {
  top: 0 !important;
  margin-top: 0 !important;
}
