/*
Theme Name: Lightning Child Sample
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/
/*MVスタイル*/
/* --- 基本設定 (前回と同じ) --- */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.site-body {
  padding:5px;
}
/* PC（デフォルト）では改行タグを無効化 */
.sp-br {
    display: none;
}

/* スマホ（768px以下）でのみ改行タグを有効化 */
@media screen and (max-width: 768px) {
    .sp-br {
        display: block;
    }

	.main-container {
  height: 300px;
}
}
/*mv*/
.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);
}
.free-layout-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}
/* --- 写真のスタイル (前回と同じ) --- */
.gallery-item {
  position: absolute;
  height: auto;
/*  aspect-ratio: 1 / 1;*/
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
/*  border: 4px solid white;*/
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 位置指定 */
.pos-1 { 
  width:40%;
  top: 5%;
  right: 10%;
}
.pos-2 { 
  width: 25%;
  top: 56%;
  right: 5%;
}
.pos-3 { 
  width: 25%;
  top: 20%;
  left: 40%;
  z-index: 2;
}
.pos-4 { top: 60%; left: 40%; width: 22%; }
.pos-5 { top: 38%; left: 30%; width: 20%; z-index: 3;}
.pos-6 { top: 40%; left: 57%; width: 30%; z-index: 5; }
.pos-7 { top: 75%; left: 60%; width: 20%; }

/* --- ★追加★ 最終テキストのスタイル --- */
.final-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-30%, 0);
  margin: 0;
  width:90%;
  max-width:800px;
  /* 初期状態（非表示） */
  opacity: 0;
  visibility: hidden;
  z-index: 10; /* 写真より手前に */
}
.final-text img {
   width: 100%;
   height: auto;
}
.sp-img {
    display: none;          /* スマホ用画像は消す */
}

.pc-img {
    display: block;         /* PC用画像を表示 */
    width: 100%;            /* 幅はお好みで */
    height: auto;
}

/* --- 共通設定（3つとも同じ基本設定） --- */
.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%;
}

/* --- スマホ調整 --- */
@media screen and (max-width: 768px) {
.main-container {
        height: 600px;
        background-image: none; 
        overflow: hidden;
        position: relative;
    }

    /* --- ① 背景画像を疑似要素で表示（半透明） --- */
    .main-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 600px;
        background-image: url(https://yamamotoweb.jp/colorist/wp-content/uploads/mainlogo.png);
        background-position: left top; 
        background-size: auto 600px;      
        background-repeat: no-repeat;
        opacity: 0.3;
        z-index: 0;
    }
	/* スマホでは文字を大きく、間隔を少し広げる */
  .final-sub-image,
  .final-sub-image-2,
  .final-sub-image-3 {
		width: 80% !important;      /* 少し大きくして見やすく（90%でもOK） */
        left: 50% !important;       /* ★左端から50%の位置に置く */
        transform: translateX(-50%);/* ★自身の幅の半分だけ左に戻す＝完全中央配置 */
        margin: 0;                  /* 余計なマージンを消す */
  }
  .final-sub-image   { top: 30%; }
  .final-sub-image-2 { top: 45%; }
  .final-sub-image-3 { top: 60%; }
  .final-text { 
position: absolute !important;
        
        /* ★ここで「上から10%」を指定します */
        top: 30% !important;     
        
        /* 左右中央寄せ */
        left: 50% !important;
        transform: translateX(-50%) !important; 
        
        width: 80% !important;   /* 画像の幅 */
        margin: 0 !important;
        padding: 0 !important;
	}
	.pc-img {
        display: none;      /* PC用画像は消す */
    }

    .sp-img {
        display: block !important; /* スマホ画像を表示 */
        width: 100%;               /* 親箱いっぱいに広げる */
        height: auto;
        
        /* 画像自体には位置指定をしない（親箱についていく） */
        position: static !important; 
        transform: none !important;
	}
    
    /* 2枚目の下の隙間は消す（任意） */
    .sp-img:last-child {
        margin-bottom: 0;
    }
}

/*MVここまで*/


  /* 1. テキストを流す領域のコンテナ */
  .marquee-container {
    width: 100%;          /* 横幅いっぱいに */
    overflow: hidden;     /* はみ出したテキストを隠す */
    color: #999;
    padding: 15px 0;      /* 上下の余白 */
  }

  /* 2. 実際に動くテキスト全体を囲む要素 */
  .marquee-content {
    display: flex;        /* テキストを横並びにする */
    width: fit-content;   /* 中身のテキスト量に応じた幅にする */
    /* アニメーションを指定 */
    /* marquee-animation: アニメーション名 */
    /* 15s: 1ループにかかる時間（この数字を小さくすると速くなります） */
    /* linear: 一定の速度で動かす */
    /* infinite: 無限に繰り返す */
    animation: marquee-animation 50s linear infinite;
  }

  /* 3. 流したいテキスト */
