.intro {
position:fixed; inset:0;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
background:#fff;
transition:opacity 0.8s ease,
visibility 0.8s step-end;
z-index:9999;
}
.intro.is-hidden {
opacity:0;
visibility:hidden;
}
.logo {
width:min(80vw, 500px);
opacity:0;
transform:translateX(-100px);
animation:slideIn 1.5s cubic-bezier(.25,.8,.25,1) forwards;
}
.company_name {
margin-top:1rem;
font-size:1.2rem;
color:#000;
opacity:0;
letter-spacing:0.15em;
transform:translateX(-80px);
animation:slideInText 1.5s cubic-bezier(.25,.8,.25,1) forwards;
animation-delay:1.2s;
}
@keyframes slideIn {
0% {opacity:0; transform:translateX(-100px);}
100% {opacity:1; transform:translateX(0);}
}
@keyframes slideInText {
0% {opacity:0; transform:translateX(-80px);}
100% {opacity:1; transform:translateX(0);}
}
#container {
text-align:center;
font-family:"Noto Sans JP",sans-serif;
}

header {
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
header .toplogo {
display: block;
}
header .logo {
display: none;
}
header dd ul li.bt a {
text-decoration: none;
color: #FFF;
padding-bottom: 10px; /* テキストと下線の間隔 */
background-image: linear-gradient(#FFF, #FFF);
background-repeat: no-repeat;
background-position: bottom right; /* 下線の初期位置 */
background-size: 0 2px; /* 下線のサイズ（横幅、高さ） */
transition: background-size 0.3s;
}
header dd ul li.bt a:hover {
background-position: bottom left; /* 下線のホバー時位置 */
background-size: 100% 2px; /* 下線の横幅を100%にする */
}

#mainimage {
width: 100%;
height: 40vw;
/*background-image: url("../image/top/mainimage.jpg");*/
background-size: cover;
background-position: center center;
position: relative;
z-index: 5;
display: grid;
}
#mainimage:before {
width: 100%;
height: 100%;
content: '';
position: absolute;
top: 0;
left: 0;
opacity: 1;
background-image: url(../image/top/dot.png);
background-size: 2px auto;
z-index: 11;
background-color: rgba(0,0,0,0.3);
}
/* ビネットは要素で重ねてGSAPでopacity制御 */
#mainimage .vignette {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 12; /* dot(11)より上、テキスト(15)より下に */
background: radial-gradient(ellipse at center,
rgba(0,0,0,0) 50%,
rgba(0,0,0,.35) 100%);
opacity: 0; /* ← GSAPで 0 → 1 に */
}
/* テキスト位置 */
#mainimage .box {
text-align: left;
position: relative;
z-index: 15;
left: 10%;
top: 60%;
}
/* ========== Typography ========== */
#mainimage h1 {
padding: 0.2em;
font-weight: 400;
/* 各行に白帯（初期は透明、GSAPで0→0.9へ） */
background-color: rgba(255, 255, 255, 0);
display: inline;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
margin: 0 0 0.5em 0;
}
#mainimage h1 {
display: inline; /* 既存どおり */
text-align: left;
margin: 0 0 0.5em 0;
line-height: 2em;
letter-spacing: 0.1em;
font-family: iroha-26tubaki-stdn, sans-serif;
font-weight: 400;
font-size: clamp(1.375rem, 1.057rem + 1.59vw, 2.3rem);
background: rgba(255, 255, 255, 0.96);
padding-left: 0.8em;
}
#mainimage h1 .line {
display: inline-block;           /* ブロック化で確実に改行扱い */
background-color: rgba(255,255,255,.9);
overflow: hidden;                 /* マスクで切るため */
clip-path: inset(0 100% 0 0);     /* 初期：右100%カット＝非表示 */
will-change: clip-path;
padding: 0 0.5em 0 0.5em;
}
/* FOUC対策（GSAPで制御するけど安全網） */
#mainimage h1 span.char {
display: inline-block;
opacity: 0;
transform: translateX(-20px);
will-change: transform, opacity, filter;
}
#mainimage h1 b {
color: #FF0000;
font-weight: normal;
}
#mainimage p {
font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
line-height: 2em;
color: #FFF;
letter-spacing: 0.1em;
padding: 1em 0 0 0;
}

/* ========== Char initial (FOUC対策の初期値) ========== */
/* JSで <span class="char"> に分割後、GSAPで fromTo する想定 */
#mainimage h1 span.char {
display: inline-block;
opacity: 0;
transform: translateX(-20px);
will-change: transform, opacity, filter;
}
/* ========== A11y: 動きを抑える設定の人には最終状態を即表示 ========== */
@media (prefers-reduced-motion: reduce) {
#mainimage h1 .line { clip-path: inset(0 0 0 0); }
#mainimage h1 .char { opacity: 1; transform: none; filter: none; }
}


#top {
}
#top p {
opacity: 0;
transform: translateY(40px);
will-change: opacity, transform;
}
#top h2,
#top h3 {
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 700;
font-style: normal;
font-size: clamp(1.125rem, 0.625rem + 2.5vw, 2.5rem);
line-height: 1.8em;
letter-spacing: 0.2em;
}
h2,
h3,
h4,
h5 {
opacity: 0;
transform: translateY(40px); /* 下に少し隠す */
will-change: opacity, transform;
}
#top h2 span,
#top h3 span{
color: #FF0000;
}
#top h4 {
color: #666666;
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 500;
font-style: normal;
font-size: clamp(0.875rem, 0.784rem + 0.45vw, 1.125rem);
line-height: 1.5em;
padding: 1em 0 3em 0;
}

