
/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: #2b2b2b;
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.03em;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a4b8c;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* =========================================
   LAYOUT CONTAINER
   ========================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: #1c1c1c;
  color: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #c8a96a;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
}

.site-logo span {
  color: #c8a96a;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  flex-wrap: wrap;
}

.global-nav a {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.global-nav a:hover {
  border-bottom-color: #c8a96a;
  opacity: 1;
}

/* ハンバーガーボタン（スマホ時のみ表示） */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.hamburger span {
  display: block;
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 24px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

/* =========================================
   HERO / KEY VISUAL
   ========================================= */
.hero {
  position: relative;
  height: 320px;/*420px*/
  background: url("../img/common/hiro.jpg") center/cover no-repeat,
              #333;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.0.5) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.hero__label {
  display: inline-block;
  padding: 4px 14px;
  background: #c8a96a;
  color: #1c1c1c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: #fff;
}

.hero__meta {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
  color: #fff;
}

/* =========================================
   MAIN / SECTIONS
   ========================================= */
main {
  padding: 60px 0;
}

.section {
  margin-bottom: 80px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: #1c1c1c;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

/* =========================================
   HEADINGS SAMPLE
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.5;
  color: #1c1c1c;
}

.h1-sample {
  font-size: 2.25rem;
  padding-bottom: 16px;
  border-bottom: 3px solid #1c1c1c;
  margin-bottom: 24px;
}

.h2-sample {
  font-size: 1.75rem;
  padding: 12px 0 12px 20px;
  border-left: 6px solid #c8a96a;
  background: #f0ede6;
  margin: 40px 0 20px;
}

.h3-sample {
  font-size: 1.35rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
  margin: 32px 0 16px;
  position: relative;
}

.h3-sample::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #c8a96a;
}

.h4-sample {
  font-size: 1.15rem;
  padding-left: 14px;
  border-left: 4px solid #1c1c1c;
  margin: 24px 0 12px;
}

.h5-sample {
  font-size: 1.05rem;
  color: #555;
  margin: 20px 0 10px;
}

.h5-sample::before {
  content: "■ ";
  color: #c8a96a;
}

/* =========================================
   TEXT DECORATION
   ========================================= */
.lead-text {
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
  margin-bottom: 24px;
}

p {
  margin-bottom: 1.5em;
}

.text-marker {
  background: linear-gradient(transparent 60%, #ffe58a 60%);
  padding: 0 2px;
  font-weight: 700;
}

.text-strong {
  color: #c8382e;
  font-weight: 700;
}

.text-underline {
  text-decoration: underline;
  text-decoration-color: #c8a96a;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-note {
  font-size: 0.85rem;
  color: #777;
}

.box-info {
  background: #f0f5fa;
  border-left: 4px solid #1a4b8c;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 2px;
}

.box-info__title {
  font-weight: 700;
  color: #1a4b8c;
  margin-bottom: 8px;
}

.box-warning {
  background: #fdf3e8;
  border-left: 4px solid #d67a2c;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 2px;
}

.box-warning__title {
  font-weight: 700;
  color: #d67a2c;
  margin-bottom: 8px;
}

.box-quote {
  position: relative;
  background: #f6f5f2;
  padding: 28px 32px;
  margin: 28px 0;
  font-style: italic;
  color: #555;
  border-radius: 2px;
}

.box-quote::before {
  content: "\201C";
  position: absolute;
  top: -4px;
  left: 14px;
  font-size: 4rem;
  color: #c8a96a;
  font-family: Georgia, serif;
  line-height: 1;
}

.box-quote cite {
  display: block;
  margin-top: 12px;
  text-align: right;
  font-size: 0.85rem;
  color: #888;
  font-style: normal;
}

/* =========================================
   LISTS
   ========================================= */
.list-check {
  list-style: none;
  margin: 20px 0;
}

.list-check li {
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed #ddd;
  position: relative;
}

.list-check li::before {
  content: "\2714";
  position: absolute;
  left: 4px;
  top: 10px;
  color: #c8a96a;
  font-weight: 700;
}

.list-number {
  counter-reset: num;
  list-style: none;
  margin: 20px 0;
}

.list-number li {
  counter-increment: num;
  padding: 10px 0 10px 44px;
  position: relative;
  margin-bottom: 8px;
}

.list-number li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: #1c1c1c;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 0.85rem;
  font-weight: 700;
}

.list-disc {
  margin: 20px 0 20px 24px;
}

.list-disc li {
  margin-bottom: 8px;
}

/* =========================================
   TABLE
   ========================================= */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.table-basic {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

.table-basic th,
.table-basic td {
  padding: 14px 16px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.table-basic thead th {
  background: #1c1c1c;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.table-basic tbody th {
  background: #f0ede6;
  width: 30%;
  font-weight: 700;
}

.table-basic tbody tr:nth-child(even) td {
  background: #fafafa;
}

/* =========================================
   ARTICLE CARDS
   ========================================= */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card__thumb {
  overflow: hidden;
  background: #eee;
}

.card__thumb img {
  width: 100%;
  object-fit: cover;
}

.card__body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  display: inline-block;
  font-size: 0.75rem;
  color: #c8a96a;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}

.card__title {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #1c1c1c;
}

.card__excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card__meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

/* =========================================
   WRITER PROFILE
   ========================================= */
.writer {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 28px;
  align-items: center;
  margin: 24px 0;
  padding: 28px;
  border-radius: 2px;
}

.writer--fill {
  background: #f0ede6;
}

.writer--outline {
  background: #fff;
  border: 2px solid #1c1c1c;
}

.writer__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: #ddd;
  max-width: 220px;
  justify-self: center;
}

.writer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writer__role {
  display: inline-block;
  padding: 3px 12px;
  background: #c8a96a;
  color: #1c1c1c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.writer--outline .writer__role {
  background: #1c1c1c;
  color: #fff;
}

.writer__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1c1c1c;
  line-height: 1.4;
}

.writer__name small {
  display: block;
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.writer__text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #444;
  margin-top: 12px;
}

.writer__sns {
  list-style: none;
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.8rem;
}

.writer__sns a {
  color: #1a4b8c;
  letter-spacing: 0.05em;
}

/* =========================================
   GRID LAYOUTS (1 / 2 / 3 COLUMN)
   ========================================= */
.grid {
  display: grid;
  gap: 28px;
}

.grid-1col {
  grid-template-columns: 1fr;
}

.grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3col {
  grid-template-columns: repeat(3, 1fr);
}

/* 1カラムメインレイアウト */
.layout-main-side {
  display: block;
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin: 0 8px;
  color: #bbb;
}

.breadcrumb a {
  color: #1a4b8c;
}

.breadcrumb li[aria-current="page"] {
  color: #999;
}

/* =========================================
   TABLE OF CONTENTS
   ========================================= */
.toc {
  background: #f6f5f2;
  border: 1px solid #e6e1d6;
  padding: 24px 28px;
  margin: 48px 0;
  border-radius: 2px;
}

.toc__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #1c1c1c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #c8a96a;
}

.toc ol {
  counter-reset: toc;
  list-style: none;
}

.toc > ol > li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px dashed #d8d3c6;
  font-size: 0.95rem;
}

.toc > ol > li:last-child {
  border-bottom: none;
}

.toc > ol > li::before {
  content: counter(toc, decimal-leading-zero);
  color: #c8a96a;
  font-weight: 700;
  margin-right: 10px;
}

.toc a {
  color: #2b2b2b;
}

.toc a:hover {
  color: #c8a96a;
  opacity: 1;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar-widget {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid #1c1c1c;
  letter-spacing: 0.05em;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.9rem;
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}

.btn-primary {
  background: #1c1c1c;
  color: #fff;
}

.btn-primary:hover {
  background: #c8a96a;
  color: #1c1c1c;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #1c1c1c;
  border: 2px solid #1c1c1c;
}

.btn-outline:hover {
  background: #1c1c1c;
  color: #fff;
  opacity: 1;
}

.btn-center-wrap {
  text-align: center;
  margin: 32px 0;
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: #1c1c1c;
  color: #fff;
  border: 2px solid #c8a96a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #c8a96a;
  color: #1c1c1c;
  opacity: 1;
}

.back-to-top__arrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 4px;
}

.back-to-top__label {
  position: absolute;
  bottom: -18px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #666;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .back-to-top__label {
    display: none;
  }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #1c1c1c;
  color: #ccc;
  padding: 48px 0 20px;
  margin-top: 60px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #444;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  padding: 6px 0;
  font-size: 0.85rem;
}

