/* ==========================================================================
   aflow.jp — 書き直した CSS（2026-10-26）。見た目は TCD DROP で作っていた今のサイトに合わせ、
   寸法・色は本番の計算済みスタイル（_build/probe/*.json）から取った。
   並び: 1.基本  2.ヘッダー  3.トップ（スライダー・カルーセル・2色の帯・円グラフ・3枚組・一つ星）
         4.下層（ページの頭・本文・会社概要の表・フォーム）  5.フッター  6.動き  7.スマホ（1151px 以下・750px 以下）
   「動きを減らす」の設定では 6 の動きを止める（@media (prefers-reduced-motion: reduce)）。
   ========================================================================== */

/* ── 1. 基本 ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; position: relative; width: 100%;
  font-family: Arial, "Hiragino Sans", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", 游ゴシック, YuGothic, メイリオ, Meiryo, sans-serif;
  font-size: 16px; line-height: 1; color: #000; background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, table, figure { margin: 0; padding: 0; font-size: 100%; }
h1, h2, h3, h4 { font-weight: 600; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
svg.ico { display: block; }

/* ── 2. ヘッダー（上に重なる・スクロールで赤い帯が降りて固定） ───────── */
#header {
  position: absolute; top: 0; left: 0; z-index: 1100; width: 100%; height: 70px;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
#header::after {
  content: ""; position: absolute; z-index: 1; left: 0; top: -70px; width: 100%; height: 70px; background: #f44336;
  transition: top .6s cubic-bezier(.22,1,.36,1);
}
#header.active::after { top: 0; }
body.header_fix #header { position: fixed; }
body.header_fix #header::after { top: 0; }
#header_logo { position: absolute; z-index: 10; left: 30px; top: 50%; transform: translateY(-50%); }
#header_logo .logo { line-height: 1; font-weight: 500; }
#header_logo img { transition: opacity .3s ease-in-out; }
#header_logo a:hover img { opacity: .5; }
#header_logo .logo_image.mobile { display: none; }
#global_menu { position: relative; z-index: 2; width: 100%; height: 70px; }
#global_menu > ul { text-align: center; font-size: 0; }
#global_menu > ul > li { display: inline-block; font-size: 14px; line-height: 1; text-align: center; }
#global_menu > ul > li > a { display: block; height: 70px; line-height: 70px; padding: 0 20px; color: #fff; font-weight: 600; overflow: hidden; }
#global_menu > ul > li > a:hover, #global_menu > ul > li.current-menu-item > a { color: #ee2; }
.global_menu_button { display: none; }
#drawer_menu { display: none; }
/* トップはスライダーの文字に合わせて、ロゴとメニューが後から浮かび上がる */
body.home #header_logo, body.home #global_menu, body.home #main_contents_link, body.home .global_menu_button { opacity: 0; }
body.home #header_logo.animate, body.home #global_menu.animate, body.home #main_contents_link.animate, body.home .global_menu_button.animate { animation: opacityAnimation 1s ease forwards; }

/* ── 3. トップ ──────────────────────────────────────────────────────── */
/* 3-1 スライダー（2枚・7秒で切り替え・文字は下から・写真はゆっくり寄る） */
#header_slider_wrap { position: relative; width: 100%; height: 100vh; overflow: hidden; }
#header_slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
#header_slider .item { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
#header_slider .item.is-active { opacity: 1; z-index: 1; }
#header_slider .caption { position: absolute; z-index: 100; left: 50%; top: 50%; width: 850px; transform: translate(-50%, -50%); text-align: center; color: #fff; }
#header_slider .catch { position: relative; font-size: 36px; line-height: 1.4; font-weight: 600; word-wrap: break-word; }
#header_slider .desc { position: relative; margin: 15px 0 0; font-size: 18px; }
#header_slider .desc p { line-height: 2; }
#header_slider .caption .animate_item { opacity: 0; }
#header_slider .item.is-active .animate_item { animation: slideUp 1.3s cubic-bezier(.165,.84,.44,1) forwards; }
#header_slider .item.is-active .desc.animate_item { animation-delay: .7s; }
#header_slider .overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(244,67,54,.7) 0%, rgba(255,193,7,.7) 100%); }
#header_slider .bg_image, #header_slider picture { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
#header_slider img.bg_image { object-fit: cover; object-position: 50% 0; transform: scale(1.1); }
#header_slider .item.is-active img.bg_image { animation: header_bg_image_zoom_in 1.7s cubic-bezier(.075,.82,.165,1) forwards .1s; }
#main_contents_link { position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: 74px; margin: auto; }
#main_contents_link .label { position: absolute; top: 0; display: block; width: 100%; text-align: center; color: #fff; font-size: 14px; font-weight: 600; transition: opacity .3s ease; }
#main_contents_link:hover .label { opacity: .5; }
#main_contents_link .line { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 1px; height: 51px; margin: auto; background: rgba(255,255,255,.5); overflow: hidden; }
#main_contents_link .line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; display: block; width: 1px; height: 30px; margin: auto; background: #fff; animation: line_animation 1.8s ease infinite; }

