/* ==========================================================================
   TeeMatch LP - base
   ========================================================================== */

:root {
  --color-bg: #f3f3f1;
  --color-green: #008e66;
  --color-text: #231815;
  --color-white: #ffffff;
  --color-red: #d80004;
  --content-max-width: 28.125rem; /* 450px */
  --section-padding-x: 1.5rem; /* 24px */
  --font-family: YakuHanJP, "Figtree", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-attachment: fixed;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Skip link -------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: 0.75em 1.25em;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Focus visibility --------------------------------------------------------*/

a:focus-visible,
button:focus-visible {
  outline: 0.1875rem solid var(--color-red);
  outline-offset: 0.125rem;
}

/* ==========================================================================
   スマホ特化型レイアウト（中央固定幅 + 左右背景）
   ========================================================================== */

.page-wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 3rem rgba(0, 0, 0, 0.08);
}

@media (max-width: 28.125rem) {
  .page-wrap {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header {
  padding: 1.75rem var(--section-padding-x) 0;
}

.site-header__logo {
  width: 22%;
  height: auto;
}

/* ==========================================================================
   ヒーロー
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 1.6rem;
}

.hero__stage {
  position: relative;
  width: 100%;
}

.hero__bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__phone {
  position: absolute;
  left: 0;
  top: -60px;
  width: 100%;
  height: auto;
}

.hero__promo {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  z-index: 2;
  text-decoration: none;
}

.hero__promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.hero__promo-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.hero__promo-label {
  font-size: 0.7rem;
  color: var(--color-text);
  white-space: nowrap;
}

.hero__promo-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 100%;
  color: var(--color-text);
}

.hero__promo-badge {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.hero__banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 90px;
  z-index: 1;
  background: none;
  color: var(--color-white);
  padding: 0 24px;
  border-radius: 0;
}

.hero__banner h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__banner p {
  margin-top: 1em;
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================================================================
   スティッキープロモバー（feature-1を過ぎてからfooterまで表示）
   ========================================================================== */

.sticky-promo {
  position: fixed;
  left: 50%;
  bottom: 0.5rem;
  transform: translate(-50%, 150%);
  width: calc(100% - 24px);
  max-width: calc(28.125rem - 24px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  z-index: 50;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.sticky-promo.is-visible {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-promo {
    transition: none;
  }
}

/* ==========================================================================
   フィーチャーセクション（共通）
   ========================================================================== */

.feature {
  padding: 3.5rem var(--section-padding-x) 0;
  text-align: left;
}

.feature__heading {
  font-size: 1.6rem;
  font-weight: 700;
}

.feature__heading--accent {
  color: var(--color-green);
}

#feature-1-heading {
  text-align: center;
  font-size: 2.4rem;
}

.feature__brand {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.feature__brand-suffix {
  font-size: 18px;
}

.feature__text {
  margin-top: 1em;
  font-size: 1rem;
}

.feature__image {
  display: block;
  width: calc(100% + var(--section-padding-x) * 2);
  max-width: calc(100% + var(--section-padding-x) * 2);
  height: auto;
  margin: 0 calc(var(--section-padding-x) * -1) 2rem;
}

.feature--stats {
  padding-bottom: 3.5rem;
}

/* ==========================================================================
   その他の便利機能
   ========================================================================== */

.benefits {
  margin-top: 0.5rem;
  background: var(--color-green);
  color: var(--color-white);
  padding: 3rem var(--section-padding-x) 6rem;
}

.benefits__heading {
  font-size: 1.4rem;
  font-weight: 700;
}

.benefits__list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefits__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.35);
}

.benefits__image {
  width: 24%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 18%;
  flex-shrink: 0;
  object-fit: cover;
}

.benefits__item h3 {
  font-size: 1rem;
  font-weight: 700;
}

.benefits__item p {
  margin-top: 0.5em;
  font-size: 0.85rem;
  font-weight: 500;
}

.benefits__bullets {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   TeeMatchの使い方
   ========================================================================== */

.how-to {
  position: relative;
  margin-top: -2.5rem;
  background: #ffffff;
  border-radius: 2.5rem 2.5rem 0 0;
  padding: 3rem var(--section-padding-x) 3.5rem;
  text-align: center;
}

.how-to__heading {
  font-size: 1.5rem;
  font-weight: 700;
}

.how-to__list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
}

.how-to__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.how-to__ball {
  position: relative;
  flex-shrink: 0;
  width: 14%;
  aspect-ratio: 1 / 1;
}

.how-to__ball img {
  width: 100%;
  height: 100%;
}

.how-to__number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-red);
}