.footer-col a {
  color: #ccc;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #888;
  letter-spacing: 0.08em;
}



/* =========================================
   Margin/Padding
   ========================================= */
.m-0 { margin: 0px; }
.m-8 { margin: 8px; }
.m-16 { margin: 16px; }
.m-32 { margin: 32px; }
.m-48 { margin: 48px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.p-0 { padding: 0px; }
.p-8 { padding: 8px; }
.p-16 { padding: 16px; }
.p-32 { padding: 32px; }
.p-48 { padding: 48px; }

.pt-8 { padding-top: 8px; }
.pt-16 { padding-top: 16px; }
.pt-32 { padding-top: 32px; }
.pt-48 { padding-top: 48px; }

.pb-8 { padding-bottom: 8px; }
.pb-16 { padding-bottom: 16px; }
.pb-32 { padding-bottom: 32px; }
.pb-48 { padding-bottom: 48px; }


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 320px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  /* スマホ：サイト名 + ハンバーガー */
  .site-header {
    padding: 14px 0;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-logo {
    font-size: 1.15rem;
  }

  .hamburger {
    display: block;
  }

  /* ドロップダウンメニュー */
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c1c1c;
    border-top: 1px solid #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }

  .site-header {
    position: relative;
  }

  .global-nav.is-open {
    max-height: 500px;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .global-nav li {
    border-bottom: 1px solid #333;
  }

  .global-nav li:last-child {
    border-bottom: none;
  }

  .global-nav a {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
  }

  main {
    padding: 40px 0;
  }

  .section {
    margin-bottom: 56px;
  }

  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
  }

  /* 1カラム横並びカード → 縦積み */
  .card-row {
    flex-direction: column !important;
  }

  .card-row .card__thumb {
    flex: none !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .h1-sample { font-size: 1.6rem; }
  .h2-sample { font-size: 1.35rem; }
  .h3-sample { font-size: 1.15rem; }

  .hero {
    height: 260px;
  }

  .box-info,
  .box-warning,
  .box-quote {
    padding: 16px 18px;
  }

  .toc {
    padding: 20px 18px;
  }

  /* ライター紹介：スマホでは縦積み（写真 → 肩書き → 名前 → テキスト） */
  .writer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
    text-align: center;
  }

  .writer__photo {
    max-width: 140px;
    margin: 0 auto;
  }

  .writer__sns {
    justify-content: center;
  }
}
