/* Base tokens */
:root {
  --text-caption: clamp(1.4rem, 2vw, 1.5rem);
  --text-body: clamp(1.5rem, 2vw, 1.8rem);
  --text-sub: clamp(1.5rem, 2vw, 2.1rem);
  --text-title: clamp(2.5rem, 4vw, 3.8rem);
  --text-hero: clamp(2rem, 2vw, 3.5rem);
}

/* Gallery Page Section */
.photo-gallery {
  padding: 0px 8vw;
  margin: 0 auto;
}
.photo-gallery-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media(max-width:767px) {
  .photo-gallery {
    padding: 0px 3vw;
    margin: 0 auto;
  }
  .photo-gallery-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.gallery-item {
  margin: 0;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}


/* PAGE BLOG BANNER */
.blog-banner {
  position: relative;
  background: url("../images/magazine-bg.jpg") center / cover no-repeat;
  min-height: clamp(240px, 40vw, 350px);
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  padding-inline: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.3);
}

.banner-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 70rem);
}

.banner-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.25;
}

.banner-lead {
  margin-top: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.75;
}


/* All Page Title */
.sub-page {
  text-align: center;
  padding-block: clamp(3rem, 5vw, 5rem);
  padding-inline: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.page__title {
  font-family: "DM Sans", sans-serif;
  font-size: var(--text-title);
  font-weight: 400;
  color: var(--dark-red);
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.page__subtitle {
  font-family: "Utsukushi Mincho", serif;
  font-size: var(--text-sub);
  line-height: 1.5;
  color: #A56139;
}


/* Kodawari Page Section */
.kodawari,
.concept,
.promise,
.zegna-inner,
.concept-cols {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.kodawari {
  text-align: center;
}

.kodawari-info p,
.concept-lead p,
.concept-desc,
.zegna-lead p,
.zegna-lead ul {
  font-family: "Gothic A1", sans-serif;
  font-size: var(--text-body);
  line-height: 2.8;
}

.kodawari-info p,
.concept-lead p {
  max-width: 70ch;
  margin-inline: auto;
  padding-bottom: 15px;
}

.kodawari-info img {
  width: 100%;
  max-width: 655px;
  margin-inline: auto;
}

.kodawari-info figcaption {
  margin-top: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  font-family: "Utsukushi Mincho", serif;
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--txt-tints);
}

.concept {
  padding-top: clamp(4rem, 1.2rem + 4vw, 5rem);
  text-align: center;
}

.concept-title {
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(2.3rem, 3.5vw, 3.8rem);
  color: #A56139;
  line-height: 1.2;
}

.concept-lead {
  margin-block: clamp(3.5rem, 1rem + 2vw, 4rem) clamp(4rem, 1.2rem + 4vw, 7rem);
}

.concept-inner {
  padding-inline: clamp(1rem, 4vw, 7rem);
}

.concept-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: center;
  gap: clamp(1.25rem, 2vw, 3rem);
}

.concept-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.concept-text {
  text-align: center;
}

.concept-heading {
  display: inline-block;
  padding-bottom: 0.25em;
  border-bottom: 1px dashed #A56139;
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.375rem);
  line-height: 1.4;
}

.concept-heading span {
  margin-top: 0.35rem;
  font-size: var(--text-caption);
  line-height: 1.5;
}

.concept-desc {
  text-align: start;
  margin-top: clamp(1rem, 0.8rem + 1vw, 3rem);
}

.concept-desc em,
.zegna-lead em,
.promise-lead em {
  font-style: italic;
}

.zegna-lead em.highlight {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
}

.zegna {
  padding-block: clamp(8rem, 12vw, 12rem);
}

.zegna-title {
  display: grid;
  place-items: center;
  min-height: clamp(72px, 10vw, 90px);
  border-top: 1px dashed #A56139;
  border-bottom: 1px dashed #A56139;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.6rem, 1rem + 1.2vw, 3rem);
  letter-spacing: 0.15em;
  text-align: center;
  line-height: 1.4;
}

.zegna-photo {
  margin-top: clamp(2rem, 0.8rem + 1vw, 1.5rem);
}

.zegna-photo img {
  width: 100%;
  aspect-ratio: 3 / 1;
}

.zegna-lead {
  padding: clamp(1.5rem, 2vw, 1.8rem);
}

.zegna-lead ul {
  list-style: lower-greek;
  margin-inline-start: 1.25em;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
}

