/* TGS サイト共通スタイル */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif;color:#1d1d1f;background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere}
img{max-width:100%}
/* 見出しは文節の切れ目で折り返し、行の長さをそろえる */
h1,h2,h3{text-wrap:balance;word-break:auto-phrase}
a{color:#0058e0;transition:color .2s ease,transform .25s ease,background-color .2s ease}
a:hover{color:#003c9e}
a:focus-visible,button:focus-visible{outline:3px solid #0058e0;outline-offset:3px}
a[style*="border-radius: 980px"]:hover{transform:scale(1.04)}

/* ヘッダー */
.site-header{background:#fafafc;border-bottom:1px solid #e3e3e8;position:sticky;top:0;z-index:10}
.site-header-in{max-width:1000px;margin:0 auto;padding:4px 20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px}
.site-logo{display:flex;align-items:center;padding:8px 0}
.site-logo img{height:28px;width:auto}
.site-nav{display:flex;flex-wrap:wrap;gap:4px 24px;font-size:13px}
.site-nav a{color:#1d1d1f;text-decoration:none;padding:14px 0}
.site-nav a:hover{color:#0058e0}
.site-nav a[aria-current="page"]{font-weight:700}
.menu-btn{display:none;align-items:center;gap:10px;background:none;border:0;padding:12px 0;font:inherit;font-size:14px;color:#1d1d1f;cursor:pointer;min-height:44px}
.menu-btn-bars{display:block;width:20px;height:2px;background:#1d1d1f;box-shadow:0 -6px 0 #1d1d1f,0 6px 0 #1d1d1f}

/* 動き */
@keyframes tgsUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
.hero-in>*{animation:tgsUp .9s cubic-bezier(.2,.7,.2,1) both}
.hero-in>*:nth-child(2){animation-delay:.12s}.hero-in>*:nth-child(3){animation-delay:.24s}.hero-in>*:nth-child(4){animation-delay:.36s}.hero-in>*:nth-child(n+5){animation-delay:.5s}
.mo .rv{opacity:0;transform:translateY(36px) scale(.985);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.mo .rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.hero-in>*{animation:none}.mo .rv{opacity:1;transform:none;transition:none}a{transition:none}}

/* タブレット以下：メニューを開閉式に */
@media (max-width:860px){
.js .menu-btn{display:flex}
.js .site-nav{display:none;flex-basis:100%;flex-direction:column;gap:0;font-size:16px;padding:0 0 12px}
.js .site-nav.open{display:flex}
.site-nav a{padding:13px 0;border-top:1px solid #e3e3e8}
/* 見本の編集で付いた固定幅は、狭い画面では解除する */
p,h1,h2,h3{width:auto!important}
}

/* スマホ：文字と余白を詰める */
@media (max-width:640px){
h1{font-size:34px!important;line-height:1.3!important;letter-spacing:0!important}
h2{font-size:26px!important;line-height:1.35!important}
h3{font-size:20px!important}
section{padding-left:16px!important;padding-right:16px!important}
section[style*="padding: 88px"],section[style*="padding: 96px"]{padding-top:56px!important}
section[style*="padding: 88px 24px;"],section[style*="padding: 88px 24px\""]{padding-bottom:56px!important}
section[style*="padding: 72px 24px"]{padding-top:48px!important;padding-bottom:48px!important}
section[style*="padding: 12px"]{padding-left:8px!important;padding-right:8px!important}
section>div[style*="padding: 88px 24px"],section div[style*="padding: 72px 32px"],section div[style*="padding: 64px 32px"]{padding:48px 20px!important}
div[style*="padding: 40px 40px 48px"]{padding:24px 16px 28px!important;border-radius:20px 20px 0 0!important}
div[style*="border-radius: 22px"]{padding-left:22px!important;padding-right:22px!important}
p[style*="font-size: 22px"],p[style*="font-size: 21px"]{font-size:17px!important}
p[style*="font-size: 19px"]{font-size:16px!important}
p[style*="font-size: 56px"]{font-size:44px!important}
span[style*="flex: 0 0 180px"]{flex-basis:100%!important}
img[style*="height: 400px"]{width:100%!important;flex-basis:100%!important;height:auto!important;aspect-ratio:4/5}
}
