@charset 'UTF-8';
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* Variables for Minimalist US Taste */
:root {
  --bg-color: #FAFAFA; /* 少しだけ温かみのある白 */
  --text-color: #111827; /* 深いグレー（TailwindのGray-900） */
  --sub-color: #6B7280; /* 上品なサブカラー（TailwindのGray-500） */
  --transition-speed: 0.8s;
  --accent-soft: #f2f1ee; /* 入力欄のベージュ */
  --accent-dark: #2f2a25; /* タイトル下線のブラウン系 */
}

body {
  /* Interを最優先にし、Mac/iOSのシステムフォントへフォールバック */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  
  /* フォントのレンダリングを美しくする（Mac/iOS向け） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* アプリ感を出すためのテキスト選択禁止 */
  user-select: none;
  -webkit-user-select: none;
  
  /* ローディング中のスクロールを防止 */
  overflow: hidden; 
  position: relative;
}

/* =========================================
   App Content (Main)
========================================= */
main {
  max-width: 480px;
  margin: auto;
  padding: 2rem 1.5rem;
  height: 100dvh; /* スマホブラウザのUIバーを考慮した高さ */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 2; /* 背景画像の上に重ねる */
  
  /* ローディング画面が消えるのと同時にフワッと表示 */
  opacity: 0;
  animation: appFadeIn 1s ease forwards;
  animation-delay: 1.6s;
}

/* --- 背景画像 (SVG) --- */
main::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  /* images/bg_gradient.svg を指定 */
  background-image: url('bg_gradient.svg');
  background-size: cover;
  background-position: center bottom; /* 下部中央を基準にする */
  background-repeat: no-repeat;
  opacity: 0.25; /* 主張しすぎないよう透明度を調整 */
  z-index: -1;
  pointer-events: none;
}

/* --- Typography --- */
h1 {
  font-size: 1.9rem; /* 約30px */
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 2rem 0; /* タイトル下の余白 32px */
  color: #222;
}

/* タイトル下線のアメリカン・マインドフルネス系テイスト */
h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-dark);
  margin-top: 1rem;
  opacity: 0.15; /* より淡く設定 */
}

section {
  margin-bottom: 2.5rem; /* セクション間の余白 40px */
}

.mainlist{
  padding: 1.5em;
  border-radius: 12px;
  background: #e9e8e4; /* わずかに濃く */
}
.sublist{
  padding-left: 1.5em;
}
li{
  list-style: none;
}
.mainlist > li:nth-child(n+2){
  padding-bottom: .5em;
  border-top:1px solid rgba(255,255,255,.8);
}
.sublist > li{
  margin: .5em 0;
  padding-left:.5em;
  text-indent:-.5em;
}
.sublist > li::before{
  content: "・";
}

strong{
  font-weight: 400;
}

/* =========================================
   UI Components (Forms & Buttons)
========================================= */
input[type="text"] {
  width: 100%; /* 全幅に */
  padding: 1.1rem 1.4rem; /* わずかに大きく */
  margin-bottom: 1.1rem; /* 余白を調整 */
  box-sizing: border-box; /* paddingを含めたサイズ計算 */

  font-size: 1rem;
  font-family: inherit;
  color: #222;

  background: var(--accent-soft);
  border: none;
  border-radius: 12px; /* 少し丸く */

  outline: none;
  transition: background 0.2s ease;
}

input[type="text"]:focus {
  background: #e9e8e4; /* わずかに濃く */
}

input[type="text"]::placeholder {
  color: #aaa;
}

button {
  width: 100%;
  padding: 1rem 1.2rem;
  margin-top: 1rem;

  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;

  background: var(--accent-dark);
  color: #fff;

  border: none;
  border-radius: 12px;

  cursor: pointer;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.85;
}

button:active {
  opacity: 0.75;
}

/* =========================================
   Loading Screen
========================================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
}

.loader-text {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--sub-color);
  /* ゆっくりと明滅する呼吸アニメーション */
  animation: pulse 2.5s infinite ease-in-out;
}

#loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   Footer (Copyright)
========================================= */
footer {
  width: 100%;
  color: var(--sub-color); /* Slateグレーに統一 */
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  position: fixed;
  bottom: 1.5rem; /* 下部の余白を大きく取る */
  left: 0;
  z-index: 3;
}
footer p {
  margin: 0;
}

/* =========================================
   Keyframes
========================================= */
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes appFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- (将来用) 広告コンテナ --- */
.ad-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}