@import url(common.css);

#content .first_block {
  background-image: url(../parts/antena/25167624_l.jpg);
}

/* 地デジ・BSアンテナ工事費用
（.item-section）
--------------------------- */
.h2_block {
  padding: 4em 0;
}

.choice_block h3 {
  text-align: center;
}

.choice_block img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: auto;
}

/* アンテナ選びに迷ったら
/////////////////////////////////*/
#overlayWindow {
  padding: 3em 0;
}
.over #button1 {
  max-width: 170px;
}
.over_item {
  margin: 1em auto 1.5em;
}
#overlayWindow .icon_ex {
  max-width: unset;
}

.over h3 {
  text-align: left;
}
#overlayWindow .icon_ex {
  gap: 1em;
}
.icon-left {
  flex: 1.5;
}
.icon-right li {
  text-align: left;
  list-style-type: disc;
  list-style-position: inside;
}

#overlayWindow img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  max-width: unset;
  margin: unset;
}

/* アンテナ簡易比較表
//////////////////////////////// */
#antenna-compare {
  max-width: 80%;
  margin: auto;
}
.antena_table {
  padding: 2em 0 4em;
}

#antenna-compare table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
}

#antenna-compare table th,
#antenna-compare table td {
  border: 1px solid #ccc;
  padding: 0.8em;
  text-align: center;
  white-space: nowrap;
}

#antenna-compare table th {
  background-color: #005bac;
  color: white;
}

#antenna-compare table td {
  background-color: #fdfdfd;
}

.item-tab {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  margin: 1em auto;
  box-sizing: border-box;
  gap: 1em;
}

.item-tab > label {
  flex: 1 1;
  order: -1;
  min-width: 70px;
  font-size: clamp(28px, 1.8vw, 30px);
  color: #fff;
  font-weight: bold;
  letter-spacing: 1.8px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  padding: 0.5em;
  background-color: #3d853f;
  border-radius: 4px;
}

.item-tab > label img {
  display: block;
  width: min(100%, 100px);
  height: auto;
  margin: auto;
}

.item-tab > label span {
  display: block;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
}

.item-tab > label:hover {
  opacity: unset;
}

.item-tab input {
  display: none;
}

.item-tab > div {
  display: none;
  width: 100%;
}

.item-tab label:has(input:checked)::before {
  display: block;
  content: "選択中";
  font-size: clamp(16px, 1.8vw, 18px);
  background-color: rgb(255, 249, 196);
  color: green;
  padding: 0.5em 2em;
  margin-bottom: 0.5em;
}

.item-tab label:has(:checked) + div {
  display: block;
}

/* 本体＋標準工事費 */
.price-group-container {
  border: 1px solid var(--border_gray);
  margin-bottom: 1em;
}
.price-group {
  background-color: #fff;
  padding: 1.5em 1em;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
/* 左側 */
.group-left {
  flex: 1;
}
/* 商品サンプル画像 */
.group-left img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto 1em;
}

.group-left p {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: bold;
  text-align: center;
}

/* 右側 */
.group-right {
  flex: 1.2;
}
.group-right h3 {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: bold;
  padding: 0.5em 0 1em;
}
.new,
.old {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 1em;
  border-bottom: 1px dotted var(--border_gray);
  margin-bottom: 0.5em;
}

.tag_wap {
  margin: 1em auto;
}

.price_block .large {
  position: relative;
  font-size: clamp(40px, 1.8vw, 50px);
  padding-right: 0.2em;
  font-weight: 600;
}

/*////////////////////////////////

アンテナ費用

//////////////////////////////// */
.yagi_antena {
  max-width: 820px;
  margin: 2em auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}
.yagi_antena img {
  display: block;
  max-width: 200px;
  flex: 0.5;
}
.yagi_antena .left p {
  font-weight: bold;
  font-size: clamp(16px, 1.8vw, 18px);
  padding: 0 0 0.5em;
}

.yagi_antena ul li {
  list-style-type: disc;
  list-style-position: inside;
  line-height: 1.7;
  font-size: clamp(16px, 1.8vw, 18px);
  text-indent: -1.5em;
  padding-left: 1em;
}
.bg_box {
  background-color: var(--bg_gray_green);
  padding: 1em 0 8em;
  margin: 0 auto;
}

.antena_item {
  max-width: 780px;
  margin: 2em auto;
  padding: 2em;
  background-color: #fff;
  border: 1px solid var(--border_gray);
}
.antena_item img {
  display: block;
  margin: auto;
}
.antena_item p.set {
  font-size: clamp(16px, 1.8vw, 18px);
  padding: 1em 0;
}
.antena_item table {
  width: 100%;
  border-collapse: collapse;
}

