/*
Theme Name: TONAN
Theme URI: https://www.tonan-inc.com/
Author: 株式会社TONAN
Description: 株式会社TONANコーポレートサイト専用テーマ
Version: 1.3.0
Text Domain: tonan
*/
body{margin:0;background:#FBFAF7;font-family:'Zen Kaku Gothic New','Hiragino Sans',sans-serif;color:#1C2329;line-height:1.8;font-size:16px}
a{color:#0E4A57}a:hover{color:#08323B}
.admin-bar header{top:32px}
@media (max-width:782px){.admin-bar header{top:46px}}
.entry-wrap{max-width:820px;margin:0 auto;padding:64px 24px 96px;box-sizing:border-box}
.entry-wrap h1{font-size:clamp(26px,4vw,36px);line-height:1.5;font-weight:900;margin:0 0 24px}
.entry-meta{font-family:Outfit,sans-serif;font-size:14px;color:#5B6470;margin:0 0 8px}
.entry-content img{max-width:100%;height:auto}
.entry-list{list-style:none;margin:0;padding:0;border-top:1px solid #D8D3C9}
.entry-list li{border-bottom:1px solid #D8D3C9}
.entry-list a{display:flex;flex-wrap:wrap;gap:8px 24px;padding:20px 4px;text-decoration:none;color:#1C2329;font-weight:500}
.entry-list time{font-family:Outfit,sans-serif;font-size:14px;color:#5B6470;min-width:96px}
.entry-pager{display:flex;justify-content:space-between;gap:16px;margin-top:32px}
.contact-form{max-width:720px;margin:0 auto;padding:56px 24px 0;box-sizing:border-box}
.contact-form input:not([type=submit]),.contact-form textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #D8D3C9;border-radius:8px;font:inherit;background:#fff}
.contact-form input[type=submit]{background:#B4471F;color:#fff;border:0;border-radius:999px;padding:14px 32px;font:inherit;font-weight:700;cursor:pointer}
.dt-block h2{margin:0 0 16px;font-size:clamp(24px,3vw,30px);font-weight:900;line-height:1.5}
.dt-block h3{margin:24px 0 8px;font-size:18px}
.dt-block p,.dt-block li{color:#3E4751}
.dt-block li{margin-bottom:12px}
.dt-table{width:100%;border-collapse:collapse;border-top:1px solid #D8D3C9}
.dt-table th,.dt-table td{padding:14px 12px 14px 0;border-bottom:1px solid #D8D3C9;text-align:left;vertical-align:top}
.dt-table td:last-child{white-space:nowrap;font-weight:700;text-align:right;padding-right:0}
@media (max-width:640px){.dt-table tr{display:block;padding:12px 0;border-bottom:1px solid #D8D3C9}.dt-table th,.dt-table td{display:block;border:0;padding:2px 0;text-align:left}.dt-table td:last-child{text-align:left}}
header>div{max-width:1360px !important}
header nav{gap:4px 18px !important;font-size:13px !important}
@media (min-width:1120px){header>div{flex-wrap:nowrap !important}header nav{flex-wrap:nowrap !important;white-space:nowrap}}
html{scroll-behavior:smooth}
section[id]{scroll-margin-top:84px}
header{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}

/* ヒーロー：全幅ビジュアルのスライドショー */
.hero-slide{opacity:0}
.hero-slide:first-child{opacity:1}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:40px;align-items:end}

/* 代表メッセージ：大きな円 */
.promise-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:32px;align-items:center}
.msg-circle{border-radius:50%;aspect-ratio:1/1;padding:14%;box-sizing:border-box}
.round{border-radius:50%;aspect-ratio:1/1}
.float-btn{transition:scale .25s ease}
.float-btn:hover{scale:1.08}
@media (max-width:1100px){
.promise-grid{grid-template-columns:minmax(0,1fr)}
.msg-circle{border-radius:40px;aspect-ratio:auto;padding:44px 28px}
}
@media (max-width:760px){
.hero-grid{grid-template-columns:minmax(0,1fr);gap:24px}
.float-recruit{display:none !important}
header{position:static !important}
header nav{flex-wrap:nowrap !important;overflow-x:auto;width:100%;white-space:nowrap}
header>div>a:last-child{display:none !important}
}

/* 矢印バッジ・ホバー */
.arw{border-radius:50%;transition:border-radius .45s ease,scale .3s ease}
.arw svg{transition:translate .3s ease}
a:hover .arw{border-radius:58% 42% 46% 54% / 52% 44% 56% 48%;scale:1.14}
a:hover .arw svg{translate:3px 0}
#business a,#challenge a,#contact a{transition:translate .3s ease,box-shadow .3s ease}
#business a:hover,#challenge a:hover,#contact a:hover{translate:0 -6px;box-shadow:0 16px 36px rgba(28,35,41,.1)}
#news li a{transition:translate .25s ease}
#news li a:hover{translate:8px 0}
a[style*="border-radius: 999px"]{transition:translate .25s ease,box-shadow .25s ease}
a[style*="border-radius: 999px"]:hover{translate:0 -2px;box-shadow:0 8px 18px rgba(28,35,41,.16)}

@keyframes heroIn{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes bob{from{transform:translateY(0)}to{transform:translateY(-14px)}}
@keyframes rvPop{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
@keyframes heroSlide{
0%{opacity:0;transform:scale(1.07)}
6%{opacity:1}
33%{opacity:1}
40%{opacity:0;transform:scale(1)}
100%{opacity:0;transform:scale(1)}
}
@keyframes rvIn{from{opacity:0;transform:translateY(32px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:no-preference){
.in{animation:heroIn .9s cubic-bezier(.2,.7,.2,1) both}
.bob{animation:bob 4.5s ease-in-out infinite alternate}
.bob2{animation:bob 5.5s ease-in-out -2s infinite alternate}
.hero-slide{animation:heroSlide 18s linear infinite}
.hero-slide:nth-child(2){animation-delay:6s}
.hero-slide:nth-child(3){animation-delay:12s}
}

/* スクロールでふわっと表示（対応ブラウザのみ。非対応なら最初から表示） */
@supports (animation-timeline:view()) {
@media (prefers-reduced-motion:no-preference) {
#business>p,#business>h2,#business a,
#visit>div>div:first-child,#visit>div>div:nth-child(2)>div,#visit figure,
section[aria-label="実績"]>div,
#promise>div,
#issue>div:first-child,#issue>div:last-child>div,
#challenge>div>div:first-child,#challenge a,
#recruit>div>div,
#succession>div,#realestate>div,
#news>div,#news li,
#company>p,#company>h2,#company dl,
#contact h2,#contact p,#contact a{
animation:rvIn linear both;animation-timeline:view();animation-range:entry 0% entry 60%
}
#business a:nth-child(2),#issue>div:last-child>div:nth-child(2),#challenge a:nth-child(2),
#visit>div>div:nth-child(2)>div:nth-child(2),#visit figure:nth-child(2),#promise>div:nth-child(2),
#contact a:nth-child(3n+2){animation-range:entry 12% entry 72%}
#business a:nth-child(3),#issue>div:last-child>div:nth-child(3),#challenge a:nth-child(3),
#contact a:nth-child(3n){animation-range:entry 24% entry 84%}
#promise>.msg-circle{animation-name:rvPop;animation-range:entry 0% entry 50%}
}
}
