/* 共通のレイアウト設定 */
.layout-width {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 60px;
}

/* 他ページに合わせた設定 */
.heading-en {
  margin: 80px 0 20px 0;
  text-align: center;
  font-size: 3.6rem;
}
.heading-ja {
  text-align: center;
  margin-bottom: 100px;
}
.column-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}
.date {
  margin-top: 20px;
}

/* イントロ部分 アウトロ部分*/
.column-intro,
.column-outro {
  padding-inline: 60px;
  padding-block: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.points-list {
  padding: 20px;
  border-left: 4px solid #6a3907;
  background: #f4ecdd60;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 1.5px;
  color: #6a3907;
}
.points-list ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.column-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 1.5px;
}
.column-text span {
  color: #6a3907;
  font-weight: 600;
  background: linear-gradient(transparent 70%, #ffa20060 70%);
}
.column-index {
  padding: 12px 20px 20px;
  border: 1px solid #6a390730;
  border-top: 4px solid #ffa200;
  border-radius: 8px;
}
.column-index h3 {
  font-size: 20px;
  color: #ffa200;
  font-weight: 700;
  margin-bottom: 12px;
}
.column-index ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
  row-gap: 10px;
  counter-reset: column-index;
}
.column-index ol li {
  border-bottom: 1px dotted #6a390790;
  display: flex;
  gap: 10px;
  padding-block: 3px;
  padding-inline: 5px;
  align-items: center;
  counter-increment: column-index;
}
.column-index ol li .arrow-orange {
  margin-left: auto;
}
.column-index ol li a {
  font-size: 14px;
  font-weight: 400;
}
.column-index ol li::before {
  content: counter(column-index) ".";
  color: #6a3907;
  font-weight: 500;
}

/* 各チャプター */
.column-chapter {
  padding-block: 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  scroll-margin-top: 100px; /* 目次ジャンプ時に固定ヘッダー(100px)分オフセット */
}
.column-chapter h3 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.column-chapter h3 .column-chapter-number {
  color: #ffa200;
  font-size: 42px;
  font-weight: 400;
  line-height: 50px;
  white-space: nowrap;
}
.column-chapter h3 .column-chapter-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 50px;
}
.column-chapter-title-line {
  width: 100%;
  display: flex;
}
.column-chapter-title-line .line-brown-dark {
  height: 2px;
  width: 6%;
  background-color: #6a3907;
}
.column-chapter-title-line .line-brown-light {
  height: 2px;
  width: 94%;
  background-color: #6a390730;
}

/* カードリストレイアウト */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: card-num;
}
.card-list-row {
  display: flex;
  border-radius: 8px;
  border: 1px solid #6a390730;
  overflow: hidden;
  counter-increment: card-num;
}
.card-list-row::before {
  content: counter(card-num, decimal-leading-zero);
  min-width: 76px;
  font-size: 26px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #6a390760;
  background: #f4ecdd;
  color: #6a3907;
}
.card-list-text {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-list-text h4 {
  font-size: 20px;
  font-weight: 500;
}
/* ギャラリーレイアウト */
.column-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* 埋まらない行（1枚含む）は中央寄せ */
}
.column-gallery .item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3列（gap20px×2を差し引き）。伸縮させず固定幅 */
  aspect-ratio: 4 / 3;
  border: 1px solid lightgray;
  overflow: hidden;
  position: relative;
  cursor: zoom-in; /* 拡大できることを示すカーソル */
}
.column-gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}
.column-gallery .item:hover img {
  transform: scale(1.02); /* ホバーで画像を少し拡大 */
  opacity: 1; /* 共通CSS(a img:hover{opacity:.5})の半透明化を打ち消す */
}
.column-gallery .item a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.column-gallery .item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none; /* クリックを下のリンクに通す */
}
.column-gallery .item:hover::after {
  background: rgba(0, 0, 0, 0.06); /* ホバーで軽く暗転 */
}
.gallery-comment {
  text-align: center;
}
/* 表レイアウト */
.column-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid #6a390730;
}
.column-table table {
  width: fit-content;
  min-width: 100%;
  border-collapse: collapse;
}
.column-table th,
.column-table td {
  white-space: nowrap;
  font-size: 14px;
  padding: 12px 16px;
}
.column-table th {
  background: #f4ecdd;
  color: #6a3907;
  text-align: center;
  font-weight: 700;
  border-bottom: 2px solid #6a390760;
}
.column-table th:first-child {
  text-align: left;
  border-right: 1px solid #6a390730;
}
.column-table td {
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #6a390730;
}
.column-table td:first-child {
  background: #f4ecdd60;
  text-align: left;
  border-right: 1px solid #6a390730;
}
.mark-main,
.mark-ok,
.mark-maybe,
.mark-no {
  font-size: 20px;
}
.table-comment-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.table-mark-comment {
  display: flex;
  align-items: center;
  gap: 16px;
}
.column-heading {
  width: 100%;
  padding: 10px;
  padding-left: 20px;
  color: #6a3907;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  border-left: 4px solid #6a3907;
  border-bottom: 1px dotted #6a390760;
}