/* 3-2 コンテンツビルダーの共通 */
.cb_content_inner { width: 850px; margin: 0 auto; padding: 110px 0 118px; }
.cb_headline { font-size: 34px; line-height: 1.5; font-weight: 600; text-align: center; }

/* 3-3 写真のカルーセル（2枚・5秒・矢印） */
.cb_image_carousel .cb_headline { margin-bottom: 0; }
.image_carousel_wrap { position: relative; }
.image_carousel { position: relative; margin: 45px 0 0; overflow: hidden; }
.image_carousel_track { display: flex; transition: transform .7s cubic-bezier(.19,1,.22,1); }
.image_carousel .item { flex: 0 0 100%; min-width: 0; }
.image_carousel .item img { width: 100%; height: auto; margin: 0 auto; }
.carousel_arrow { position: absolute; z-index: 10; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #000; }
.carousel_arrow svg { width: 18px; height: 18px; }
.carousel_arrow.prev_item { left: -35px; }
.carousel_arrow.next_item { right: -35px; }
.carousel_arrow:hover { opacity: .5; }
.cb_image_carousel .desc { margin: 50px 0 -5px; line-height: 2.4; }
.cb_image_carousel .desc.align_type2 { text-align: center; }

/* 3-4 写真＋色の帯（design_content） */
.design_content { display: flex; flex-wrap: wrap; height: 600px; }
.design_content.layout_type2 { flex-direction: row-reverse; }
.design_content .image_area { position: relative; width: 50%; height: 100%; overflow: hidden; }
.design_content .image_area img.bg_image, .design_content .image_area picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.design_content .image_area img.bg_image { object-fit: cover; object-position: 50% 0; }
.design_content .overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.2); }
.design_content .content_area { position: relative; width: 50%; height: 100%; overflow: hidden; }
.design_content .content_area_inner { position: absolute; z-index: 2; left: 50%; top: 50%; width: 370px; transform: translate(-50%, -50%); }
.design_content .catch { margin-bottom: 20px; font-size: 22px; line-height: 1.7; font-weight: 600; color: #fff; }
.design_content .desc { line-height: 2.4; color: #fff; }
.design_content .content_image { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: flex-end; align-items: flex-end; padding: 0 50px 0 0; }
.design_content .content_image img { width: 250px; height: 350px; }
/* about ページは薄い灰色の帯＝黒い文字・写真には薄い黄色（rgba(255,193,7,.3)）が掛かる */
.design_content--light .catch, .design_content--light .desc { color: #000; }
.design_content--light .overlay { background: rgba(255,193,7,.3); }

/* 3-5 円グラフ（Chart.js の代わりに SVG で描く） */
.cb_chart_content .chart_area_wrap { display: flex; flex-wrap: wrap; margin: 10px 0 52px; }
.cb_chart_content .chart_item { flex: 1 1 0%; }
.cb_chart_content .chart_item:first-of-type { margin-right: 25px; }
.cb_chart_content .chart_item:last-of-type { margin-left: 25px; }
.cb_chart_content .cb_chart_wrap { position: relative; width: 290px; height: 290px; margin: 0 auto; }
.cb_chart_content .cb_chart_wrap svg { display: block; width: 100%; height: 100%; }
.cb_chart_content .donut text { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; fill: #000; }
/* 見出しは穴の中（.inview の top:40px/0 より強くする） */
.cb_chart_content .chart_headline, .cb_chart_content .chart_headline.inview, .cb_chart_content .chart_headline.inview.animate { position: absolute; top: 50%; width: 100%; margin: 0; transform: translateY(-50%); font-size: 14px; line-height: 1.4; font-weight: 700; text-align: center; }
.cb_chart_content .chart_labels { margin: 35px 0 0; text-align: center; }
.cb_chart_content .chart_labels .item { display: inline-block; margin: 5px 6px; font-size: 14px; line-height: 1; }
.cb_chart_content .chart_labels .item .color { float: left; display: block; width: 14px; height: 14px; margin: 0 4px 0 0; }
.cb_chart_content .data_table { width: 100%; max-width: 500px; margin: 35px auto 0; }
.cb_chart_content .data_table table { font-size: 11px; table-layout: fixed; }
.cb_chart_content .data_table th { height: 30px; line-height: 1.2; text-align: center; vertical-align: middle; border: 1px solid #ddd; background: #f2f2f2; font-weight: 700; }
.cb_chart_content .data_table td { height: 30px; line-height: 1.2; text-align: center; vertical-align: middle; border: 1px solid #ddd; border-top: none; }
.cb_chart_content .cb_headline { margin-bottom: 20px; }
.cb_chart_content .desc_area { margin: 0 0 -10px; }
.cb_chart_content .desc_area.type2 { display: flex; flex-wrap: wrap; }
.cb_chart_content .desc_area.type2 .desc:first-of-type { width: calc(50% - 25px); margin-right: 50px; }
.cb_chart_content .desc_area.type2 .desc:last-of-type { width: calc(50% - 25px); }
.cb_chart_content .desc { line-height: 2.4; }

/* 3-6 3枚組（box_content） */
.box_content { display: flex; flex-wrap: wrap; height: 600px; }
.box_content .content { position: relative; flex: 1 1 0%; overflow: hidden; }
.box_content .headline { position: absolute; z-index: 3; top: 0; left: 50%; transform: translateX(-50%); min-width: 160px; height: 50px; line-height: 50px; padding: 0 10px; text-align: center; color: #fff; background: #f44336; font-size: 14px; }
.box_content .content_inner { position: absolute; z-index: 3; left: 50%; top: 50%; width: 300px; transform: translate(-50%, -50%); }
.box_content .catch { font-size: 22px; line-height: 1.5; font-weight: 600; text-align: center; color: #fff; }
.box_content .desc { margin-top: 20px; line-height: 2.4; color: #fff; }
.box_content .overlay { position: absolute; inset: 0; z-index: 2; }
.box_content .content1 .overlay { background: rgba(0,83,0,.8); }
.box_content .content2 .overlay { background: rgba(0,82,111,.8); }
.box_content .content3 .overlay { background: rgba(178,0,0,.8); }
.box_content img.bg_image, .box_content picture { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.box_content img.bg_image { object-fit: cover; object-position: 50% 50%; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.box_content .content:hover img.bg_image { transform: scale(1.2); }

/* 3-7 一つ星（フリースペース） */
.cb_free_space.type1 { width: 850px; margin: 30px auto; }
.post_content .aligncenter { display: block; margin: 7px auto; }

/* ── 4. 下層 ──────────────────────────────────────────────────────────── */
#page_header { position: relative; width: 100%; height: 660px; overflow: hidden; background: #000; }
#page_header_inner { position: absolute; z-index: 3; left: 50%; top: 50%; width: 850px; transform: translate(-50%, -50%); }
#page_header .headline { font-size: 34px; line-height: 1.5; font-weight: 600; text-align: center; color: #fff; }
#page_header .animate_item { position: relative; opacity: 0; }
#page_header .animate_item.animate { animation: slideUp 1.3s cubic-bezier(.165,.84,.44,1) forwards .5s; }
#page_header .overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(244,67,54,.7) 0%, rgba(255,193,7,.7) 100%); }
#page_header img.bg_image, #page_header picture { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
#page_header img.bg_image { object-fit: cover; object-position: 50% 0; transform: scale(1.1); }
#page_header img.bg_image.animate { animation: header_bg_image_zoom_in 1.7s cubic-bezier(.075,.82,.165,1) forwards .1s; }
#bread_crumb { position: absolute; z-index: 3; left: 0; bottom: 0; width: 100%; border-top: 1px solid rgba(255,255,255,.3); color: #fff; }
#bread_crumb ul { width: 850px; margin: 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#bread_crumb li { position: relative; display: inline; margin: 0 10px 0 0; padding: 0 20px 0 0; font-size: 12px; }
#bread_crumb li::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
#bread_crumb li:last-of-type::after { display: none; }
#bread_crumb li a { display: inline-block; height: 59px; line-height: 60px; color: #fff; transition: opacity .2s ease-in-out; }
#bread_crumb li a:hover { opacity: .5; }
#bread_crumb li.home a { position: relative; width: 16px; }
#bread_crumb li.home a span { position: absolute; opacity: 0; }
#bread_crumb li.home svg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; }
.lp_content { position: relative; }
.lp_content_inner { width: 850px; margin: 0 auto; padding: 115px 0 120px; }
.lp_free_space .cb_headline { margin-bottom: 20px; }
.post_content { word-wrap: break-word; }
.post_content p { line-height: 2.4; margin: 0 0 2em; }
.post_content p:last-child { margin: 0; }
.post_content h1 { font-size: 150%; line-height: 1.4; margin: 0 0 15px; font-weight: 600; }
.post_content a { color: #f44336; }
.post_content a:hover { color: #ed2c00; }
.post_content img { height: auto; max-width: 100%; }
/* 表は本文の inline style（width:20%・height:35px）が content-box 前提なので、ここだけ content-box に戻す */
.post_content table { margin: 0 0 24px; width: 100% !important; border: 0; box-sizing: content-box; }
.post_content td, .post_content th { border: 1px solid #ddd; padding: 17px 25px; line-height: 2.2; background: #fff; box-sizing: content-box; }
#main_contents { width: 850px; margin: 0 auto; padding: 120px 0 150px; }

/* 4-2 お問い合わせフォーム（CF7 の見た目） */
.nf-form { width: 100%; margin: 0 0 2.5em; border: 1px solid #ddd; background: #fafafa; font-size: 14px; color: #000; box-sizing: content-box; }   /* CF7 と同じく枠の分 2px はみ出す */
.nf-form .form { margin: 1.5em 1.5em 0; }
.nf-form .form__field { margin: 0 0 1em; font-size: 16px; line-height: 2.4; border: 0; padding: 0; min-width: 0; }   /* fieldset の既定の margin（左右 2px）も消す */
.nf-form .form__label { display: inline; }
.nf-form legend.form__label { padding: 0; }
.nf-form .form__req { color: #ff7d00; }
.nf-form .form__choices label { display: block; margin: 0 0 0 1em; }
.nf-form .form__choices input[type=radio] { width: auto; max-width: 97%; margin: 3px 3px 0 5px; padding: 8px; vertical-align: baseline; }
.nf-form .form__input, .nf-form .form__textarea { display: inline-block; width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 0; background: #fff; font: inherit; font-size: 16px; line-height: 1.2; color: #000; -webkit-appearance: none; }
.nf-form .form__textarea { height: 300px; }   /* vertical-align は baseline のまま（CF7 と同じく下に 11px の余白が出る） */
.nf-form .form__input:focus, .nf-form .form__textarea:focus { border-color: #bbb; outline: none; }
/* 下の 54px＝CF7 の送信ボタンの後ろにある隠れた spinner の1行（38px）＋ p の margin（16px） */
.nf-form .form__submit { display: block; width: 225px; height: 48px; margin: 30px auto 54px; padding: 8px; border: 0; background: #333; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; cursor: pointer; transition: background-color .3s; }
.nf-form .form__submit:hover { background: #666; }
.nf-form .form__submit:disabled { cursor: not-allowed; opacity: .6; }
.nf-form .nf-tip { display: block; color: #dc3232; font-size: 1em; line-height: 1.6; }
.nf-form .nf-response { margin: 1.5em 1.5em 0; padding: 0; line-height: 1.8; font-size: 16px; text-align: center; }
.nf-form .nf-response.nf-ng { color: #dc3232; }
.nf-form .nf-response.nf-ok { color: #000; }
.nf-form .nf-turnstile { min-height: 65px; }
.nf-form .nf-turnstile .cf-turnstile { line-height: 0; }

/* ── 5. フッター ─────────────────────────────────────────────────────── */
.banner_content { position: relative; width: 100%; height: 600px; overflow: hidden; }
.banner_content_inner { position: relative; z-index: 3; top: 50%; width: 850px; margin: 0 auto; transform: translateY(-50%); text-align: center; }
.banner_content .catch { font-size: 34px; line-height: 1.5; font-weight: 600; color: #fff; }
.banner_content .desc { margin: 20px 0 0; line-height: 2.4; color: #fff; }
.banner_content .design_button { margin-top: 30px; }
.banner_content .overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, rgba(244,67,54,.7) 0%, rgba(255,193,7,.7) 100%); }
.banner_content img.bg_image, .banner_content picture { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.banner_content img.bg_image { object-fit: cover; object-position: 50% 50%; will-change: transform; }
.design_button { position: relative; z-index: 10; text-align: center; }
.design_button a { position: relative; z-index: 3; display: inline-block; min-width: 300px; max-width: 100%; height: 60px; padding: 0 20px; border: 1px solid #c90000; border-radius: 60px; overflow: hidden; color: #fff; font-size: 16px; line-height: 60px; font-weight: 600; transition: all .35s ease; }
.design_button a span { position: relative; z-index: 3; }
.design_button.type4 a::before { content: ""; position: absolute; z-index: 1; top: -1px; left: calc(-100% - 70px); width: calc(100% + 70px); height: calc(100% + 2px); background: #c90000; transform: skewX(45deg); transform-origin: bottom left; transition: all .5s cubic-bezier(.22,1,.36,1); }
.design_button.type4 a:hover::before { left: 0; }
.footer_menu { border-top: 1px solid #ddd; }
.footer_menu ul { display: flex; align-items: center; justify-content: center; height: 60px; text-align: center; }
.footer_menu li { margin-right: 20px; font-size: 14px; }
.footer_menu li:last-child { margin-right: 0; }
.footer_menu a { color: #000; }
.footer_menu a:hover { color: #f44336; }
#copyright { height: 60px; line-height: 60px; font-size: 12px; text-align: center; color: #fff; background: #f44336; }
#return_top { position: fixed; z-index: 999; right: 0; bottom: 0; transform: translate3d(0, 100%, 0); transition: transform .35s; }
#return_top.active { transform: translate3d(0, 0, 0); }
#return_top a { position: relative; display: block; width: 60px; height: 60px; background: #f44336; color: #fff; }
#return_top a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#return_top svg { position: absolute; left: 0; right: 0; top: 4px; width: 12px; height: 12px; margin: auto; }

/* ── 6. 動き（スクロールで下から出る・切り替え） ───────────────────── */
.inview { position: relative; top: 40px; opacity: 0; transition: top 1.3s cubic-bezier(.165,.84,.44,1) .3s, opacity 1.3s cubic-bezier(.165,.84,.44,1) .3s; }
.inview.animate { top: 0; opacity: 1; }
.box_content .catch, .box_content .desc { position: relative; top: 40px; opacity: 0; }
.box_content .content.animate .catch { top: 0; opacity: 1; transition: top 1.3s cubic-bezier(.165,.84,.44,1) .3s, opacity 1.3s cubic-bezier(.165,.84,.44,1) .3s; }
.box_content .content.animate .desc { top: 0; opacity: 1; transition: top 1.3s cubic-bezier(.165,.84,.44,1) .6s, opacity 1.3s cubic-bezier(.165,.84,.44,1) .6s; }
@keyframes slideUp { 0% { bottom: -30px; } 100% { opacity: 1; bottom: 0; } }
@keyframes opacityAnimation { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes header_bg_image_zoom_in { 0% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes line_animation { 0% { top: -30px; } 100% { top: 51px; } }
@keyframes line_animation_mobile { 0% { top: -20px; } 100% { top: 30px; } }
/* JS が無い時・「動きを減らす」の設定の時は、隠さず最初から見せる */
html:not(.js) .inview, html:not(.js) .box_content .catch, html:not(.js) .box_content .desc, html:not(.js) #page_header .animate_item,
html:not(.js) #header_slider .caption .animate_item, html:not(.js) body.home #header_logo, html:not(.js) body.home #global_menu, html:not(.js) body.home #main_contents_link, html:not(.js) body.home .global_menu_button { opacity: 1; top: 0; animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  #header_slider img.bg_image, #page_header img.bg_image { transform: none; }
  .inview, .box_content .catch, .box_content .desc { top: 0; opacity: 1; }
  #page_header .animate_item, #header_slider .caption .animate_item, body.home #header_logo, body.home #global_menu, body.home #main_contents_link, body.home .global_menu_button { opacity: 1; }
  #main_contents_link .line::after { display: none; }
  .box_content .content:hover img.bg_image { transform: none; }
}

/* ── 7. スマホ・タブレット ────────────────────────────────────────────── */
@media screen and (max-width: 1151px) {
  body { font-size: 14px; }
  #header { height: 60px; }
  #header::after { top: -60px; height: 60px; }
  #header_logo { left: 20px; }
  #header_logo .logo_image.pc { display: none; }
  #header_logo .logo_image.mobile { display: block; }
  #global_menu { display: none; }
  .global_menu_button { position: absolute; z-index: 50; right: 0; bottom: 0; display: inline-block; width: 60px; height: 60px; line-height: 60px; font-size: 11px; text-align: center; }
  .global_menu_button span:not(.visually-hidden) { position: absolute; left: 20px; display: block; width: 22px; height: 2px; background: #fff; transition: all .3s ease; }
  .global_menu_button span:nth-child(1) { top: 24px; }
  .global_menu_button span:nth-child(2) { top: 30px; }
  .global_menu_button span:nth-child(3) { top: 36px; }
  .global_menu_button:hover span:not(.visually-hidden) { opacity: .5; }
  #drawer_menu { display: block; position: fixed; z-index: 9999; top: 0; right: -400px; width: 400px; height: 100%; overflow: auto; background: #f44336; color: #fff; transition: right .3s cubic-bezier(.19,1,.22,1); backface-visibility: hidden; -webkit-overflow-scrolling: touch; }
  html.open_menu #drawer_menu { right: 0; box-shadow: -5px 0 20px 0 rgba(0,0,0,.4); }
  html.open_menu #container::before { content: ""; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.6); }
  #mobile_menu a { position: relative; display: block; height: 60px; padding: 0 60px 0 20px; line-height: 60px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; font-size: 13px; border-bottom: 1px solid #ee2; }
  #mobile_menu a:hover { color: #fff; background: #ffcdd2; }
  #bread_crumb ul { width: auto; padding: 0 20px; }
  #bread_crumb li { margin: 0 5px 0 0; padding: 0 15px 0 0; }
  #bread_crumb li a { height: 45px; line-height: 46px; }
  #page_header { height: 500px; }
  #page_header_inner { width: 100%; padding: 0 60px; }
  .lp_content_inner { width: auto; max-width: 850px; }
  #main_contents { width: auto; max-width: 850px; }
  .design_content { height: 500px; }
  .design_content .content_area_inner { width: 100%; padding: 0 60px; }
  .design_button a { min-width: 240px; height: 50px; line-height: 50px; font-size: 14px; padding: 0 15px; }
  .banner_content_inner { width: auto; margin: 0 60px; }
  .box_content .content_inner { width: 100%; padding: 0 60px; }
  .box_content .desc { margin-top: 10px; line-height: 2; }
  .cb_free_space.type1 { width: auto; max-width: 850px; }
}
@media screen and (max-width: 1050px) {
  #main_contents_link { height: 52px; }
  #main_contents_link .line { height: 30px; }
  #main_contents_link .line::after { height: 20px; animation-name: line_animation_mobile; }
  .cb_content_inner { width: auto; margin: 0 60px; padding: 100px 0; }
  .image_carousel { margin: 45px 30px 0; }
  .carousel_arrow svg { width: 15px; height: 15px; }
  .carousel_arrow { width: 15px; height: 15px; }
  .carousel_arrow.prev_item { left: -5px; }
  .carousel_arrow.next_item { right: -5px; }
  .lp_content_inner { margin: 0 60px; max-width: inherit; }
  #main_contents { padding: 100px 60px; }
  .box_content { display: block; height: auto; }
  .box_content .content { height: 400px; }
  .box_content .content_inner { width: 300px; padding: 0; }
  .design_content .content_image img { width: 200px; height: 280px; }
}
@media screen and (max-width: 950px) {
  .design_content { display: block; height: auto; }
  .design_content .image_area { width: 100%; height: 400px; }
  .design_content .content_area { width: 100%; height: 400px; }
  .cb_chart_content .chart_area_wrap { display: block; }
  .cb_chart_content .chart_item:first-of-type { margin: 0 0 40px; }
  .cb_chart_content .chart_item:last-of-type { margin: 0; }
  .cb_chart_content .chart_labels { margin: 16px 0 -6px; }
  .cb_chart_content .chart_labels .item { font-size: 11px; margin: 0 4px 6px; }
  .cb_chart_content .chart_labels .item .color { width: 10px; height: 10px; }
  .cb_chart_content .data_table { margin: 20px auto 0; }
  .cb_chart_content .cb_headline { margin: 37px 0 7px; }
  .cb_chart_content .desc_area.type2 { display: block; }
  .cb_chart_content .desc_area.type2 .desc:first-of-type, .cb_chart_content .desc_area.type2 .desc:last-of-type { width: auto; margin: 0 0 15px; }
  .cb_free_space.type1 { padding: 0 50px; }
  .banner_content { height: 500px; }
}
@media screen and (max-width: 750px) {
  .cb_headline, #page_header .headline, .banner_content .catch { font-size: 20px; }
  #header_slider .caption { width: 100%; padding: 0 20px; }
  #header_slider .catch { font-size: 20px; }
  #header_slider .desc { margin: 10px 0 -5px; font-size: 15px; }
  .cb_content_inner { margin: 0 20px; padding: 35px 0 40px; }
  .image_carousel { margin: 15px 20px 0; }
  .carousel_arrow.prev_item { left: -1px; }
  .carousel_arrow.next_item { right: -1px; }
  .cb_image_carousel .desc { margin: 15px auto -5px; line-height: 2; }
  .design_content .image_area { height: 310px; }
  .design_content .content_area { height: 310px; }
  .design_content .content_area_inner { padding: 0 40px; }
  .design_content .catch { margin-bottom: 5px; font-size: 18px; }
  .design_content .desc { line-height: 2; }
  .design_content .content_image img { width: 150px; height: 210px; }
  .cb_chart_content .chart_area_wrap { margin: 5px 0 15px; }
  .cb_chart_content .cb_chart_wrap { width: 270px; height: 270px; }
  .cb_chart_content .chart_headline { font-size: 12px; }
  .cb_chart_content .chart_item:first-of-type { margin: 0 0 20px; }
  .cb_chart_content .desc { line-height: 2; }
  .box_content .headline { font-size: 12px; }
  .box_content .catch { font-size: 18px; }
  .cb_free_space.type1 { padding: 0 20px; }
  .post_content h1 { margin: 0 0 5px; }
  #page_header { height: 356px; }
  #page_header_inner { padding: 0 30px; }
  .lp_content_inner { margin: 0 20px; padding: 40px 0; }
  .lp_free_space .cb_headline { margin-bottom: 5px; }
  #main_contents { padding: 40px 20px; }
  .post_content p { line-height: 2; }
  .post_content td, .post_content th { line-height: 1.8; padding: 14px 20px; }
  .nf-form .form__field { line-height: 2; }
  .banner_content { height: 480px; }
  .banner_content_inner { margin: 0 20px; }
  .banner_content .desc { margin: 5px 0 0; line-height: 2; }
  .banner_content .design_button { margin-top: 12px; }
  .footer_menu { overflow: scroll; overflow-y: hidden; }
  .footer_menu ul { height: 50px; padding: 0 20px; justify-content: inherit; }
  #copyright { height: 50px; line-height: 50px; }
  #return_top a { width: 50px; height: 50px; }
}
@media screen and (max-width: 500px) {
  #drawer_menu { right: -80%; width: 80%; }
}
