/* サイト共通の小さな動き。js/interactions.js が html に .has-reveal を付けたときだけ働く(JS が動かなければ何も隠さない) */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }
/* カードは、現れたあとはホバーの動きを優先する */
.has-reveal .csCard[data-reveal].is-done { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s; }
@media (prefers-reduced-motion: reduce) {
	.has-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
	.csCard, .csCard__img img, .csZoom, .csLightbox, .csLightbox img { transition: none !important; }
}
@media print {
	.has-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ==== 共通の部品(新しいページの調子に合わせる) ==== */

/* ヘッダーのメニュー: ホバーで5色の線が左から伸びる。お問い合わせは丸いボタン */
.mainMenu__item::after { top: auto; bottom: -4px; height: 3px; background: linear-gradient(90deg, #00a8e0, #00a689, #edc03d, #dc336b, #b077b0); transition: right 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mainMenu__list:last-child .mainMenu__item::after { display: none; }
.mainMenu__link_btn { border-radius: 30px; padding: 14px 26px 12px 22px; transition: background-color 0.25s, color 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s; }
.mainMenu__link_btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14); }

/* 各ページ上部の題名 */
.subPageHeader__titleMain { letter-spacing: 0.02em; }
.subPageHeader__titleSub { margin-top: 6px; font-weight: bold; }

/* お問い合わせの帯 */
.sectionContact { border-radius: 20px; background: #f7f8f9; }
.sectionContact .contactExample { border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05); }
.sectionContact .contactExample__item { border-bottom-style: dotted; }
.sectionContact .contactExample__item::before { width: 12px; min-width: 12px; height: 7px; margin: 6px 10px 0 3px; border: 0; border-left: 2px solid #00a689; border-bottom: 2px solid #00a689; border-radius: 0; transform: rotate(-45deg); }
.sectionContact .contactLead__button { display: inline-block; width: auto; min-width: 220px; box-sizing: border-box; white-space: nowrap; margin-right: 40px; padding: 17px 64px 16px 32px; border: 0; border-radius: 40px; background: #393939; color: #fff; font-weight: bold; letter-spacing: 0.06em; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, background-color 0.3s; }
.sectionContact .contactLead__button::after { right: 28px; color: #fff; transform: translateY(-50%); transition: right 0.3s; }
.sectionContact .contactLead__button:hover::after { right: 22px; }
.sectionContact .contactLead__button:hover { transform: translateY(-3px); background: #222; color: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }

/* フッター */
.footer { margin-top: 90px; border-top: 1px solid #e3e3e3; }
.footer__inner { align-items: flex-start; padding: 56px 0 56px; }
.footer__menu { flex: 0 1 560px; }
.footer__menuList { gap: 34px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid #e3e3e3; }
.footer__menuListLink { font-size: 0.9375rem; font-weight: bold; }
.footer__menuService { gap: 34px; }
.footer__menuServiceHeading { font-size: 0.9375rem; font-weight: bold; }
.footer__menuServiceList { gap: 12px 30px; }
.footer__menuServiceItem { font-size: 0.875rem; line-height: 1.6; }
.footer__menuServiceItem::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: #c2c6cc; vertical-align: middle; }
.footer__menuListLink, .footer__menuServiceLink, .footer__menuServiceHeading { transition: color 0.2s; }
.footer__menuListLink:hover, .footer__menuServiceLink:hover, .footer__menuServiceHeading:hover { color: #00a689; text-decoration: none; }
.footer__tagLine { font-size: 0.75rem; line-height: 1.6; }
.footer__address { line-height: 1.7; }

@media print, screen and (max-width: 767px) {
	.sectionContact { border-radius: 14px; }
	.footer { margin-top: 60px; }
	.footer__inner { padding: 36px 0; }
	.footer__menuList { flex-wrap: wrap; gap: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.mainMenu__item::after, .mainMenu__link_btn, .sectionContact .contactLead__button { transition: none !important; }
}

/* ==== 表示の崩れの修正(全ページの確認で見つかったもの) ==== */

/* 見出しや一言が「す。」「た。」など1〜2文字だけ次の行に残らないよう、行の長さをそろえて文節で折り返す */
.svbHero__text, .svbChapter__catch, .svbCase__catch, .svbFeature__title, .svbFlow__title,
.fsHead__lead, .fsCard__title, .fkPanel__catch,
.csCard__catch, .csCard__title, .csHero__title, .csHero__lead, .csPoint__title, .csLead,
.nwItem__title, .nwArticle__title, .nwNav__title,
.coMission__heading, .coValue__title, .coDomain__title, .coMessage__quote,
.ctIntro__catch, .page404__catch, .privacyContent__heading,
.vision__headingMain, .frontApproach__heading, .approachPoints__title { text-wrap: balance; word-break: auto-phrase; }

/* ヘッダーの「お問い合わせ」: 高さを明示し、上下の余白をそろえる。ホバーでは持ち上げない(上が欠けて見えるのを防ぐ) */
.header { overflow: visible; }
.mainMenu, .mainMenu__list, .mainMenu__item { overflow: visible; }
.mainMenu__link_btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 48px; padding: 0 26px 0 22px; line-height: 1; white-space: nowrap; }
.mainMenu__link_btn i { margin-right: 8px; line-height: 1; }
.mainMenu__link_btn:hover { transform: none; }

/* サービス: 冒頭の「07」と SERVICES の重なり */
.svbHero__countNum { line-height: 1; }
.svbHero__countText { margin-top: 2px; }
/* サービス: 一言の幅を少し広げる */
.svbChapter__catch { max-width: 18em; }

/* 企業情報: 事業領域の英語の名前が単語の途中で折れるのを防ぐ */
.coDomain__en { word-break: normal; overflow-wrap: normal; hyphens: none; letter-spacing: 0.02em; }

@media print, screen and (max-width: 767px) {
	/* サービス: 白抜きの番号が、項目名の札と重ならない大きさにする */
	.svbChapter__num { font-size: 4.25rem; right: 12px; top: 10px; }
	.svbChapter__head { max-width: calc(100% - 96px); }
	/* 事例: 「タップで拡大」の札を図の外(下)に出し、図の中身に重ならないようにする */
	.csPoint__img_figure { padding-bottom: 34px; }
	.csPoint__img_figure::after { right: 0; bottom: 4px; }
	/* 企業情報: VISION の文章に5色の帯が重ならないよう、帯を文章の下へ */
	.vision { padding-bottom: 150px; background: url("../img/company_vision_statement.svg") no-repeat right 15% top / 90%, url("../img/company_vision_rainbow.svg") no-repeat right -90px bottom / 78%; }
	/* トップ: NEWS の見出しと「すべてみる」を同じ高さに */
	.fnSection .fsHead { align-items: center; }
	/* フッター: 途中で切れて見える区切り線をやめる */
	.footer__menuList { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
}
