/*
Theme Name: Motoki Kobayashi
Description: 小林元喜 Official Site
Version: 1.0
*/


/* =========================================================
   共通変数・リセット
   ========================================================= */
:root {
  --cream: #efeae0;
  --cream-light: #f5f2ec;
  --navy: #171c28;
  --navy-2: #1d2433;
  --red: #c8392e;
  --ink: #1a1a1a;
  --gray: #5a5a5a;
  --line: #d8d2c6;

  --serif-display: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
  --serif-text:    "Noto Serif JP", serif;
  --sans:          "Noto Sans JP", sans-serif;
  --latin:         "Inter", sans-serif;
  --script:        "Great Vibes", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "palt";
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 48px; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(239, 234, 224, .97);
  border-bottom: 1px solid var(--line);
}
.site-header--overlay {
  position: absolute; left: 0; right: 0;
  background: transparent; border-bottom: none; backdrop-filter: none;
  padding: 26px 48px;
}
.brand a { display: flex; align-items: center; gap: 14px; }
.brand__name {
  font-family: var(--serif-display);
  font-weight: 700; font-size: 28px; letter-spacing: .14em; line-height: 1;
}
.brand__sub {
  font-family: var(--latin);
  font-size: 10.5px; font-weight: 700; letter-spacing: .22em; line-height: 1.5;
  color: var(--ink); text-transform: uppercase;
  margin-top: 3px;
}
.nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 40px;
}
.nav a {
  font-family: var(--latin); font-size: 14px; font-weight: 500; letter-spacing: .18em;
  color: #2a2a2a; position: relative; padding-bottom: 6px; transition: color .2s;
}
.nav a:hover { color: var(--red); }
.nav a.is-active { color: #111; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--red);
}
.menu-btn {
  display: flex; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.menu-btn span { width: 28px; height: 1.5px; background: #222; display: block; transition: transform .3s, opacity .3s; }
.menu-btn { position: relative; z-index: 300; }
.menu-btn.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.is-active span:nth-child(2) { opacity: 0; }
.menu-btn.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* フルスクリーンオーバーレイメニュー */
.nav.nav--open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  transform: none;
  width: 100%;
  height: 100%;
  background: rgba(239, 234, 224, .97);
  backdrop-filter: blur(6px);
  z-index: 200;
  gap: 48px;
  animation: navFadeIn .3s ease;
}
.nav.nav--open a {
  font-size: 18px;
  letter-spacing: .36em;
  color: var(--ink);
  padding-bottom: 0;
  width: auto;
  border-bottom: none;
}
.nav.nav--open a.is-active::after { display: none; }
.nav.nav--open a:hover { color: var(--red); }

/* オーバーレイ背景 */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 40;
  animation: navFadeIn .3s ease;
}
.nav-overlay.is-visible { display: block; }

