/* ================================================================
 * yupiteru.plus — コーポレートサイト共通スタイル
 * デザイントークンは現行サイト（twentytwentyfour カスタム）から抽出
 * ================================================================ */
:root {
    --base: #f9f9f9;
    --base2: #ffffff;
    --contrast: #111111;
    --contrast2: #636363;
    --contrast3: #A4A4A4;
    --accent-blue: #8ed1fc;
    --accent-orange: #d8613c;
    --border: #e5e5e5;
    --font-body: "Zen Kaku Gothic New", sans-serif;
    --font-en: "Overpass", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--base); color: var(--contrast); line-height: 1.8; }
.en { font-family: var(--font-en); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ヘッダー ── */
.site-header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.hwrap { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 34px; }
.gnav ul { display: flex; gap: 28px; list-style: none; font-weight: 600; }
.gnav a:hover { color: var(--contrast2); }
.gnav li.active a { border-bottom: 2px solid var(--contrast); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--contrast); margin: 5px 0; transition: .2s; }

/* ── ヒーロー ── */
.hero { position: relative; overflow: hidden; background: #0b0d12; }
.hero img.hero-bg { width: 100%; height: 480px; object-fit: cover; opacity: .85; }
.hero .txt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; color: #fff; }
.hero .catch { font-family: var(--font-en), var(--font-body); font-size: 56px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .sub { font-size: 14px; font-weight: 100; margin-top: 10px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* ── 重要なお知らせ ── */
.important { max-width: 1200px; margin: 36px auto 0; padding: 0 24px; }
.important .box { background: var(--base2); border: 1px solid var(--contrast2); border-radius: 16px; padding: 24px 28px; display: flex; gap: 32px; align-items: flex-start; }
.important .lbl { font-weight: 700; font-size: 15px; white-space: nowrap; padding-top: 2px; }
.important ul { list-style: none; flex: 1; }
.important li { display: flex; gap: 20px; align-items: baseline; padding: 6px 0 6px 16px; border-left: 3px solid var(--contrast); }
.important li + li { margin-top: 10px; }
.important time { color: var(--contrast3); font-size: 13px; white-space: nowrap; font-family: var(--font-en); }
.important a:hover { text-decoration: underline; }

/* ── セクション共通 ── */
section.blk { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
h2.sec { font-family: var(--font-en); font-size: 40px; font-weight: 800; margin-bottom: 32px; line-height: 1.2; }
h2.sec small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--contrast3); font-weight: 600; letter-spacing: .1em; }
.more { display: inline-block; margin-top: 24px; border: 1px solid var(--contrast); padding: 10px 32px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: .15s; }
.more:hover { background: var(--contrast); color: #fff; }

/* ── Works ── */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wcard { background: var(--base2); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: .2s; display: block; }
.wcard:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.wcard img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.wcard .b { padding: 16px 18px; }
.wcard h3 { font-size: 16px; margin-bottom: 8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; background: var(--base); border: 1px solid var(--border); color: var(--contrast2); padding: 2px 10px; border-radius: 99px; }

/* ── Services ── */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc.svc-2col { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.scard { background: var(--base2); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: .2s; display: block; }
.scard:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.scard img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.scard .b { padding: 14px 16px; }
.scard h3 { font-size: 15px; }
.scard .summary { font-size: 13px; color: var(--contrast2); margin-top: 6px; }

/* ── Information ── */
.news { list-style: none; }
.news li { border-bottom: 1px solid var(--border); padding: 16px 4px; display: flex; gap: 24px; align-items: baseline; }
.news time { color: var(--contrast3); font-size: 13px; white-space: nowrap; font-family: var(--font-en); }
.news a:hover { text-decoration: underline; }

/* ── VOT ── */
.vot { background: #15171c; color: #fff; text-align: center; padding: 72px 24px; }
.vot h2 { font-family: var(--font-en); font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.vot p { color: #aaa; margin-bottom: 24px; }
.vot iframe { max-width: 100%; border: 0; display: block; margin: 0 auto; border-radius: 12px; }

/* ── フッター ── */
.site-footer { background: #111; color: #bbb; padding: 48px 24px 24px; font-size: 13px; }
.fwrap { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.flogo { height: 28px; filter: brightness(0) invert(1); margin-bottom: 10px; }
.fdesc { max-width: 420px; color: #888; margin-top: 6px; }
.fnav { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a:hover { color: #fff; }
.copy { margin-top: 32px; color: #666; text-align: center; font-size: 12px; }

/* ── 下層ページ共通 ── */
.pagehead { position: relative; background: var(--contrast) center/cover no-repeat; padding: 72px 0; color: #fff; }
.pagehead::before { content: ''; position: absolute; inset: 0; background: rgba(10,12,18,.55); }
/* 水平paddingは .in 側に置き、ヘッダー .hwrap（1200px枠の内側24px）とタイトル左端を揃える */
.pagehead .in { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pagehead .ph-t { font-family: var(--font-en); font-size: 42px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pagehead p { color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .1em; }
.narrow { max-width: 800px; margin: 0 auto; padding: 56px 24px; }

/* ── Company ── */
.ctable { width: 100%; border-collapse: collapse; background: var(--base2); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ctable th, .ctable td { padding: 18px 20px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: top; }
.ctable th { width: 180px; background: var(--base); font-weight: 500; color: var(--contrast2); white-space: nowrap; }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: none; }
.ctable a { text-decoration: underline; font-size: 13px; }
.company-greeting p { margin-bottom: 16px; font-size: 15px; }
.company-h { font-size: 22px; margin: 36px 0 16px; }
.company-img { border-radius: 12px; margin-top: 24px; width: 100%; }

/* ── フォーム ── */
.form { background: var(--base2); border-radius: 12px; padding: 32px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.form-lead { margin-bottom: 24px; font-size: 14px; color: var(--contrast2); }
.frow { margin-bottom: 22px; }
.frow > label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.req, .opt { font-size: 11px; border-radius: 3px; padding: 0 6px; margin-left: 8px; vertical-align: 1px; }
.req { color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.opt { color: var(--contrast3); border: 1px solid var(--contrast3); }
.frow input[type=text], .frow input[type=email], .frow textarea, .frow select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 16px; font-family: inherit; background: var(--base); color: var(--contrast);
}
.frow textarea { min-height: 160px; }
.consent { display: flex; align-items: center; gap: 8px; font-size: 14px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.consent a { text-decoration: underline; }
.btnrow { text-align: center; }
.btn { display: inline-block; background: var(--contrast); color: #fff; border: none; padding: 14px 56px; border-radius: 99px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--contrast); border: 1px solid var(--contrast); margin-right: 12px; }
.cfval { background: var(--base); border-radius: 8px; padding: 12px 14px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.form-error { background: rgba(216,97,60,.08); border: 1px solid var(--accent-orange); color: var(--accent-orange); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--contrast3); }

/* ── 記事 ── */
.article { background: var(--base2); border-radius: 12px; padding: 40px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.article time { color: var(--contrast3); font-size: 13px; font-family: var(--font-en); }
.article h1 { font-size: 26px; margin: 8px 0 24px; line-height: 1.5; }
.article .body { font-size: 15px; }
.article .body p { margin-bottom: 16px; }
.article .body h2 { font-size: 18px; margin: 28px 0 12px; }
.article .body h3 { font-size: 16px; margin: 24px 0 10px; }
.article .body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.article .body video { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; display: block; }
.article .body a { text-decoration: underline; }
.article .body ul, .article .body ol { padding-left: 24px; margin-bottom: 16px; }
.article .lead-img { border-radius: 8px; margin-bottom: 24px; width: 100%; }
.backlink { margin-top: 20px; font-size: 14px; color: var(--contrast2); }
.backlink a:hover { text-decoration: underline; }
.article .linkbtn { display: inline-block; margin-top: 16px; border: 1px solid var(--contrast); padding: 8px 28px; border-radius: 99px; font-size: 13px; }
.article .linkbtn:hover { background: var(--contrast); color: #fff; }

/* ── レスポンシブ ── */
@media (max-width: 900px) {
    .works { grid-template-columns: repeat(2, 1fr); }
    .svc { grid-template-columns: repeat(2, 1fr); }
    .svc.svc-2col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .hero img.hero-bg { height: 360px; }
    .hero .catch { font-size: 32px; }
    .hero .sub { font-size: 14px; }
    .works { grid-template-columns: 1fr; }
    h2.sec { font-size: 30px; }
    .pagehead { padding: 48px 0; }
    .pagehead .ph-t { font-size: 30px; }
    .important .box { flex-direction: column; gap: 12px; padding: 18px 20px; }
    .article { padding: 24px 20px; }
    .form { padding: 24px 20px; }
    .ctable th { width: 110px; }
    /* モバイルナビ */
    .nav-toggle { display: block; }
    .gnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--base2); border-bottom: 1px solid var(--border); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
    body.nav-open .gnav { display: block; }
    .gnav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .gnav li a { display: block; padding: 12px 24px; }
    .gnav li.active a { border-bottom: none; color: var(--accent-orange); }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
