﻿@import "./reset.css";

/* ===================================
   Variables
=================================== */
:root {
  --color-text: #333333;
  --color-bg: #ffffff;
  --font-family-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --pc-width: 1200px;
  --sp-width: 780px;
}

/* ===================================
   Base
=================================== */
html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 1.6rem;
  line-height: 1.6;
}

a {
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ===================================
   PC / SP 出し分け
   781px以上 = PC / 780px以下 = SP
=================================== */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

img.pc-only {
  display: block !important;
}
img.sp-only {
  display: none !important;
}

@media screen and (max-width: 780px) {
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block !important;
  }
  img.pc-only {
    display: none !important;
  }
  img.sp-only {
    display: block !important;
  }
}

/* ===================================
   Layout
=================================== */
.l-wrap {
  width: 100%;
  overflow: hidden;
}

.l-inner {
  max-width: var(--pc-width);
  margin: 0 auto;
}

@media screen and (max-width: 780px) {
  .l-inner {
    max-width: 100%;
    width: 100%;
  }
}

.l-section {
  position: relative;
  width: 100%;
}

.l-section + .l-section {
  margin-top: 0;
}

/* 指定ブロックの直後のみ、セクション間の余白を復活させる */
.sec-kv,
.sec-price:not(.sec-price--repeat):not(.sec-price--repeat2),
.sec-present,
.sec-contact:not(.sec-contact--repeat):not(.sec-contact--repeat2),
.sec-plus,
.sec-price--repeat,
.sec-present2,
.sec-contact--repeat,
.sec-tamogitake,
.sec-kaigen,
.sec-voice,
.faq,
.sec-claim,
.sec-price--repeat2,
.sec-single,
.sec-price-3box,
.sec-price-2box {
  margin-bottom: 20px;
}

@media screen and (max-width: 780px) {
  .sec-kv,
  .sec-price:not(.sec-price--repeat):not(.sec-price--repeat2),
  .sec-present,
  .sec-contact:not(.sec-contact--repeat):not(.sec-contact--repeat2),
  .sec-plus,
  .sec-price--repeat,
  .sec-present2,
  .sec-contact--repeat,
  .sec-tamogitake,
  .sec-kaigen,
  .sec-voice,
  .faq,
  .sec-claim,
  .sec-price--repeat2,
  .sec-single,
  .sec-price-3box,
  .sec-price-2box {
    margin-bottom: 12px;
  }
}

/* 01(お悩み)の余白フェードと02(2社共同開発)の余白フェードを重ねて二重の空白をなくす */
.l-section.sec-collab {
  margin-top: -100px;
}

/* 02(2社共同開発)の下端はV字の透過部分になっているため、03(言語記憶力を評価)の背景を透過部分に重ねる */
.l-section.sec-evaluation {
  margin-top: -60px;
}

/* 02を上のレイヤーにして、V字の透過越しに03の背景を見せる */
.l-section.sec-collab {
  z-index: 1;
}

@media screen and (max-width: 780px) {
  .l-section.sec-evaluation {
    margin-top: -40px;
  }
}

/* ポイント1→2→3 の波線区切りを重ねて二重の空白をなくす。
   重ね順は上からポイント1→2→3 */
.l-section.sec-point1 {
  z-index: 3;
}
.l-section.sec-point2 {
  z-index: 2;
  margin-top: -60px;
}
.l-section.sec-point3 {
  z-index: 1;
  margin-top: -282px;
}

@media screen and (max-width: 780px) {
  .l-section.sec-point2 {
    margin-top: -78px;
  }
  .l-section.sec-point3 {
    margin-top: -70px;
  }
}

.l-section img {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像がキャンバス幅(780/1200)に満たない場合、中央揃え＋左右余白にする */
.l-section img.inset {
  width: var(--img-w, 100%);
  margin: 0 auto;
}

/* ===================================
   画像上のリンクオーバーレイ（リンク先確定後に使用）
=================================== */
.img-link-wrap {
  position: relative;
}

.img-link-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.img-link-wrap.inset {
  width: var(--img-w, 100%);
  margin: 0 auto;
}

/* PCラッパーは上限幅(1200pxまたは個別指定幅)で等倍固定。780$301C上限幅の間は見切れる */
.img-link-wrap.pc-only {
  width: var(--img-w, 1200px);
  margin: 0 auto;
}

.img-link {
  position: absolute;
  display: block;
  cursor: pointer;
}

@media screen and (min-width: 781px) {
  .img-link {
    transition: background-color 0.2s ease;
  }

  .img-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }
}

