:root {
  --red: #e60012;
  --black: #111;
  --blue: #005bab;
  --gray: #f6f6f7;
  --line: #e5e7eb;
  --text: #222;
  --muted: #666;
}

.l-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px
}

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(230, 0, 18, .22);
  cursor: pointer
}

.c-button--dark {
  background: #111
}

.c-button--light {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  box-shadow: none
}

.top-hero {
  background: linear-gradient(110deg, #fff 0%, #fff 52%, #111 52%, #111 100%);
  border-bottom: 1px solid var(--line)
}

.top-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  padding: 58px 0
}

.top-hero__eyebrow {
  font-weight: 900;
  border-bottom: 3px solid var(--red);
  display: inline-block;
  margin-bottom: 16px
}

h1 {
  font-size: 58px;
  line-height: 1.5;
  margin: 0 0 18px;
  letter-spacing: -.04em
}

h1 strong {
  color: var(--red);
  display: block
}

.top-hero__lead {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 22px
}

.top-hero__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0
}

.top-hero__badge {
  display: grid;
  place-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 4px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06)
}

.top-hero__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.top-hero__mock {
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eee, #bbb);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22)
}

.top-hero__mock:before {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 12px
}

.top-hero__mock:nth-child(1) {
  grid-row: span 2;
  min-height: 330px;
  background: linear-gradient(135deg, #fafafa, #d9d9d9)
}

.top-hero__mock:nth-child(2) {
  background: linear-gradient(135deg, #222, #555)
}

.top-hero__mock:nth-child(3) {
  background: linear-gradient(135deg, #111, #3a3a3a)
}

.top-hero__mock:nth-child(4) {
  background: linear-gradient(135deg, #5a6b3c, #c0b082)
}

.page-section {
  padding: 70px 0
}

.page-section--muted {
  background: var(--gray)
}

.section-heading {
  text-align: center
}

.section-heading__title {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 1000;
  letter-spacing: -.03em
}

.section-heading__title:after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  border-radius: 99px;
  margin: 12px auto 0
}

.section-heading__text {
  color: var(--muted);
  font-weight: 700;
  margin: 0 auto 28px;
  max-width: 820px
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .05)
}

.summary-card h3 {
  margin: 0 0 8px;
  font-size: 18px
}

.summary-card .summary-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 1000;
  margin-bottom: 10px
}

.product-type-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.product-type-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .05)
}

.product-type-card[href] {
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease
}

.product-type-card[href]:hover,
.product-type-card[href]:focus-visible {
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(230, 0, 18, .12);
  transform: translateY(-2px);
  outline: none
}

.product-type-card__image {
  height: 122px;
  background: linear-gradient(135deg, #eee, #ccc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  color: #222
}

.product-type-card h3 {
  font-size: 16px;
  margin: 12px 14px 4px
}

.product-type-card p {
  font-size: 13px;
  color: #666;
  margin: 0 14px 16px
}

.calcBox {
  background: #fff;
  border: 3px solid #111;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .10)
}

.calcGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.field label {
  display: block;
  font-weight: 1000;
  margin-bottom: 6px
}

.inputWrap {
  display: flex;
  align-items: center;
  border: 2px solid #111;
  border-radius: 12px;
  background: #fff;
  overflow: hidden
}

.inputTag {
  background: #111;
  color: #fff;
  font-weight: 1000;
  padding: 11px 12px;
  min-width: 52px;
  text-align: center
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 0;
  font: inherit;
  font-weight: 800;
  background: #fff
}

select {
  border: 2px solid #111;
  border-radius: 12px
}

.unitNote {
  background: #fff4f4;
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 14px;
  font-weight: 900;
  margin: 0 0 18px
}

.result {
  margin-top: 18px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px
}

.resultTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: #fff
}

.resultTable th,
.resultTable td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left
}

.resultTable th {
  width: 190px;
  background: #f1f5f9
}

.warning {
  color: #c40000;
  font-weight: 1000
}