#message {
margin: 100px auto 0 auto;
}
#message h2 {
text-align: left;
margin: 0px auto 0em auto;
max-width: 75vw;
}
#message .bg {
background-image: url("../image/top/message_bg.jpg");
background-position: right top;
background-size: 40%;
margin: 0px auto 0 auto;
padding: 5vw 0 3vw 0
}
#message .box p {
font-family: iroha-26tubaki-stdn, sans-serif;
font-weight: 400;
font-style: normal;
font-size: clamp(0.875rem, 0.693rem + 0.91vw, 1.375rem);
line-height: 2em;
text-align: left;
width: 80%;
margin: 0px auto 2em auto;
max-width: 75vw;
opacity: 0;
transform: translateY(40px);
will-change: opacity, transform;
}
#message .box p b {
color: #FF0000;
}

#business {
margin: 100px auto 0 auto;
}
#business dl {
margin: 50px auto 0 auto;
max-width: 1200px;
width: 90%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
#business dl img {
width: 100%;
height: auto;
display: block;
opacity: 0;
will-change: opacity, transform;
transform: scale(0.8);
}
#business dt {
width: 50%;
text-align: left;
}
#business dd {
width: 50%;
text-align: left;
opacity: 0;
transform: translateY(40px);
will-change: opacity, transform;
}
#business dl h5 {
font-size: clamp(1rem, 0.773rem + 1.14vw, 1.625rem);
line-height: 1.5em;
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 700;
font-style: normal;
padding: 0 0 1em 1.5em;
}
#business dl p {
color: #4c4c4c;
font-size: clamp(0.813rem, 0.744rem + 0.34vw, 1rem);
line-height: 1.9em;
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 400;
font-style: normal;
padding: 0 0 2.5em 2.5em;
}
#business dl dt h5 {
padding: 0 0 1em 0em;
}
#business dl dt p {
padding: 0 2.5em 2.5em 0em;
}
#business p.bt {
margin: 0px 0 0 auto;
text-align: right;
}
#business p.bt a {
width: 380px;
max-width: 31.6vw;
padding: 0.5em 2em 0.5em 2em;
box-sizing: border-box;
margin: 0px 0 0 auto;
}

#real {
margin: 100px auto 0 auto;
background-image: url("../image/top/real_bg.jpg");
background-position: center center;
background-size: cover;
padding: 10vw 0 6vw 0;
}
#real h3 {
color: #FFF;
}
#real h4 {
color: #FFF;
}
#real p {
color: #FFF;
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 400;
font-style: normal;
font-size: clamp(0.875rem, 0.739rem + 0.68vw, 1.25rem);
line-height: 2em;
padding: 0 0 5em 0;
}
#real p.bt {
width: 380px;
max-width: 31.6vw;
margin: 0px auto 0 auto;
}

#interview {
margin: 100px auto 0 auto;
}
#interview dl {
margin: 0px auto 0 auto;
max-width: 1200px;
width: 90%;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
}
#interview dd {
text-align: left;
background-color: #f4f4f4;
width: 48%;
max-width: 46.6vw;
padding: 25px 0 15px 0;
}
#interview dd img {
width: 90%;
height: auto;
margin: 0px auto 0 auto;
display: block;
}
#interview dd h5 {
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 500;
font-style: normal;
font-size: clamp(0.875rem, 0.784rem + 0.45vw, 1.5rem);
line-height: 1.5em;
padding: 0.5em 25px 0.5em 25px;
opacity: 1;
visibility: visible;
}
#interview dd h5 span.name {
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 700;
font-style: normal;
font-size: clamp(1.125rem, 0.943rem + 0.91vw, 1.625rem);
line-height: 1.5em;
color: #000;
padding: 0em 25px 0.5em 25px;
}
#interview dd p {
color: #4c4c4c;
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 400;
font-style: normal;
padding: 0em 25px 1em 25px;
}
#interview p.bt {
width: 380px;
max-width: 31.6vw;
margin: 0px auto 0 auto;
}
#statistics {
margin: 100px auto 0 auto;
background: linear-gradient(to right,  #e7e6e6 50%,#f2f2f2 50%);
padding: 5vw 0 3vw 0;
}
#statistics .box {
background-image: url("../image/top/statistics_bg.png");
background-size: 100%;
background-position: center center;
}
#statistics h4:after {
content: '';
display: block;
width: 416px;
height: 52px;
background-image: url("../image/top/statistics_icon.png");
background-size: contain;
vertical-align: middle;
margin: 50px auto 0 auto;
position: relative;
}
#statistics p {
color: #000;
font-size: clamp(0.875rem, 0.739rem + 0.68vw, 1.25rem);
line-height: 2.2em;
font-family: ryo-gothic-plusn, sans-serif;
font-weight: 400;
font-style: normal;
padding: 0 0 3em 0em;
}
#statistics p.bt {
width: 380px;
max-width: 31.6vw;
margin: 0px auto 0 auto;
}
#contact h3 {
display: none;
}
#contact li {
opacity: 0;
will-change: opacity, transform;
transform: scale(0.8);
}