.how-to__item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-green);
}

.how-to__item p {
  margin-top: 0.5em;
  font-size: 1rem;
}

/* ==========================================================================
   そもそも、ラスベガスってなに？
   ========================================================================== */

.about {
  position: relative;
  margin: 0 0.8rem;
  overflow: hidden;
  background-image: linear-gradient(
      to bottom,
      rgba(10, 30, 20, 0.55),
      rgba(10, 30, 20, 0.7)
    ),
    url("../images/image_what_bg.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.about__inner {
  padding: 3rem 1.5rem;
}

.about h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.about p {
  margin-top: 1em;
  font-size: 0.9rem;
  font-weight: 500;
}

.about__button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.875em 1.5em;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 2rem;
  text-decoration: none;
}

/* ==========================================================================
   よくある質問
   ========================================================================== */

.faq {
  padding: 3.5rem var(--section-padding-x);
  scroll-margin-top: 1rem;
  background: #FFFFFF;
}

.faq__heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.faq__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.faq__item {
  padding: 1.5rem 0;
  border-top: 0.0625rem solid rgba(0, 0, 0, 0.1);
}

.faq__list .faq__item:last-child {
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.1);
}

.faq__question {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.faq__q-badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.faq__answer {
  margin-top: 0.75em;
  font-size: 0.9rem;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
  padding: 3rem var(--section-padding-x) 2.5rem;
  text-align: center;
}

.site-footer__logo {
  width: 35%;
  height: auto;
  margin: 0 auto;
}

.site-footer__nav {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  text-decoration: underline;
}

.site-footer__copy {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(35, 24, 21, 0.6);
}

.site-footer__disclaimer {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.7;
  color: rgba(35, 24, 21, 0.5);
}

/* ==========================================================================
   ルール解説ページ（rules.html）
   ========================================================================== */

body.rules-page {
  background-color: #ffffff;
}

body.rules-page .page-wrap {
  background-color: #ffffff;
}

.page-header {
  padding: 1.75rem var(--section-padding-x) 0;
}

.page-header__back {
  display: inline-flex;
  margin-top: 12px;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green);
  text-decoration: none;
}

.article-hero {
  padding: 2rem var(--section-padding-x) 2.5rem;
}

.article-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-green);
}

.article-hero h1 {
  margin-top: 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}
.article-hero h2{
  font-size: 1.3rem!important;
}

.article-hero p {
  margin-top: 1rem;
  font-size: 1rem;
}

.article-section {
  padding: 3rem var(--section-padding-x) 0;
}

.article-section:last-of-type {
  padding-bottom: 3.5rem;
}

.article-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-green);
}

.article-section > p {
  margin-top: 1rem;
  font-size: 1rem;
}

.article-section__intro {
  margin-top: 1rem;
  font-size: 1rem;
}

.rule-example {
  margin-top: 1.5rem;
  background: var(--color-bg);
  border-radius: 1rem;
  padding: 1.25rem;
}

.rule-example__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green);
}

.rule-example__body {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.rule-example__score {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.rule-example__score span {
  color: var(--color-green);
}

.rule-block {
  margin-top: 2rem;
}

.rule-block:first-of-type {
  margin-top: 1.75rem;
}

.rule-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.rule-block p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.inline-cta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 8px;
  text-decoration: none;
}

.inline-cta__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.inline-cta__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.inline-cta__text span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}