.quoteText {
  width: 100%;
  min-height: 150px;
  margin-top: 12px;
  border: 2px solid #111;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit
}

.pricePanel {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06)
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.tab {
  background: #fff;
  color: var(--blue);
  border: 2px solid #cfe0f7;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 1000;
  cursor: pointer
}

.tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.priceImage {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px
}

.masterWrap {
  margin-top: 24px;
  overflow: auto;
  border: 2px solid #111;
  border-radius: 16px;
  background: #fff
}

.masterTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px
}

.masterTable th,
.masterTable td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: right;
  white-space: nowrap
}

.masterTable th:first-child,
.masterTable td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 1000
}

.masterTable thead th {
  background: #111;
  color: #fff;
  text-align: center
}

.masterCaption {
  font-weight: 1000;
  margin: 20px 0 8px
}

.pottingPhotos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px
}

.pottingPhotos img {
  border-radius: 14px;
  border: 1px solid var(--line);
  height: 140px;
  width: 100%;
  object-fit: cover;
  background: #fff
}

.order-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px
}

.order-flow .summary-card {
  position: relative
}

.order-flow .summary-card__number {
  margin-right: 8px
}

.faq-list {
  max-width: 900px;
  margin: 0 auto
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 16px
}

summary {
  font-weight: 1000;
  cursor: pointer
}

.bottom-cta {
  background: var(--red);
  color: #fff;
  padding: 42px 0
}

.bottom-cta .l-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px
}

.small {
  font-size: 12px;
  color: #777
}

@media(max-width:900px) {
  .top-hero {
    background: #fff
  }

  .top-hero__grid {
    grid-template-columns: 1fr;
    padding: 42px 0
  }

  .top-hero__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px
  }

  .top-hero__mock:nth-child(1) {
    min-height: 260px
  }

  .top-hero__mock {
    min-height: 140px
  }

  h1 {
    font-size: 38px
  }

  .summary-grid,
  .product-type-grid,
  .use-case-grid,
  .order-flow {
    grid-template-columns: 1fr 1fr
  }

  .calcGrid {
    grid-template-columns: 1fr
  }

  .pottingPhotos {
    grid-template-columns: 1fr 1fr
  }

  .bottom-cta .l-container {
    display: block
  }

  body {
    padding-bottom: 56px
  }
}

@media(max-width:560px) {
  .l-container {
    padding: 0 16px
  }

  .summary-grid,
  .product-type-grid,
  .use-case-grid,
  .order-flow {
    grid-template-columns: 1fr
  }

  .section-heading__title {
    font-size: 28px
  }

  /* 見積もり結果テーブル：スマホでは「ラベルの下に値」の縦積みにする */
  .resultTable tr {
    display: grid
  }

  .resultTable th {
    width: auto;
    border-bottom: 0
  }

  .resultTable td {
    border-top: 0
  }
}

/* v21 image slot additions - approved v19/v20 logic untouched */
.top-hero__photo {
  min-height: 160px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
  background: #eee
}

.top-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.top-hero__photo .top-hero__photo-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 12px
}

.top-hero__photo:first-child {
  grid-row: span 2;
  min-height: 330px
}

.use-case-card__image {
  height: 170px;
  margin: -18px -18px 14px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #f1f1f1;
  border-bottom: 1px solid var(--line)
}

.use-case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.product-type-card--has-image .product-type-card__image {
  height: 128px;
  background: #f6f6f6;
  overflow: hidden
}

.product-type-card--has-image .product-type-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.imageSlotNote {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
  color: #475569;
  font-weight: 700
}

@media(max-width:900px) {
  .use-case-card__image {
    height: 150px
  }
}

/* v15 calculator layout fixes */
.calcGrid {
  grid-template-columns: 1fr 1fr;
  align-items: start
}

.calcGrid .field.typeField {
  grid-column: 1/-1
}

.sizeGroup {
  grid-column: 1/-1;
  border: 2px solid #111;
  border-radius: 18px;
  padding: 16px;
  background: #fff
}