.marquee-text {
  white-space: nowrap; 
  font-size: 200px;
  font-weight: bold;
  
  /* --- 変更点 2 --- */
  opacity: 0.2;         /* 文字を70%の不透明度（半透明）に */
}

  /* 4. アニメーションの定義 */
  @keyframes marquee-animation {
    /* 開始時（0%） */
    0% {
      transform: translateX(0);
    }
    /* 終了時（100%） */
    /* テキスト2つ分のうち、1つ分（=50%）だけ左に移動して0%に戻る */
    100% {
      transform: translateX(-50%);
    }
  }

  /* --- ここまでがCSSです --- */
/*コンテンツ部分*/
.vertical {
	writing-mode: vertical-rl;
        text-orientation: upright;
		color:#fff;
}
.floating-menu {
  position: fixed; /* 画面に追従 */
  right:0px;
  top:20%;
  z-index: 100;    /* 最前面に表示 */

  /* ★ここが魔法の呪文★ */
  display: flex;          /* 並べるモードにする */
  flex-direction: column; /* 縦並びにする（横並びなら row） */
  gap: 15px;              /* ★重要: どんな画面でも隙間は常に15px！ */
}
/*追従ボタン*/
.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;
}
/*画面下にfix*/
.button-container {
  position: fixed; /* 画面に固定する */
  bottom: 0;      /* 画面下端に配置する */
  left:0;       /* 画面右端に配置する (左にする場合は left: 0;) */
  width: 100%;    /* 必要に応じて幅を調整 */
  text-align: center; /* コンテンツを中央揃えにする例 */
  padding: 10px;  /* 余白を追加 */
  box-sizing: border-box; /* padding, borderを含めて幅を計算 */
	opacity: 0; /* 最初は透明 */
  visibility: hidden; /* 非表示 */
  transition: opacity 0.5s ease, visibility 0.5s ease; /* 0.5秒で変化 */
	z-index:9999;
}
.button-container.is-visible {
  opacity: 1;
  visibility: visible;
}
.button-container button {
  /* ボタン自体のスタイル */
  padding: 0px;
  color: white;
  border: none;
  cursor: pointer;
	width:50%;
}
/*区切り*/
.custom-shape-divider-top-1763953970 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-top-1763953970 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.custom-shape-divider-top-1763953970 .shape-fill {
    fill: #F7F6F5;
}

/* ---中央の３つの円 --- */
/* --- レイアウトの枠（＋PC背景の基準点） --- */
.list-container {
    position: relative;        /* 背景配置の基準 */
    display: flex;             /* 横並び */
    justify-content: center;   /* 中央寄せ */
    gap: 50px;                 /* 隙間 */
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 100px 0;
    z-index: 1;                /* コンテンツを手前に */
    width: 100%;         /* 最大幅 */
}

/* --- ★大きな半円の背景（PCのみ） --- */
.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;               /* コンテンツの後ろへ */
}

.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;
}
.top-area p {
	font-weight:bold;
	font-size:1.25em;
	margin:0 !important;
	padding:0 !important;
}
.circle01 p.mini {
	font-weight:bold;
	font-size:0.8em;
	margin-bottom:10px !important;
}
.circle02 p,
.circle03 p {
	margin-top:20px !important;
}
/* テキスト部分の微調整 */
.txtbox {
	width: 300px;
    height: auto;
    line-height: 20px;
	padding-top:50px;
    margin-top: 15px;
}
.txtbox p.midashi {
	font-weight:bold;
	font-size:20px;
	text-align:left;
}
.txtbox p {
	font-size:16px;
	font-weight:normal;
	text-align:left;
}
.list-item img {
	width:60%;
}


/* --- ★ボタンのデザイン変更 --- */
.btn-detail {
    display: block;            /* ブロック要素にして中央寄せ可能にする */
    width: fit-content;        /* 文字数に合わせた幅にする */
    margin: 20px auto 0;       /* 上に余白、左右は自動（中央寄せ） */
    padding: 10px 30px;        /* ボタンの大きさ */
    
    /* 色の設定 */
    background-color: transparent; /* 背景なし */
    border: 1px solid #cc0000;     /* 赤い枠線 */
    color: #cc0000;                /* 赤い文字 */
    
    text-decoration: none;
    transition: 0.3s;          /* ふわっと変化させる */
}

/* ホバー時の動き */
.btn-detail:hover {
    background-color: #cc0000; /* 背景を赤く */
    color: #fff;               /* 文字を白く */
}

