/*
Theme Name: Kato-tech China
Template: twentytwentyfive
Description: カトーテック中国（広東省の生産管理代行）のテーマ。Twenty Twenty-Five の子テーマ。
Version: 1.0.1
Text Domain: katotech-cn
*/

/* ---- 共通 ---- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
.kt-eyebrow { color: var(--wp--preset--color--accent); font-weight: 700; letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; margin-bottom: .25rem !important; }
.kt-lead { font-size: 1.075rem; color: var(--wp--preset--color--muted); }
.kt-center { text-align: center; }
.kt-section-title { position: relative; padding-bottom: .9rem; }
.kt-section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 48px; height: 3px; margin-left: -24px; background: var(--wp--preset--color--accent); border-radius: 2px; }
.kt-section-title.has-text-align-left::after { left: 0; margin-left: 0; }

/* ---- ヘッダー ---- */
.kt-header { border-bottom: 1px solid var(--wp--preset--color--line); position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.admin-bar .kt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kt-header { top: 46px; } }
.kt-brand a { text-decoration: none; color: var(--wp--preset--color--primary); }
.kt-brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; line-height: 1.2; margin: 0 !important; }
.kt-brand-tag { font-size: .72rem; color: var(--wp--preset--color--muted); line-height: 1.3; margin: 0 !important; }
.kt-header .wp-block-navigation { font-size: .92rem; font-weight: 600; }
.kt-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.kt-header .kt-nav-cta a { background: var(--wp--preset--color--accent); color: #fff !important; border-radius: 999px; padding: .45rem 1.1rem !important; }
.kt-header .kt-nav-cta a:hover { background: #a93520; }

/* ---- ファーストビュー ---- */
.kt-hero { position: relative; }
.kt-hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(10,30,52,.92) 0%, rgba(10,30,52,.78) 45%, rgba(10,30,52,.25) 100%) !important; opacity: 1 !important; }
.kt-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem); line-height: 1.35; }
.kt-hero p { color: rgba(255,255,255,.9); }
.kt-hero .kt-eyebrow { color: #f3b8a9; }
.kt-hero-points { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0; }
.kt-hero-points li { border: 1px solid rgba(255,255,255,.45); color: #fff; border-radius: 999px; padding: .2rem .9rem; font-size: .85rem; }
.kt-btn-ghost .wp-block-button__link { background: transparent !important; border: 2px solid #fff; color: #fff !important; }
.kt-btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12) !important; }
.kt-btn-outline .wp-block-button__link { background: transparent !important; border: 2px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary) !important; }
.kt-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary-2) !important; }

/* ---- カード ---- */
.kt-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1.6rem 1.4rem !important; height: 100%; box-shadow: 0 1px 2px rgba(18,48,79,.04); }
.kt-card h3 { margin-top: .4rem; }
.kt-card p { font-size: .95rem; }
.kt-card .wp-block-image { margin-bottom: .2rem; }
.kt-card .wp-block-image img { width: 64px; }
.kt-cards > .wp-block-column { display: flex; }
.kt-cards > .wp-block-column > * { flex: 1; }
a.kt-card-link, .kt-card a { text-decoration: none; }