@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== ヒーロー (TOP) ===== */
.hero {
  position: relative; height: 90vh;
  background: url('images/main.jpg') center / cover no-repeat;
}
.hero__sp-img { display: none; }
.hero__inner {
  position: relative; z-index: 2;
  padding: 180px 48px 0; max-width: 1500px; margin: 0 auto;
}
.hero__title {
  font-family: var(--serif-display);
  font-weight: 800; font-size: clamp(42px, 5.8vw, 86px);
  line-height: 1.28; letter-spacing: .04em;
}
.hero__rule { width: 64px; height: 3px; background: var(--red); margin: 38px 0 30px; }
.hero__role { font-family: var(--serif-text); font-weight: 600; font-size: 15px; letter-spacing: .18em; color: #333; margin-bottom: 8px; }
.hero__nameline { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.hero__name {
  font-family: var(--serif-display);
  font-weight: 700; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: .3em; line-height: 1.1;
}
.hero__sign {
  height: clamp(40px, 4.2vw, 60px);
  width: auto;
}
.hero__lead {
  margin-top: 24px; font-family: var(--sans);
  font-size: 16px; font-weight: 500; line-height: 2.1; color: #3a3a3a; letter-spacing: .22em;
}
.hero__vertical {
  position: absolute; top: 140px; right: 46px; z-index: 3;
  writing-mode: vertical-rl; font-family: var(--serif-display);
  font-size: 20px; font-weight: 600; letter-spacing: .22em; line-height: 2; color: #2c2c2c; height: 420px;
}
.hero__vertical::before {
  content: ""; position: absolute; top: -26px; right: 7px;
  width: 1px; height: 18px; background: #888;
}

/* ===== 下部パネル (TOP) ===== */
.panels {
  position: relative; z-index: 5; max-width: 1500px; margin: -150px auto 0;
  padding: 0 48px 80px;
  display: grid; grid-template-columns: 185px 1fr 1fr 1.55fr; gap: 16px; align-items: stretch;
}
.works-label {
  background: var(--navy); color: #fff;
  padding: 30px 24px; display: flex; flex-direction: column; justify-content: center;
}
.works-label .en { font-family: var(--latin); font-size: 15px; letter-spacing: .28em; color: var(--red); margin-bottom: 14px; }
.works-label .ja { font-family: var(--serif-display); font-size: 21px; letter-spacing: .14em; }
.work { background: var(--cream-light); display: flex; align-items: stretch; padding: 22px; gap: 18px; }
.work__cover { width: 104px; flex: 0 0 104px; height: auto; align-self: center; object-fit: contain; box-shadow: 3px 4px 12px rgba(0,0,0,.12); }
.work__body { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.work__title { font-family: var(--serif-display); font-weight: 700; font-size: 24px; line-height: 1.45; letter-spacing: .05em; }
.work__more { margin-top: 16px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: #333; }

.news { background: var(--navy); color: #fff; padding: 30px 30px 24px; }
.news__head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 16px; margin-bottom: 6px; }
.news__head .en { font-family: var(--latin); font-size: 17px; letter-spacing: .28em; }
.news__head .ja { font-size: 12px; letter-spacing: .18em; color: #aab; margin-left: 14px; flex: 1; }
.news__all { font-family: var(--latin); font-size: 12px; letter-spacing: .12em; color: #cfd3da; }
.news__list { list-style: none; }
.news__list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.news__list li:last-child { border-bottom: none; }
.news__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 3px; }
.news__date { color: #8b93a3; font-family: var(--latin); font-size: 12px; letter-spacing: .06em; }
.news__cat { font-size: 11px; letter-spacing: .08em; color: #e6c9a0; border: 1px solid rgba(230,201,160,.4); padding: 1px 8px; border-radius: 2px; }
.news__txt { display: block; color: #e7e9ee; font-size: 13px; line-height: 1.6; }
.news__list a:hover .news__txt { color: #fff; }

/* ===== 下層ページ共通：ページ見出し ===== */
.page-head { padding: 90px 48px 56px; max-width: 1040px; margin: 0 auto; }
.page-head .en { font-family: var(--latin); font-size: 14px; letter-spacing: .3em; color: var(--red); display: block; margin-bottom: 14px; }
.page-head .ja { font-family: var(--serif-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: .1em; }
.page-head .lead { font-family: var(--serif-text); font-size: 16px; line-height: 2.1; color: #3a3a3a; margin-top: 26px; }
.page-head__rule { width: 54px; height: 3px; background: var(--red); margin: 22px 0 0; }

/* ===== WORKS ===== */
.book { display: flex; gap: 50px; padding: 60px 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: none; }
.book__cover { flex: 0 0 230px; }
.book__cover img { box-shadow: 6px 8px 24px rgba(0,0,0,.16); width: 100%; }
.book__title { font-family: var(--serif-display); font-weight: 700; font-size: 30px; letter-spacing: .06em; line-height: 1.4; }
.book__pub { color: var(--gray); font-size: 14px; margin-top: 6px; letter-spacing: .04em; }
.book__awards { list-style: none; margin: 18px 0 24px; }
.book__awards li { font-size: 13.5px; color: #444; padding-left: 18px; position: relative; line-height: 1.9; }
.book__awards li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--red); }
.book__desc { font-family: var(--sans); font-size: 15px; line-height: 2.05; color: #2e2e2e; }
.book__desc p { margin-bottom: 16px; }
.book__link { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-family: var(--latin); font-size: 13px; letter-spacing: .1em; color: #fff; background: var(--navy); padding: 12px 26px; transition: background .2s; }
.book__link:hover { background: var(--red); }

/* ===== ABOUT ===== */
.about-intro { display: flex; gap: 50px; align-items: flex-start; padding: 10px 0 50px; }
.about-intro__photo { flex: 0 0 280px; }
.about-intro__photo img { box-shadow: 4px 6px 20px rgba(0,0,0,.14); }
.about-intro__text { font-family: var(--sans); font-size: 15.5px; line-height: 2.15; color: #2e2e2e; }
.about-intro__text p { margin-bottom: 18px; }
.about-section { padding: 46px 0; border-top: 1px solid var(--line); }
.about-section h2 { font-family: var(--serif-display); font-weight: 700; font-size: 22px; letter-spacing: .08em; margin-bottom: 6px; }
.about-section h2 .en { display: block; font-family: var(--latin); font-size: 12px; letter-spacing: .28em; color: var(--red); font-weight: 500; margin-bottom: 8px; }
.about-section h3 { font-family: var(--serif-display); font-size: 17px; letter-spacing: .06em; margin: 30px 0 12px; padding-left: 14px; border-left: 3px solid var(--red); }
.dated-list { list-style: none; }
.dated-list li { display: flex; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(180,170,150,.3); font-size: 13.5px; line-height: 1.7; }
.dated-list li:last-child { border-bottom: none; }
.dated-list .d { flex: 0 0 132px; color: var(--gray); font-family: var(--latin); letter-spacing: .02em; font-size: 12.5px; padding-top: 1px; }
.dated-list .t { color: #2e2e2e; }

/* ===== CONTACT ===== */
.contact-wrap { max-width: 680px; margin: 0 auto; padding: 0 48px 40px; }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; font-size: 13px; letter-spacing: .06em; color: #333; margin-bottom: 8px; font-weight: 500; }
.form-row label .req { color: var(--red); font-size: 11px; margin-left: 8px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 13px 15px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--red); }
.form-row textarea { min-height: 160px; resize: vertical; }
.form-submit { display: inline-flex; align-items: center; gap: 12px; font-family: var(--latin); font-size: 14px; letter-spacing: .12em; color: #fff; background: var(--navy); border: none; cursor: pointer; padding: 15px 48px; transition: background .2s; }
.form-submit:hover { background: var(--red); }
.form-note,
.form-note p { font-size: 12px; color: var(--gray); line-height: 1.8; margin-top: 0; }
.form-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ===== THANKS ===== */
.thanks-wrap { max-width: 680px; margin: 0 auto; padding: 0 48px 80px; text-align: center; }
.thanks-msg { font-family: var(--sans); font-size: 15px; line-height: 2.2; color: #2e2e2e; margin-bottom: 48px; }
.thanks-btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--latin); font-size: 13px; letter-spacing: .12em; color: #fff; background: var(--navy); padding: 14px 40px; transition: background .2s; }
.thanks-btn:hover { background: var(--red); }
@media (max-width: 820px) {
  .thanks-wrap { padding-left: 22px; padding-right: 22px; }
}

/* CF7 */
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { font-size: 12px; color: var(--red); margin-top: 6px; display: block; }
.wpcf7-response-output { margin-top: 24px; padding: 14px 18px; font-size: 13px; border: 1px solid var(--line) !important; border-radius: 3px; }
.wpcf7-mail-sent-ok { border-color: #4a9 !important; color: #2a7a50; background: #f0faf5; }
.wpcf7-validation-errors { border-color: var(--red) !important; color: var(--red); background: #fff5f5; }

/* ===== お知らせ 一覧 (category.php) ===== */
.newslist { max-width: 900px; margin: 0 auto; padding: 0 48px 20px; list-style: none; }
.newslist li { padding: 24px 2px; border-bottom: 1px solid var(--line); }
.newslist li:first-child { border-top: 1px solid var(--line); }
.newslist a { display: block; transition: opacity .2s; }
.newslist__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; }
.newslist__date { font-family: var(--latin); font-size: 13px; color: var(--gray); letter-spacing: .04em; }
.newslist__cat { font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--navy); padding: 2px 11px; border-radius: 2px; }
.newslist__cat--event { background: var(--red); }
.newslist__txt { font-family: var(--sans); font-size: 15.5px; line-height: 1.85; color: #2e2e2e; }
.newslist a:hover .newslist__txt { color: var(--red); }

/* ===== ウェブマガジン 一覧 (category-magazine.php) ===== */
.magazine-grid {
  max-width: 1040px; margin: 0 auto; padding: 0 48px 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.mag-card { background: #fff; display: flex; flex-direction: column; transition: box-shadow .3s; }
.mag-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.10); }
.mag-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-light); }
.mag-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mag-card:hover .mag-card__thumb img { transform: scale(1.04); }
.mag-card__no-thumb { width: 100%; height: 100%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.mag-card__no-thumb span { font-family: var(--latin); font-size: 11px; letter-spacing: .18em; color: #8b93a3; }
.mag-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mag-card__meta { display: flex; align-items: center; gap: 10px; }
.mag-card__date { font-family: var(--latin); font-size: 11px; color: var(--gray); letter-spacing: .04em; }
.mag-card__cat { font-size: 10px; letter-spacing: .08em; color: #fff; background: var(--red); padding: 1px 9px; border-radius: 2px; }
.mag-card__title { font-family: var(--serif-display); font-size: 17px; line-height: 1.6; letter-spacing: .04em; color: var(--ink); }
.mag-card:hover .mag-card__title { color: var(--red); }

/* ===== 投稿 個別 (single.php) ===== */
.post-article { max-width: 760px; margin: 0 auto; padding: 0 48px 80px; }
.post-article__eyecatch { margin-bottom: 40px; }
.post-article__eyecatch img { width: 100%; height: auto; }
.post-article__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.post-article__date { font-family: var(--latin); font-size: 13px; color: var(--gray); letter-spacing: .04em; }
.post-article__cat { font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--navy); padding: 2px 12px; border-radius: 2px; }
.post-article__title { font-family: var(--serif-display); font-size: clamp(22px, 3vw, 30px); letter-spacing: .06em; line-height: 1.5; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-article__body { font-family: var(--sans); font-size: 16px; line-height: 2.15; color: #2e2e2e; }
.post-article__body p { margin-bottom: 24px; }
.post-article__body h2 { font-family: var(--serif-display); font-size: 21px; letter-spacing: .06em; margin: 48px 0 16px; padding-left: 14px; border-left: 3px solid var(--red); }
.post-article__body h3 { font-family: var(--serif-display); font-size: 18px; margin: 36px 0 12px; }
.post-article__body img { max-width: 100%; height: auto; margin: 24px 0; }
.post-article__back { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.post-article__back a { font-family: var(--latin); font-size: 13px; letter-spacing: .1em; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.post-article__back a:hover { color: var(--red); }

/* ===== ページネーション ===== */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0 60px; }
.pagination .page-numbers { font-family: var(--latin); font-size: 13px; letter-spacing: .06em; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); transition: all .2s; }
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== フッター ===== */
.site-footer { background: var(--navy); color: #cfd3da; margin-top: 80px; padding: 54px 48px 40px; }
.site-footer__inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.site-footer__name { font-family: var(--serif-display); color: #fff; font-size: 22px; letter-spacing: .14em; }
.site-footer__name small { display: block; font-family: var(--latin); font-size: 10.5px; letter-spacing: .22em; color: #8b93a3; margin-top: 8px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-family: var(--latin); font-size: 13px; letter-spacing: .16em; color: #cfd3da; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.site-footer__copy { max-width: 1040px; margin: 40px auto 0; font-family: var(--latin); font-size: 11px; letter-spacing: .08em; color: #6b7385; }
.site-footer__produced { max-width: 1040px; margin: 8px auto 0; font-family: var(--latin); font-size: 11px; letter-spacing: .08em; color: #6b7385; }
.produced-link { text-decoration: underline; transition: text-decoration .2s; }
.produced-link:hover { text-decoration: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 1100px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .works-label { grid-column: 1 / 3; }
  .news { grid-column: 1 / 3; }
  .hero__photo { width: 42%; }
  .magazine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-header, .site-header--overlay { padding: 16px 22px; }
  .nav { display: none; }
  .container, .page-head, .contact-wrap { padding-left: 22px; padding-right: 22px; }
  .hero {
    background-image: none;
    height: auto;
  }
  .hero__sp-img { display: block; width: 100%; height: auto; }
  .hero__photo { display: none; }
  .hero__inner { display: none; }
  .hero__vertical { display: none; }
  .panels { grid-template-columns: 1fr; margin: 24px auto 0; padding: 0 22px 50px; }
  .works-label, .work, .news { grid-column: 1; }
  .book { flex-direction: column; gap: 26px; }
  .book__cover { flex: 0 0 auto; max-width: 200px; }
  .about-intro { flex-direction: column; gap: 28px; }
  .about-intro__photo { flex: 0 0 auto; max-width: 240px; }
  .dated-list li { flex-direction: column; gap: 2px; }
  .dated-list .d { flex: 0 0 auto; }
  .site-footer__inner { flex-direction: column; }
  .newslist { padding-left: 22px; padding-right: 22px; }
  .magazine-grid { grid-template-columns: 1fr; padding-left: 22px; padding-right: 22px; }
  .post-article { padding-left: 22px; padding-right: 22px; }
}