/* --- スマホ対応（768px以下） --- */
@media screen and (max-width: 768px) {
    .list-container {
        flex-direction: column; /* 縦並び */
        padding: 0 20px;
        align-items: center;
    }

    /* スマホでは背景（半円）を消す */
    .list-container::before {
        display: none;
    }

    /* ★スマホ用のカード型デザイン */
    .list-item {
		width: 100% !important;    /* 幅を強制的に100%に */
        max-width: 400px;          /* ★追加：カードが広がりすぎないように制限 */
        margin: 0 auto 30px;       /* ★追加：カード自体を中央寄せ */
        
        /* 中身の配置設定（重要） */
        display: flex;             
        flex-direction: column;
        align-items: center;       /* ★画像やボタンを中央に配置 */
        text-align: center;        /* ★テキストを中央揃えにする */

        /* カードの装飾 */
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0, 0.15); 
        
        padding: 40px 20px;        /* 内側の余白（少し広げました） */
        box-sizing: border-box;
    }
/* 念のためテキスト系も強制的に中央にする */
    .list-item p, 
    .list-item .midashi {
        text-align: center;
        width: 100%;
    }
	/* テキスト部分の微調整 */
	.txtbox {
		padding-top:20px;
		height: auto;
	}
	.top-area p {
		font-size:1.8em;
	}
	.button-container button {
		width:100%;
	}
}



/*カラリストたち*/
.over-gray {
    position: relative; /* 必須：ここを基準にする */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: #fff; /* 文字は白にするのが一般的 */
}

/* ここでグレーの幕を作ります */
.over-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黒の50%透明（＝グレーに見える） */
    z-index: 1; /* 背景画像よりは上 */
}

/* 文字がグレーの幕の下に隠れないように持ち上げる */
.over-gray .txt {
    position: relative;
    z-index: 2; /* 幕（z-index:1）より上にする */
}
.over-gray .cus-img img {
	opacity:0.5;
}

/*講座案内*/
ul.guidance li {
  color: #333333;
  border-radius: 3px;
  box-shadow: 0px 1px 10px 3px rgba(0, 0, 0, 0.13);
}

/*_/_/_/_/_/_/_/フッター部_/_/_/_/_/_/_/*/

footer{
	width: 100%;
    height: auto;
	text-align: center;
	line-height: 1.6em;
	padding:30px 0 5px!important;
	min-width: 1200px;
    background-color: #f1f1f1;
    display: inline-block;
}

#footer_wrap{
    width: 1200px;
	display: flex !important;
    justify-content: space-between;
    margin: 0 auto;
}


footer .corp_info{
    width: auto;
    text-align: center;
}

.address-tel{
    text-align: left!important;
	font-size: 16px;
	font-size: 1.6rem;
    margin: 10px 0 20px;
}

/*footer .corp_info a{
    
}*/

footer .link{
    width: 75%;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap; 
}

footer .link ul{
    list-style: none;
    width: 32%;
    margin-bottom: 30px;
}

footer .link ul li{
    font-size: 13px;
/*    font-size: 1.3rem;*/
}

footer .link ul li strong{
    font-size: 15px;
/*    font-size: 1.5rem;*/
}

footer .link ul li a{
    color: #333333!important;
}

footer .link ul li a:visited{
    color: #333333!important;
}

section.common_notice{
    width: 100%;
    padding: 40px 0;
    text-align: center;
    display: inline-block;
    margin:40px 0 0; 
}


ul.exam{
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
	width: 1180px;
    list-style: none;
    border: 3px solid #e60012;
}

ul.exam li{
    text-align:center;
    margin: 0px;
    padding: 10px 20px;
    font-family: 'Noto Sans JP' sans-serif;
    box-sizing: border-box;
}


ul.exam li.first{
    background-color: #e60012;
    width: 35%;
    position: relative;
}

ul.exam li.first h3{
    margin: 0px;
    font-size: 38px;
/*    font-size: 3.8rem;*/
    font-weight: 900;
    color: #b4b4b4;
    text-shadow: 
    #fff 2px 0px 2px, #fff -2px 0px 2px,
    #fff 0px -2px 2px, #fff -2px 0px 2px,
    #fff 2px 2px 2px, #fff -2px 2px 2px,
    #fff 2px -2px 2px, #fff -2px -2px 2px,
    #fff 1px 2px 2px, #fff -1px 2px 2px,
    #fff 1px -2px 2px, #fff -1px -2px 2px,
    #fff 2px 1px 2px, #fff -2px 1px 2px,
    #fff 2px -1px 2px, #fff -2px -1px 2px,
    #fff 1px 1px 2px, #fff -1px 1px 2px,
    #fff 1px -1px 2px, #fff -1px -1px 2px;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    position: absolute;
    width: 100%
}

