/* ------------------------------
   基本設定（リセット・共通変数）
--------------------------------*/
:root {
  --ink: #0f172a;   /* 文字色（濃紺） */
  --muted: #475569; /* サブテキスト色 */
  --sea: #2563eb;   /* 海をイメージした青 */
  --sand: #f8fafc;  /* 薄い背景色 */
}
* { box-sizing: border-box; margin:0; padding:0; }
body {
  font-family: system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }

/* ------------------------------
   Header（固定ナビ）
--------------------------------*/
header {
  position: sticky;                 /* スクロールしても上部に固定 */
  top: 0;
  z-index: 30;                      /* 前面に表示 */
  background: #ffffffcc;            /* 半透明の白背景 */
  backdrop-filter: saturate(180%) blur(8px); /* iOS風ガラス効果 */
  border-bottom: 1px solid #e5e7eb; /* 下境界線 */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* 左右にロゴとボタン配置 */
  padding: .8rem 0;
}
.logo {
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--ink);
}

/* ナビ右側の「Book Your Stay」ボタン */
.nav a.btn {
  background: #fff;                 /* 白背景 */
  border: 2px solid var(--sea);     /* 枠は青 */
  color: var(--sea);                /* 青文字 */
  font-weight: 600;
  font-size: 1.05rem;               /* 通常文字より少し大きめ */
  padding: .6rem 1rem;              /* 余白を広めに */
  border-radius: .6rem;
  transition: background .25s, color .25s;
}
.nav a.btn:hover {
  background: var(--sea);           /* ホバーで青背景 */
  color: #fff;                      /* 白文字 */
}

/* ------------------------------
   Hero セクション
--------------------------------*/
.hero {
  position: relative;
  height: 100vh;                     /* 全画面表示 */
  margin-top: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* 画面にフィット */
}
.hero .overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65));
}
.card { box-shadow: 0 2px 8px rgba(0,0,0,.08); }/* 自然な浮感 */

.hero-inner {
  position: relative;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);        /* 中央寄せ */
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
}
.hero .lead {
  color: #f1f5f9;
  margin: 1rem auto;
  max-width: 640px;
}
.hero .cta {
  margin-top: 1.2rem;
}
.hero .btn {
  margin: .25rem;
}
.hero .btn-outline {
  background: rgba(0,0,0,.35);        /* 半透明黒背景 */
  color: #fff;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
}
.hero .btn-outline:hover {
  background: rgba(0,0,0,.5);
}

/* ------------------------------
   Section 共通
--------------------------------*/
section {
  padding: 4rem 0;
}
.container {
  width: 92%;
  max-width: 1080px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
}
.section-head p {
  color: var(--muted);
  max-width: 640px;
  margin: .6rem auto 0;
}

/* ------------------------------
   About セクション
--------------------------------*/
.about {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about .photo {
  border-radius: 1rem;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}
.about h3 {
  font-size: 1.4rem;
  margin-bottom: .6rem;
}
.about p {
  margin-bottom: .5rem;
}

/* ------------------------------
   Destinations（カード型）
--------------------------------*/
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }

.card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card .thumb {
  min-height: 180px;
  background-size: cover;
  background-position: center;
}
.card .body {
  padding: 1rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: .4rem;
}
.card p {
  color: var(--muted);
  font-size: .95rem;
}

/* ------------------------------
   Where to Stay（宿泊情報）
--------------------------------*/
.stay {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
}
.stay .panel {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}
.stay .panel .thumb {
  min-height: 200px;
  background-size: cover;
  background-position: center;
}
.stay .panel h3 {
  font-size: 1.3rem;
  margin: .8rem;
}
.stay .panel p {
  margin: 0 .8rem 1rem;
  color: var(--muted);
}
.stay .panel .btn {
  margin: 0 .8rem 1rem;
}

