@charset "UTF-8";

/* =============================================================================
   よくあるご質問 記事ページ（Aqua Scope™ よくあるご質問_001〜_004）
   Figma : 水産DX（運用） / AquaScope /「AquaScope よくあるご質問_001」〜「_004」
   common.css → aqua.css の後に読み込む。
   SP デザインは _001 のみ。他のページも同じ組み（1 カラム・下向き矢印）で表示する。
   ========================================================================== */

.faq {
  max-width: calc(1000px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 var(--gutter);
  color: var(--c-ink);
}

/* -----------------------------------------------------------------------------
   1. 記事ヘッダー（カテゴリ＋公開日）
   -------------------------------------------------------------------------- */
.faq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 40px;
}

.faq-head__tag {
  padding: 7px 20px 10px;
  border-radius: 30px;
  background: var(--c-faq);
  color: var(--c-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  font-feature-settings: "palt" 1;
  text-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

.faq-head__date {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
}

/* -----------------------------------------------------------------------------
   2. Q／A
   -------------------------------------------------------------------------- */
.qa {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* SP は Q・A の丸を回り込ませ、2 行目以降は全幅で流す */
.qa__box {
  display: flow-root;
  padding: 15px 15px 25px;
  border-radius: 15px;
  background: #E3F6FF;
}

.qa__box--q { padding-bottom: 20px; }

/* Q・A の丸 */
.qa__mark {
  display: grid;
  float: left;
  margin: 0 15px 0 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-blue);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.qa__question {
  padding-top: 20px;
  color: var(--c-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.qa__answer { padding-top: 20px; }

.qa__text { margin-top: 10px; }

.qa__lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  font-feature-settings: "palt" 1;
}

.qa__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
}

/* -----------------------------------------------------------------------------
   3. 手順の見出し
   -------------------------------------------------------------------------- */
.faq-section { margin-top: 40px; }

.faq-h2 {
  padding-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}

.faq-h2--line { border-bottom: 1px solid var(--c-blue); }

.faq-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
}

.faq-text .is-red { color: #FF0000; }

.faq-text a {
  color: #35BCFF;
  text-decoration: underline;
}

/* 箇条書き・注記 */
.faq-list {
  padding-left: 1.5em;
  list-style: disc;
}

.faq-note {
  padding-left: 1em;
  text-indent: -1em;
}

/* -----------------------------------------------------------------------------
   4. 開閉できる手順（details）
   -------------------------------------------------------------------------- */
/* SP は見出しの下に線、手順どうしは薄い線で区切る */
.step {
  padding: 20px 0 40px;
  border-bottom: 1px solid #DEEBF7;
}

.step__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-faq);
  cursor: pointer;
  list-style: none;
}

.step__summary::-webkit-details-marker { display: none; }

/* 開閉マーク（－／＋） */
.step__summary::after {
  content: "＋";
  margin-left: auto;
  padding-right: 10px;
  color: var(--c-blue);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.step[open] .step__summary::after { content: "－"; }

.step__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pill {
  padding: 0 15px;
  border-radius: 50px;
  background: var(--c-faq);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}

.step__title {
  color: var(--c-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 15px;
}

/* -----------------------------------------------------------------------------
   5. 番号つきの手順（丸数字）
   -------------------------------------------------------------------------- */
.num-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
}

.num-step__head::before {
  content: attr(data-num);
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-faq);
  color: var(--c-white);
  font-size: 18px;
}

.num-step__text { margin-top: 10px; }

/* 接続確認（_002）：手順リスト＋説明図 */
.check {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}

.check__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check__figure img {
  width: 100%;
  max-width: 375px;
  height: auto;
  margin-inline: auto;
}

/* アカウント作成（_003）：テキスト＋画面 */
.rows > li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #DEEBF7;
}

.rows > li:first-child { padding-top: 20px; }

.rows__shot {
  width: 100%;
  max-width: 375px;
  height: auto;
  margin-inline: auto;
}

.rows__shot--wide { max-width: 546px; }

