*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #FAFAF7;
  color: #2C2A26;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: #DDD8D0; border-radius: 2px; }

:root {
  --accent:  #B5602A;
  --dark:    #2C2A26;
  --mid:     #5A5650;
  --gray:    #8A8480;
  --light:   #F2EFE9;
  --bg:      #FAFAF7;
  --border:  #E5E0D8;
  --white:   #FFFFFF;
  --display: 'Barlow Condensed', sans-serif;
  --serif:   'Noto Serif JP', serif;
  --line-green: #06C755;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ── Tag ── */
.tag {
  display: inline-block; font-family: var(--display);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; line-height: 1.6; white-space: nowrap;
}
.tag-article { background: #3D3A35; color: #fff; }
.tag-genre   { border: 1px solid #C8C4BB; color: var(--mid); background: #fff; }
.tag-new     { background: var(--accent); color: #fff; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Header
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FAFAF7; border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-wordmark {
  display: flex; align-items: baseline; gap: 0; line-height: 1;
  font-family: 'Noto Sans JP', sans-serif; letter-spacing: -.02em;
}
.logo-wordmark .lw-seizo {
  font-weight: 900; font-size: 19px; color: var(--dark);
  border-bottom: 2px solid var(--accent); padding-bottom: 1px;
}
.logo-wordmark .lw-sep {
  display: inline-block; width: 1.5px; height: 16px;
  background: var(--border); margin: 0 5px; flex-shrink: 0; align-self: center;
}
.logo-wordmark .lw-allright {
  font-weight: 900; font-size: 22px; color: var(--accent);
  font-style: italic; letter-spacing: -.04em;
}
.logo-text-sub { font-size: 9px; color: var(--gray); letter-spacing: .14em; display: block; margin-top: 2px; }

.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--mid); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.nav-sns-cluster { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav-sns-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  transition: background .2s, transform .15s; flex-shrink: 0;
}
.nav-sns-icon:hover { transform: scale(1.1); }
.nav-sns-icon svg { width: 16px; height: 16px; }
.nav-sns-icon.line { background: var(--line-green); }
.nav-sns-icon.line svg { fill: #fff; }
.nav-sns-icon.ig { background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #F56040 100%); }
.nav-sns-icon.ig svg { fill: #fff; }
.nav-sns-icon.x-tw { background: #1A1A1A; }
.nav-sns-icon.x-tw svg { fill: #fff; }

.hamburger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--dark); transition: .2s; }
.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  background: #FAFAF7; padding: 16px 24px; flex-direction: column; gap: 10px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--dark); }
@media (max-width: 768px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Breadcrumb
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.breadcrumb {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  background: var(--white);
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb-inner a { font-size: 11px; color: var(--gray); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-sep { font-size: 10px; color: #C8C4BB; }
.breadcrumb-current { font-size: 11px; color: var(--mid); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Article Hero
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-hero {
  background: var(--white);
  padding: 40px 0 0;
}
.article-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .article-hero-inner { padding: 0 16px; } }

.article-meta-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--dark);
  margin-bottom: 20px;
}
.article-subtitle {
  font-size: 15px; color: var(--mid); line-height: 1.75;
  margin-bottom: 28px; border-left: 3px solid var(--accent);
  padding-left: 16px; font-style: italic;
}
.article-info {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.article-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--light); flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.author-role { font-size: 11px; color: var(--gray); }
.article-date { font-size: 12px; color: var(--gray); margin-left: auto; }
.article-readtime {
  font-family: var(--display); font-size: 11px; color: var(--gray); letter-spacing: .06em;
}

/* Hero Image */
.article-hero-img {
  margin-top: 32px; height: clamp(240px, 50vw, 480px); overflow: hidden;
}
.article-hero-img img { height: 100%; width: 100%; object-fit: cover; }
.article-hero-caption {
  font-size: 11px; color: var(--gray); text-align: right; padding: 8px 24px 0;
  max-width: 800px; margin: 0 auto;
}
@media (max-width: 640px) { .article-hero-caption { padding: 8px 16px 0; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Article Layout (2-col: body + sidebar)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#article-layout {
  padding: 48px 0 72px;
  background: var(--bg);
}
.article-layout-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .article-layout-inner { grid-template-columns: 1fr; } }

/* ── Article Body ── */
.article-body {
  background: var(--white);
  padding: 40px 44px;
  border: 1px solid var(--border);
}
@media (max-width: 640px) { .article-body { padding: 28px 20px; } }

/* Typography */
.article-body p {
  font-size: 16px; line-height: 2.0;
  color: #3A3833;
  margin-bottom: 1.6em;
}
.article-body h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 20px; line-height: 1.5;
  color: var(--dark);
  margin: 2.4em 0 .8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-weight: 700; font-size: 16px; line-height: 1.5;
  color: var(--dark); margin: 2em 0 .6em;
}
.article-body strong { font-weight: 700; color: var(--dark); }
.article-body em { font-style: italic; color: var(--mid); }

/* Pull quote */
.article-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 0 2px 2px 0;
}
.article-body blockquote p {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  line-height: 1.75; color: var(--dark); margin: 0;
}
.article-body blockquote cite {
  display: block; margin-top: 8px;
  font-size: 12px; color: var(--gray); font-style: normal;
}

/* Highlight box */
.highlight-box {
  background: #FDF5EE; border: 1px solid #E8C9A8;
  padding: 20px 24px; margin: 2em 0; border-radius: 2px;
}
.highlight-box .hb-label {
  font-family: var(--display); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 8px;
}
.highlight-box p { font-size: 14px; line-height: 1.8; color: var(--mid); margin: 0; }

/* Profile card inside article */
.person-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--light); padding: 24px; margin: 2em 0; border-radius: 2px;
}
@media (max-width: 480px) { .person-card { flex-direction: column; } }
.person-photo {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: #DDD8D0;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-weight: 700; font-size: 16px; color: var(--dark); margin-bottom: 4px; }
.person-detail { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.person-bio { font-size: 13px; color: var(--mid); line-height: 1.7; }

/* Image in article */
.article-img {
  margin: 2em 0; overflow: hidden;
}
.article-img img { width: 100%; height: 320px; object-fit: cover; }
.article-img figcaption { font-size: 11px; color: var(--gray); margin-top: 6px; }

/* Share bar at bottom */
.article-share {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.share-label {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
}
.share-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 7px 16px; cursor: pointer; transition: opacity .2s; border-radius: 1px;
}
.share-btn:hover { opacity: .85; }
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn.line  { background: var(--line-green); color: #fff; }
.share-btn.x-tw  { background: #1A1A1A; color: #fff; }
.share-btn.copy  { background: var(--light); color: var(--dark); border: 1px solid var(--border); }

/* Tags at bottom */
.article-tags {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.article-tags-label {
  font-family: var(--display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); margin-right: 4px;
}
.tc-chip {
  font-family: var(--display); font-size: 11px; letter-spacing: .04em;
  border: 1px solid var(--border); background: var(--white); color: var(--mid); padding: 4px 12px;
  cursor: pointer; transition: background .15s, color .15s;
}
.tc-chip:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--white); border: 1px solid var(--border); padding: 24px;
}
.sidebar-card-title {
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gray);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* LINE CTA in sidebar */
.sidebar-line-cta {
  background: var(--line-green); color: #fff; padding: 24px;
  text-align: center; cursor: pointer; transition: opacity .2s;
}
.sidebar-line-cta:hover { opacity: .9; }
.sidebar-line-cta .line-icon { margin: 0 auto 12px; width: 44px; height: 44px; }
.sidebar-line-cta .line-icon svg { width: 44px; height: 44px; fill: #fff; }
.sidebar-line-cta h3 { font-weight: 700; font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.sidebar-line-cta p { font-size: 12px; opacity: .85; margin-bottom: 16px; line-height: 1.6; }
.sidebar-line-cta .line-btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.7);
  color: #fff; padding: 9px 24px; transition: background .2s;
}
.sidebar-line-cta .line-btn:hover { background: rgba(255,255,255,.3); }

/* Related articles in sidebar */
.sidebar-related-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.sidebar-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-related-thumb {
  width: 68px; height: 52px; overflow: hidden; flex-shrink: 0; background: var(--light);
}
.sidebar-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-related-text h4 {
  font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.sidebar-related-item:hover h4 { color: var(--accent); }
.sidebar-related-text .meta { font-size: 10px; color: var(--gray); margin-top: 4px; }

/* Profile sidebar */
.author-sidebar { text-align: center; }
.author-sidebar-photo {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px;
  background: var(--light);
}
.author-sidebar-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-sidebar-name { font-weight: 700; font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.author-sidebar-role { font-size: 11px; color: var(--gray); margin-bottom: 12px; }
.author-sidebar-bio { font-size: 12px; color: var(--mid); line-height: 1.75; text-align: left; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Related Articles (below article)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#related { padding: 56px 0; background: var(--light); border-top: 1px solid var(--border); }
.related-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px;
}
.related-title {
  font-family: var(--display); font-weight: 900; font-size: 20px;
  letter-spacing: -.01em; color: var(--dark);
}
.related-more {
  font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray); cursor: pointer; transition: color .2s;
}
.related-more:hover { color: var(--accent); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .related-grid { grid-template-columns: 1fr; } }

.r-card { background: var(--white); border: 1px solid var(--border); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.r-card:hover { box-shadow: 0 4px 20px rgba(44,42,38,.07); transform: translateY(-2px); }
.r-card-thumb { height: 180px; overflow: hidden; background: var(--light); }
.r-card-thumb img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.r-card:hover .r-card-thumb img { transform: scale(1.04); }
.r-card-body { padding: 16px 18px 18px; }
.r-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.r-card h3 { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--dark); transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-card:hover h3 { color: var(--accent); }
.r-card-footer { display: flex; justify-content: space-between; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border); }
.r-card-date { font-size: 11px; color: var(--gray); }
.r-card-more { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Footer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#footer { background: #2C2A26; color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-about { font-size: 12px; color: #8A8480; line-height: 1.8; max-width: 280px; }
.footer-domain { font-family: var(--display); font-size: 11px; color: #5A5650; margin-top: 8px; letter-spacing: .06em; }
.footer-col h4 { font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5A5650; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: #B0ACA5; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #3D3A35; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 11px; color: #5A5650; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11px; color: #5A5650; transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* ── Back to top ── */
#back-top {
  position: fixed; bottom: 28px; right: 24px; z-index: 40;
  width: 44px; height: 44px; background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  transform: translateY(8px);
}
#back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top svg { width: 16px; height: 16px; stroke: #fff; }
#back-top:hover { background: #4A4640; }



/* ── 基本（PC）：横並びレイアウト ── */
.logo-wrap-custom {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.logo-main-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.logo-wrap-custom .logo-wordmark {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.logo-wrap-custom .logo-text-sub {
  font-size: 9px;
  color: var(--gray);
  letter-spacing: .14em;
  white-space: nowrap;
  margin-top: 0;
}

/* サブタイトル（PC時は横並び） */
.header-inline-subtitle {
  font-size: 11px;
  color: var(--mid);
  font-weight: 500;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  line-height: 1.2;
}

/* ── スマホ時（例: 680px以下）：ロゴ縮小 ＆ 2行レイアウトへ切り替え ── */
@media (max-width: 680px) {
  .logo-wrap-custom {
    flex-direction: column; /* 2行に配置 */
    align-items: flex-start;
    gap: 3px; /* 行間の隙間を狭く調整 */
  }

  .logo-main-group {
    gap: 8px;
    align-items: baseline;
  }

  /* ▼ スマホ時：製造オーライのロゴを少し小さくして幅を節約 */
  .logo-wrap-custom .lw-seizo {
    font-size: 15px !important;
  }
  .logo-wrap-custom .lw-allright {
    font-size: 18px !important;
  }

  /* スマホ時：ドメイン名も少し小さくしてバランス調整 */
  .logo-wrap-custom .logo-text-sub {
    font-size: 8px;
  }

  /* 2行目のサブタイトル（区切り線を消し、文字サイズを最適化） */
  .header-inline-subtitle {
    font-size: 9px;
    border-left: none;
    padding-left: 0;
    color: var(--gray);
    line-height: 1.1;
  