/* ---- お悩み ---- */
.kt-worries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.kt-worries li { background: #fff; border-radius: 10px; padding: .9rem 1rem .9rem 2.6rem; position: relative; border: 1px solid var(--wp--preset--color--line); }
.kt-worries li::before { content: "?"; position: absolute; left: .9rem; top: .9rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--wp--preset--color--muted); color: #fff; font-size: .75rem; line-height: 1.2rem; text-align: center; font-weight: 700; }

/* ---- 番号付きの理由 ---- */
.kt-reason-no { font-size: 2.4rem !important; font-weight: 800; color: var(--wp--preset--color--accent); line-height: 1; margin: 0 !important; font-family: Georgia, "Times New Roman", serif; }

/* ---- 流れ（STEP） ---- */
.kt-steps { counter-reset: kt-step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (min-width: 1080px) { .kt-steps { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px) { .kt-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .kt-steps { grid-template-columns: 1fr; } }
.kt-steps li { counter-increment: kt-step; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1.1rem 1rem 1rem; position: relative; }
.kt-steps li::before { content: "STEP " counter(kt-step); display: block; font-size: .72rem; letter-spacing: .1em; font-weight: 800; color: var(--wp--preset--color--accent); margin-bottom: .25rem; }
.kt-steps li strong { display: block; color: var(--wp--preset--color--primary); font-size: 1.02rem; margin-bottom: .3rem; }
.kt-steps li span { display: block; font-size: .88rem; color: var(--wp--preset--color--muted); line-height: 1.7; }
.kt-flow-detail { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 1.2rem !important; }

/* ---- 表 ---- */
.kt-table table { border-collapse: collapse; width: 100%; }
.kt-table th, .kt-table td { border: 1px solid var(--wp--preset--color--line); padding: .8rem 1rem; vertical-align: top; text-align: left; }
.kt-table th { background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--primary); width: 28%; white-space: nowrap; }
@media (max-width: 600px) { .kt-table th, .kt-table td { display: block; width: auto; border-bottom: 0; } .kt-table tr { border-bottom: 1px solid var(--wp--preset--color--line); display: block; } }

/* ---- FAQ ---- */
.kt-faq details { border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 0 1.1rem; background: #fff; margin-bottom: .6rem; }
.kt-faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--wp--preset--color--primary); list-style: none; position: relative; padding-left: 2rem; }
.kt-faq summary::-webkit-details-marker { display: none; }
.kt-faq summary::before { content: "Q"; position: absolute; left: 0; color: var(--wp--preset--color--accent); font-weight: 800; }
.kt-faq details[open] summary { border-bottom: 1px dashed var(--wp--preset--color--line); }
.kt-faq details > :not(summary) { padding: .8rem 0 1rem 2rem; margin: 0; }

/* ---- 問い合わせの帯 ---- */
.kt-cta { border-radius: 18px; }
.kt-cta h2, .kt-cta p { color: #fff; }

/* ---- ページの見出し帯 ---- */
.kt-page-head { background: var(--wp--preset--color--primary); }
.kt-page-head h1 { color: #fff; margin: 0; }
.kt-page-head p { color: rgba(255,255,255,.8); margin: .3rem 0 0; font-size: .9rem; }

/* ---- 問い合わせフォーム（Contact Form 7） ---- */
.wpcf7 label { display: block; font-weight: 700; color: var(--wp--preset--color--primary); font-size: .95rem; }
.wpcf7 .kt-req { background: var(--wp--preset--color--accent); color: #fff; font-size: .7rem; border-radius: 4px; padding: .05rem .4rem; margin-left: .4rem; vertical-align: middle; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea { width: 100%; box-sizing: border-box; border: 1px solid #c8cfd8; border-radius: 8px; padding: .7rem .8rem; font: inherit; font-weight: 400; margin-top: .35rem; background: #fff; }
.wpcf7 textarea { min-height: 10rem; }
.wpcf7 p { margin: 0 0 1.1rem; }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--accent); color: #fff; border: 0; border-radius: 999px; padding: .9rem 2.6rem; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #a93520; }
.wpcf7 .wpcf7-list-item { margin: .3rem 1rem 0 0; font-weight: 400; }

/* ---- フッター ---- */
.kt-footer { background: #0d243c; color: rgba(255,255,255,.82); font-size: .9rem; }
.kt-footer h2, .kt-footer h3, .kt-footer strong { color: #fff; }
.kt-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.kt-footer a:hover { color: #fff; text-decoration: underline; }
.kt-footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.kt-footer-links li { margin-bottom: .35rem; }
.kt-copy { border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; color: rgba(255,255,255,.6); }
