/* ups-hp-demo 見るページの CSS（自前・一から書いたもの）
   色・文字の大きさ・余白・並びは今のサイトに近づけてある。テーマの飾りの画像は使わない。 */
:root {
  --main: #DA6925;
  --dark: #231F20;
  --text: #333;
  --line: #ddd;
  --gray: #eee;
  --sans: "Segoe UI", Verdana, "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --serif: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "MS PMincho", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); font-size: 15px; color: var(--text); line-height: 1; background: #fff; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; border: 0; vertical-align: bottom; }
a { color: var(--text); text-decoration: none; transition: background-color .2s, color .2s, opacity .2s; }
a:hover { text-decoration: underline; color: var(--main); }
table { border-collapse: collapse; }
.head_font { font-family: var(--serif); font-weight: 500; }
.head_color { color: var(--main); }
.clearfix::after { content: ""; display: block; clear: both; }

/* ご確認用の帯 */
.demo_band { background: #fff7d6; color: #5c4400; border-bottom: 1px solid #e3cf7a; font-size: 13px; line-height: 1.6; text-align: center; padding: 6px 16px; letter-spacing: .05em; }

/* ヘッダー */
#header_top { background: var(--dark); }
#header_top_inner { height: 80px; display: flex; align-items: center; justify-content: center; }
#header_logo img { display: block; width: 168px; height: auto; }
#header_bottom { background: var(--main); position: relative; z-index: 100; }
#header_bottom_inner { max-width: 1250px; margin: 0 auto; }
.menu_toggle, .menu_button { display: none; }
#global_menu > ul { display: flex; justify-content: center; flex-wrap: wrap; height: 50px; }
#global_menu > ul > li { position: relative; }
#global_menu a { color: #fff; display: block; text-decoration: none; }
#global_menu > ul > li > a { font-size: 14px; height: 50px; line-height: 50px; padding: 0 30px; }
#global_menu > ul > li > a:hover, #global_menu > ul > li:focus-within > a { background: var(--dark); color: #fff; }
#global_menu .submenu { display: none; position: absolute; top: 50px; left: 0; width: 240px; z-index: 200; }
#global_menu li:hover > .submenu, #global_menu li:focus-within > .submenu { display: block; }
#global_menu .submenu a { background: var(--dark); font-size: 14px; padding: 14px 20px 12px; line-height: 1.6; }
#global_menu .submenu a:hover { background: var(--main); color: #fff; }

/* トップの写真の並び */
#hero_pics { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 25vw; max-height: 50vw; overflow: hidden; background: var(--dark); }
#hero_pics .grid-item { overflow: hidden; position: relative; }
#hero_pics .grid-item-width2 { grid-column: span 2; }
#hero_pics .grid-item-height2 { grid-row: span 2; }
#hero_pics .image { width: 100%; height: 100%; background: var(--dark); transition: background-color .2s; }
#hero_pics .image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s, transform .35s; }
#hero_pics .image:hover { background: var(--main); }
#hero_pics .image:hover img { opacity: .5; transform: scale(1.2); }
.hero_pic-1 { grid-column: 1; grid-row: 1; }
.hero_pic-2 { grid-column: 2 / span 2; grid-row: 1; }
.hero_pic-3 { grid-column: 4; grid-row: 1 / span 2; }
.hero_pic-4 { grid-column: 1; grid-row: 2; }
.hero_pic-5 { grid-column: 2; grid-row: 2; }
.hero_pic-6 { grid-column: 3; grid-row: 2; }

/* ページの写真の見出し（採用情報・商品案内） */
#hero_pic { position: relative; overflow: hidden; }
#hero_pic img { width: 100%; height: auto; display: block; }
#hero_pic .caption { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 1150px; padding: 0 30px; text-align: center; color: #fff; line-height: 1.5; z-index: 2; text-shadow: 3px 5px 3px #333; }
#hero_pic .headline { font-size: 24px; }
.page_recruitinfo #hero_pic .headline { font-size: 30px; text-shadow: 5px 5px 2px #333; }

/* パンくず */
#bread_crumb { background: var(--gray); min-height: 50px; }
#bread_crumb ul { max-width: 1150px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; min-height: 50px; }
#bread_crumb li { font-size: 14px; color: #000; line-height: 1.6; display: flex; align-items: center; }
#bread_crumb li + li::before { content: "›"; margin: 0 12px; color: #000; }
#bread_crumb li a { color: #000; }
#bread_crumb li.last { color: var(--main); }

/* 本文と横の欄 */
#main_col { max-width: 1250px; margin: 72px auto 100px; padding: 0 50px; display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; }
#left_col { flex: 0 1 800px; min-width: 0; }
#main_col.no_side #left_col { flex: 1 1 auto; }
#side_col { flex: 0 0 300px; margin-bottom: 50px; }

/* トップの中身 */
#index_content1 { margin: 0 0 70px; }
#index_content1 .catchphrase, #index_content2 .catchphrase { margin: 0 0 30px; text-align: center; }
#index_content1 .catchphrase .headline, #index_content2 .catchphrase .headline { margin: 0 0 15px; font-size: 32px; line-height: 1.5; color: var(--main); }
#index_content1 .catchphrase .desc { font-size: 15px; line-height: 2; margin: 0 0 2em; }
#index_content2 .catchphrase .desc { font-size: 16px; line-height: 2; margin: 0 0 2em; }
.catchphrase .desc p { margin: 0 0 20px; }
.box_list { display: flex; justify-content: space-between; gap: 2px; }
.box_list + .box_list { margin-top: 1px; }
.box_list .box { flex: 1 1 0; position: relative; overflow: hidden; }
.box_list .image { display: block; position: relative; height: 100%; background: var(--dark); overflow: hidden; text-decoration: none; }
.box_list .image img { width: 100%; display: block; transition: opacity .2s, transform .35s; }
.box_list .image:hover { background: var(--main); text-decoration: none; }
.box_list a.image:hover img { opacity: .5; transform: scale(1.2); }
#index_content1 .box_list .caption { position: absolute; inset: 0; padding: 10% 10% 0; color: #fff; line-height: 2; }
#index_content1 .box_list .headline { margin: 0 0 20px; color: #fff; font-size: 28px; text-align: center; }
#index_content1 .box_list .caption p { margin: 0 0 2em; font-size: 14px; }
#index_content2 { margin: 0 0 80px; }
#index_content2 .box3_text { background: var(--dark); transition: background-color .2s; }
#index_content2 .box3_text:hover { background: var(--main); }
#index_content2 .box3_text .image { background: transparent; display: flex; align-items: center; min-height: 100%; }
#index_content2 .box3_text .caption { padding: 0 10%; color: #fff; line-height: 2; }
#index_content2 .box3_text .caption p { margin: 2em 0; }
#index_news_headline, #recent_news > .headline { text-align: center; font-size: 32px; margin: 0 0 30px; color: var(--main); }
.news_list { border: 1px solid var(--line); border-bottom: none; margin: 0 0 30px; }
.news_list li { border-bottom: 1px solid var(--line); position: relative; line-height: 1.6; }
.news_list li:hover { background: #f7f7f7; }
.news_list .date { position: absolute; top: 50%; left: 20px; transform: translateY(-50%); font-size: 12px; font-weight: 700; }
.news_list .title { font-size: 15px; font-weight: 400; }
.news_list .title a { display: block; padding: 20px 20px 20px 120px; text-decoration: none; }
.news_list .title a:hover { color: var(--main); }
.news_empty { padding: 20px; border: 1px solid var(--line); margin: 0 0 30px; }
.more_link a, .pager .back a { background: #bbb; color: #fff; display: block; margin: 0 auto; width: 180px; height: 50px; line-height: 50px; text-align: center; font-size: 14px; text-decoration: none; }
.pager .back a { background: #000; width: 200px; }
.more_link a:hover, .pager .back a:hover { background: var(--main); color: #fff; }

/* ページの本文 */
#article { margin: 0 0 56px; position: relative; }
#page_title { font-size: 40px; line-height: 1.4; margin: 0 0 37px; font-weight: 500; }
.news_date { font-size: 12px; font-weight: 700; margin: 0 0 20px; }
.body_text { font-size: 15px; line-height: 2.4; }
.body_text p { line-height: 2.4; margin: 0 0 2em; }
.body_text h1, .body_text h2, .body_text h3, .body_text h4 { clear: both; line-height: 1.2; font-weight: 400; margin: 0 0 10px; padding: 10px 0 0; }
.body_text h2 { font-size: 140%; }
.body_text h3 { font-size: 130%; padding-top: 20px; }
.body_text h4 { font-size: 120%; }
.body_text .head_a3 { margin: 3em 0 1.5em; padding: 1.1em .2em 1em; font-size: 22px; font-weight: 400; line-height: 1.6; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.body_text .blk_col > .blk:first-child > .head_a3:first-child { margin-top: 0; }
.body_text .head_a4 { margin: 2.5em 2px 1.2em; padding: .3em 0 .3em .8em; font-size: 18px; font-weight: 400; line-height: 1.6; border-left: 2px solid #222; }
.body_text .blk_headline { font-size: 20px; line-height: 1.5; margin: 0 0 20px; padding: 0; }
.body_text .font1 { font-family: var(--sans); }
.body_text .font3 { font-family: var(--serif); }
.body_text table { width: 100%; margin: 0 0 24px; }
.body_text th, .body_text td { border: 1px solid #bbb; padding: 10px 15px; line-height: 2.2; text-align: left; vertical-align: top; }
.body_text th { background: var(--line); font-weight: 400; width: 30%; }
.body_text a { color: var(--main); }
.body_text img { display: block; max-width: 100%; height: auto; }
.blk_row { margin: 0 0 40px; }
.blk_row_in { display: flex; gap: 30px; }
.blk_col { flex: 1 1 0; min-width: 0; }
.blk { margin: 0 0 30px; }
.blk:last-child { margin-bottom: 0; }
.align_center, .center { text-align: center; }
.btn { display: inline-block; min-width: 200px; max-width: 90%; background-color: #535353; color: #fff !important; padding: .6em 1.3em .5em; line-height: 1.6; text-align: center; text-decoration: none; }
.btn:hover { background-color: #7d7d7d; text-decoration: none; }
.btn_red { background: #D32F2F; }
.btn_red:hover { background: #B71C1C; }
.btn_yellow { background: #f1c40f; }
.btn_yellow:hover { background: #f9d441; }
.btn_blue { background: #2980b9; }
.btn_blue:hover { background: #3a91c9; }
.btn_orange { background: #EA5514; }
.btn_orange:hover { background: #cf4a11; }
.map_link { margin: 0 0 1em; }
.back_link { margin-top: 2em; text-align: center; }

/* カードの並び（採用情報・商品） */
.item_card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0 0 2em; }
.item_card .item_row, .product_item { border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .3s; }
.item_card .item_row:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.item_card img, .product_item img { width: 100%; height: auto; display: block; }
.item_card .title, .product_item .title { display: block; padding: 12px; font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; }
.product_list { max-width: 600px; margin: 0 auto 2em; display: grid; gap: 20px; }
.product_item .title { padding: 15px 15px 8px; }
.product_item .price { display: block; padding: 0 15px 15px; font-size: 15px; font-weight: 700; color: var(--main); }
.product_item .image { display: block; }

/* ギャラリー */
.gallery_grid { columns: 4 220px; column-gap: 10px; }
.gallery_item { break-inside: avoid; margin: 0 0 10px; overflow: hidden; }
.gallery_item img { width: 100%; height: auto; display: block; transition: transform .35s; }
.gallery_item:hover img { transform: scale(1.05); }

/* 横の欄 */
.side_box { margin: 0 0 40px; }
.side_title { color: var(--main); font-size: 18px; font-weight: 500; margin: 0 0 20px; letter-spacing: .05em; text-transform: uppercase; font-family: "Oswald", "Yu Gothic", sans-serif; }
.side_title_contents { margin: 0 0 12px; }
.side_headline { font-size: 20px; font-weight: 400; margin: 0 0 20px; color: var(--main); }
.sns_list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sns_list a { display: block; position: relative; overflow: hidden; background: var(--main); }
.sns_list img { display: block; width: 100%; height: auto; transition: transform .3s, opacity .3s; }
.sns_list a:hover img { transform: scale(1.2); opacity: .4; }
.banner_list1 li { margin: 0 0 7px; height: 100px; overflow: hidden; position: relative; background: var(--dark); }
.banner_list1 li:last-child { margin-bottom: 0; }
.banner_list2 { padding: 15px; background: var(--dark); }
.banner_list2 li { margin: 0 0 9px; height: 150px; overflow: hidden; position: relative; }
.banner_list2 li:last-child { margin-bottom: 0; }
.banner_list1 .image, .banner_list2 .image { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; position: relative; background: var(--dark); }
.image_offset { position: absolute; inset: 0; }
.image_offset img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s, transform .35s; }
.banner_list1 .caption, .banner_list2 .caption { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 100%; padding: 0 20px; font-size: 16px; line-height: 1.4; z-index: 2; color: #fff; }
.banner_list2 .caption2 { text-align: right; }
.banner_list1 .image:hover, .banner_list2 .image:hover { background: var(--main); text-decoration: none; color: #fff; }
.banner_list1 .image:hover img, .banner_list2 .image:hover img { opacity: .5; transform: scale(1.2); }

/* フッター */
#return_top a { display: block; height: 50px; background: rgba(35, 31, 32, .8); position: relative; text-decoration: none; }
#return_top a:hover { background: rgba(35, 31, 32, .9); }
#return_top a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#return_top a::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -2px 0 0 -5px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); }
#footer_top { background: var(--dark); color: #fff; }
#footer_top_inner { max-width: 1150px; margin: 0 auto; padding: 60px 20px 50px; text-align: center; }
#footer_logo { margin: 0 0 20px; }
#footer_logo img { width: 168px; height: auto; display: inline-block; }
#footer_address { margin: 20px 0 9px; font-size: 14px; line-height: 1.8; }
#footer_address span { display: inline-block; }
.mr10 { margin-right: 10px; }
.ml10 { margin-left: 10px; }
#footer_top a { color: #fff; }
#footer_bottom { background: var(--main); }
#copyright { padding: 16px 10px; font-size: 12px; line-height: 1.5; color: #fff; text-align: center; }
#copyright a { color: #fff; }

/* フォーム（文字だけ・添付なし） */
.ups_form { margin: 1.5em 0 2.5em; font-size: 14px; }
.form_table { width: 100%; margin: 0 0 20px; }
.form_table th, .form_table td { border: 1px solid var(--line); padding: 12px 15px; line-height: 1.6; vertical-align: top; text-align: left; }
.form_table th { background: #f5f5f5; width: 32%; font-weight: 400; }
.form_table tr[hidden] { display: none; }
.ups_form input[type=text], .ups_form input[type=email], .ups_form input[type=tel], .ups_form input[type=date], .ups_form select, .ups_form textarea { width: 100%; max-width: 650px; padding: 8px 15px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 16px; color: var(--text); background: #fff; line-height: 1.4; }
.ups_form textarea { min-height: 200px; resize: vertical; }
.ups_form input:focus, .ups_form select:focus, .ups_form textarea:focus { border-color: #999; outline: 2px solid rgba(218, 105, 37, .35); outline-offset: 0; }
.req { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; line-height: 1.7; color: #fff; background: var(--main); border-radius: 2px; vertical-align: middle; }
.field_error { color: #b94a48; font-size: 13px; margin: 6px 0 0; line-height: 1.5; }
.is_invalid input, .is_invalid select, .is_invalid textarea { border-color: #b94a48; background: #fdf3f3; }
.form_section { font-size: 16px; font-weight: 700; margin: 24px 0 10px; padding-left: 10px; border-left: 4px solid var(--main); line-height: 1.5; }
.form_note { font-size: 13px; margin: -10px 0 10px; color: #666; line-height: 1.6; }
.rows_block { margin: 0 0 20px; }
.rows_table { width: 100%; margin: 0 0 8px; table-layout: fixed; }
.rows_table th, .rows_table td { border: 1px solid var(--line); padding: 6px; text-align: left; font-weight: 400; }
.rows_table th { background: #f5f5f5; font-size: 13px; }
.rows_table .c_y { width: 90px; }
.rows_table .c_m { width: 64px; }
.rows_table input { max-width: none !important; }
.add_row { font: inherit; font-size: 13px; padding: 6px 14px; border: 1px solid #bbb; background: #fff; border-radius: 3px; cursor: pointer; }
.add_row:hover { background: #f5f5f5; }
.consent { margin: 20px 0; text-align: center; }
.consent p { font-size: 12px; line-height: 1.8; margin: 0 0 10px; text-align: left; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.submit_area { text-align: center; margin: 30px 0 0; }
.submit_button { display: inline-block; width: 300px; max-width: 100%; height: 50px; font: inherit; font-size: 15px; color: #fff; background: #333; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; box-shadow: 0 0 1px rgba(0, 0, 0, .2); }
.submit_button:hover { background: #666; }
.submit_button[disabled] { opacity: .6; cursor: wait; }
.form_status { margin: 16px 0 0; padding: 10px 14px; border-radius: 4px; line-height: 1.6; color: #b94a48; background: #f2dede; border: 1px solid #eed3d7; }
.hp_field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.noscript { color: #b94a48; }

/* 幅が狭い時 */
@media (max-width: 1100px) {
  #main_col { padding: 0 24px; gap: 30px; }
  #side_col { flex-basis: 260px; }
}
@media (max-width: 900px) {
  #main_col { flex-direction: column; margin: 40px auto 60px; }
  #left_col, #side_col { flex: 1 1 auto; width: 100%; }
  #side_col { max-width: 600px; margin: 0 auto 30px; }
  .box_list { flex-direction: column; }
}
@media (max-width: 770px) {
  body { font-size: 14px; }
  #header_top_inner { height: 60px; }
  #header_logo img { width: 140px; }
  #header_bottom_inner { position: relative; }
  .menu_button { display: block; height: 44px; line-height: 44px; color: #fff; font-size: 13px; text-align: right; padding: 0 16px; cursor: pointer; letter-spacing: .1em; }
  .menu_button span::before { content: "≡ "; font-size: 18px; vertical-align: -1px; }
  #global_menu { display: none; }
  .menu_toggle:checked ~ #global_menu { display: block; }
  #global_menu > ul { display: block; height: auto; }
  #global_menu > ul > li > a { height: auto; line-height: 1.6; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .25); }
  #global_menu .submenu { display: block; position: static; width: auto; }
  #global_menu .submenu a { padding: 10px 16px 10px 32px; }
  #hero_pics { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 50vw; max-height: none; }
  .hero_pic-1, .hero_pic-2, .hero_pic-3, .hero_pic-4, .hero_pic-5, .hero_pic-6 { grid-column: auto; grid-row: auto; }
  #hero_pics .grid-item-width2 { grid-column: span 2; }
  #hero_pics .grid-item-height2 { grid-row: span 2; }
  #main_col { padding: 0 16px; }
  #index_content1 .catchphrase .headline, #index_content2 .catchphrase .headline, #index_news_headline, #recent_news > .headline { font-size: 22px; }
  #index_content1 .box_list .headline { font-size: 22px; margin-bottom: 10px; }
  #index_content1 .box_list .caption { padding: 6% 6% 0; line-height: 1.7; }
  #index_content1 .box_list .caption p { font-size: 12px; }
  #page_title { font-size: 24px; margin-bottom: 24px; }
  .body_text p { line-height: 2; }
  .body_text .head_a3 { font-size: 18px; }
  .blk_row_in { flex-direction: column; gap: 0; }
  .blk_col + .blk_col { margin-top: 20px; }
  .item_card { grid-template-columns: 1fr; }
  .news_list .date { position: static; transform: none; display: block; padding: 14px 16px 0; }
  .news_list .title a { padding: 4px 16px 14px; }
  #hero_pic .headline, .page_recruitinfo #hero_pic .headline { font-size: 18px; }
  .form_table th, .form_table td { display: block; width: 100%; border-bottom: none; }
  .form_table tr { display: block; border-bottom: 1px solid var(--line); }
  .form_table tr[hidden] { display: none; }
  .gallery_grid { columns: 2 140px; }
  #bread_crumb li { font-size: 12px; }
}
