/* =========================================
   WiT Corporate — レイアウトCSS
   トップページ各セクション・ヘッダー・フッターの見た目
   （色やサイズは style.css の :root 変数を参照）
   ========================================= */

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .logo a { font-family: var(--font-en); font-weight: 600; font-size: 22px; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 13px; letter-spacing: 0.04em; transition: opacity .2s; }
.nav-links a:hover { opacity: .55; }
.nav-cta { font-size: 13px; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: var(--white); }
.nav-cta:hover { opacity: .85; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ===== Hero ===== */
.hero { padding-top: 76px; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 60px 60px 60px 0; }
.hero-copy__inner { max-width: 520px; margin-left: auto; padding-left: 28px; }
.hero-en { font-family: var(--font-en); font-weight: 300; letter-spacing: 0.22em; font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }
.hero h1 { line-height: 1.5; margin-bottom: 26px; }
.hero p { color: var(--ink-soft); margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; background: var(--mist); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide-dots { position: absolute; bottom: 28px; left: 28px; z-index: 2; display: flex; gap: 8px; }
.hero-slide-dots span { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.5); }
.hero-slide-dots span.on { background: var(--white); }
.hero-tag { position: absolute; top: 28px; right: 28px; z-index: 2; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--white); background: rgba(17,17,17,.4); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center; }
.about-num { font-family: var(--font-en); font-weight: 300; font-size: 13px; letter-spacing: 0.2em; color: var(--ink-soft); }
.about-title { font-size: 28px; line-height: 1.6; margin: 18px 0 0; }
.about-body p { color: var(--ink-soft); margin-bottom: 20px; }
.about-body .btn { margin-top: 10px; }

/* ===== Service ===== */
.service .sec-lead { color: rgba(255,255,255,.7); }
.service .eyebrow { color: rgba(255,255,255,.6); }
.service-head { margin-bottom: 56px; }
.svc-list { border-top: 1px solid rgba(255,255,255,.18); }
.svc-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 30px; align-items: center; padding: 34px 4px; border-bottom: 1px solid rgba(255,255,255,.18); transition: padding-left .3s ease, background .3s ease; }
.svc-item:hover { padding-left: 20px; background: rgba(255,255,255,.04); }
.svc-no { font-family: var(--font-en); font-weight: 300; font-size: 22px; color: rgba(255,255,255,.55); }
.svc-main h3 { font-size: 21px; margin-bottom: 6px; }
.svc-main p { font-size: 13px; color: rgba(255,255,255,.6); }
.svc-arrow { font-family: var(--font-en); color: var(--white); font-size: 20px; transition: transform .3s ease; }
.svc-item:hover .svc-arrow { transform: translateX(8px); }

/* ===== Strength ===== */
.strength-head { text-align: center; margin-bottom: 56px; }
.strength-head .sec-lead { margin: 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 38px 26px; text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.stat-icon { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-weight: 600; color: var(--white); font-size: 19px; }
.stat-card h3 { font-size: 17px; margin-bottom: 8px; }
.stat-card p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; }

/* ===== Works ===== */
.works-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.work-thumb { aspect-ratio: 3/2; background: var(--mist-deep); position: relative; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-cat { position: absolute; top: 14px; left: 14px; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.12em; background: rgba(17,17,17,.6); color: var(--white); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 1; }
.work-body { padding: 20px 22px 24px; }
.work-body h3 { font-size: 16px; margin-bottom: 6px; }
.work-body p { font-size: 12.5px; color: var(--ink-soft); }
.trusted { margin-top: 64px; text-align: center; }
.trusted .eyebrow { display: block; margin-bottom: 24px; }
.trusted-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 40px; font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; color: var(--ink-soft); }
.trusted-logos span { opacity: .55; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: 0.5fr 1.5fr; gap: 60px; }
.news-list a { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.news-list a:first-child { border-top: 1px solid var(--line); }
.news-list a:hover { opacity: .55; }
.news-date { font-family: var(--font-en); font-size: 12.5px; color: var(--ink-soft); }
.news-cat { font-size: 11px; padding: 3px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.news-ttl { font-size: 14px; }

/* ===== Contact CTA ===== */
.contact-cta { padding: 100px 0; margin: 0 28px 28px; border-radius: 28px; background: var(--ink); color: var(--white); text-align: center; }
.contact-cta .eyebrow { color: rgba(255,255,255,.7); }
.contact-cta h2 { font-size: 34px; margin: 14px 0 16px; }
.contact-cta p { color: rgba(255,255,255,.82); margin-bottom: 36px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.foot-logo { font-family: var(--font-en); font-weight: 600; font-size: 24px; color: var(--white); margin-bottom: 16px; letter-spacing: 0.05em; }
.foot-desc { font-size: 13px; line-height: 1.9; max-width: 320px; }
.foot-col h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.15em; color: var(--white); margin-bottom: 18px; font-weight: 500; }
.foot-col a { display: block; font-size: 13px; padding: 6px 0; transition: opacity .2s; }
.foot-col a:hover { opacity: .55; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; font-family: var(--font-en); letter-spacing: 0.05em; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 50px 0; order: 2; }
  .hero-copy__inner { margin: 0 auto; padding: 0 28px; }
  .hero-visual { order: 1; min-height: 340px; }
  .about-grid, .news-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-grid, .works-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .stat-grid, .works-grid, .foot-grid { grid-template-columns: 1fr; }
  .svc-item { grid-template-columns: 50px 1fr auto; gap: 14px; }
  .contact-cta h2 { font-size: 26px; }
}

/* モバイルメニュー展開時 */
@media (max-width: 900px) {
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px 28px 24px;
  }
  .nav-links.open a { padding: 10px 0; }
}