ul.exam li.second{
    width: 25%;
    font-size: 31px;
/*    font-size: 3.1rem;*/
    font-weight: 900;
    color: #e60012;
    padding:55px 0; 
    position: relative;
}


ul.exam li.second div{
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    position: absolute;
    width: 100%
}

ul.exam li.third{
    width: 40%;
    background-color:#FFBCBE;
    
}

ul.exam li.third div{
    color: #e60012;
    text-align: left;
}

.Y{
    font-size: 28px;
    font-weight: 700;
}

.MD{
    font-size: 40px;
    font-size: 4rem;
    font-weight: 700;
}

.redline_button a{
    text-align: center !important;
    font-size: 14px;
    padding: 10px 0;
    width: 200px;
    border: 1px solid #7a7a7a;
    color:  #7a7a7a !important;
    display: block;
    margin: 15px auto;
}

address{
	text-align: center!important;
	width: 100%;
	font-size: 12px;
	display: inline-block;
	margin: 40px 0 0;
	font-style: normal;
	font-weight: 400;
    color: #e60012;
}
.address-tel {
    text-align: left !important;
    font-size: 14px;
    margin: 10px 30px 20px;
}
.micro_text {
    font-size: 12px;
    line-height: 1.3em;
}
ul.icons{
    list-style: none;
    display: flex;
    justify-content:space-around;
    margin: 20px auto;
    padding: 0px;
    width: 120px;
}

ul.icons li a{
    font-size: 24px;
}

@media screen and (max-width: 768px) {
/* 1. 大枠を縦積みにする */
footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;   /* PC用の最小幅指定を解除 */
        padding: 20px 0 !important;
        overflow: hidden !important; /* はみ出し防止 */
	}
	#footer_wrap {
display: flex !important;
        flex-direction: column !important;
        width: 100% !important;    /* ★幅を画面いっぱいにする */
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important; /* パディングを含めて計算 */
    }

    /* 2. 左側の会社情報（シンプルにブロック表示に戻す） */
    .corp_info {
        display: block !important;     /* ★Flexboxをやめて通常の箱に戻す */
        width: 100% !important;
        text-align: center !important;   /* ★中身を左寄せ */
        margin-bottom: 40px !important;
    }

    /* ロゴ画像の左寄せ */
    .corp_info img {
        margin: 0 auto !important;          /* 左端に置く */
        display: inline-block !important;
    }

    /* 住所の左寄せ */
    .address-tel {
        text-align: center !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    /* ボタン（消えていた部分）の復活と左寄せ */
    .redline_button {
        display: block !important;     /* 箱として表示 */
        text-align: left !important;   /* 左寄せ */
        margin-bottom: 10px !important;
        width: 100% !important;        /* 幅確保 */
        height: auto !important;       /* 高さ確保 */
        visibility: visible !important;/* 強制表示 */
    }
	.redline_button a {
/* ★左右のマージンをautoにして中央配置 */
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        
        display: block !important;
        width: 200px !important; /* 幅指定がある場合 */
	}
.icons {
        display: flex !important;
        justify-content: center !important; /* 真ん中に寄せる */
        align-items: center !important;
        
        width: 100% !important;
        padding: 0 !important;         /* 左の余白を消す */
        margin: 20px 0 40px !important; /* 上下の余白 */
        list-style: none !important;   /* リストの点（・）を消す */
    }
    

    /* 3. 右側のリンク集（変更なし・縦積み） */
.link {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* グループ（かたまり）ごとの隙間 */
    .link ul {
        width: 100% !important;
        margin: 0 0 15px 0 !important; /* ★30px → 15px に短縮 */
        padding: 0 !important;
    }

    /* 見出し（フォルダアイコンの行） */
    .link strong {
        display: block !important;
        background-color: #f9f9f9 !important; /* 背景色（少し薄くしました） */
        padding: 8px 10px !important;          /* ★10px → 8px に少し細く */
        margin-bottom: 0 !important;           /* 下の隙間をなくす */
        font-size: 14px !important;            /* 文字サイズ調整 */
    }
    
    /* リンクの各行（ここが行間の決め手） */
    .link li a {
        display: block !important;
        
        /* ★ここを調整しました（上下6px、左右10px） */
        padding: 6px 10px !important;          
        
        border-bottom: 1px solid #eee !important;
        font-size: 13px !important;            /* 文字を少し小さくしてスッキリさせる */
        line-height: 1.4 !important;           /* 行の高さも少し詰める */
    }
	.banner-hide {
    opacity: 0 !important;          /* 透明にする */
    pointer-events: none !important; /* クリックできないようにする */
    transition: opacity 0.3s ease;   /* フワッと消える動き */
	}
}