/* 情報カード */
.info-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #6a390730;
}
.info-card-top {
  display: flex;
  height: 100px;
  border-bottom: 1px solid #6a390730;
}
.info-card-top img {
  width: 220px;
  object-fit: contain;
  border-right: 1px solid #6a390730;
}
.info-card-top .card-title {
  flex: 1;
  padding: 18px 24px;
  display: flex;
  align-items: center;
}
.info-card-top .card-title > div {
  width: 100%;
}
.info-card-top .card-title h5 {
  font-size: 20px;
  font-weight: 700;
}
.info-card-top .card-title p {
  font-size: 13px;
}
.info-card-middle {
  min-height: 100px;
  display: flex;
  background: #f4ecdd60;
  border-bottom: 1px solid #6a390730;
}
.info-card-middle-inner {
  flex: 1;
  padding: 16px;
}
.info-card-middle-inner {
  border-right: 1px solid #6a390730;
}
.info-card-middle-inner:last-child {
  border-right: none;
}
.info-card-middle-inner-heading {
  color: #6a3907;
  font-size: 11px;
}
.info-card-middle-inner-text {
  font-size: 15px;
  font-weight: 700;
}
.info-card-middle-inner-text span {
  color: #6a3907;
  font-size: 18px;
}
.info-card-bottom {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-card-bottom .info-card-text {
  font-size: 14px;
}
.info-card-bottom .info-card-detail-list {
  border-radius: 8px;
  border: 1px solid #6a390730;
  background: #f4ecdd60;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 36px;
  font-size: 15px;
}
.info-card-bottom .info-card-detail-list dt {
  color: #6a3907;
  font-weight: 600;
  max-width: 180px;
}
.info-card-comment {
  color: #6a3907;
  background-color: #ffa20030;
  padding: 12px;
  border-left: 4px solid #ffa20060;
}
.column-contact {
  padding-inline: 60px;
  padding-block: 40px;
}
.column-contact-card {
  width: 100%;
  background: #f4ecdd;
  padding: 32px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.column-contact-card-italic,
.column-contact-card-bold {
  color: #6a3907;
}
.column-contact-card-italic {
  font-size: 14.5px;
  font-style: italic;
}
.column-contact-card-bold {
  font-size: 16px;
  font-weight: 600;
}
.column-contact-card-checklist {
  background-color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.column-contact-card-checklist li {
  position: relative;
  padding-left: 28px;
}
.column-contact-card-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0px;
  top: 0;
  color: #6a3907;
  font-weight: 700;
}
.contact-link-btn {
  background-color: #ffa200;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  width: fit-content;
  border-radius: 8px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-link-btn span {
  margin-bottom: 2px;
}
.arrow {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 12px;
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 8.4px;
  height: 1px;
  border-radius: 9999px;
  background-color: #ffffff;
  transform-origin: calc(100% - 0.5px) 50%;
}

.arrow::before {
  transform: rotate(47.75deg);
}

.arrow::after {
  transform: rotate(-47.75deg);
}
.arrow-orange {
  position: relative;
  display: inline-block;
  width: 5px;
  height: 10px;
}

.arrow-orange::before,
.arrow-orange::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 7px;
  height: 1px;
  border-radius: 9999px;
  background-color: #ffa200;
  transform-origin: calc(100% - 0.5px) 50%;
}

.arrow-orange::before {
  transform: rotate(48.35deg);
}

.arrow-orange::after {
  transform: rotate(-48.35deg);
}

@media (max-width: 999px) {
  /* 999px以下で適用 */
  .column-chapter {
    scroll-margin-top: 80px; /* ≤1000pxはヘッダー80px */
  }
  .layout-width {
    padding-inline: 30px;
  }
  .column-intro,
  .column-outro {
    padding-inline: 30px;
  }
  .column-chapter {
    gap: 20px;
  }
  .column-contact {
    padding-inline: 30px;
  }
  .column-index ol {
    grid-template-columns: 1fr;
  }
  .column-gallery .item {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}
@media (max-width: 767px) {
  /* 767px以下で適用 */
  .info-card-middle {
    flex-direction: column;
  }
  .info-card-middle-inner {
    border-right: none;
    border-bottom: 1px solid #6a390730;
  }
  .info-card-middle-inner:last-child {
    border-bottom: none;
  }
  .info-card-top {
    flex-direction: column-reverse;
    height: auto;
  }
  .info-card-top img {
    width: 100%;
    aspect-ratio: 11 / 5;
  }
  .info-card-top img {
    border-top: 1px solid #6a390730;
    border-bottom: none;
  }
}
@media (max-width: 575px) {
  /* 575px以下で適用 */
  .column-intro,
  .column-outro {
    padding-inline: 0;
  }
  .column-contact {
    padding-inline: 0;
  }
  .column-gallery {
    flex-direction: column;
  }
  .info-card-bottom .info-card-detail-list {
    grid-template-columns: 1fr;
  }
  .info-card-bottom .info-card-detail-list dd {
    border-bottom: 1px solid #6a390730;
  }
  .info-card-bottom .info-card-detail-list dd:last-child {
    border-bottom: none;
  }
}
