﻿@charset "utf-8";
/* 1536 , 1530 × 735 ,1366 *//* ←記画面幅でも崩れていないか確認 */

/* カテゴリリンクの飛び先位置の数値を適宜調整してください */

/* 修正した場合→各項目の一番下に日付をコメントアウトして追記 */
@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&display=swap');

/*■■　ALL　■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
body{
      font-family: "Hina Mincho", serif;
  font-weight: 400;
  font-style: normal;
}
#logo{padding-left: 10px;}
footer{
    /* background-color: #262626; */
    max-width: none!important;
}
#header_menu{display: none;}
.index_header #header{
/*     width: 100%;
    max-width: 100%;
    min-width: 100%; */
        align-items: center;
        justify-content: space-between;
}
.drawer-hamburger,.index_header #header .menu_bt{display: block;}
#wrap{
    background-color: #f5f5f7;
    background-image: radial-gradient(at 0% 0%, rgba(155, 138, 191, 0.2) 0px, transparent 50%), /* 左上の紫 */ radial-gradient(at 100% 100%, rgba(255, 180, 120, 0.2) 0px, transparent 50%), /* 右下のオレンジ */ radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%);
    background-attachment: fixed;
}

/* =========================================
   スクロールで浮かび上がるアニメーション
========================================= */
/* 初期状態：透明 ＋ ぼかし10px ＋ 下に40pxずらす */
.scroll-reveal {
	opacity: 0;
	filter: blur(10px);
	transform: translateY(40px);
	transition: opacity 1.2s ease-out, filter 1.2s ease-out, transform 1.2s ease-out;
}

/* 画面に入った時の状態：元の状態に戻す */
.scroll-reveal.is-revealed {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0);
}

        /* =========================================
           ここから追加・変更したスタイル (アイコン＆ロゴスライド用)
           ========================================= */

        /* コンテナ（アイコンと隠しロゴをまとめる） */
        .hover-logo-container {
            position: relative;
            display: inline-flex;
            align-items: center;
            height: 60px; /* ヘッダー内での高さを確保 */
            overflow: visible !important; /* ★追加: 親要素の設定などで見切れるのを防ぐ */
        }

        /* 葬祭はがき（手紙・封筒）アイコンのスタイル */
        .letter-icon-btn {
            width: 50px;
            height: 50px;
            background-color: #fcfcfc;
            border: 1px solid #dcdcdc;
            border-radius: 4px; /* 丸ではなく、少しフォーマルな角丸 */
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            position: relative;
            z-index: 1001; /* ロゴより手前に配置 */
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: all 0.4s ease;
        }

        /* アイコンの色：既存コードにある紫色（rgb(119, 82, 140)）を使用 */
        .letter-icon-btn svg {
            width: 26px;
            height: 26px;
            fill: rgb(119, 82, 140);
            transition: fill 0.4s ease;
        }

        /* ホバー時の控えめなアクション（少しだけ浮き上がる） */
        .letter-icon-btn:hover, 
        .hover-logo-container.is-open .letter-icon-btn {
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            border-color: rgb(119, 82, 140); /* 枠線も少し色付ける */
        }

        /* 隠しておくロゴ部分 */
        .hidden-logo-wrap {
            /* ★変更: absoluteを外し、アイコンの横に通常配置として並べる */
            padding-left: 15px; /* アイコンとロゴの間の余白 */
            opacity: 0; /* 最初は見えない */
            visibility: hidden;
            
            /* ★変更: 縦方向(Y)の移動を消し、横方向(X)のスライドのみにする */
            transform: translateX(-15px); 
            
            /* 葬祭向けに、ゆっくりと上品にスライドさせる */
            transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            z-index: 1000;
            white-space: nowrap;
            /* Flexアイテムとしての設定 */
            display: flex;
            align-items: center;
        }

        /* コンテナにホバーした時、またはJSでクリック(is-open)された時に表示 */
        .hover-logo-container:hover .hidden-logo-wrap,
        .hover-logo-container.is-open .hidden-logo-wrap {
            /* 他のCSSに上書きされないように !important を追加 */
            opacity: 1 !important;
            visibility: visible !important;
            /* ★変更: 横方向(X)のみ元の位置へ戻す */
            transform: translateX(0) !important; 
        }

        /* ロゴ画像のサイズ調整 */
        .hidden-logo-wrap .logo {
            margin: 0;
            padding: 0;
        }
        .hidden-logo-wrap .logo img {
            max-width: 220px; /* スライドしてきても大きすぎないサイズ */
            height: auto;
            display: block;
        }
        
        
         /* ★追加: タブレット以下はホバー機能を解除し、常にロゴを表示する */
            .hover-logo-container {
                height: auto !important;
                display: block !important;
            }
            
            .hidden-logo-wrap {
                position: static !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                padding-left: 0 !important;
                display: block !important;
            }
            .letter-icon-btn {
                display: none !important;
            }

        /* スマホ・タブレット向け調整 */
        @media (max-width: 768px) {
            .tb_hide { display: none; }
            
            /* ★追加: タブレット以下はアイコンを非表示にする */
            .letter-icon-btn {
                display: none !important;
            }
            
            /* ★追加: タブレット以下はホバー機能を解除し、常にロゴを表示する */
            .hover-logo-container {
                height: auto !important;
                display: block !important;
            }
            
            .hidden-logo-wrap {
                position: static !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                padding-left: 0 !important;
                display: block !important;
            }
            
            .hidden-logo-wrap .logo img {
                max-width: 100%; 
                width: 80%; /* 元のHTMLにあったサイズ感に合わせる */
            }
        }

