/*
 * PREMIUM OFFICE 共通FAQ / 2026-10-26
 * 専用クラス po-faq__* だけにスタイルを適用。
 * 既存のヘッダー・フッター・WordPressには干渉しません。
 * カラー / 書体 / サイズ / PC / スマホをセクションごとに整理。
 */

/* ========== 01. 基本設定 ========== */
.po-faq {
    --faq-bg: #f7f7f7;
    --faq-ink: #303030;
    --faq-body: #666;
    --faq-line: #b4b2ac;
    --faq-red: #c5272e;
    --faq-heading-font: "Oswald", "Arial Narrow", Arial, sans-serif;
    color: var(--faq-ink);
    background: var(--faq-bg);
    font-family: inherit;  /* 既存サイトの日本語フォントを継承 */
    line-height: 1.75;
    overflow-x: clip;
}
.po-faq, .po-faq * { box-sizing: border-box; }
.po-faq button, .po-faq input { font-family: inherit; }
.po-faq [hidden] { display: none !important; }
.po-faq__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.po-faq__container {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ========== 02. ヒーロー・冒頭 ========== */
.po-faq__hero {
    width: 100%;
    height: 380px;
    background: url("faq-hero.jpg") center 52% / cover no-repeat;
}
/* 実ファイルは /faq/assets/ に配置するため、CSSからは同階層参照 */
.po-faq__intro {
    text-align: center;
    padding-top: 47px;
}
.po-faq__title {
    margin: 0;
    font: 400 60px/1.15 var(--faq-heading-font);
    letter-spacing: .07em;
}
.po-faq__subtitle {
    margin: 7px 0 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}
.po-faq__notice {
    margin: 26px 0 49px;
    font-size: 15px;
    line-height: 1.85;
}

/* ========== 03. カテゴリ選択・検索 ========== */
.po-faq__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.po-faq__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}
.po-faq__tab {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #757575;
    background: transparent;
    font-size: 17px;
    line-height: 1.5;
    padding: 12px 15px 13px;
    white-space: nowrap;
    cursor: pointer;
}
.po-faq__tab.is-active {
    color: #222;
    font-weight: 700;
    border-color: #222;
}
.po-faq__tab:focus-visible,
.po-faq__question:focus-visible,
.po-faq__contact-link:focus-visible,
.po-faq__search:focus-visible {
    outline: 2px solid #444;
    outline-offset: 3px;
}
.po-faq__search-label { display: block; flex: 0 1 230px; }
.po-faq__search {
    width: 100%;
    min-height: 43px;
    border: 1px solid #bdbdb7;
    border-radius: 0;
    padding: 8px 11px;
    background: transparent;
    color: var(--faq-ink);
    font-size: 14px;
}
.po-faq__count {
    color: #8a8a85;
    font-size: 12px;
    margin: 5px 0 0;
}

/* ========== 04. セクションタイトル ========== */
.po-faq__section-title {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    margin: 59px 0 24px;
    border: 0; /* 最初の質問の点線との二重線を避ける */
}
.po-faq__section-title h2 {
    margin: 0;
    font: 400 40px/1.2 var(--faq-heading-font);
    letter-spacing: .09em;
    overflow-wrap: break-word;
}
.po-faq__section-title p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* ========== 05. 質問（黒いQ）と回答（赤いA） ========== */
.po-faq__item {
    border-top: 1px dotted var(--faq-line);
}
.po-faq__item:last-child {
    border-bottom: 1px dotted var(--faq-line);
}
.po-faq__question {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 77px;
    padding: 15px 0;
    cursor: pointer;
    list-style: none;
}
.po-faq__question::-webkit-details-marker { display: none; }
.po-faq__question::marker { content: ""; }
.po-faq__q {
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #fff;
    background: #1e1e1e;
    font: 500 27px/1 var(--faq-heading-font);
    text-align: center;
    letter-spacing: 0;
    padding: 0 0 1px;
}
.po-faq__question-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
    color: var(--faq-body);
    overflow-wrap: break-word;
    word-break: normal;
}
.po-faq__toggle {
    flex: 0 0 12px;
    position: relative;
    width: 12px;
    height: 12px;
    margin-right: 7px;
}
.po-faq__toggle::before,
.po-faq__toggle::after {
    content: "";
    position: absolute;
    background: #777;
    transition: transform .18s;
}
.po-faq__toggle::before { width: 12px; height: 1px; top: 6px; left: 0; }
.po-faq__toggle::after { width: 1px; height: 12px; top: 0; left: 6px; }
.po-faq__item[open] .po-faq__toggle::after { transform: rotate(90deg); }
.po-faq__answer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 2px 20px 23px 69px;
}
.po-faq__a {
    flex: 0 0 auto;
    font: 400 30px/1.5 var(--faq-heading-font);
    color: var(--faq-red);
}
.po-faq__answer-text {
    min-width: 0;
    color: var(--faq-body);
    font-size: 1.1em;
    line-height: 1.8;
}
.po-faq__answer-text p { margin: 0 0 .8em; }
.po-faq__answer-text p:last-child { margin-bottom: 0; }
.po-faq__empty {
    color: #777;
    text-align: center;
    padding: 25px;
}

