/*
Theme Name: Yodadenki About
Theme URI: https://www.yodadenki.net/about/
Author: Yoda Electric Industrial Co., Ltd.
Description: 依田電機産業株式会社の取り組み記事専用テーマ
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.0
Text Domain: yodadenki-about
*/

:root {
  --navy: #0b1c2b;
  --copper: #c66b38;
  --copper-light: #df8c55;
  --paper: #f8f7f3;
  --cream: #f2eee6;
  --ink: #18212a;
  --muted: #64707a;
  --line: #d9d9d2;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  z-index: 1000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
}

.about-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(248, 247, 243, .96);
  border-bottom: 1px solid rgba(11, 28, 43, .11);
  backdrop-filter: blur(12px);
}
.about-header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.about-brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.15;
}
.about-brand-logo { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }
.about-brand-copy { min-width: 0; display: flex; flex-direction: column; }
.about-brand-ja { font: 22px "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .04em; }
.about-brand-en { margin-top: 6px; color: #6b747c; font: 9px Georgia, serif; letter-spacing: .16em; }
.about-nav { display: flex; gap: 24px; font-size: 12px; font-weight: 700; }
.about-nav a { padding: 31px 0; }
.about-nav a[aria-current="page"] { color: var(--copper); }
.about-language { display: flex; gap: 7px; font-size: 12px; font-weight: 800; }
.about-language a { padding: 3px 5px; color: var(--muted); }
.about-language a.active { color: var(--copper); }
.about-contact {
  padding: 13px 18px;
  display: inline-flex;
  gap: 18px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.about-mobile-nav { display: none; position: relative; }
.about-mobile-nav summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  list-style: none;
  cursor: pointer;
}
.about-mobile-nav summary::-webkit-details-marker { display: none; }
.about-mobile-nav summary span { display: block; width: 20px; height: 1px; background: var(--navy); }
.about-mobile-nav nav {
  position: absolute;
  right: 0;
  top: 51px;
  width: min(310px, calc(100vw - 32px));
  padding: 10px 20px 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}
.about-mobile-nav nav a { display: block; padding: 13px 3px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.about-mobile-languages { display: flex; gap: 15px; margin-top: 13px; }
.about-mobile-languages a { border: 0 !important; color: var(--muted); }

.about-hero {
  min-height: 430px;
  padding: 88px max(48px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: end;
  color: #fff;
  background: linear-gradient(120deg, #0b1c2b 0%, #0b1c2b 58%, #173247 58%, #173247 100%);
}
.about-eyebrow { margin: 0 0 24px; color: var(--copper-light); font: 800 11px Arial, sans-serif; letter-spacing: .22em; }
.about-hero h1 { margin: 0; font: 500 clamp(48px, 6vw, 76px) / 1.22 "Yu Mincho", serif; letter-spacing: -.025em; }
.about-hero-copy > p:last-child { max-width: 690px; margin: 25px 0 0; color: #cbd4da; font-size: 14px; line-height: 2; }
.about-hero-mark {
  justify-self: end;
  align-self: stretch;
  min-width: 190px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.about-hero-mark span { color: rgba(255, 255, 255, .5); font: 9px Arial, sans-serif; letter-spacing: .16em; writing-mode: vertical-rl; }
.about-hero-mark strong { color: rgba(255, 255, 255, .15); font: 600 72px/1 "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif; }

.about-content { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 110px 0 130px; }
.about-section-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 9%; align-items: end; }
.about-section-heading h2 { margin: 0; font: 500 clamp(36px, 4vw, 54px) / 1.4 "Yu Mincho", serif; }
.about-section-heading > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 2; }
.about-post-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card { min-width: 0; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.about-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(11, 28, 43, .1); }
.about-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream); }
.about-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.about-card:hover .about-card-media img { transform: scale(1.025); }
.about-card-placeholder { height: 100%; padding: 23px; display: flex; align-items: flex-end; color: rgba(11, 28, 43, .28); font: 600 39px "Bahnschrift SemiCondensed", sans-serif; }
.about-card-copy { padding: 25px 24px 28px; }
.about-post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.about-post-meta .category { color: var(--copper); }
.about-card h2 { margin: 14px 0 0; font: 600 21px/1.65 "Yu Mincho", serif; }
.about-card p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.about-card-more { margin-top: 24px; display: inline-flex; gap: 18px; color: var(--copper); font-size: 11px; font-weight: 800; }
.about-empty { margin-top: 58px; padding: 58px 45px; border: 1px solid var(--line); background: #fff; }
.about-empty h2 { margin: 0; font: 600 25px "Yu Mincho", serif; }
.about-empty p { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.about-admin-action { margin-top: 25px; display: inline-flex; padding: 12px 18px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.about-pagination { margin-top: 55px; display: flex; justify-content: center; gap: 7px; }
.about-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; }
.about-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.article-shell { width: min(900px, calc(100% - 48px)); margin: auto; padding: 100px 0 130px; }
.article-header { padding-bottom: 45px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 18px 0 0; font: 500 clamp(38px, 5vw, 60px) / 1.45 "Yu Mincho", serif; letter-spacing: -.02em; }
.article-header .about-post-meta { font-size: 11px; }
.article-featured { margin-top: 45px; }
.article-featured img { width: 100%; max-height: 590px; object-fit: cover; }
.article-body { margin-top: 58px; font-size: 15px; line-height: 2.05; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { margin: 2.4em 0 .8em; padding-bottom: .5em; border-bottom: 1px solid var(--line); font: 600 30px/1.5 "Yu Mincho", serif; }
.article-body h3 { margin: 2em 0 .7em; font: 600 23px/1.55 "Yu Mincho", serif; }
.article-body p { margin: 1.35em 0; }
.article-body ul, .article-body ol { margin: 1.4em 0; padding-left: 1.7em; }
.article-body blockquote { margin: 2em 0; padding: 20px 26px; border-left: 4px solid var(--copper); background: var(--cream); color: #46535d; }
.article-body figure { margin: 2.2em 0; }
.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: center; }
.article-body a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.article-edit { margin-top: 35px; font-size: 12px; }
.article-navigation { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.article-navigation a { padding: 20px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; }
.article-navigation .next { text-align: right; }
.article-contact { margin-top: 75px; padding: 45px; background: var(--copper); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.article-contact h2 { margin: 0; font: 500 30px/1.5 "Yu Mincho", serif; }
.article-contact a { flex: 0 0 auto; padding: 14px 20px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; }

.about-404 { width: min(780px, calc(100% - 48px)); min-height: 60vh; margin: auto; padding: 120px 0; }
.about-404 h1 { margin: 0; font: 500 clamp(40px, 6vw, 68px) "Yu Mincho", serif; }
.about-404 p { color: var(--muted); }
.about-404 a { margin-top: 20px; display: inline-flex; padding: 13px 19px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }

.about-footer {
  padding: 70px max(48px, calc((100vw - var(--max)) / 2)) 30px;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 50px;
  background: var(--navy);
  color: #fff;
}
.about-footer-brand { display: flex; flex-direction: column; }
.about-footer-brand strong { font: 24px "Yu Mincho", serif; }
.about-footer-brand span { margin-top: 8px; color: #89969f; font: 9px Georgia, serif; letter-spacing: .13em; }
.about-footer-address { color: #b5bfc6; font-size: 11px; }
.about-footer-address p { margin: 0; }
.about-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 25px; font-size: 11px; font-weight: 700; }
.about-copyright { grid-column: 1/-1; margin: 40px 0 0; padding-top: 21px; border-top: 1px solid #2d3d49; color: #73818b; font-size: 9px; }
.about-mobile-contact { display: none; }

@media (max-width: 1120px) {
  .about-nav, .about-language { display: none; }
  .about-mobile-nav { display: block; }
}

@media (max-width: 760px) {
  body { padding-bottom: 58px; }
  .about-header-inner { width: calc(100% - 32px); min-height: 72px; }
  .about-brand { gap: 9px; }
  .about-brand-logo { width: 35px; height: 35px; flex-basis: 35px; }
  .about-brand-ja { font-size: 18px; }
  .about-brand-en { margin-top: 4px; font-size: 7px; }
  .about-contact { display: none; }
  .about-hero { min-height: 360px; padding: 65px 24px; grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 47px; }
  .about-hero-mark { display: none; }
  .about-content { width: calc(100% - 32px); padding: 75px 0 90px; }
  .about-section-heading { grid-template-columns: 1fr; gap: 22px; }
  .about-section-heading h2 { font-size: 36px; }
  .about-post-grid { margin-top: 40px; grid-template-columns: 1fr; }
  .about-empty { margin-top: 40px; padding: 38px 24px; }
  .article-shell { width: calc(100% - 32px); padding: 75px 0 95px; }
  .article-header h1 { font-size: 37px; }
  .article-body { font-size: 14px; }
  .article-body h2 { font-size: 26px; }
  .article-navigation { grid-template-columns: 1fr; }
  .article-contact { padding: 30px 24px; align-items: stretch; flex-direction: column; }
  .article-contact h2 { font-size: 25px; }
  .article-contact a { text-align: center; }
  .about-footer { padding: 58px 24px 25px; grid-template-columns: 1fr; gap: 29px; }
  .about-footer-nav { grid-template-columns: 1fr 1fr; }
  .about-copyright { margin-top: 15px; }
  .about-mobile-contact {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58px;
    padding: 0 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--copper);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 -5px 18px rgba(0, 0, 0, .2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