/* ---------------------------　タブレット　-------------------------- */
@media screen and (max-width: 768px){
    #intro #intro_txt{writing-mode: horizontal-tb;}
#intro #intro_txt h2{margin-left: 0;display: block;
    text-align: center;}

    
    
}

/* --------------------------　スマホ　-------------------------- */
@media screen and (max-width: 667px){

}



/*■■　FV　■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#main_img {
    max-height: inherit;
        /* position: fixed !important; */
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100vh; */
    z-index: -1 !important;
    margin-bottom: 0 !important;
    transform: scale(1.05);
}



/* ---------------------------　タブレット　-------------------------- */
@media screen and (max-width: 768px){

}

/* --------------------------　スマホ　-------------------------- */
@media screen and (max-width: 667px){

}



/*■■　TOP　■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
.dec01{
    max-width: 500px;
    width: 15%;
    bottom: -7vw;
    right: 0vw;
}
.item01{
        width: 80%;
    max-width: 800px;
    z-index: 1;
    top: -15%;
    right: 0;
}
#intro {
    height: 500px;
    max-height: 500px;
    text-align: center;
        line-height: 2;
        /* margin-top: 150vh; */
        margin-top: 30vh;
        margin-bottom: 20vh;
}
#intro #intro_txt h2,.top_cms_box .title_box h2,#page_title h2,#contents h2{font-weight: bold;font-size: clamp(22px, calc(18px + 1.5vw), 34px);}
#contents .box h3{
    font-size: clamp(20px, calc(16px + 1vw), 30px);
    width: 100% !important;
}
#contents .back_color2{
   
        background-color: #f5f5f7;
    background-image: radial-gradient(at 0% 0%, rgba(155, 138, 191, 0.2) 0px, transparent 50%), /* 左上の紫 */ radial-gradient(at 100% 100%, rgba(255, 180, 120, 0.2) 0px, transparent 50%), /* 右下のオレンジ */ radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%);
    background-attachment: fixed;
}
#contents .back_color2::after{
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}
#contents h2 .svg_box{display: none;}
#top_cms .cms_title .title_box h2{max-height: 210px;}
/*#top_cms .cms_title,#top_cms .cms_title .title_box{background: none!important;}*/
#top_cms .cms_title .title_box h2 {
    max-height: 300px;
    font-weight: bold;
    font-size: 40px;
    color: #333;
}
.top_cms_box .title_box{
    text-align: center;
    display: flex;
    justify-content: space-between;
    min-height: 100%;
    /* background-image: url(/Files/img/bg_title.png); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 100px;
        position: relative;
}
.top_cms_box .title_box::before{
    content: "";
    position: absolute;
    background-image: url(/Files/img/dec01.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 120px;
    height: 120px;
    left: 53%;
    bottom: 0;
}
.top_cms_box .title_box h2{
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    max-height: 150px;
    position: relative;
    z-index: 5;
    -webkit-text-orientation: upright;
    text-orientation: upright;
    display: inline-block;
    max-height: 300px;
    font-weight: bold;
    color: var(--normal);
}
#top_cms .cms_title{height: 300px;}


/* ---------------------------　タブレット　-------------------------- */
@media screen and (max-width: 768px){
#intro {
    height: 450px;
    max-height: 450px;
    text-align: center;
        line-height: 2;
        margin-top: 10vw;
        margin-bottom: 10vw;
            height: auto;
    max-height: inherit;
}

    .dec01 {
    max-width: 500px;
    width: 11%;
    top: -4vw;
    right: 19vw;
}
#top_cms .top_cms_box{padding-top: 50px;}


}

/* --------------------------　スマホ　-------------------------- */
@media screen and (max-width: 667px){
    #intro {
        height: auto;
        max-height: inherit;
    }
#top_cms .cms_title {
    height: 150px;
}
.top_cms_box .title_box::before {
    width: 90px;
    height: 90px;
    left: 57%;
    bottom: 0;
}

}



/*■■　下層ページ　■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*カテゴリリンクの飛び先位置を調整する*/
/* --- PC・タブレット時 --- */
:root {
--header-height: 120px;
}
/* --- スマートフォン --- */
@media screen and (max-width: 667px){
:root {
--header-height: 80px;
}
}

#tel_txt .title {
    color: var(--color1)!important;
}
#page_title {
    height: 500px;
    position: relative;
}
#page_title h2{
        max-height: 430px;
        text-shadow: none;
}
.cate_list li a {
    display: block;
    padding: 10px;
    background-color: #f7f7f7;
}
.line_bnr {
    width: min(100%, 404px);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 7px;
    margin-bottom: 50px;
}


/* ---------------------------　タブレット　-------------------------- */
@media screen and (max-width: 768px){

}

/* --------------------------　スマホ　-------------------------- */
@media screen and (max-width: 667px){

}


