@charset "UTF-8";

/*
 * シン反応機構 ランディングページ
 *
 * もとは pc / ipad / phone の 3 ファイルに分かれていて、中身の 9 割が同じで
 * 座標だけ違う状態だった。要素はすべて position: absolute で、CSS に書いた
 * 幅でしか成立しなかった。
 *
 * 1 ファイルにまとめ、flexbox で組み直している。ブレークポイントは
 * 折り返しの都合で 1 つだけ。
 */

:root {
  --text: #111;
  --accent: #f5a623;
  --max-width: 1100px;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "游ゴシック体", "Yu Gothic Medium", "ヒラギノ角ゴ Pro W3", sans-serif;
  line-height: 1.7;
  color: var(--text);

  /* hero とフッターを合わせて 1 画面に収める。hero だけに 100vh を持たせると
     フッターが画面外に出て、用も無いスクロールが発生する。 */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

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

/* 読み上げと検索には出すが、画面には出さない */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 1.25rem;
  background-color: #2a7fd4;
  background-image: url(../images/background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.hero__visual {
  flex: 0 1 300px;
}

.phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.hero__body {
  flex: 1 1 380px;
  max-width: 520px;
}

/* ------------------------------------------------------------------ */
/* ブランド（アイコン + アプリ名 + 無料）                              */
/* ------------------------------------------------------------------ */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__icon {
  width: 68px;
  border-radius: 15px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.45);
}

.brand__name {
  width: clamp(150px, 40%, 220px);
}

/* もとは丸い div にぼかしをかけ、その上に文字を絶対配置していた。
   1 要素にまとめて、文字と丸を一緒に動かせるようにする。 */
.brand__badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
}

/* ------------------------------------------------------------------ */
/* キャッチコピーと説明                                                */
/* ------------------------------------------------------------------ */

.catch {
  width: 100%;
  margin: 1.25rem 0 1.5rem;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
}

.cta {
  margin: 1.75rem 0 0.75rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------ */
/* ストアバッジ                                                        */
/* ------------------------------------------------------------------ */

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.stores__link {
  display: block;
}

/* バッジは提供元ごとに余白の入り方が違う。高さを揃えて見た目を合わせる。 */
.stores__link img {
  height: 44px;
  width: auto;
}

/* ------------------------------------------------------------------ */
/* フッター                                                            */
/* ------------------------------------------------------------------ */

/* もとは hero の中に絶対配置していて、背景に沈んで読めず、
   短いビューポートでは見切れていた。通常フローに出す。 */
.footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  background-color: #0d2a47;
}

.footer a {
  color: #cfe3f7;
}

/* ------------------------------------------------------------------ */
/* 横に並べられない幅                                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 800px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero__inner {
    flex-direction: column;
  }

  .hero__visual {
    flex: 0 0 auto;
    order: 2;
  }

  .phone {
    max-width: 240px;
  }

  .hero__body {
    flex: 0 0 auto;
    order: 1;
    max-width: 100%;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .lead {
    font-size: 1rem;
    text-align: left;
  }
}