.rows__item--stack,
.rows__pair {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rows__group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* -----------------------------------------------------------------------------
   6. スクリーンショットの並び（矢印つき）
   -------------------------------------------------------------------------- */
.shots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.shots__item {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(320px, 100%);
}

.shots__item img {
  width: 100%;
  height: auto;
}

.shots__item figcaption {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.shots__num {
  flex: none;
  color: var(--c-blue);
  font-size: 22px;
  line-height: 1;
}

/* 矢印（SP は下向き、PC は右向き） */
.shots__arrow {
  flex: none;
  width: 47px;
  height: 40px;
  background: url("../img/faq/arrow-step-down.svg") center / contain no-repeat;
}

.shots-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check__figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.qa__text + .qa__text { margin-top: 1.8em; }

/* -----------------------------------------------------------------------------
   7. 撮影時に注意（_004）
   -------------------------------------------------------------------------- */
.intro {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 0 40px;
  border-bottom: 1px solid #DEEBF7;
}

.intro__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.callout {
  padding: 25px 20px 30px;
  border: 1px solid var(--c-blue);
  border-radius: 10px;
}

.callout__title {
  color: var(--c-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.callout .faq-text { margin-top: 10px; line-height: 2; }

.intro__shot {
  width: min(200px, 100%);
  height: auto;
  margin-inline: auto;
}

.upload {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid #DEEBF7;
}

.upload:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* 戻るボタン〜フッターの間隔は他ページより 20px 狭い（Figma 実寸） */
.faq ~ .page-back { margin-bottom: -20px; }

.upload__after {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid #DEEBF7;
}

.upload__after-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.upload__after-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* 最後の区切り */
.faq-end {
  margin-top: 40px;
  border: 0;
  border-top: 1px solid #DEEBF7;
}

.faq-end--gray { border-top-color: #C4C4C4; }

/* =============================================================================
   8. PC（768px 以上）
   ========================================================================== */
@media (min-width: 768px) {

  .faq-head__tag { font-size: 24px; }

  .faq-head__date { padding-right: 22px; }

  .qa__box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 25px 35px;
  }

  .qa__box--q {
    align-items: center;
    min-height: 111px;
    padding-bottom: 30px;
  }

  .qa__mark {
    float: none;
    flex: none;
    margin: 0;
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .qa__question {
    padding-top: 0;
    font-size: 24px;
    line-height: 1.3;
  }

  .qa__answer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }

  .qa__text { margin-top: 0; }

  .qa__lead { font-size: 20px; }

  .qa__text { font-size: 16px; }

  .faq-h2 { font-size: 24px; }

  /* 手順（開閉）：PC は手順の下端だけに線 */
  .step {
    padding: 20px 0;
    border-bottom-color: var(--c-faq);
  }

  .step__summary {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .step__summary::after {
    padding-right: 36px;
    font-size: 28px;
  }

  .step__label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .pill { font-size: 18px; }

  .step__title { font-size: 20px; }

  .step__body { margin-top: 5px; }

  .step__body > .faq-text { padding-left: 100px; }

  .step--last { padding-bottom: 40px; }

  /* スクリーンショット（横並び） */
  .shots {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .shots__item { width: 200px; margin-top: auto;}

  .shots__item figcaption {
    font-size: 12px;
    font-feature-settings: "palt";
  }

  .shots__num { font-size: 20px; }

  .shots__arrow {
    width: 40px;
    height: 46.667px;
    background-image: url("../img/faq/arrow-step-right.svg");
  }

  .shots-rows { gap: 30px; }

  .shots--narrow { gap: 30px; }

  /* 番号つき手順 */
  .num-step__head { font-size: 20px; }

  .check {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 40px;
  }

  .check__steps { flex: 0 1 540px; }

  .check__figure { flex: 0 0 375px; }

  .rows > li {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
  }

  .rows > li:first-child { padding-top: 40px; }

  .rows__text { flex: 0 1 584px; }

  .rows__shot { flex: 0 0 375px; margin: 0; }

  .rows__shot--wide { flex-basis: 546px; }

  .rows__group { flex: 0 1 584px; }

  /* グループ内は縦積みなので、横並び用の幅指定（flex-basis）を高さに効かせない */
  .rows__group > .rows__text { flex: none; }

  /* 手順＋画面の横並びの下に、注記を全幅で続ける行 */
  .rows > .rows__item--stack {
    flex-direction: column;
    gap: 30px;
  }

  .rows__pair {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  /* 撮影時に注意 */
  .intro {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px 98px 40px 0;
  }

  .intro__body { flex: 0 1 576px; }

  .callout { padding: 30px 30px 35px; }

  .intro__shot { margin: 0; }

  .upload__after {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }

  .upload__after .shots__item { flex: none; }

  .upload__after-list { padding-top: 10px; gap: 20px; }
}