.photo-grid img {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.promise {
  text-align: center;
  padding-bottom: clamp(6rem, 2rem + 6vw, 8rem);
}

.promise-lead {
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.promise-lead p {
  margin: 0 auto;
  max-width: 50ch;
  font-family: "Gothic A1", sans-serif;
  font-size: var(--text-sub);
  line-height: 2.8;
}

.promise-images {
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.img-box img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.img-box figcaption {
  margin-top: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);
  text-align: center;
  font-family: "Utsukushi Mincho", serif;
  font-size: var(--text-caption);
  line-height: 1.2;
  color: var(--txt-tints);
}


/* Order Page Section */
.order-info {
  text-align: center;
  padding-inline: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.info-lead p,
.fabric-lead p,
.product-lead p,
.item .desc,
.fabric-content .description {
  font-family: "Gothic A1", sans-serif;
  font-size: var(--text-body);
  line-height: 2.8;
}

.info-lead p,
.fabric-lead p,
.product-lead p {
  max-width: 70ch;
  margin-inline: auto;
  padding-bottom: 1.5rem;
}

/* 共通タイトル帯 */
.design-title,
.fabric-title,
.product-title {
  display: grid;
  place-items: center;
  min-height: clamp(72px, 10vw, 90px);
  text-align: center;
  border-top: 1px dashed #A56139;
  border-bottom: 1px dashed #A56139;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.1rem, 2vw, 3rem);
  line-height: 1.4;
  letter-spacing: clamp(0.08em, 0.04em + 0.2vw, 0.15em);
}

/* Design */
.design {
  padding-block: clamp(6rem, 8vw, 10rem) clamp(6rem, 10vw, 10rem);
}

.design-inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.design-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 655px;
  margin: clamp(2rem, 0.8rem + 1vw, 2rem) auto clamp(1.5rem, 1rem + 2vw, 3rem);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.design-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.design-list {
  display: grid;
  gap: clamp(3rem, 4vw, 3rem);
}

.design-list .item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  position: relative;
}

.item .label {
  align-self: stretch;
  display: grid;
  place-items: start;
  padding: clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  border-inline-end: 1px dashed #A56139;
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.8rem, 3vw, 2.1rem);
  line-height: 1.5;
}

.item .desc {
  min-width: 0;
  line-height: 2.3;
  text-align: start;
}

/* Fabric */
.fabric {
  padding-bottom: clamp(8rem, 12vw, 12rem);
}

.fabric-inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.fabric-images {
  margin-block: clamp(2rem, 0.8rem + 1vw, 2rem) clamp(1.5rem, 1rem + 2vw, 3rem);
}

.fabric-photo img {
  width: 100%;
  aspect-ratio: 3 / 1;
}

.fabric-lead {
  text-align: center;
}

.fabric-lead em,
.product-lead em {
  font-style: italic;
}

.fabric-lists {
  margin-top: clamp(4rem, 6vw, 8rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.fabric-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.fabric-image {
  width: auto;
  box-sizing: border-box;
}

.fabric-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.fabric-content {
  min-width: 0;
}

.fabric-content .title {
  display: inline-block;
  border-bottom: 1px dashed #A56139;
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.8;
}

.fabric-content .description {
  padding-block: clamp(2rem, 0.8rem + 1vw, 3rem);
  line-height: 2.8;
  text-align: start;
}

.fabric-content .price {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1vw, 1.25rem);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.3rem, 2.5vw, 3rem);
  line-height: 1.4;
}

.fabric-content .price small {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.2rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: #A56139;
}


/* Product */
.product {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.product-inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.product-image {
  text-align: center;
  margin-block: clamp(2rem, 0.8rem + 1vw, 2rem) clamp(1.5rem, 1rem + 2vw, 3rem);
}

.product-photo img {
  width: 100%;
  max-width: 655px;
  margin-inline: auto;
}

.product-lead {
  text-align: center;
}

.product-lead h4 {
  padding-bottom: clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.5rem, 3vw, 3rem);
  line-height: 2;
  color: #A56139;
}


/* Reform Page Section */
.reform-info {
  text-align: center;
  padding-inline: var(--space-md);
}

/* -----------------------------
   Reform Content
------------------------------ */
.reform-content {
  padding-block: clamp(4rem, 8vw, 8rem) clamp(4rem, 10vw, 10rem);
}

.recontent-title,
.reflow-title {
  display: grid;
  place-items: center;
  min-height: clamp(72px, 10vw, 90px);
  text-align: center;
  border-top: 1px dashed #A56139;
  border-bottom: 1px dashed #A56139;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.1rem, 2vw, 3rem);
  line-height: 1.4;
  letter-spacing: clamp(0.08em, 0.04em + 0.2vw, 0.15em);
}

.recontent-inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.recontent-heading {
  text-align: center;
  padding-block: clamp(3rem, 5vw, 5rem) clamp(5rem, 7vw, 7rem);
}

.recontent-heading p,
.reflow-item .content p {
  font-family: "Gothic A1", sans-serif;
  font-size: var(--text-body);
  line-height: 2.8;
}

.recontent-heading p {
  max-width: 70ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* -----------------------------
   Option grid
------------------------------ */
.recontent-option {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.reoption-item {
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 3rem;
}

.reoption-illu {
  width: min(100%, 150px);
  margin-inline: auto;
}

.reoption-illu img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.reoption-illu figcaption {
  margin-top: clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(1.6rem, 0.95rem + 0.5vw, 1.8rem);
  line-height: 1.4;
}

/* -----------------------------
   Worry / Support
------------------------------ */
.recontent-worry {
  margin-block: clamp(5rem, 8vw, 5rem);
}

.worry-text {
  text-align: center;
}

.worry-text h5 {
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.7rem, 1.1rem + 1vw, 2.3rem);
  line-height: 3;
  color: #A56139;
}

.recontent-support {
  text-align: center;
}

.recontent-support p {
  margin-inline: auto;
  max-width: 40ch;
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 2.8;
}

/* -----------------------------
   Flow
------------------------------ */
.reflow-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px dashed #A56139;
}

.reflow-item .step {
  display: grid;
  align-content: center;
  justify-items: end;
  padding: clamp(1rem, 2vw, 1.875rem) clamp(1rem, 4vw, 3.125rem);
  text-align: right;
  border-inline-end: 1px dashed #A56139;
}

.reflow-item .step small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.2rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.4;
}

