
.content-container {
  container-type: inline-size;
  container-name: content-container;
}

.content-container > div {
  font-size:15px;
  line-height:1.7;
}

.knob-wrapper {
  margin: 0;
  color: var(--text-main);
  line-height: 1.7;
  background: #fff;
  --green-dark: #1b4332;
  --green-main: #2f6b3a;
  --green-light: #e8f2e9;
  --blue-main: #1f4e8c;
  --brown-main: #8a5a2b;
  --text-main: #222;
  --text-sub: #555;
  --bg-gray: #f7f7f5;
  --border-color: #e0e0e0;
  --radius: 8px;
}

.knob-wrapper img {
  max-width: 100%;
  display: block;
}

.knob-wrapper a {
  /* text-decoration: none; */
  color: inherit;
}

.knob-wrapper .inner {
  /* max-width: 1320px; */
  margin: 0 auto;
  padding: 0 50px;
}

.knob-wrapper .section {
  padding: 50px 0;
}

.knob-wrapper .section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--green-main);
}

.knob-wrapper .section-lead {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 30px;
}

/* ===================== ヒーロー ===================== */

.hero {
  /* background: linear-gradient(120deg, var(--green-dark), var(--green-main)); */
  color: #fff;
  padding: 45px;
  background: url(../img/bg_top.jpg?z) 88% 81% / 2000px no-repeat, black;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-eyebrow {
  font-size: 16px;
  margin: 0 0 8px;
  opacity: .9;
}

.hero-text h2 {
  font-size: 48px;
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-lead {
  font-size: 14px;
  opacity: .95;
  margin-bottom: 28px;
}

.content-container .wrap-service {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.content-container .box-service {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 8px;
  font-size: 13px;
  line-height: 1.6;
}

.content-container .box-service img {
  grid-row: 1 / 3;
  width: 50px;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background: var(--green-main);
  border-radius: 50%;
}

.content-container .ttl-service {
  margin-top: auto;
  font-weight: bold;
  font-size: 14px;
}



/* ===================== デザイン・タイプから選ぶ ===================== */
.type-select {
  background: #fff;
}

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

.type-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}

.type-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}


.type-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "img h3"
    "img p"
    "btn btn";
  column-gap: 20px;
  row-gap: 0;
}

.type-card img {
  grid-area: img;
  width: 100%;
}

.type-card h3 {
  grid-area: h3;
  margin: 0;
}

.type-card p {
  grid-area: p;
  margin: 0;
}

.type-card .type-btn {
  grid-area: btn;
  margin-top: 1em;
}

.type-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: var(--radius);
}

.type-card h3 {
  font-size: 18px;
  align-self: end;
  font-weight: bold;
  color: #4b4b4b;
}

.type-card p {
  color: var(--text-sub);
}

.type-btn {
  display: block;
  text-align: center;
  background: var(--green-main);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

/* ===================== 3ステップでかんたん確認 ===================== */
.step-section {
  background: var(--bg-gray);
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 48px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  display: inline-block;
  background: var(--green-main);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 0.4em;
  color: #4b4b4b;
}

.step-card > p {
  color: var(--text-sub);
  margin: 0 0 16px;
  min-height: 3em;
}

.step-compare {
  display: flex;
  gap: 12px;
  width: 100%;
}

.step-compare-item {
  flex: 1 1 40%;
  text-align: center;
}

.step-compare-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 14px;
}

.step-compare-item p {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.6;
}

.step-arrow {
  align-self: center;
  color: var(--green-main);
  font-size: 20px;
}

/* 取り外し時の注意事項 */
.notice-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 25px;
  background: #fff;
  border: 1px solid var(--green-main);
  border-radius: var(--radius);
  padding: 20px;
}

.notice-box > div:first-child {
  display: flex;
  place-items: center;
  flex-direction: column;
  gap: 11px;
  justify-content: center;
}

.notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
}

.notice-title {
  font-weight: 700;
  margin: 0;
  color: var(--green-main);
  font-size: 16px;
  word-break: auto-phrase;
}

.notice-list p + p {
  border-top:1px dotted var(--green-main);
  padding-top: 0.5em;
  margin-top: .5em;
}

.notice-list p:last-child {
  margin-bottom: 0;
}

.check {
  color: var(--green-main);
  font-weight: 700;
  margin-right: 4px;
}

/* ===================== シャフトの種類と対応するノブ一覧 ===================== */
.shaft-section {
  background: #fff;
}

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

.shaft-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shaft-head {
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 16px;
  min-height: 57px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.shaft-green .shaft-head { background: var(--green-main); }
.shaft-blue .shaft-head { background: var(--blue-main); }
.shaft-brown .shaft-head { background: var(--brown-main); }

.shaft-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 12px;
}

