/* ==========================================================================
   1. 基本設定 / 変数 (CSS Variables)
   ========================================================================== */
:root {
  --bg-color: #f7f7f8;
  --card-bg: #ffffff;
  --text-main: #090809;
  --text-muted: #6B6B6B;
  --border-color: #8EA6A5;
  --green: #436B69;
  --max-width: 680px;
  --btn-bg: #090809;
  
  --font-serif: 'Helvetica', Baskerville, 'Baskerville Old Face', 'Garamond', serif;
  --font-sans: Helvetica, Arial, 'Helvetica Neue', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1 {
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 24px;
  -webkit-font-smoothing: antialiased;
  font-weight:300;
  padding-bottom: 8px
}

h2 {
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
  font-weight:300;
  padding-bottom: 12px;
  padding-top: 16px;
}

h3 {
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  font-weight:300;
  padding-bottom: 8px;
  padding-top: 16px;
}

p {
  color: var(--text-muted);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-weight:300;
  padding-bottom: 8px
}


body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 8px
}

a {
  color: #436B69;
  text-decoration: none;
  font-weight: 600;
}

section {
    margin-top: 30px;
    margin-bottom: 30px;
}

ul {
  list-style: none;
}

/* ==========================================================================
   2. レイアウト構造 & ヘッダー
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main.container {
  padding-top: 80px;
}


header {
  position: fixed;        /* sticky から fixed に変更 */
  top: 0;
  left: 0;
  width: 100%;            /* 横幅いっぱいに広げる */
  padding: 16px 0;
  background-color: rgba(247, 247, 248, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari対応 */
  z-index: 1000;          /* 他の要素より手前に表示 */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-mark {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
}

/* ロゴの中に画像（<img>）が入っている場合の歪み防止 */
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.back-link {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-link:hover {
  color: var(--text-main);
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  padding: 0;          /* 余計な余白をカット */
  line-height: 1;
}

/* 全画面メニュー */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 2000; /* ← 1000（headerのz-index）より大きな値に変更 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 40px 32px 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-main);
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.menu-birds {
  font-size: 40px;
  background: #000;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 32px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  text-align: right;
}

.menu-list a {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-main);
  transition: opacity 0.2s;
}

.menu-list a:hover {
  opacity: 0.6;
}

.menu-app-store {
  display: inline-block;
  background-color: var(--btn-bg);
  color: #fff;
  padding: 14px 48px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 300;
  margin-top: 8px;
}

.menu-divider {
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  background-color: #3e4e4a;
  margin-top: 40px;
}

/* ==========================================================================
   3. トップページ専用 (Hero / Screenshots)
   ========================================================================== */
.hero {
  text-align: center;
  padding: 40px 0 60px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 42px;
  font-style: italic;
  letter-spacing: -0.05em;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 28px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--btn-bg);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
  margin-top: 32px;
  margin-bottom: 16px;
}

.app-store-btn:hover {
  opacity: 0.85;
}

.screenshots {
  margin: 20px -24px 60px;
  padding: 0 24px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.phone-mockup {
  flex: 0 0 220px;
  height: 440px;
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #fff;
  color: #888;
  font-size: 12px;
  padding: 16px;
  text-align: center;
}

/* ==========================================================================
   4. 各種セクション・カード要素
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.feature-item {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--green);
}

.small-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.custom-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-muted);
}

.custom-list li:last-child {
  margin-bottom: 0;
}

.custom-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--text-muted);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ddd;
  margin-bottom: 16px;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8%;
}

.tag {
  font-size: 12px;
  background: #F5F7F7;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-secondary {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-secondary:hover {
  opacity: 0.8;
}

.center-action {
  text-align: center;
  margin: 32px 0;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-coffee:hover {
  opacity: 0.85;
}

/* ==========================================================================
   5. ガイドライン・静的ページ用
   ========================================================================== */

.card-box {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.card-box-title {
  font-weight: 300;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}


.date-text {
  text-align: right;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 40px;
}

/* ==========================================================================
   6. フッター
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 60px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  flex: 1;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a:hover {
  text-decoration: underline;
}


@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
  }
  /*
  .hero-sub {
    text-align: left;
    display: inline-block;
  }
  */
}