/* ------------------------------
   Footer
--------------------------------*/
footer {
  background: var(--sand);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer strong {
  font-weight: 700;
}
.foot-small {
  font-size: .9rem;
  color: var(--muted);
}
.partner a {
  margin-right: .6rem;
  color: var(--sea);
  font-weight: 500;
}
.partner a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Utility
--------------------------------*/
.btn {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: .6rem;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--sea);
  color: var(--sea);
}
.btn-outline:hover {
  background: var(--sea);
  color: #fff;
}
.muted {
  color: var(--muted);
}

/* Mobily Days ロゴ風テキスト */
.mobily-logo {
  display: inline-block;
  margin-left: 0.6rem;       /* 見出し文字との間隔 */
  background: #2563eb;       /* 青背景 */
  color: #fff;               /* 白文字 */
  font-weight: 700;
  font-size: 0.9rem;         /* 見出し横なので少し小さめ */
  padding: 0.2rem 0.5rem;    /* 余白 */
  border-radius: 0.4rem;     /* 角丸 */
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', Arial, sans-serif;
}
/* 共通のロゴ風スタイル */
.ic-logo {
  display: inline-block;
  margin: 0.3rem 0.4rem 0 0;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.4rem;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* それぞれのイメージカラー */
.ic-logo.suica  { background: #66ff00; }  /* 緑っぽい */
.ic-logo.pasmo  { background: #ff99cc; }  /* ピンク */
.ic-logo.icoca  { background: #66ccff; }  /* 青 */

/* QRリーダーの写真サイズ調整 */
.mobily-photo {
  max-width: 180px;   /* ← 写真を小さく（例: 180px） */
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ============ iPhone / Mobile Safari 強化 ============ */

/* 1) セーフエリア（ノッチ）対応 */
:root { /* 予備のパディング（他要素の崩れ防止に軽く） */
  padding-top: env(safe-area-inset-top);
}
header {
  padding-top: max(0px, env(safe-area-inset-top));
}

/* 2) モバイルSafariの100vh問題対策（アドレスバーを考慮） */
.hero {
  /* 従来の100vhより新しい動的ビューポート単位を優先 */
  min-height: 100svh;
}

/* 3) 最小幅（iPhone SE等）での読みやすさとボタン可用性 */
@media (max-width: 375px){
  .hero .lead { font-size: .95rem; line-height: 1.6; }
  .cta .btn { display:block; width:100%; margin:.5rem 0; }
  .grid.grid-3 { grid-template-columns: 1fr; } /* 3→1カラム */
  .stay { grid-template-columns: 1fr; }       /* 2→1カラム（必要に応じて） */
  .thumb { min-height: 200px; }
}

/* 4) タップ領域の確保（Apple推奨44px以上） */
.btn, .btn-outline, .nav a.btn {
  min-height: 44px;
  padding: .7rem 1rem;
}

/* 5) iOSテキストの自動拡大抑止と読みやすさ */
html {
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
}

/* 6) 高DPRでの背景画像ぼけ防止（保険） */
.thumb, .photo {
  background-size: cover;
  image-rendering: auto;
}

/* 7) モーション弱め設定に追従（端末のアクセシビリティ設定） */
@media (prefers-reduced-motion: reduce){
  .hero-video { animation: none; }
}

/* 8) ホバー無し端末のフォーカス可視化＆タップ感 */
@media (hover: none){
  a.btn, .btn-outline { outline-offset: 2px; }
}
.btn:active, .btn-outline:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}
/* 2列グリッドの定義（未定義なら追加） */
.grid { display: grid; gap: 1rem; }
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* スマホで1列に落とす */
@media (max-width: 768px) {
  .grid.grid-2 { grid-template-columns: 1fr; }
}

/* Hero上：透明＋白文字 */
header.transparent {
  background: transparent;
  border-color: transparent;
}
header.transparent .logo-text,
header.transparent nav a { color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35); }

/* スクロール後／Heroなし：白背景＋濃色文字 */
header.solid {
  background:#ffffffcc;
  border-color:#e5e7eb;
}
header.solid .logo-text,
header.solid nav a { color:#0f172a; text-shadow:none; }

header.transparent .logo-text {
  background: rgba(255,255,255,0.85);
  color: #0f172a;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
header.solid .logo-text {
  background: transparent;
  color: #0f172a;
}