/* PCは1200px(または個別指定幅)で等倍固定・中央揃え。
   画面が上限より大きい場合は左右が余白になり、780$301C上限幅の間は見切れる */
.l-section img.pc-only {
  width: var(--img-w, 1200px);
  max-width: none;
  margin: 0 auto;
}

/* ===================================
   FAQ Accordion
=================================== */
:root {
  --faq-green: #488901;
  --faq-q-bg: #c1e795;
  --faq-text: #222222;
}

.faq {
  max-width: var(--pc-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.faq__title {
  text-align: center;
  font-family: "Yu Gothic", "游ゴシック", YuGothic, sans-serif;
  font-size: 2.8rem; /* 4.8rem(48px)から2.8rem(28px)へ変更し、他の見出しと統一 */
  font-weight: bold;
  color: var(--faq-green);
  margin-bottom: 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq__item {
  border: 1px solid var(--faq-q-bg);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.faq__question {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 56px 18px 20px;
  text-align: left;
  font-size: 1.6rem; /* 1.8remから1.6remへ微調整 */
  font-weight: bold;
  line-height: 1.5;
  background: var(--faq-q-bg);
  color: var(--faq-text);
  box-sizing: border-box; /* 幅はみ出し防止 */
}

.faq__question::before {
  content: "Q";
  margin-right: 12px;
  font-weight: 900;
  color: var(--faq-green);
}

.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--faq-text);
  border-bottom: 2px solid var(--faq-text);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.faq__question[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  background: #ffffff;
}

.faq__answer[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
}

.faq__answer-text {
  padding: 20px 24px 24px;
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--faq-text);
}

.faq__answer-text::before {
  content: "A";
  margin-right: 12px;
  font-weight: 900;
  color: var(--faq-green);
}

@media screen and (max-width: 780px) {
  .faq {
    padding: 0 16px;
  }

  .faq__title {
    font-size: 2.0rem; /* SPは20px程度に調整 */
    margin-bottom: 20px;
  }




  .faq__list {
    gap: 16px;
  }

   .faq__question {
    padding: 14px 40px 14px 16px;
    font-size: 1.4rem;
  }

  .faq__question::after {
    right: 16px;
  }

 
  .faq__answer-text {
    padding: 14px 16px 18px;
    font-size: 1.3rem;
  }
}


.product-detail {
  max-width: var(--pc-width);
  margin: 0 auto;
  padding: 0 20px;
}

.product-detail__title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: bold;
  color: #111111;
  margin-bottom: 40px;
}

.product-detail__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dddddd;
  font-size: 1.3rem;
  color: #111111;
}

.product-detail__table th,
.product-detail__table td {
  border: 1px solid #dddddd;
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  font-size: 1.3rem;
  color: #111111;
}

.product-detail__table th {
  width: 260px;
  background: #f5f5f5;
  font-weight: bold;
  white-space: nowrap;
}

.product-detail__table td {
  white-space: pre-line;
  background: #ffffff;
}

@media screen and (max-width: 780px) {
  .product-detail {
    padding: 0 16px;
  }

  .product-detail__title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .product-detail__table {
    display: block;
    width: 100%;
    border: none;
  }

  .product-detail__table tbody {
    display: block;
    width: 100%;
  }

  .product-detail__table tr {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
  }

  .product-detail__table th {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #f5f5f5;
    border: none;
    border-bottom: 1px solid #dddddd;
    white-space: normal;
    box-sizing: border-box;
  }

  .product-detail__table td {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    background: #ffffff;
    border: none;
    box-sizing: border-box;
  }
}

.product-detail {
  max-width: var(--pc-width);
  margin: 0 auto 80px; /* ★末尾に80pxの余白を追加 (上0 左右auto 下80px) */
  padding: 0 20px;
}]

@media screen and (max-width: 780px) {
  .product-detail {
    padding: 0 16px;
    margin-bottom: 40px; /* ★スマホ表示時の下部余白（お好みで調整してください） */
  }
}