@charset "utf-8";
/* CSS Document */
	.page_title_wrap + section > div h2:first-of-type{
		margin-top: 3.67em;
	}
	
	
section {
position: relative;
    z-index: 0;
}
	
section > div p,section .box h4 {
	letter-spacing: 0.05em; 
	/*letter-spacing: 0.075em; */
	text-align: justify; 
	font-family: 'BIZ UDPGothic', sans-serif; 
	font-weight: 700;    
	line-height: 1.875;
}		
section:not(.page_title_wrap)::before {
        content: '';
        position: absolute;
        top: -54px;
        left: 50%;
        width: 100vw;
        height: 68px;
        transform: translateX(-50%);
        z-index: -1;
        background-image: radial-gradient(#fffbee 70%, transparent 71%);
        background-size: 68px 68px;
        background-repeat: repeat-x;
        background-position: center top;
    }		
section:not(.page_title_wrap)::after {
        content: '';
        position: absolute;
        bottom: -45px;
        left: 50%;
        width: 100vw;
        height: 68px;
        transform: translateX(-50%);
        z-index: -1;
        background-image: radial-gradient(#fffbee 70%, transparent 71%);
        background-size: 68px 68px;
        background-repeat: repeat-x;
        background-position: center top;
    }
	
		

	
	section div.shadow{
		position: relative;
		
	}
	section div.shadow::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-image:
      linear-gradient(
        90deg,
        rgba(95,191,173,1),
        rgba(242,142,30,1)
      );
        opacity: calc(.54 / 1.5);
    filter: blur(calc(4.75em / 6)); /*76*/
	}

	.card.shadow::after{
		
        filter: blur(calc(4.75em / 4));
        width: calc(100% - 4.75em / 2);
        height: calc(100% - 4.75em / 2);
        left: calc(1.88em + 4.75em / 4);
        top: 50%;
        bottom: calc(50% - 4.75em / 1);
        margin: auto;
		
	}
	
        :root {
            --primary-color: #36998F;
            --primary-light: #e8f5e9;
            --accent-color: #ff6b6b;
            --text-main: #333333;
            --text-muted: #777777;
            --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
            --card-bg: rgba(255, 255, 255, 0.95);
        }
		
		section.page_title_wrap::after{
			        background: #fffbee;
		}
		
		section#tool_simulation{
			background: #FFFBEE;
			padding-bottom: 6.88em;
			margin-bottom: 10em;
			        padding-top: 47px;
		}
        .container {
            width: 100%;
            box-sizing: border-box;
        }

        .card {
            background: #fff;
            border-radius: 1.25em;
            padding: 1.88em 2.25em 2em;
            text-align: center;
            position: relative;
			    width: min(100%, 1000px);
    margin-inline: auto;
			        box-sizing: border-box;
        }
        .header-desc {
            font-size: 1.13em;
            line-height: 1.66;
        }
        .header-desc span{
            display: block;
        }

        /* 聴力入力セクション */
        .input-section {
            background: #F4F9ED;
            border-radius: 1.25em;
            margin-top: 1.75em;
            display: flex;
            flex-direction: column;
            align-items: center;
			    padding-bottom: 1.88em;
        }

        .db-display {
            font-size: 3.75em;
            font-weight: 700;
            display: flex;
            align-items: baseline;
            gap: 5px;
			font-family: "Noto Sans JP", sans-serif;
        }

        .db-unit {
            font-size: 0.5em;
        }

        /* カスタムスライダー */
        .slider-container {
            width: 100%;
            max-width: 40.625em;
            position: relative;
            margin-top: 0.31em;
			max-width: 47.375em;
        }

        input[type="range"] {
            -webkit-appearance: none;
            width: 85.75%;
                height: 0.77em;
                border-radius: 1000px;
            background: #d3d3d3;
            outline: none;
            transition: all 0.2s;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 1.88em;
            height: 1.88em;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            box-shadow: 0 0 0.31em rgba(0, 0, 0, 0.35);
            transition: transform 0.1s;
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

        .slider-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 1em;
        }
        .slider-labels span:first-of-type{
			transform: translateX(1.5em);
        }

        /* 装用シミュレーションスイッチ */
        .toggle-container {
            margin-top: 2em;
            display: flex;
            align-items: center;
            gap: 0.83em;
			    font-size: 1.13em;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 53px;
            height: 26px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider-toggle {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;

            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }

        .slider-toggle:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked+.slider-toggle {
            background-color: var(--accent-color);
        }

        input:checked+.slider-toggle:before {
            transform: translateX(26px);
        }

        /* 日常の音ビジュアライザー */
        .visualizer {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            position: relative;
            margin-inline: auto;
			max-width: 46.93em;
			    margin-top: 1.5em;
			
        }

        .sound-item {
            display: flex;
            flex-direction: column;
            align-items: center;
                gap: 0.56em;
            transition: all 0.4s ease;
            position: relative;
            width: 20%;
        }

        .sound-icon {
            width: 6.43em;
            height: 6.43em;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            transition: all 0.4s ease;
			    position: relative;
        }

        .sound-name {
            font-size: 1.13em;
        }

        .sound-db {
            background: #F1F2F0;
            border-radius: 1000px;
			padding: 0.18em 0.81em;
    min-width: 5.31em;
			        box-sizing: border-box;
        }
        /* 聞こえない状態のスタイル */
        .sound-item.deafened .sound-icon,
        .sound-item.partial .sound-icon{
            opacity: 0.25;
 
        }

        .sound-item.deafened::after {
            content: "";
            position: absolute;
			background: url("../images/tool/icon_cross.svg");
			width: 2.69em;
			height: 2.69em;
            pointer-events: none;
			    top: 2em;
  right: 0;
  left: 0;
  margin: auto; /*上下左右中央に*/
			
			        background-repeat: no-repeat;
        }

        .sound-item.deafened .sound-name,
        .sound-item.deafened .sound-db {
            /*opacity: 0.5;*/
        }

        .sound-item.partial::after {
            content: "";
            position: absolute;
			background: url("../images/tool/icon_triangle.svg");
			width: 3.38em;
			        height: 2.88em;
            pointer-events: none;
			top: 1.8em;
  right: 0;
  left: 0;
  margin: auto; /*上下左右中央に*/
			        background-repeat: no-repeat;
			
        }




        /* 解説テキストエリア */
		div:has( > .explanation-box){
			margin-top: 2em;
			
			padding-top: 2em;
			border-top: 1px solid #E1E1E1;
		}
		
		
		.explanation-box {
    background: #fff;
    padding-inline: 1.13em 1.75em;
    border-radius: 1.25em;
    text-align: left;
    box-shadow: 0 0 0.31em rgba(0, 0, 0, 0.15);
    min-height: 80px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
			
			    padding-block: 1.13em;
			gap: 1.63em;
			
        }
		
		.explanation-box::before {
    content: "";
    width: 0.38em;
    background: var(--primary-color);
    align-self: stretch;
    flex-shrink: 0;
			
			
        }

		.explanation-box > div {
			padding-block:0.63em 0.94em;
        }

        .explanation-title {
            font-weight: bold;
            color: var(--primary-color);
            font-size: 1.56em;
			font-family: "Noto Sans JP", sans-serif;
        }

        .explanation-text {
            color: var(--text-main);
            line-height: 1.6;
            font-size: 1.13em;
			    margin-top: 0.77em;
        }

        /* 装用時の強調 */
        .supported-mode .explanation-box {
            border-left-color: var(--accent-color);
            background: #fff9f9;
        }

        .supported-mode .explanation-title {
            color: var(--accent-color);
        }
        .supported-mode .explanation-box::before {
            background: var(--accent-color);
        }

