/* 公式アプリ案内：公開前確認用 */
.app-preview-page {
  --gold: var(--color-secondary, #FFCA00);
  --ink: var(--color-dark, #171717);
  --line: var(--color-line, #dedbd2);
  --max: var(--site-width, 1360px);
  --muted: var(--color-muted, #66645f);
  --red: var(--color-primary, #c91f2b);
}

.sf-feature-grid--with-app {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sf-feature-grid > .sf-feature-card--app {
  border-top-color: var(--gold);
}

.sf-feature-card--app img {
  object-position: center top;
}

.sf-hero-media {
  position: relative;
}

.sf-hero-app-link {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 0;
  min-width: 196px;
  min-height: 44px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  line-height: 1.35;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.sf-hero-app-link span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.sf-hero-app-link strong {
  margin-top: 2px;
  font-size: 18px;
}

.sf-hero-app-link small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
}

.sf-hero-app-link:hover,
.sf-hero-app-link:focus-visible {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

@media (max-width: 768px) {
  .sf-hero-app-link {
    top: auto;
    right: 0;
    bottom: 14px;
    min-width: 174px;
    padding: 10px 13px;
  }

  .sf-hero-app-link strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-hero-app-link {
    transition: none;
  }
}

/* 公式アプリ：公開前のよくある質問 */
.app-faq {
  width: calc(100% - 56px);
  max-width: 1064px;
  margin: 36px auto 0;
  padding: 44px 48px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 27, 10, .08);
}

.app-faq-list {
  border-top: 1px solid var(--line);
}

.app-faq-item {
  border-bottom: 1px solid var(--line);
}

.app-faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 18px 52px 18px 42px;
  display: flex;
  align-items: center;
  font-weight: 900;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

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

.app-faq-item summary::before,
.app-faq-answer::before {
  position: absolute;
  left: 8px;
  color: var(--red);
  font-weight: 900;
}

.app-faq-item summary::before {
  content: "Q.";
}

.app-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.app-faq-item[open] summary::after {
  content: "−";
}

.app-faq-item summary:hover {
  background: #faf8f2;
}

.app-faq-item summary:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: -3px;
}

.app-faq-answer {
  position: relative;
  padding: 0 52px 20px 42px;
}

.app-faq-answer::before {
  content: "A.";
}

.app-faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .app-faq {
    width: auto;
    margin: 30px 20px 0;
    padding: 34px 24px;
  }

  .app-faq-item summary {
    padding: 18px 38px 18px 34px;
  }

  .app-faq-item summary::before,
  .app-faq-answer::before {
    left: 2px;
  }

  .app-faq-item summary::after {
    right: 4px;
  }

  .app-faq-answer {
    padding: 0 10px 20px 34px;
  }
}

.sf-app-promo {
  max-width: var(--max);
  margin: auto;
  padding: 0 28px 64px;
}

.sf-app-promo-card {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  overflow: hidden;
  color: #fff;
  background: #151515;
  border-top: 5px solid var(--gold);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sf-app-promo-card:hover,
.sf-app-promo-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.sf-app-promo-copy {
  padding: clamp(38px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sf-app-promo-label,
.app-preview-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.sf-app-promo-copy h2,
.app-preview-copy h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.3;
}

.sf-app-promo-lead {
  margin: 18px 0 24px;
  color: #e9e9e9;
  font-size: 16px;
}

.sf-app-promo-link {
  width: max-content;
  min-height: 44px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  transition: color .18s ease, background-color .18s ease;
}

.sf-app-promo-card:hover .sf-app-promo-link,
.sf-app-promo-card:focus-visible .sf-app-promo-link {
  color: var(--ink);
  background: var(--gold);
}

.sf-app-promo-visual,
.app-preview-visual {
  min-height: 350px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, .52), transparent 30%),
    linear-gradient(145deg, #FFCA00, #FFCA00 58%, #FFCA00);
}

.sf-app-mark {
  position: relative;
  width: min(245px, 75%);
  aspect-ratio: 1;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 24%;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
}

.sf-app-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sf-app-mark span {
  position: absolute;
  right: -10px;
  bottom: 20px;
  padding: 7px 14px;
  color: var(--ink);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.app-preview-main {
  padding: 34px 0 0;
  background: #f8f5ed;
}

.app-preview-hero {
  max-width: var(--max);
  min-height: 650px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  overflow: hidden;
  background: #fff;
  border-top: 5px solid var(--gold);
  box-shadow: 0 18px 46px rgba(34, 27, 10, .1);
}

.app-preview-copy {
  padding: clamp(48px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
}

.app-preview-copy h1 .app-preview-release-date {
  width: max-content;
  margin-top: 18px;
  padding: 7px 12px;
  display: block;
  color: var(--ink);
  background: var(--gold);
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: .42em;
  font-weight: 900;
  line-height: 1.4;
}

.app-preview-copy h1 .app-preview-title-line {
  display: block;
  white-space: nowrap;
}

.app-preview-lead {
  max-width: 650px;
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.app-preview-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.app-store-placeholders {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-store-placeholder {
  min-width: 190px;
  min-height: 58px;
  padding: 9px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #c9c3b5;
  border-radius: 8px;
  color: var(--ink);
  background: #f8f5ed;
  line-height: 1.25;
}

.app-store-placeholder small {
  color: var(--muted);
  font-size: 10px;
}

.app-store-placeholder strong {
  margin-top: 3px;
  font-size: 16px;
}

.app-preview-status {
  max-width: 980px;
  margin: auto;
  padding: 64px 28px 72px;
}

.app-screen-concepts {
  max-width: 1120px;
  margin: auto;
  padding: 86px 28px 40px;
}

.app-screen-concepts-lead {
  max-width: 760px;
  margin: -8px 0 34px;
  color: var(--muted);
}

.app-screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

.app-screen-card {
  min-width: 0;
  margin: 0;
  padding: 30px;
  background: #fff;
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 28px rgba(34, 27, 10, .08);
}

.app-screen-frame {
  max-width: 330px;
  margin: auto;
  padding: 10px;
  overflow: hidden;
  background: #151515;
  border-radius: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
}

.app-screen-frame img {
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.app-screen-card figcaption {
  margin-top: 28px;
  text-align: center;
}

.app-screen-card figcaption strong,
.app-screen-card figcaption span {
  display: block;
}

.app-screen-card figcaption strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 26px;
}

.app-screen-card figcaption span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.app-screen-card figcaption .app-concept-tag {
  width: max-content;
  margin: 10px auto 18px;
  padding: 5px 12px;
  color: var(--ink);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.app-concept-details {
  margin: 0;
  text-align: left;
}

.app-concept-details div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.app-concept-details dt {
  font-weight: 900;
}

.app-concept-details dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.app-preview-status h2 {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 5px solid var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 3vw, 40px);
}

.app-preview-visual {
  min-height: 650px;
  padding: 52px 48px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  background: #FFCA00;
}

.app-preview-device {
  width: min(250px, 44%);
  margin: 0;
  padding: 9px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 22px 42px rgba(57, 40, 0, .2);
}

.app-preview-device--points {
  margin-bottom: 52px;
}

.app-preview-device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 21px;
}

.app-preview-device figcaption {
  padding: 11px 6px 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.app-preview-status {
  max-width: 1064px;
  margin: 36px auto 72px;
  padding: 44px 48px;
  background: #FFCA00;
}

.app-preview-status p {
  margin: 0 0 14px;
}

.app-preview-back {
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  line-height: 1.4;
  transition: color .18s ease, background-color .18s ease;
}

.app-preview-back:hover,
.app-preview-back:focus-visible {
  color: #fff;
  background: var(--ink);
}

.app-preview-status-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.app-preview-status-actions .app-preview-back {
  min-width: min(100%, 220px);
  margin-top: 0;
  justify-content: center;
}

@media (max-width: 768px) {
  .app-preview-status-actions .app-preview-back { width: 100%; }
}

@media (max-width: 768px) {
  .sf-app-promo {
    padding: 0 20px 48px;
  }

  .sf-app-promo-card,
  .app-preview-hero {
    display: flex;
    flex-direction: column;
  }

  .sf-app-promo-copy,
  .app-preview-copy {
    padding: 38px 24px;
  }

  .sf-app-promo-visual,
  .app-preview-visual {
    min-height: 430px;
    order: -1;
  }

  .app-preview-main {
    padding-top: 18px;
  }

  .app-preview-hero {
    margin: 0 20px;
  }

  .app-preview-visual {
    padding: 38px 22px 26px;
  }

  .app-preview-device {
    width: min(230px, 46%);
  }

  .app-preview-device--points {
    margin-bottom: 34px;
  }

  .app-store-placeholders {
    display: grid;
  }

  .app-store-placeholder {
    width: 100%;
  }

  .app-preview-status {
    margin: 30px 20px 54px;
    padding: 34px 24px;
  }

  .app-screen-concepts {
    padding: 52px 20px 18px;
  }

  .app-screen-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-screen-card {
    padding: 24px 18px;
  }

  .app-screen-frame {
    max-width: 290px;
  }
}

@media (max-width: 1100px) {
  .sf-feature-grid--with-app {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sf-feature-grid--with-app {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sf-feature-grid--with-app {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .sf-app-promo-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-app-promo-card,
  .sf-app-promo-link,
  .app-preview-back {
    transition: none;
  }

  .sf-app-promo-card:hover,
  .sf-app-promo-card:focus-visible {
    transform: none;
  }
}