.shaft-spec {
  list-style: none;
  margin: 0;
  padding: 0px 20px 0;
  color: var(--text-sub);
}

.shaft-spec li {
  margin-bottom: 4px;
}

.shaft-table {
  width: calc(100% - 40px);
  margin: 16px 20px 20px;
  border-collapse: collapse;
  font-size: 13px;
}

.shaft-table th,
.shaft-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  text-align: left;
}

.shaft-table th {
  background: var(--bg-gray);
  font-weight: 600;
  width: 30%;
  word-break: auto-phrase;
}

a.shaft-btn {
  display: block;
  text-align: center;
  margin: 20px;
  margin-top: auto;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.shaft-green .shaft-btn { background: var(--green-main); }
.shaft-blue .shaft-btn { background: var(--blue-main); }
.shaft-brown .shaft-btn { background: var(--brown-main); }

/* ===================== Pick Up ===================== */
.pickup-section {
  background: var(--bg-gray);
}

.pickup-title {
  letter-spacing: 1px;
}

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

.pickup-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
}

.pickup-tag {
  display: inline-block;
  background: var(--green-main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 15px;
  text-align: center;
  word-break: auto-phrase;
}

.pickup-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pickup-card h3 {
  margin: 0 0 8px;
  line-height: 1.5;
  font-weight: bold;
  color: #4b4b4b;
}

.pickup-card p {
  color: var(--text-sub);
  flex-grow: 1;
  margin: 0 0 14px;
}

a.pickup-btn {
  display: block;
  text-align: center;
  background: var(--green-main);
  color: #fff;
  padding: 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* ===================== FAQ ===================== */
.faq-section {
  background: #fff;
}

.faq-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.faq-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-main);
  font-size: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary:before {
  content:"Q";
  background: var(--green-main);
  width: 35px;
  height: 35px;
  border-radius:50%;
  color:white;
  display: grid;
  place-items: center;
  font-size: 17px;
  /* display: block; */
  aspect-ratio: 1/1;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 11px;
  transition: transform .2s ease;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green-main);
  border-right: 2px solid var(--green-main);
  transform: rotate(45deg);
}

.faq-item[open] summary::after {
  transform: rotate(315deg);
}

.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  align-items: center;
  padding-left: 46px;
  position: relative;
}

.faq-answer:before {
  content:"A";
  background: var(--green-light);
  width: 35px;
  height: 35px;
  border-radius:50%;
  color: var(--green-main);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: bold;
  position: absolute;
  left: 0;
  aspect-ratio: 1;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-more {
  margin-top: 24px;
}

.faq-more > summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  border: 1px solid  var(--green-main);
  border-radius: var(--radius);
  margin-bottom: 2em;
}

.faq-more > summary:hover {
  background: var(--bg-gray);
}

.faq-more > summary::-webkit-details-marker {
  display: none;
}

.faq-more > summary::after {
  content: "";
  color: var(--green-main);
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green-main);
  border-right: 2px solid var(--green-main);
  rotate: 135deg;
  margin-left: 14px;
  top: 15px;
  position: absolute;
  transition: .2s;
}

.faq-more[open] > summary::after {
  content: "";
  border-right: 2px solid var(--green-main);
  rotate: 315deg;
  top: 20px;
}

/* ===================== レスポンシブ ===================== */
@container content-container (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-arrow {
    display: none;
  }

  .shaft-grid {
    grid-template-columns: 1fr;
  }

  .pickup-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notice-box {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero {
    padding: 0;
    background: url(../img/bg_top.jpg?z) top -30px center / 100% no-repeat, #13100d;
  }
  
  .type-card {
    padding: 20px;
    grid-template-areas:
      "img"
      "h3"
      "p"
      "btn";
  }
  
  .type-card {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }
  
  .type-card h3 {
    font-size: 16px;
  }
  
  .knob-wrapper .inner {
    padding: 20px;
  }
  
  .hero-lead {
    margin-bottom: 0;
  }
  
  .content-container .wrap-service {
    padding: 0 20px 25px;
  }
  
  .knob-wrapper .section-title {
    font-size: 24px;
  }
  
  .knob-wrapper .section {
    padding: 10px 0;
  }
  
  .type-card img {
    margin-bottom: .5em;
  }

  .pickup-tag {
    font-size: 16px;
  }

  .shaft-head {
    min-height: 60px;
  }

}

@container content-container (max-width: 520px) {
  .type-grid {
    grid-template-columns: 1fr;
  }

  .pickup-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 34px;
  }
}