/* ===== 下層ページ（一覧・記事・固定ページ）===== */
.page-head { margin-bottom: 40px; }
.post-list { margin-bottom: 40px; }
.post-row { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row:hover { opacity: .55; }
.pagination { display: flex; justify-content: center; margin-top: 20px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; margin: 0 4px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-en); font-size: 13px; transition: background .2s, color .2s; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination a.page-numbers:hover { background: var(--mist); }
.single-head { margin-bottom: 30px; }
.single-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.single-title { font-size: 30px; line-height: 1.5; }
.single-thumb { margin-bottom: 36px; border-radius: 14px; overflow: hidden; }
.single-body { line-height: 2; }
.single-body p { margin-bottom: 1.4em; }
.single-body h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.single-body h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.single-body img { border-radius: 10px; margin: 1em 0; }
.single-foot { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }

/* ===== 会社概要ページ ===== */
.greet-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 50px; align-items: start; }
.greet-photo img { width: 100%; border-radius: 14px; }
.greet-body { line-height: 2; color: var(--ink-soft); }
.greet-body p { margin-bottom: 1.2em; }
.greet-name { font-size: 16px; color: var(--ink); font-weight: var(--weight-heading); margin-top: 1.4em; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvv-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px 28px; text-align: center; }
.mvv-label { font-family: var(--font-en); font-size: 18px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 14px; }
.mvv-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.company-table th { width: 30%; font-weight: var(--weight-heading); white-space: nowrap; }
.company-table td { color: var(--ink-soft); }
.access-map { border-radius: 14px; overflow: hidden; }
.access-map iframe { width: 100%; height: 420px; border: 0; display: block; }

@media (max-width: 768px) {
  .greet-grid { grid-template-columns: 1fr; gap: 24px; }
  .greet-photo { max-width: 280px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .company-table th { width: 38%; }
  .access-map iframe { height: 300px; }
}

/* ===== 事業内容ページ ===== */
.service-detail { padding: 80px 0; }
.sv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sv-row--reverse .sv-visual { order: 2; }
.sv-visual img { width: 100%; border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; }
.sv-visual__ph { width: 100%; aspect-ratio: 4/3; border-radius: 16px; background: var(--mist-deep); display: flex; align-items: center; justify-content: center; }
.sv-visual__ph span { font-family: var(--font-en); font-weight: 300; font-size: 64px; color: var(--ink-soft); opacity: .5; }
.sv-no { font-family: var(--font-en); font-weight: 300; font-size: 14px; letter-spacing: 0.18em; color: var(--ink-soft); margin-bottom: 12px; }
.sv-title { font-size: 28px; margin-bottom: 18px; }
.sv-desc { color: var(--ink-soft); line-height: 2; margin-bottom: 22px; }
.sv-desc p { margin: 0 0 1em; }
.sv-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sv-features li { font-size: 13px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.section--mist .sv-features li { background: var(--paper); }

@media (max-width: 768px) {
  .sv-row, .sv-row--reverse .sv-visual { grid-template-columns: 1fr; }
  .sv-row { gap: 28px; }
  .sv-row--reverse .sv-visual { order: 0; }
  .sv-title { font-size: 23px; }
}

/* ===== Contact Form 7 ===== */
.wpcf7 { max-width: 680px; margin: 0 auto; }
.wpcf7 label { display: block; font-size: 14px; font-weight: var(--weight-heading); margin-bottom: 24px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--ink); }
.wpcf7 .wpcf7-submit {
  display: inline-block;
  margin-top: 10px;
  padding: 15px 48px;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .25s, transform .25s;
}
.wpcf7 .wpcf7-submit:hover { opacity: .85; transform: translateY(-2px); }
.wpcf7-not-valid-tip { font-size: 12.5px; color: #c0392b; margin-top: 6px; }
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0; padding: 14px 18px;
  border-radius: 10px; font-size: 13.5px;
  border: 1px solid var(--line);
}
