/* ==========================================================
   machop. — Web media stylesheet
   ========================================================== */

:root {
  --ink: #1c1d20;
  --muted: #70747a;
  --line: #e8e8e6;
  --accent: #e66a3f;
  --soft: #f7f6f3;
  --dark: #252a2e;
  --container: 1160px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 23px var(--gutter) 18px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  font-size: 35px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
}
.brand i { color: var(--accent); font-style: normal; }
.brand:hover { color: var(--ink); }

.site-top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
  color: #64676b;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e7e9ea;
  border-radius: 5px;
  padding: 0 14px;
  min-width: 160px;
  color: #76797f;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 0;
  width: 100%;
  color: var(--ink);
}
.search:focus-within { border-color: var(--accent); }

.menu-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: #64676b;
  transition: transform .2s, opacity .2s;
}
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { border-top: 1px solid var(--line); }
.site-nav .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  gap: 37px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.site-nav .inner::-webkit-scrollbar { display: none; }
.site-nav a.current { color: var(--accent); }

/* Drawer menu */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.menu-open .drawer {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s ease, visibility 0s;
}
.drawer .inner { padding: 18px 24px 32px; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer-head .brand { font-size: 24px; letter-spacing: -1px; }
.drawer-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: #64676b;
}
.drawer-close:hover { color: var(--accent); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 22, 25, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.menu-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s;
}
body.no-scroll { overflow: hidden; }
.drawer .search { margin-bottom: 14px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Common parts ---------- */
.overline,
.tag {
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 800;
  color: var(--accent);
}

.meta { font-size: 11px; color: var(--muted); margin: 10px 0; }
.meta b { color: var(--accent); font-weight: 800; }
.meta .sep { margin: 0 .9em; color: #b6b8bb; }

.viewall { font-size: 12px; color: #585c63; font-weight: 700; white-space: nowrap; }

.readlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e9b29f;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.author { font-size: 11px; color: #8b8e92; margin-top: 8px; }

/* Cover image (placeholder photo) */
.cover {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(125deg, #4f5661, #171e29 85%);
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cover.blue   { background: linear-gradient(120deg, #567c8f, #1d2935 82%); }
.cover.gold   { background: linear-gradient(120deg, #c7a47f, #4f5146 80%); }
.cover.orange { background: linear-gradient(120deg, #c98d61, #453a37 85%); }
.cover.dark   { background: linear-gradient(125deg, #4f5661, #171e29 85%); }

.photo-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  background: #ffffffd9;
  color: #30363a;
  font-size: 9px;
  letter-spacing: .02em;
  padding: 4px 7px;
  border-radius: 3px;
}

a:hover .cover img { transform: scale(1.04); }

/* ---------- Home: intro & featured ---------- */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 37px 0 20px;
}
.section-title {
  font-size: 24px;
  line-height: 1.35;
  margin: 3px 0;
  font-weight: 850;
  letter-spacing: -.02em;
}
.section-sub { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.featured {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.featured .cover { min-height: 310px; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; }
.feature-copy h2 {
  font-size: 29px;
  line-height: 1.47;
  margin: 10px 0 8px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.featured:hover h2 { color: var(--accent); }
.desc { font-size: 13px; line-height: 1.9; color: #5f646b; }

/* ---------- Sections ---------- */
.section { margin-top: 46px; scroll-margin-top: 140px; }

.rulehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 2px solid #1f2327;
  margin-bottom: 22px;
  padding-bottom: 12px;
}
.rulehead h2 { font-size: 23px; margin: 0; font-weight: 850; }
.rulehead small { font-size: 11px; font-weight: 400; color: #888; margin-left: 4px; }

/* Interviews: three columns */
.columns-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.story-card { display: block; }
.story-card .cover { aspect-ratio: 16 / 10; }
.story-card h3 { font-size: 16px; line-height: 1.6; margin: 10px 0; font-weight: 850; }
.story-card p { font-size: 11px; color: var(--muted); margin: 5px 0; }

/* Latest: list + side */
.split {
  display: grid;
  grid-template-columns: 1.7fr .83fr;
  gap: 42px;
}
.story-list { display: flex; flex-direction: column; gap: 20px; }
.list-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.list-card .cover { aspect-ratio: 16 / 10; }
.list-card h3 { font-size: 15px; line-height: 1.7; margin: 6px 0 4px; }

.sidebox {
  background: var(--soft);
  padding: 21px;
  margin-bottom: 18px;
  scroll-margin-top: 140px;
}
.sidebox h3 { font-size: 16px; margin: 0 0 10px; }
.sidebox p { font-size: 12px; line-height: 1.9; color: #6a6d6d; }

.sidecta {
  display: block;
  background: var(--dark);
  color: #fff;
  padding: 23px;
}
.sidecta:hover { color: #fff; }
.sidecta small { color: #f3a283; font-size: 13px; }
.sidecta h3 { margin: 9px 0 4px; font-size: 22px; }
.sidecta p { font-size: 12px; line-height: 1.7; color: #d1d3d5; }
.sidecta span { color: #ff8e68; font-weight: 700; font-size: 12px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 30px 0 42px;
  color: #777;
  font-size: 11px;
}
.footer .brand { font-size: 23px; letter-spacing: -1px; }
.footer nav a + a::before { content: "／"; margin: 0 .9em; color: #aaa; }
.footer small { display: block; margin-top: 2px; font-size: 10px; }

/* ---------- Article ---------- */
.crumbs { font-size: 11px; color: #8a8e92; margin: 25px 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 .9em; }

.article-frame {
  display: grid;
  grid-template-columns: minmax(0, 750px) 270px;
  justify-content: space-between;
  gap: 60px;
}
.article-head .tag { display: block; margin: 10px 0 12px; }
.article-head h1 {
  font-size: 35px;
  line-height: 1.48;
  margin: 0 0 20px;
  letter-spacing: -.026em;
}
.article-hero { aspect-ratio: 16 / 9; margin: 26px 0 6px; }
.caption { font-size: 10px; color: #8b8e92; margin: 8px 0 27px; }
.lead { font-size: 16px; font-weight: 600; line-height: 2.05; margin: 23px 0 32px; }

.profile {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f5f6f4;
  padding: 17px;
  margin: 25px 0 34px;
}
.profile .avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5d6973, #20262b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.profile h3 { font-size: 13px; margin: 0 0 5px; }
.profile p { font-size: 11px; line-height: 1.7; color: #555a61; margin: 0; }

.article-body h2 {
  font-size: 23px;
  line-height: 1.55;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin: 42px 0 17px;
}
.article-body p { font-size: 15px; line-height: 2.1; margin: 16px 0; }
.article-body .question { font-weight: 800; color: #303339; }
.article-body .answer { color: #4c5054; }

.quote {
  margin: 28px 0;
  padding: 24px;
  background: #fbf6f2;
  border-top: 1px solid #ecd9ce;
  border-bottom: 1px solid #ecd9ce;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}
.quote p { margin: 0; font-size: inherit; line-height: inherit; }
.quote cite {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  color: #8c847d;
}

.gear {
  display: flex;
  gap: 17px;
  border: 1px solid #e5e5e3;
  padding: 14px;
  margin: 22px 0;
}
.gear .gearimg {
  flex-shrink: 0;
  width: 115px;
  min-height: 100px;
  background: #ecebe8;
  color: #777;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gear h4 { font-size: 14px; margin: 4px 0 7px; }
.article-body .gear p { font-size: 11px; line-height: 1.7; color: #72757a; margin: 0 0 9px; }
.gear a { font-size: 11px; color: var(--accent); font-weight: 800; }

.article-body .disclosure {
  font-size: 12px;
  color: #81858a;
  border-left: 2px solid #ddd;
  padding-left: 10px;
  line-height: 1.7;
}

.article-ending {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 36px;
}
.article-ending p { font-size: 12px; color: #72757a; }
.article-ending a { color: var(--accent); font-size: 12px; }

.article-sidebar { padding-top: 24px; }
.article-sidebar .stick { position: sticky; top: 140px; }
.rail-title {
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid #252525;
  padding-bottom: 10px;
}
.railcard {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin: 18px 0;
  align-items: start;
}
.railcard .cover { aspect-ratio: 1 / 1; }
.railcard p { font-size: 11px; line-height: 1.6; margin: 0; font-weight: 700; }

.nextbox {
  display: block;
  background: #fff7f2;
  padding: 20px;
  margin-top: 24px;
}
.nextbox:hover { color: var(--ink); }
.nextbox h3 { font-size: 16px; margin: 0 0 9px; }
.nextbox p { font-size: 12px; color: #777; line-height: 1.7; }
.nextbox span { color: var(--accent); font-weight: 700; font-size: 12px; }

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet */
@media (max-width: 1000px) {
  .article-frame { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
  .split { gap: 28px; }
  .list-card { grid-template-columns: 150px 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --gutter: 17px; }

  .site-top { padding: 18px var(--gutter); }
  .brand { font-size: 27px; }
  .site-top .right { gap: 15px; }
  .site-top .right .search,
  .site-top .right .menuitem { display: none; }
  .site-nav .inner { gap: 22px; padding: 11px var(--gutter); }

  .intro { margin: 24px 0 16px; }
  .intro .viewall { display: none; }
  .section-title { font-size: 20px; }

  .featured { display: block; padding-bottom: 24px; }
  .featured .cover { min-height: 0; aspect-ratio: 16 / 10; }
  .feature-copy h2 { font-size: 21px; margin: 5px 0; }
  .desc { font-size: 12px; }

  .section { margin-top: 30px; }
  .rulehead { padding-bottom: 9px; margin-bottom: 17px; }
  .rulehead h2 { font-size: 19px; }

  .columns-three { grid-template-columns: 1fr; gap: 19px; }
  .story-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 13px;
    align-items: start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
  }
  .story-card .cover { aspect-ratio: 4 / 3; }
  .story-card .meta { margin: 2px 0; }
  .story-card h3 { font-size: 13px; margin: 6px 0; line-height: 1.55; }
  .story-card p { font-size: 10px; }

  .split { display: block; }
  .story-list { gap: 14px; }
  .list-card { grid-template-columns: 118px 1fr; gap: 12px; padding-bottom: 13px; }
  .list-card .meta { font-size: 10px; margin: 2px 0; }
  .list-card h3 { font-size: 12px; margin: 3px 0; line-height: 1.55; }
  .side { margin-top: 22px; }
  .sidebox { padding: 17px; }

  .footer { margin-top: 32px; }
  .footer .inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer .brand { font-size: 20px; }

  .crumbs { margin: 17px 0 18px; font-size: 10px; }
  .article-frame { display: block; }
  .article-head h1 { font-size: 25px; line-height: 1.5; margin-bottom: 16px; }
  .article-hero { margin: 19px 0 7px; }
  .lead { font-size: 15px; line-height: 1.95; }
  .profile { padding: 13px; margin: 17px 0 28px; }
  .profile .avatar { width: 58px; height: 58px; font-size: 9px; }
  .article-body h2 { font-size: 19px; margin: 32px 0 17px; }
  .article-body p { font-size: 14px; }
  .quote { font-size: 16px; padding: 18px; }
  .gear { gap: 12px; }
  .gear .gearimg { width: 85px; }
  .article-sidebar { padding-top: 38px; }
  .article-sidebar .stick { position: static; }
}