/* ========== 06. お問い合わせ導線 ========== */
.po-faq__contact {
    padding: 72px 0 80px;
    text-align: center;
}
.po-faq__contact h2 { font-size: 21px; font-weight: 500; margin: 0 0 12px; }
.po-faq__contact p { font-size: 14px; margin: 0; }
.po-faq__contact-link {
    display: inline-block;
    padding: 10px 32px;
    margin-top: 20px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #333;
    color: #222;
    background: transparent;
}
.po-faq__contact-link:hover { color: #fff; background: #222; }

/* ========== 07. スマートフォン ========== */
@media (max-width: 760px) {
    .po-faq__hero {
        height: 230px;
        background-position: 52% center;
    }
    .po-faq__container { padding-inline: 18px; }
    .po-faq__intro { padding-top: 28px; }
    .po-faq__title { font-size: 46px; }
    .po-faq__subtitle { font-size: 14px; }
    .po-faq__notice { margin: 20px 0 32px; font-size: 13px; }
    .po-faq__controls { display: block; }
    .po-faq__tabs { gap: 2px 5px; }
    .po-faq__tab { font-size: 15px; padding: 10px 11px; }
    .po-faq__search-label { margin-top: 16px; }
    .po-faq__search { font-size: 14px; }
    .po-faq__section-title { margin: 42px 0 19px; }
    .po-faq__section-title h2 { font-size: clamp(24px, 6.2vw, 30px); letter-spacing: .04em; }
    .po-faq__section-title p { font-size: 13px; }
    .po-faq__question { gap: 12px; padding: 12px 0; min-height: 63px; }
    .po-faq__q { flex-basis: 35px; width: 35px; height: 35px; font-size: 22px; }
    .po-faq__question-text { font-size: 13px; line-height: 1.65; }
    .po-faq__answer { gap: 9px; padding: 2px 2px 18px 47px; }
    .po-faq__a { font-size: 26px; }
    .po-faq__answer-text { line-height: 1.8; }
    .po-faq__contact { padding: 52px 0 60px; }
    .po-faq__contact h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .po-faq__toggle::before, .po-faq__toggle::after { transition: none; }
}

/* ========== 08. 回答内の関連リンク ========== */
.po-faq .po-faq__related-link { color: var(--faq-ink); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.po-faq .po-faq__related-link:hover { color: var(--faq-red); }
.po-faq .po-faq__related-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* 共通テーマの固定ヘッダーと段落揃えへの対応。JS無効時も写真を隠さない。 */
.po-faq { padding-top: var(--faq-header-offset, 144px); }
.po-faq__subtitle, .po-faq__section-title p, .po-faq__contact p { text-align: center; }
@media (max-width: 1024px) { .po-faq { padding-top: var(--faq-header-offset, 0px); } }

/* 提供された最初のindex.phpと共通layout.cssの回答文字指定に一致。 */
@media screen and (min-width: 945px) { .po-faq__answer-text { font-size: 1.4em; } }

/* 共通CSSのp { font-size: 1.3em }による二重拡大を防ぐ。 */
.po-faq .po-faq__answer-text p { font: inherit; }

/* ========== 09. FLOWに合わせた固定・ズームヒーローとジャンプボタン ========== */
.po-faq__hero { position: relative; display: grid; place-items: center; isolation: isolate; background-attachment: fixed; background-position: center calc(100% - 15vh); background-size: auto 110vh; animation: po-faq-hero-zoom 40s ease-in-out infinite alternate; }
.po-faq__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .38); }
.po-faq__hero-copy { text-align: center; padding: 24px; }
.po-faq .po-faq__hero .po-faq__title, .po-faq .po-faq__hero .po-faq__subtitle { color: #fff; text-align: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.po-faq__controls { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 47px; margin-bottom: 0; }
.po-faq__tabs { justify-content: center; gap: 10px; }
.po-faq .po-faq__tab { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid #777; color: #303030; text-decoration: none; background: transparent; font-size: 14px; font-weight: 400; transition: background-color .2s, color .2s; }
.po-faq .po-faq__tab:hover, .po-faq .po-faq__tab.is-active { background: #222; border-color: #222; color: #fff; }
.po-faq__search-label { flex: none; width: min(100%, 320px); margin: 0; }
.po-faq__section { scroll-margin-top: 120px; }
@keyframes po-faq-hero-zoom { from { background-size: auto 110vh; } to { background-size: auto 118.8vh; } }
@media (min-aspect-ratio: 3/2) {
  .po-faq__hero { background-size: 110vw auto; animation-name: po-faq-hero-zoom-wide; }
}
@keyframes po-faq-hero-zoom-wide { from { background-size: 110vw auto; } to { background-size: 118.8vw auto; } }
@media (max-width: 760px) {
  .po-faq__controls { padding-top: 28px; gap: 18px; }
  .po-faq__tabs { gap: 8px; }
  .po-faq .po-faq__tab { padding: 9px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .po-faq__hero { animation: none; } .po-faq .po-faq__tab { transition: none; } }

/* スマートフォンでは全5ボタンを横1段に収める。 */
@media (max-width: 760px) {
    .po-faq__tabs { display: grid; grid-template-columns: 3fr 3fr 4fr 7fr 9fr; gap: 4px; width: 100%; }
    .po-faq .po-faq__tab { min-width: 0; min-height: 44px; padding: 8px 2px; font-size: clamp(8px, 2.4vw, 11px); letter-spacing: 0; white-space: nowrap; }
}

/* カテゴリボタンと検索を同じ行へ配置。 */
.po-faq__controls { flex-direction: row; justify-content: space-between; gap: 16px; }
.po-faq__tabs { flex: 1 1 auto; }
.po-faq__search-label { flex: 0 0 230px; width: 230px; }
@media (max-width: 760px) {
    .po-faq__controls { display: grid; grid-template-columns: minmax(0, 1fr) clamp(66px, 22vw, 100px); gap: 8px; }
    .po-faq__tabs { gap: 2px; }
    .po-faq .po-faq__tab { padding-inline: 2px; font-size: clamp(6.5px, 1.95vw, 9px); }
    .po-faq__search-label { width: 100%; min-width: 0; }
    .po-faq__search { padding-inline: 5px; font-size: 11px; min-height: 44px; }
}

/* 検索欄をカテゴリボタンのすぐ右に置き、残り幅を使う。 */
@media (min-width: 761px) {
    .po-faq__controls { justify-content: flex-start; gap: 10px; }
    .po-faq__tabs { flex: 0 0 auto; justify-content: flex-start; }
    .po-faq__search-label { flex: 1 1 0; width: auto; min-width: 180px; }
}

/* ボタンと検索欄を少し低く揃える。 */
.po-faq .po-faq__tab { min-height: 40px; padding-block: 7px; }
.po-faq__search { min-height: 40px; padding-block: 6px; }
@media (max-width: 760px) {
    .po-faq .po-faq__tab { min-height: 38px; padding-block: 6px; }
    .po-faq__search { min-height: 38px; padding-block: 5px; }
}

/* 内容の行高に左右されず、検索欄とボタンの高さを一致させる。 */
.po-faq .po-faq__tab, .po-faq .po-faq__search { box-sizing: border-box; height: 40px; min-height: 40px; max-height: 40px; }
@media (max-width: 760px) {
    .po-faq .po-faq__tab, .po-faq .po-faq__search { height: 38px; min-height: 38px; max-height: 38px; }
}

/* 検索欄の枠を通常ボタンと統一。 */
.po-faq .po-faq__search { border: 1px solid #777; }


/* 検索欄の案内文字・入力文字は左揃え。 */
.po-faq .po-faq__search, .po-faq .po-faq__search::placeholder { text-align: left; }


/* FLOWページの現行タイトル指定をそのまま適用。 */
.po-faq .po-faq__hero { display: flex; align-items: center; justify-content: center; }
.po-faq .po-faq__hero-copy { padding: 0; }
.po-faq .po-faq__hero-copy {
  text-align: center;
}
.po-faq .po-faq__title {
  margin: 0;
  color: #ffffff;
  font: 400 60px/1.15 "Oswald", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.po-faq .po-faq__subtitle {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
@media (max-width: 760px) {
.po-faq .po-faq__title { font-size: 46px; }
.po-faq .po-faq__subtitle { font-size: 14px; }
}

/* FLOWとの見た目の量感を揃えるため、英字FAQだけ約10%拡大。 */
.po-faq .po-faq__title { font-size: 66px; }
@media (max-width: 760px) { .po-faq .po-faq__title { font-size: 51px; } }

/* タブレット横向き・タッチ端末も実画像で描画。固定背景と負の重なり順を避ける。 */
.po-faq__hero-media { display: none; }
@media (max-width: 1366px), (hover: none) {
    .po-faq .po-faq__hero { overflow: hidden; background: #252525; animation: none; }
    .po-faq .po-faq__hero-media { display: block; position: absolute; inset: -20% 0; z-index: 0; pointer-events: none; }
    .po-faq .po-faq__hero::after { z-index: 1; pointer-events: none; }
    .po-faq .po-faq__hero-copy { position: relative; z-index: 2; }
    .po-faq .po-faq__hero-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; animation: po-faq-mobile-zoom 40s ease-in-out infinite alternate; }
}
@keyframes po-faq-mobile-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .po-faq .po-faq__hero-media img { animation: none; } }

/* スマホのカテゴリ名を短縮し、ボタンと文字を拡大。PC表示は維持。 */
.po-faq__label-mobile { display: none; }
@media (max-width: 760px) {
    .po-faq__label-desktop { display: none; }
    .po-faq__label-mobile { display: inline; }
    .po-faq__tabs { grid-template-columns: 3fr 3fr 2fr 5fr 7fr; }
    .po-faq .po-faq__tab { padding-inline: 1px; font-size: clamp(9px, 2.55vw, 11px); }
}

/* スマートフォンの回答本文を少し大きくする。 */
@media (max-width: 760px) { .po-faq .po-faq__answer-text { font-size: 12px; } }


/* ABOUT-compatible page navigation and SCROLL. */
.po-faq-index {
  display: flex;
  align-items: stretch;
  height: 33.1875px;
  margin: 0;
  padding: 0 max(28px, calc((100% - 1120px) / 2));
  background: #eaeae3;
  box-shadow: inset 0 -1px #d9d9d2;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 89;
}
.po-faq-index::-webkit-scrollbar {
  display: none;
}
.po-faq-index.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--po-index-top, 0px);
}
.po-faq-index a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  flex: 1 0 auto;
  height: 100%;
  padding: 0 14px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.po-faq-index__number {
  font:
    400 12px/1 Oswald,
    sans-serif;
  color: var(--accent);
}
.po-faq-index a:is(:hover, :focus-visible) {
  background: #171717;
  color: #fff;
}
.po-faq-index a:is(:hover, :focus-visible) span {
  color: inherit;
}
.po-faq-screen-scroll {
  position: fixed;
  z-index: 99990;
  left: calc(50% - 22px);
  width: 44px;
  box-sizing: border-box;
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + 6px);
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
  font:
    400 10px/1.4 "Oswald",
    "Arial Narrow",
    Arial,
    sans-serif;
  letter-spacing: 0.12em;
}
.po-faq-screen-scroll i {
  display: block;
  width: 1px;
  height: 24px;
  overflow: hidden;
}
.po-faq-screen-scroll i::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  animation: po-faq-screen-scroll-line 2s ease-in-out infinite;
}
@keyframes po-faq-screen-scroll-line {
  0% {
    transform: translateY(-105%);
  }
  70%,
  100% {
    transform: translateY(105%);
  }
}
@media (max-width: 760px) {
  .po-faq-screen-scroll {
    gap: 3px;
    /* 5拠点共通：麹町Chromeの基準32.8976px。安全余白は加算せず大きい方を採用。 */
    bottom: max(32.8976377953px, env(safe-area-inset-bottom, 0px));
  }
  .po-faq-screen-scroll i {
    height: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .po-faq-screen-scroll i::after {
    animation: none;
  }
}

/* 中央の上矢印：文字・縦棒とは分け、矢印の領域だけクリック可能。 */
.po-faq-screen-scroll .po-screen-back-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 32px;
  margin: 0 0 -14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.po-faq-screen-scroll .po-screen-back-top svg {
  display: block;
  width: 18px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.po-faq-screen-scroll .po-screen-back-top:hover svg {
  transform: translateY(-2px);
}
.po-faq-screen-scroll .po-screen-back-top:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .po-faq-screen-scroll .po-screen-back-top {
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .po-faq-screen-scroll .po-screen-back-top svg {
    transition: none;
  }
}

.po-faq-screen-scroll .po-screen-back-top[hidden] {
  display: none;
}
.po-faq-screen-scroll[data-position="hero"] .po-screen-back-top {
  display: none;
}

.po-faq-screen-scroll {
  mix-blend-mode: normal;
  color: var(--po-scroll-ink, #fff);
}

/* The legacy shared theme fixes its global header above document flow. */
.po-faq {
  padding-top: var(--po-header-offset, 0px);
}
.po-faq {
  overflow-anchor: none;
}


.po-faq {--accent:#b3312a;padding-top:var(--po-header-offset,0px);overflow-anchor:none;}
.po-faq-index a {box-sizing:border-box;color:#222;text-decoration:none;border:0;margin:0;}
.po-faq-breadcrumb {display:flex;gap:10px;align-items:center;margin:20px 0 0;font-size:12px;line-height:1.6;}
.po-faq-breadcrumb a {color:inherit;}
.po-faq .po-faq__controls {display:flex;justify-content:flex-end;padding-top:20px;gap:0;}
.po-faq .po-faq__search-label {width:min(100%,360px);flex:0 1 360px;min-width:0;margin:0;}
.po-faq__section {scroll-margin-top:var(--jump-offset,130px);}
body:has(.po-faq) .pagetop {display:none!important;}
@media(max-width:760px){.po-faq-index,.po-faq-index.is-fixed {height:35px;padding:0 12px;}.po-faq-index a {padding:0 12px;gap:8px;font-size:11px;}.po-faq .po-faq__controls {justify-content:center;}}

/* Search remains separate from the page index. */
.po-faq .po-faq__search-form { display: flex; align-items: stretch; gap: 8px; width: min(100%, 440px); margin: 0; }
.po-faq .po-faq__search-form .po-faq__search-label { flex: 1 1 auto; width: auto; min-width: 0; }
.po-faq .po-faq__search-submit { flex: 0 0 68px; border: 1px solid #171717; border-radius: 0; padding: 8px 12px; background: #171717; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.po-faq .po-faq__search-submit:is(:hover, :focus-visible) { background: #555; border-color: #555; }
.po-faq .po-faq__search-form .po-faq__search { box-sizing: border-box; height: 44px; }

/* Prevent mobile Safari from zooming the page when the search field receives focus. */
@media (max-width: 760px) {
  .po-faq .po-faq__search-form .po-faq__search { font-size: 16px; }
}

/* Align the input and submit button, including their borders. */
.po-faq .po-faq__search-form .po-faq__search,
.po-faq .po-faq__search-form .po-faq__search-submit {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  margin: 0;
}
.po-faq .po-faq__search-form .po-faq__search-submit { display: flex; align-items: center; justify-content: center; line-height: 1; }

.po-faq-screen-scroll,.po-faq-screen-scroll span,.po-faq-screen-scroll .po-screen-back-top{color:var(--po-scroll-ink,#fff)!important;mix-blend-mode:normal;text-shadow:none}

/* Shared hero height: desktop/tablet 420px, mobile 330px. */
.po-faq .po-faq__hero { box-sizing: border-box; height: 420px !important; min-height: 0 !important; max-height: none !important; }
@media (max-width: 760px) {
  .po-faq .po-faq__hero { height: 330px !important; }
}
