/* Avant-Deal, Inc. corporate site */
@font-face {
  font-family: 'KodomoRounded';
  src: url('../assets/fonts/kodomo.woff2') format('woff2');
  font-display: swap;
  /* こども丸ゴシックは未収録漢字が「空白グリフ」のため、実字形のある文字だけに限定する（必須）
     生成元: assets/fonts/kodomo_unicode_range.txt */
  unicode-range: U+0021-007E, U+00D7, U+00F7, U+0300, U+0303, U+0332, U+2010-2011, U+2018-2019, U+201C-201D, U+2025-2026, U+212B, U+223C, U+22EE-22EF, U+2E9F, U+2EC4, U+2ED8, U+2EE8-2EE9, U+2F00, U+2F06, U+2F08, U+2F0A-2F0B, U+2F12, U+2F17, U+2F1D, U+2F1F, U+2F23-2F26, U+2F29, U+2F2D, U+2F2F, U+2F38, U+2F3C, U+2F3E-2F3F, U+2F42, U+2F45, U+2F47, U+2F49-2F4A, U+2F4C, U+2F51, U+2F54-2F55, U+2F57, U+2F5C-2F5D, U+2F5F, U+2F63-2F65, U+2F69, U+2F6C, U+2F6E-2F6F, U+2F74-2F77, U+2F7B, U+2F7F, U+2F81, U+2F83, U+2F8A, U+2F8D, U+2F8F, U+2F92-2F95, U+2F99-2F9C, U+2F9E, U+2FA5-2FA6, U+2FA8, U+2FAC, U+2FB3, U+2FB5, U+2FB7-2FB8, U+2FBA, U+2FBC, U+2FC2, U+2FCA, U+3001-3002, U+3008-3009, U+300C-300D, U+301C, U+3041-3094, U+30A1-30F6, U+30FB-30FC, U+4E00-4E01, U+4E03, U+4E07, U+4E09-4E0B, U+4E16, U+4E21, U+4E2D, U+4E38, U+4E3B, U+4E57, U+4E5D, U+4E88, U+4E8B-4E8C, U+4E94, U+4EA4, U+4EAC, U+4EBA, U+4ECA, U+4ED5-4ED6, U+4EE3, U+4F11, U+4F1A, U+4F4F, U+4F53, U+4F55, U+4F5C, U+4F7F, U+4FC2, U+500D, U+5143-5144, U+5148-5149, U+5165, U+5168, U+516B-516D, U+5177, U+5185-5186, U+5199, U+51AC, U+51FA, U+5206-5207, U+5217, U+524D, U+529B, U+52A9, U+52C9, U+52D5, U+52DD, U+5316-5317, U+533A-533B, U+5341, U+5343, U+5348, U+534A, U+5357, U+539F, U+53BB, U+53CB, U+53CD, U+53D6-53D7, U+53E3-53E4, U+53F0, U+53F3, U+53F7, U+5408, U+540C-540D, U+5411, U+541B, U+5473, U+547D, U+548C, U+54C1, U+54E1, U+5546, U+554F, U+56DB, U+56DE, U+56F3, U+56FD, U+5712, U+571F, U+5730, U+5742, U+5834, U+58F0, U+58F2, U+590F, U+5915-5916, U+591A, U+591C, U+5927, U+5929-592A, U+592E, U+5973, U+59B9, U+59C9, U+59CB, U+59D4, U+5B50, U+5B57, U+5B66, U+5B88-5B89, U+5B9A, U+5B9F, U+5BA2, U+5BA4, U+5BAE, U+5BB6, U+5BBF, U+5BD2, U+5BFA, U+5BFE, U+5C0F, U+5C11, U+5C40, U+5C4B, U+5C71, U+5CA9, U+5CB8, U+5CF6, U+5DDD-5DDE, U+5DE5-5DE6, U+5E02, U+5E30, U+5E33, U+5E73-5E74, U+5E78, U+5E83, U+5E97, U+5EA6, U+5EAB, U+5EAD, U+5F0F, U+5F13, U+5F15, U+5F1F, U+5F31, U+5F37, U+5F53, U+5F62, U+5F79, U+5F85, U+5F8C, U+5FC3, U+601D, U+6025, U+606F, U+60AA, U+60B2, U+60F3, U+610F, U+611F, U+6238, U+6240, U+624B, U+624D, U+6253, U+6295, U+62FE, U+6301, U+6307, U+653E, U+6559, U+6570, U+6574, U+6587, U+65B0, U+65B9, U+65C5, U+65CF, U+65E5, U+65E9, U+660E, U+6614, U+661F, U+6625, U+662D, U+663C, U+6642, U+6674, U+6691, U+6697, U+66DC, U+66F2, U+66F8, U+6708-6709, U+670D, U+671D, U+671F, U+6728, U+672C, U+6751, U+6765, U+6771, U+677F, U+6797, U+67F1, U+6821, U+6839, U+68EE, U+690D, U+696D, U+697D, U+69D8, U+6A2A, U+6A4B, U+6B21, U+6B4C, U+6B62-6B63, U+6B69, U+6B7B, U+6BCD-6BCE, U+6BDB, U+6C17, U+6C34, U+6C37, U+6C60, U+6C7A, U+6C7D, U+6CB9, U+6CE2, U+6CE8, U+6CF3, U+6D0B, U+6D3B, U+6D41, U+6D77, U+6D88, U+6DF1, U+6E29, U+6E2F, U+6E56, U+6E6F, U+6F22, U+706B, U+706F, U+70AD, U+70B9, U+7236, U+725B, U+7269, U+72AC, U+7389, U+738B, U+7403, U+7406, U+751F, U+7528, U+7530-7531, U+7533, U+7537, U+753A-753B, U+754C, U+7551, U+756A, U+75C5, U+767A-767B, U+767D-767E, U+76EE, U+76F4, U+76F8, U+770C, U+771F, U+7740, U+77E2, U+77E5, U+77ED, U+77F3, U+7814, U+793C, U+793E, U+795E, U+796D, U+798F, U+79CB, U+79D1-79D2, U+7A76, U+7A7A, U+7ACB, U+7AE0, U+7AE5, U+7AF9, U+7B1B, U+7B2C, U+7B46, U+7B49, U+7B54, U+7B97, U+7BB1, U+7C73, U+7CF8, U+7D19-7D1A, U+7D30, U+7D42, U+7D44, U+7D75, U+7DD1, U+7DDA, U+7DF4, U+7F8E, U+7FBD, U+7FD2, U+8003, U+8005, U+8033, U+805E, U+8089, U+80B2, U+81EA, U+8239, U+8272, U+82B1, U+82E6, U+8336, U+8349, U+8377, U+843D, U+8449, U+85AC, U+866B, U+884C, U+8868, U+897F, U+898B, U+89AA, U+89D2, U+8A00, U+8A08, U+8A18, U+8A69, U+8A71, U+8A9E, U+8AAD, U+8ABF, U+8AC7, U+8C37, U+8C9D, U+8CA0, U+8CB7, U+8D64, U+8D70, U+8D77, U+8DB3, U+8DEF, U+8ECA, U+8EE2, U+8EFD, U+8FB2, U+8FD1, U+8FD4, U+8FFD, U+9001, U+901A, U+901F, U+9031-9032, U+904A-904B, U+9053, U+9060, U+90E8, U+90FD, U+914D, U+9152, U+91CC-91CE, U+91D1, U+9244, U+9280, U+9580, U+958B, U+9593, U+9662, U+967D, U+968E, U+96C6, U+96E8, U+96EA, U+96F2, U+96FB, U+9752, U+97F3, U+982D, U+984C, U+9854, U+98A8, U+98DF, U+98F2, U+9928, U+9996, U+99AC, U+99C5, U+9AD8, U+9B5A, U+9CF4, U+9EA6, U+9EC4, U+9ED2, U+FE30, U+FE35-FE3A, U+FE3F-FE42, U+FF01, U+FF03-FF06, U+FF08-FF0C, U+FF0E-FF3D, U+FF3F, U+FF41-FF5E, U+FFE5;
}

