/*
Theme Name:   GENESIS Child (DASH)
Theme URI:    https://www.dashinc.co.jp/
Description:  有限会社ダッシュ コーポレートサイト用 GENESIS（TCD103）子テーマ。トップページのリニューアルデザインとサイト共通の微調整を含む。
Author:       有限会社ダッシュ
Template:     genesis_tcd103
Version:      1.0.0
Text Domain:  dash-child
*/

/* Web フォント（Inter / Noto Sans JP）は functions.php で全ページに読み込んでいます */

/* ----------------------------------------------------------------------
 サイト共通の微調整（全ページに効く）
 トップページ専用のデザインは assets/css/front.css にあります。
---------------------------------------------------------------------- */

/* ヘッダー：メニューの「お問い合わせ」に CSS クラス menu-cta を付けるとボタン表示になる
   （外観 > メニュー > 表示オプションで「CSS クラス」を有効にして設定） */
#global_menu > ul > li.menu-cta > a {
  background: #D32F2F;
  color: #FFFFFF !important;
  border-radius: 999px;
  padding: 0 22px !important;
  height: 40px !important;
  line-height: 40px !important;
  margin-left: 8px;
  font-weight: 700;
  transition: background-color .3s;
}
#global_menu > ul > li.menu-cta > a:hover { background: #141414; }

/* フッター：ロゴ（黒文字）が読めるよう明るいグレー基調に */
#footer { background: #F5F5F5; color: #3A3A3A; }
#footer_address, #footer_address p { color: #3A3A3A; }
#copyright { background: #141414; color: #CFCFCF; }

/* ----------------------------------------------------------------------
 会社概要ページ（固定ページ ID 55）
 本文は「固定ページ > 会社概要」のカスタムHTMLブロック（.dco）。
---------------------------------------------------------------------- */
body.page-id-55 #container { overflow-x: clip; }
body.page-id-55 #bread_crumb,
body.page-id-55 #page_header {
  background-color: #FAFAF8;
  background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px);
  background-size: 80px 80px;
}
body.page-id-55 #page_header { position: relative; overflow: hidden; }
body.page-id-55 #page_header .title_area::before {
  content: "COMPANY"; display: block; margin-bottom: 8px;
  font-family: Inter, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; color: #B71C1C;
}
body.page-id-55 #page_header .large_headline { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; }
body.page-id-55 #page_header::before,
body.page-id-55 #page_header::after { content: ""; position: absolute; top: -10%; transform: skewX(-24deg); pointer-events: none; }
body.page-id-55 #page_header::before { right: 6%; width: 70px; height: 80%; background: #D32F2F; opacity: .9; }
body.page-id-55 #page_header::after { right: calc(6% + 100px); width: 14px; height: 65%; background: #141414; }
body.page-id-55 #page_contents { padding-top: 0 !important; }