.sizeGroupTitle {
  font-weight: 1000;
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px
}

.sizeInputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.inputWrap input {
  min-width: 0
}

.inputTag {
  flex: 0 0 auto
}

.pottingField {
  grid-column: 1/-1
}

.resultGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px
}

.resultCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px
}

.resultCard strong {
  display: block;
  margin-bottom: 6px
}

.summaryPrice {
  font-size: 22px;
  font-weight: 1000;
  color: var(--red)
}

.priceMasterNotice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
  border-radius: 14px;
  padding: 12px;
  margin: 14px 0;
  font-weight: 900
}

.masterEmptyAlert {
  display: none;
  background: #fff0f0;
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 12px;
  font-weight: 1000;
  color: #c40000;
  margin: 12px 0
}

.masterEmptyAlert.is-visible {
  display: block
}

.pottingNeedQuote {
  background: #fff4f4;
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  color: #a40000;
  font-weight: 1000
}

.pottingNeedQuote .big {
  display: block;
  font-size: 18px;
  margin-bottom: 4px
}

.quoteText {
  width: 100%;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  background: #fff
}

.quoteActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px
}

.copyStatus {
  font-size: 13px;
  font-weight: 900;
  color: #0f766e;
  margin-top: 8px
}

.handoffBox {
  background: #eef6ff;
  border: 2px solid #0b63ce;
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px
}

.handoffBox b {
  color: #003c8f
}

.handoffList {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px
}

.handoffList li {
  margin: 2px 0
}

@media(max-width:760px) {
  .calcGrid {
    grid-template-columns: 1fr
  }

  .sizeInputs {
    grid-template-columns: 1fr
  }

  .resultGrid {
    grid-template-columns: 1fr
  }

  .inputTag {
    min-width: 48px
  }

  .calcBox {
    padding: 18px
  }
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px
}

.use-case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .04)
}

.use-case-card h3 {
  margin: 0 0 8px;
  font-size: 20px
}

.use-case-card .use-case-card__tag {
  display: inline-flex;
  background: #fff4f4;
  color: #c40000;
  border: 1px solid #ffc9c9;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 1000;
  margin-bottom: 8px
}

.use-case-card p {
  margin: .35em 0
}

.faq-list-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px
}

.faq-list-summary__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px
}

.faq-list-summary__item h3 {
  margin: 0 0 8px;
  font-size: 17px
}

.seoLead {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: #555
}

@media(max-width:900px) {
  .use-case-grid {
    grid-template-columns: 1fr 1fr
  }

  .faq-list-summary {
    grid-template-columns: 1fr
  }
}

@media(max-width:560px) {
  .use-case-grid {
    grid-template-columns: 1fr
  }

  .use-case-card {
    padding: 16px
  }

  .seoLead {
    text-align: left
  }
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px
}

.material-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06)
}

.material-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #f4f4f4
}

.material-card__body {
  padding: 16px
}

.material-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px
}

.material-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7
}

.sourceNote {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #cfe3ff;
  background: #f3f8ff;
  border-radius: 14px;
  font-weight: 700;
  color: #0a4f8f
}

.sourceNote small {
  display: block;
  margin-top: 4px;
  color: #4d647a;
  font-weight: 600
}

@media(max-width:900px) {
  .material-grid {
    grid-template-columns: 1fr 1fr
  }

  .material-card img {
    height: 132px
  }
}

@media(max-width:560px) {
  .material-grid {
    grid-template-columns: 1fr
  }

  .material-card img {
    height: 190px
  }
}

@media(max-width:640px) {
  .top-hero__visual {
    grid-template-columns: 1fr
  }

  .top-hero__mock:nth-child(1),
  .top-hero__mock {
    min-height: 220px
  }

  .use-case-card__image {
    height: 180px
  }

  .material-card img {
    height: 190px
  }

  .product-type-card__image {
    height: 170px
  }
}

.materialNote {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #555;
  line-height: 1.8
}

.pottingNote {
  margin-top: 20px
}