:root {
  --teal: #00a99d; --teal-deep: #007a72; --pink: #d64072;
  --cream: #fff9e8; --ink: #23423f;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Zen Maru Gothic', sans-serif; color: var(--ink); background: var(--teal); }
.kodomo { font-family: 'KodomoRounded', 'Zen Maru Gothic', sans-serif; }
.en-dot { font-family: 'Codystar', sans-serif; letter-spacing: .18em; }
.en { font-family: 'Delius', 'Zen Maru Gothic', sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* 固定背景：ティール全面＋ロゴカード＋タグライン＋動物パレード。カードがこの上を流れる */
.bg-fixed { position: fixed; inset: 0; background: var(--teal); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 0; }
.logo-card { background: #fff; border-radius: 40px; padding: 30px 70px; box-shadow: 0 16px 50px rgba(0,70,66,.35); }
.logo-card img { width: min(560px, 74vw); height: auto; display: block; }
.tagline { margin-top: 42px; text-align: center; color: #fff; }
.tagline .ja { font-size: clamp(19px, 2.3vw, 32px); }
.tagline .alt { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; }
.tagline .en { font-size: clamp(12px, 1.2vw, 16px); display: block; margin-top: 12px; color: var(--cream); }
.scroll-hint { position: absolute; bottom: 130px; color: var(--cream); font-size: 13px; letter-spacing: .3em; }
.parade { position: absolute; bottom: 0; left: 0; right: 0; height: 110px; background: #fff url('../assets/parade.webp') repeat-x left bottom; background-size: auto 100%; }
@media (prefers-reduced-motion: reduce) {
  .parade { background-image: url('../assets/parade_frame.png'); }
}
/* ?flat = QA 用の縦通しスクリーンショットモード */
html.flat .bg-fixed { position: absolute; height: 900px; }
html.flat main { margin-top: 900px; }

/* 右上ナビ：横書き縦並べ（デスクトップ）／ハンバーガー（モバイル） */
nav { position: fixed; top: 24px; right: 24px; z-index: 10; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
nav a { text-decoration: none; text-align: right; background: var(--cream); border-radius: 14px; padding: 7px 14px; min-width: 150px; box-shadow: 0 4px 14px rgba(0,60,56,.25); }
nav a .en-dot { display: block; color: var(--ink); font-size: 16px; }
nav a .ja { display: block; font-size: 11px; color: var(--ink); margin-top: 2px; }
#nav-toggle { display: none; position: fixed; top: 12px; right: 12px; z-index: 20; width: 52px; height: 52px; border: none; border-radius: 50%; background: var(--cream); box-shadow: 0 4px 14px rgba(0,60,56,.3); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
#nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--teal-deep); transition: transform .25s, opacity .25s; }
#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

main { position: relative; z-index: 1; margin-top: 100vh; margin-top: 100dvh; padding-bottom: 60px; }
section.card { width: min(1120px, 92%); margin: 76px auto 0; background: var(--cream); border-radius: 36px; padding: 72px 84px 84px; position: relative; box-shadow: 0 18px 60px rgba(0,60,56,.35); }
h2.sec { text-align: center; }
h2.sec .en-dot { display: block; font-size: 44px; font-weight: 400; color: var(--teal); }
h2.sec .ja { display: block; font-size: 15px; margin-top: 8px; color: var(--pink); }
.lead { text-align: center; margin-top: 44px; font-size: 26px; line-height: 2; color: var(--ink); }
.lead .q { font-size: 32px; color: var(--teal-deep); }
.lead .answer { font-size: 46px; margin: 18px 0; display: block; color: var(--pink); }
.lead .sub-en { display: block; font-size: 15px; color: #7a8a6f; margin-top: 12px; line-height: 1.8; }

.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 56px; }
.division { background: #fff; border-radius: 24px; padding: 40px 36px; text-align: center; border-bottom: 8px solid var(--teal); }
.division:nth-child(2) { border-bottom-color: var(--pink); }
.division h3 { font-size: 27px; color: var(--teal-deep); }
.division .en { display: block; font-size: 13px; margin: 8px 0 18px; color: var(--pink); }
.division p { font-size: 16px; line-height: 2; text-align: left; }
.imgslots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.imgslots img { width: 100%; height: auto; border-radius: 14px; display: block; border: 2px solid rgba(0,169,157,.25); }

.media-wrap { margin: 46px auto 0; width: 88%; border-radius: 24px; overflow: hidden; border: 6px solid var(--teal); }
.media-wrap img { width: 100%; height: auto; display: block; }
.caption-en { text-align: center; margin-top: 18px; font-size: 15px; color: var(--teal-deep); }

table.company { width: 84%; margin: 50px auto 0; border-collapse: collapse; font-size: 17px; }
table.company th, table.company td { text-align: left; padding: 18px 10px; border-bottom: 2px dotted var(--teal); vertical-align: top; }
table.company th { width: 200px; font-weight: 700; color: var(--teal-deep); }
table.company .en { display: block; font-size: 13px; color: #8b9a84; margin-top: 4px; }

.news-list { width: 84%; margin: 44px auto 0; font-size: 17px; }
.news-list li { list-style: none; padding: 16px 6px; border-bottom: 2px dotted var(--teal); display: flex; gap: 34px; }
.news-list .date { color: var(--pink); flex: 0 0 110px; }
.news-list .en { display: block; font-size: 12.5px; color: #8b9a84; margin-top: 4px; }

/* 看板のうしろから手を出す動物。元画像の看板ライン（上から72.7%）をカード上端に一致させる
   top = -(表示幅 × 1250/2300 × 0.727) */
.pi-peek { position: absolute; top: -75px; left: 76px; width: 190px; height: auto; }

form.contact { width: 76%; margin: 46px auto 0; display: flex; flex-direction: column; gap: 16px; }
form.contact input, form.contact textarea {
  font-family: inherit; font-size: 16px; border: 2px solid var(--teal); border-radius: 12px; padding: 15px 18px; background: #fff; color: var(--ink);
  width: 100%; min-width: 0;
}
form.contact textarea { height: 130px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.form-note { font-size: 13.5px; color: var(--teal-deep); line-height: 1.9; }
.form-status { font-size: 15px; min-height: 1.5em; color: var(--pink); font-weight: 700; }
.form-status.ok { color: var(--teal-deep); }
form.contact button { background: var(--teal); color: #fff; font-family: 'KodomoRounded', 'Zen Maru Gothic', sans-serif; font-size: 20px; border: none; border-radius: 14px; padding: 16px; cursor: pointer; transition: background .3s; }
form.contact button:hover { background: var(--teal-deep); }
form.contact button:disabled { background: #9db8b5; cursor: default; }

/* フッターはスクロール終端でパレードの白帯（fixed・高さ110px）に重なる位置に来る。
   固定背景は場所により白（ロゴカード）にもティールにもなるため、
   「常に白」の帯の中にティール文字で置くのが唯一確実な配色 */
footer { position: relative; z-index: 1; color: var(--teal-deep); text-align: center; min-height: 110px; padding: 14px 0; margin: 60px 0 0; display: flex; flex-direction: column; justify-content: center; font-size: 13px; }
footer .en-dot { font-size: 17px; display: block; margin-bottom: 6px; color: var(--teal); }
/* ?flat（QA）では帯がフッター下に無いので従来色 */
html.flat footer { color: var(--cream); }
html.flat footer .en-dot { color: var(--cream); }

/* スマホ */
@media (max-width: 700px) {
  html.flat .bg-fixed { height: 620px; }
  html.flat main { margin-top: 620px; }
  .parade { height: 64px; }
  .scroll-hint { bottom: 78px; }
  .logo-card { padding: 18px 26px; border-radius: 24px; }
  .tagline { margin-top: 30px; padding: 0 12px; }
  #nav-toggle { display: flex; }
  nav { display: none; }
  nav.open { display: flex; position: fixed; inset: 0; z-index: 15; background: rgba(0, 90, 84, .96); flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
  nav.open a { min-width: 240px; text-align: center; padding: 13px 18px; border-radius: 18px; }
  nav.open a .en-dot { font-size: 23px; }
  nav.open a .ja { font-size: 12px; margin-top: 4px; }
  section.card { padding: 42px 22px 50px; border-radius: 24px; margin-top: 46px; }
  h2.sec .en-dot { font-size: 28px; }
  h2.sec .ja { font-size: 13px; }
  .lead { font-size: 17px; margin-top: 30px; }
  .lead .q { font-size: 20px; }
  .lead .answer { font-size: 26px; }
  .lead .sub-en { font-size: 12px; }
  .divisions { grid-template-columns: 1fr; gap: 22px; margin-top: 34px; }
  .division { padding: 28px 22px; }
  .division h3 { font-size: 21px; }
  .media-wrap { width: 100%; border-width: 4px; }
  table.company { width: 100%; font-size: 13.5px; }
  table.company th { width: 96px; }
  table.company th, table.company td { padding: 12px 4px; }
  table.company .en { font-size: 11px; }
  .news-list { width: 100%; font-size: 14px; }
  .news-list li { gap: 14px; }
  .news-list .date { flex: 0 0 84px; }
  form.contact { width: 100%; }
  .pi-peek { width: 120px; top: -47px; left: 26px; }
  footer { min-height: 64px; margin-top: 40px; padding: 8px 0; font-size: 10.5px; }
  footer .en-dot { font-size: 13px; }
}