.reflow-item .step span {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.5rem, 1.2rem + 2vw, 2.25rem);
  line-height: 1.1;
}

.reflow-item .content {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.875rem) clamp(1rem, 4vw, 3.125rem);
}

.reflow-item .content h4 {
  margin-bottom: clamp(1rem, 0.4rem + 0.4vw, 0.75rem);
  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(2.2rem, 1.1rem + 1vw, 2rem);
  line-height: 1.3;
}

.reflow-price {
  text-align: center;
  margin-top: clamp(8rem, 12vw, 12rem);
  margin-bottom: clamp(6rem, 10vw, 8rem);
}

.price-link {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 1.2rem + 2.5vw, 5rem);
  line-height: 1.5;
  color: #A56139;
  text-decoration: underline dashed #A56139;
  text-underline-position: under;
  text-underline-offset: 0.12em;
  position: relative;
}

.price-note {
  margin-top: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(1.25rem, 0.78rem + 0.2vw, 2rem);
  line-height: 1.5;
  font-weight: normal;
}



/* Repair Costs Section */
.price-content {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

.tab-button {
  min-height: 35px;
  padding: 0.55em 1em;
  border: 1px solid #251B0F;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;

  font-family: "Utsukushi Mincho", serif;
  font-size: clamp(1.3rem, 0.95rem + 0.4vw, 1.3rem);
  line-height: 1.4;
  text-align: center;
}

.tab-button.is-active {
  font-weight: bold;
  color: #7D0809;
  border: 1px solid #7D0809;
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
}

/* Table wrapper */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Table */
table {
  width: 100%;
  min-width: stretch;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border: 1px dashed #A56139;
  padding: clamp(0.625rem, 0.55rem + 0.4vw, 0.875rem);
  vertical-align: middle;
}

th {
  background: #E6DDC3;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.8vw, 1.4375rem);
  line-height: 1.4;
  text-align: center;
}

.repair-location {
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(1rem, 0.95rem + 1vw, 3rem);
  line-height: 1.5;
  text-align: center;
}

.repair-feature {
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(1rem, 0.95rem + 1vw, 2rem);
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}

.repair-price {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.4rem, 0.95rem + 1vw, 3rem);
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.repair-price span {
  font-size: clamp(0.75rem, 0.72rem + 0.2vw, 0.8125rem);
  line-height: 1.4;
}

.repair-price.is-extra {
  color: #7D0809;
}

/* -----------------------------
   Caption / note
------------------------------ */
.table-caption {
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
  padding-bottom: clamp(2rem, 6vw, 5rem);
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(1.2rem, 0.78rem + 0.2vw, 1.4rem);
  line-height: 1.7;
  text-align: center;
  color: rgb(37 27 15 / 0.6);
}



/*Responsive*/
@media (max-width: 50rem) {
  .concept-text {
    text-align: left;
  }

  .info-lead p,
  .fabric-lead p,
  .product-lead p,
  .item .desc,
  .fabric-content .description {
    line-height: 2.5;
  }

  .kodawari-info p,
  .concept-lead p,
  .concept-desc,
  .zegna-lead p,
  .zegna-lead ul {
    line-height: 2.5;
  }

  .recontent-heading p,
  .reflow-item .content p {
    line-height: 2.5;
  }

  .design-list .item {
    grid-template-columns: auto;
    
  }

  .item .label {
    border-inline-end: none;
    color: #A56139;
    text-align: center;
    place-items: center;
  }

  .reflow-inner {
    width: min(100% - 2rem, 960px);
    margin-inline: auto;
  }

  .reflow-item {
    grid-template-columns: auto;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    border-bottom: none;
  }

  .reflow-item .step {
    text-align: left;
    text-align: center;
    justify-items: start;
    border-inline-end: none;
    padding: 0;
  }

  .reflow-item .content {
    padding: 0;
  }


}
@media (max-width: 763px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .promise-images {
    grid-template-columns: 1fr;
    padding-inline: clamp(1rem, 4vw, 7rem);
  }
  .recontent-option {
    grid-template-columns: repeat(2, 1fr);
  }
  .reoption-illu img {
    max-width: 100px;
  }
  .reflow-item .content h4 {
    color: #A56139;
  }
  .reflow-item .content p {
    font-size: 16px;
    line-height: 2.2;
  }
}