.dco { --dco-red: #D32F2F; --dco-red-text: #B71C1C; --dco-ink: #141414; --dco-sub: #3A3A3A; --dco-ease: cubic-bezier(.19,1,.22,1);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', Meiryo, sans-serif; color: var(--dco-ink); line-height: 1.8; }
.dco *, .dco *::before, .dco *::after { box-sizing: border-box; }
.post_content .dco p, .post_content .dco h2, .post_content .dco dl, .post_content .dco dd { margin: 0; padding: 0; }
.post_content .dco h2 { border: 0; background: none; text-align: left; font-family: inherit; }
.post_content .dco a { text-decoration: none; }
.dco-full { width: 100vw; margin-left: calc(50% - 50vw); }
.dco-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.post_content .dco .dco-eyebrow { font-family: Inter, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; color: var(--dco-red-text); line-height: 1.6; }
.post_content .dco .dco-sub { margin-top: 4px; font-weight: 700; font-size: 16px; }

/* ページ内リンク */
.dco-anchors { background-color: #FAFAF8; background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px); background-size: 80px 80px; padding: 0 0 72px; }
.dco-anchors .dco-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.post_content .dco-anchors a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--dco-ink); background: #FFFFFF;
  color: var(--dco-ink); font-family: Inter, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; transition: background-color .3s, color .3s;
}
.post_content .dco-anchors a:hover { background: var(--dco-ink); color: #FFFFFF; }

/* MESSAGE */
.dco-message { background: #FFFFFF; }
.dco-message__inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; }
.dco-message__visual { flex: 1 1 380px; min-width: 0; position: relative; margin-right: 24px; }
.dco-message__frame { position: absolute; left: 24px; top: 24px; right: -24px; bottom: -24px; border: 2px solid var(--dco-red); border-radius: 8px; }
.dco-message__box {
  position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background-color: #FAFAF8; background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px); background-size: 48px 48px;
}
.dco-ring { position: absolute; width: 78%; aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid #E2DED7; }
.dco-orbit { position: absolute; inset: -1px; border-radius: 50%; animation: dco-spin 18s linear infinite; }
.dco-orbit span { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--dco-red); }
.post_content .dco img.dco-mark { position: relative; height: 62%; width: auto; max-width: none; display: block; animation: dco-float 6s ease-in-out infinite; }
.post_content .dco .dco-since { position: absolute; left: 24px; bottom: 16px; font-family: Inter, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .3em; color: #8A8A8A; }
.dco-message__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.post_content .dco .dco-catch { font-size: clamp(32px, 3.6vw, 48px); font-weight: 900; line-height: 1.4; color: var(--dco-ink); }
.dco-catch span { background: linear-gradient(transparent 70%, rgba(211,47,47,.25) 70%); }
.dco-text { display: flex; flex-direction: column; gap: 20px; }
.post_content .dco .dco-text p { color: var(--dco-sub); font-size: 16px; line-height: 2; }
.dco-sign { display: flex; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px solid #E5E5E5; }
.dco-sign__bar { width: 40px; height: 3px; background: var(--dco-red); flex: none; }
.dco-sign__text { display: flex; flex-direction: column; line-height: 1.5; }
.dco-sign__role { font-size: 13px; color: #5A5A5A; }
.dco-sign__name { font-size: 26px; font-weight: 900; letter-spacing: .15em; }

/* PROFILE */
.dco-profile { background: #F5F5F5; }
.dco-profile__inner { padding-top: 120px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.dco-profile__head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post_content .dco .dco-h2 { font-size: 40px; font-weight: 900; line-height: 1.4; color: var(--dco-ink); }
.post_content .dco .dco-table { flex: 999 1 640px; min-width: 0; background: #FFFFFF; border-radius: 8px; padding: 8px 40px; }
.dco-table > div { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid #ECECEC; transition: background-color .3s; }
.dco-table > div:last-child { border-bottom: 0; }
.post_content .dco .dco-table dt { flex: 0 0 140px; font-weight: 700; font-size: 15px; color: var(--dco-ink); }
.post_content .dco .dco-table dd { flex: 1 1 320px; font-size: 15px; color: var(--dco-sub); }
.post_content .dco .dco-table dd a { color: var(--dco-sub); }
.dco-stats { padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dco-stat { background: var(--dco-ink); color: #FFFFFF; border-radius: 8px; padding: 36px 32px; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--dco-red); }
.dco-stat__label { font-family: Inter, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .2em; color: #FF6B6B; }
.dco-stat__num { font-family: Inter, sans-serif; font-weight: 800; font-size: 56px; line-height: 1; }
.dco-stat__num--ja { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 48px; line-height: 1.15; }
.dco-stat__text { font-size: 15px; color: #CFCFCF; line-height: 1.8; }

/* CTA */
.dco-cta { position: relative; overflow: hidden; background: var(--dco-red); color: #FFFFFF; }
.dco-cta__bar { position: absolute; right: 8%; top: -20%; width: 80px; height: 140%; background: rgba(0,0,0,.12); transform: skewX(-24deg); }
.dco-cta__inner { position: relative; padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.post_content .dco-cta h2 { font-size: 32px; font-weight: 900; line-height: 1.4; color: #FFFFFF; }
.post_content .dco .dco-cta__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 40px; background: #FFFFFF; color: var(--dco-ink); font-weight: 900; font-size: 17px; border-radius: 4px; transition: background-color .3s, color .3s; }
.post_content .dco .dco-cta__btn:hover { background: var(--dco-ink); color: #FFFFFF; }

@media (max-width: 767px) {
  .dco-message__inner, .dco-profile__inner { padding-top: 72px; }
  .dco-message__inner { padding-bottom: 72px; }
  .dco-stats { padding-bottom: 72px; }
  .post_content .dco .dco-h2 { font-size: 30px; }
  .post_content .dco .dco-table { padding: 8px 20px; }
  .post_content .dco-cta h2 { font-size: 24px; }
  body.page-id-55 #page_header::before, body.page-id-55 #page_header::after { display: none; }
}
@supports (animation-timeline: view()) {
  .dco-reveal { animation: dco-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}
@keyframes dco-spin { to { rotate: 360deg; } }
@keyframes dco-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes dco-reveal { from { opacity: 0; translate: 0 56px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* 動きを減らす設定の人にはアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .dash-front *, .dash-front *::before, .dash-front *::after,
  .dco *, .dco *::before, .dco *::after { animation: none !important; transition: none !important; }
}