.antena_item table tr {
  border-bottom: 1px solid var(--border_gray);
}
.antena_item table tr th {
  font-weight: bold;
  font-size: clamp(17px, 1.8vw, 21px);
  padding: 1em 0;
  width: 45%;
  text-align: left;
  line-height: 1.4;
}
.antena_item table tr td.antena_price {
  padding: 1em;
}
.price-display {
  display: flex;
  flex-direction: column; /* ← 横並びではなく縦に */
  align-items: flex-end; /* 右寄せ */
  line-height: 0.6;
}
.price-display p {
  font-weight: bold;
  margin: 0;
}
.large {
  font-family: "Oswald", sans-serif;
  font-size: clamp(32px, 1.8vw, 45px);
}
span.small {
  font-size: 16px;
  padding-top: 0.2em;
}

/* //////////////////////////////////////////

よくある追加費用

////////////////////////////////////////// */
.card-grid {
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 2em;
}
.card {
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 0 auto 1em;
  box-sizing: border-box;
}

@media only screen and (max-width: 768x) {
  .card {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* //////////////////////////////////////////

各種アンテナ工事に対応
（.ok_section）

////////////////////////////////////////// */
.ok_section {
  padding: 10em 0 6em;
}
.ok_section h2 {
  text-align: center;
}
.ok_block {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 3em auto 0;
}
.ok_item {
  border: 1px solid var(--border_gray);
  border-radius: var(--radius);
  padding: 1em;
}
.ok_item p {
  font-weight: bold;
  text-align: center;
}
.ok_item img {
  display: block;
  width: min(100%, 250px);
  height: auto;
  margin: 1em auto 0;
}
/* ok_bottom */
.ok_bottom {
  padding: 1em 0;
}
.ok_bottom p {
  text-align: center;
}
.ok_bottom ul {
  padding-bottom: 4em;
}
.ok_bottom li {
  font-size: clamp(13px, 1.8vw, 14px);
  color: var(--aside_gray);
  text-indent: -1em;
  padding-left: 1em;
}
@media only screen and (max-width: 768x) {
  .ok_bottom p {
    text-align: left;
  }
}

.sample_img {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
.sample_img img {
  display: block;
  width: min(100%, 150px);
  height: auto;
}
.triangle_right_mini {
  width: 0;
  height: 0;
  border-style: solid;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 30px solid #ff812f;
  border-right: 0;
}
.ok_item .price_block {
  padding-top: 1em;
}
.ok_item .price_block .large {
  font-size: clamp(27px, 1.8vw, 30px);
}
.ok_item a {
  width: calc(100% - 40px);
  max-width: 250px;
  margin: 0 auto;
  box-sizing: border-box;
  display: block;
  background-color: #e3f1d5;
  border-radius: 50px;
  color: #81995b;
  padding: 0.5em 1em;
  margin: 1.5em auto 1em;
  text-align: center;
}

@media (max-width: 768px) {
  .sample_img {
    display: block;
  }
  .sample_img img:nth-of-type(1),
  .triangle_right_mini {
    display: none;
  }
}

/* アンテナ建て直し、 撤去、受信不良
//////////////////////////////// */
.antena_fb {
  margin: 1em auto 0;
}
.antena_img_fb {
  margin: 1em auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.antena_img_fb p {
  flex: 1;
  max-width: 340px;
}
.antena_img_fb img {
  width: 100%;
}
.antena_trouble_link {
  padding-top: 1em;
}
.antena_trouble_link a {
  display: block;
  text-align: center;
  font-size: clamp(16px, 1.8vw, 18px);
}

@media screen and (max-width: 1024px) {
  #content #main #main_right {
    width: 100%;
    padding: unset;
    margin: 0 auto;
    box-shadow: unset;
    border: unset;
  }
}

@media screen and (max-width: 768px) {
  .yagi_antena {
    margin: 0 1.5em 2em;
    display: block;
  }
  .yagi_antena img {
    margin: auto;
  }
  .last td:last-child {
    border-bottom: solid 1px #ccc;
    width: 100%;
  }
  .antena_item {
    padding: 2em 1.5em;
    margin: 1em 1.5em;
  }
  .antena_img_fb {
    display: block;
    margin: 0.5em auto 0;
  }
  .antena_img_fb img {
    max-width: 320px;
    margin-bottom: 1em;
  }
  .antena_trouble table {
    width: 100%;
  }
  .antena_trouble table tbody th,
  .antena_trouble table tbody td {
    border-bottom: none;
    display: block;
    width: 100%;
  }
  .antena_trouble table tbody th {
    border-bottom: unset;
    padding: 0.8em 0.5em 0 0.5em;
  }
  .antena_trouble table tbody td {
    border-top: unset;
    padding: 0 1em 1em;
  }
}
@media (max-width: 768px) {
  #risk,
  #price,
  .aco_section,
  .ok_section {
    width: calc(100% - 40px);
    max-width: 820px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}
