@charset "utf-8";

/* ── Page background ── */
#contents {
  background: #d7b98e26;
}

/* ── Hero ── */
section.hero {
  background: #d7b98e26;
  padding-bottom: 0;
}

section.hero .h-contents {
  display: none;
}

section.hero .box-inner {
  max-width: 860px;
  margin: 0 auto;
}

section.hero .breadcrumb {
  font-size: 0.8rem;
}

section.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
  margin: 2.4em 1.6em 1.6em;
}

section.hero .box.trim-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 7 / 5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

section.hero .box.trim-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Article body container ── */
#main {
  display: block;
}

#main .box-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 64px;
}

.box-method-single {
  background: #fff;
  border-radius: 12px;
  padding: 48px 56px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ── Body text ── */
.box-method-single p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2em;
}

/* ── Headings ── */
#main .box-method-single h2.wp-block-heading,
#main.box-method-single h3.wp-block-heading,
#main .box-method-single h4.wp-block-heading {
  font-family: inherit;
}

.box-method-single h2.wp-block-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  background: #f0f7f3;
  border-left: 4px solid #5eac80;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  margin: 2.5em 0 1em;
  line-height: 1.5;
}

.box-method-single h2.wp-block-heading:first-child {
  margin-top: 0;
}

.box-method-single h3.wp-block-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid rgba(215, 185, 142, 0.6);
  padding-bottom: 6px;
  margin: 2em 0 0.8em;
}

.box-method-single h4.wp-block-heading {
  font-weight: 700;
  color: #444;
  border-left: 3px solid rgba(215, 185, 142, 0.5);
  padding-left: 10px;
  margin: 1.6em 0 0.6em;
}

/* ── Images ── */
.box-method-single figure.wp-block-image {
  margin: 1.6em 0;
}

.box-method-single figure.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(215, 185, 142, 0.5);
}

/* ── Divider ── */
.box-method-single hr.wp-block-separator {
  border: none;
  border-top: 2px dashed rgba(215, 185, 142, 0.5);
  margin: 2.5em 0;
}

/* ── Embed link block ── */
.box-method-single .wp-block-embed__wrapper a,
.box-method-single a[data-type="URL"] {
  background: #fff;
  border-radius: 6px;
  padding: 14px 20px;
  border: 1px solid #5eac80;
  margin: 1.2em 0;
  display: block;
  font-weight: 600;
  text-decoration: underline;
}

.box-method-single .wp-block-embed__wrapper a:hover,
.box-method-single a[data-type="URL"]:hover {
  background: #f0f7f3;
  text-decoration: none;
}

/* ── Table ── */
.box-method-single table {
  line-height: 1.6;
  border-collapse: collapse !important;
  width: 100%;
}

.box-method-single thead tr {
  background-color: #5eac80 !important;
  color: #fff !important;
}

.box-method-single th {
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.box-method-single tr:first-child th {
  color: white;
}

.box-method-single th[style*="#d8eeff"] {
  color: #333 !important;
}

.box-method-single td {
  font-size: 1rem !important;
  vertical-align: top;
  padding: 9px 14px !important;
  border: 1px solid rgba(215, 185, 142, 0.3) !important;
  line-height: 1.6;
  font-weight: normal;
  text-align: left;
}

.box-method-single tbody tr:nth-child(odd) td {
  background: #fff;
}

.box-method-single tbody tr:nth-child(even) td {
  background: #f9faf8;
}

.box-method-single tbody tr:hover td {
  background: #f0f7f3;
}

.box-method-single td a {
  color: #5eac80;
  text-decoration: none;
}

.box-method-single td a:hover {
  text-decoration: underline;
}


/* ── List page container width (interviewlist / methodlistlist) ── */
.method-list #main .box-inner {
  max-width: 1000px;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  section.hero h1 {
    font-size: 1.2rem;
  }

  .box-method-single {
    padding: 28px 20px;
  }
}