/* =========================================================
   chocoseed - style.css
   色やサイズは下の :root の変数を変えるとまとめて調整できます
   ========================================================= */

:root {
  /* 色 */
  --color-bg: #fdf9f3;          /* 背景のクリーム色 */
  --color-text: #5a3a22;        /* 基本の文字色（こげ茶） */
  --color-text-sub: #6e5544;    /* サブの文字色 */
  --color-brown: #7a4a2a;       /* ボタンの茶色 */
  --color-brown-dark: #633a1f;  /* ボタンのホバー色 */
  --color-green: #8cb84f;       /* アクセントの黄緑（下線など） */
  --color-line: #e8dccd;        /* 区切り線 */

  /* アイコン背景 */
  --tint-green: #eef3df;
  --tint-yellow: #fbf1dc;
  --tint-pink: #fbe7e1;

  /* アプリページ */
  --color-card: #ffffff;        /* カードの背景 */
  --color-premium: #d99a2b;     /* 「プレミアム」の印 */
  --tint-premium: #fbf1dc;      /* プレミアムの背景 */

  /* フォント */
  --font-base: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-logo: "Nunito", var(--font-base);

  /* レイアウト */
  --content-width: 1240px;
  --header-height: 88px;
}

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

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 2.2em;
  border-radius: 999px;
  background: var(--color-brown);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(122, 74, 42, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--color-brown-dark); transform: translateY(-2px); }
.btn__arrow { font-size: 1.4em; line-height: 1; }

.btn--small {
  padding: 0.7em 1.6em;
  font-size: 0.95rem;
  box-shadow: none;
}
.btn--small svg { width: 1.3em; height: 1.3em; }

/* ---------- ヘッダー ---------- */
.header {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--content-width);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 56px; height: 50px; }
.logo__text {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 56px; }
.nav__list a {
  position: relative;
  display: block;
  padding: 8px 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav__list a.is-current::after,
.nav__list a:hover::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-green);
}
.header .btn--small { margin-left: 48px; }

/* ---------- メインビジュアル ---------- */
.hero {
  position: relative;
  min-height: 620px;
  background: var(--color-bg);
  overflow: hidden;
}
/* 右側の写真。左端をふんわりクリーム色に溶かしています */
.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 24px 160px;
}

.hero__title {
  margin: 0 0 32px;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
/* 「ちょこっと」の下の黄緑の線 */
.underline {
  background: linear-gradient(transparent 90%, var(--color-green) 90%, var(--color-green) 95%, transparent 95%);
  padding-bottom: 0.08em;
}

.hero__lead {
  margin: 0 0 40px;
  font-size: 1.25rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  fill: var(--color-bg);
}

/* ---------- コンセプト ---------- */
.concept {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 24px 40px;
}
.concept__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.concept__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  text-align: center;
}
/* 項目の間の縦線 */
.concept__item + .concept__item { border-left: 1px solid var(--color-line); }

.concept__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 72px;
  border-radius: 50%;
}
.concept__icon svg { width: 36px; height: 36px; }
.concept__icon--green  { background: var(--tint-green); }
.concept__icon--yellow { background: var(--tint-yellow); }
.concept__icon--pink   { background: var(--tint-pink); }

.concept__text {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

/* ---------- フッター（丘のイラスト） ---------- */
.footer {
  position: relative;
  height: 160px;
}
.footer__hills {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 120px;
}
.footer__sprout {
  position: absolute;
  left: 5%;
  bottom: 70px;
  width: 72px;
}
.footer__trees {
  position: absolute;
  right: 3%;
  bottom: 62px;
  width: 130px;
}
.footer__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-sub);
}

.footer__links {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 700;
}
.footer__links a { color: var(--color-text); }
.footer__links a:hover { text-decoration: underline; text-decoration-color: var(--color-green); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- 文章ページ（プライバシーポリシーなど） ---------- */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  font-size: 1rem;
  line-height: 1.95;
}
.doc p { margin: 0 0 1em; }
.doc__title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.doc__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--color-green);
}
.doc__date { color: var(--color-text-sub); font-size: 0.9rem; margin-bottom: 2em !important; }
.doc h2 {
  margin: 2.4em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--color-line);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.doc h3 { margin: 1.4em 0 0.4em; font-size: 1.05rem; font-weight: 700; }
.doc__list { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.doc__list li::marker { color: var(--color-green); }
.doc__contact { margin: 0 0 1em; }
.doc__contact dt { font-weight: 700; margin-top: 0.6em; }
.doc__contact dd { margin: 0; color: var(--color-text-sub); }
.doc__end { text-align: right; margin-top: 2em !important; }
.doc a:not(.btn) { color: var(--color-brown); text-decoration: underline; text-decoration-color: var(--color-green); text-underline-offset: 3px; }
.doc__back { margin-bottom: 1.2em !important; font-size: 0.9rem; }
.doc__back a { text-decoration: none !important; }
.doc__applinks { display: grid; gap: 12px; margin: 0 0 1em; }
.doc__applinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--tint-green);
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s;
}
.doc__applinks a::after { content: "›"; font-size: 1.4em; line-height: 1; }
.doc__applinks a:hover { transform: translateY(-2px); }
.doc__applinks span { margin-left: auto; font-size: 0.85rem; font-weight: 500; color: var(--color-text-sub); }

/* ---------- アプリページ共通 ---------- */
.sp-only { display: none; }

/* アプリアイコン（iOS風の角丸） */
.app-icon {
  border-radius: 22.5%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(90, 58, 34, 0.12), 0 0 0 1px rgba(90, 58, 34, 0.06);
}

/* App Store ボタン */
.store-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75em 1.8em;
  border-radius: 999px;
  background: var(--color-brown);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s;
}
a.store-btn:hover { background: var(--color-brown-dark); transform: translateY(-2px); }
.store-btn.is-soon {
  background: transparent;
  color: var(--color-brown);
  border: 2px dashed var(--color-brown);
}

/* 「プレミアム」の印 */
.badge-premium {
  display: inline-block;
  padding: 0.15em 0.8em;
  border-radius: 999px;
  background: var(--tint-premium);
  color: var(--color-premium);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ページの見出し */
.page-head { text-align: center; margin-bottom: 48px; }
.page-head__title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.page-head__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--color-green);
}
.page-head__lead { margin: 20px 0 0; color: var(--color-text-sub); letter-spacing: 0.04em; }

/* ---------- アプリ一覧（/apps/） ---------- */
.apps {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.app-list { display: grid; gap: 28px; }
.app-card__link {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 36px;
  border-radius: 28px;
  background: var(--color-card);
  box-shadow: 0 8px 24px rgba(90, 58, 34, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
a.app-card__link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(90, 58, 34, 0.12); }
.app-card__icon { flex: none; width: 120px; height: 120px; }
.app-card__body { flex: 1; min-width: 0; }
.app-card__name { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.4; }
.app-card__platform { margin: 2px 0 0; font-size: 0.85rem; color: var(--color-text-sub); }
.app-card__catch { margin: 12px 0 4px; font-size: 1.15rem; font-weight: 700; }
.app-card__desc { margin: 0; color: var(--color-text-sub); }
.app-card__more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--color-brown); border-bottom: 2px solid var(--color-green); }

/* 準備中カード */
.app-card--soon .app-card__link {
  align-items: center;
  background: transparent;
  box-shadow: none;
  border: 2px dashed var(--color-line);
}
.app-card--soon .app-card__name { font-size: 1.2rem; }
.app-card__icon--soon { display: grid; place-items: center; background: var(--tint-green); box-shadow: none; }
.app-card__icon--soon svg { width: 56%; }

/* ---------- アプリ紹介ページ（/apps/〇〇/） ---------- */
.app-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.app-page__back { margin: 0 0 24px; font-size: 0.9rem; }
.app-page__back a { color: var(--color-brown); }

.app-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  border-radius: 36px;
  background: var(--color-card);
  box-shadow: 0 8px 24px rgba(90, 58, 34, 0.08);
}
.app-hero__icon { flex: none; width: 200px; height: 200px; }
.app-hero__body { min-width: 0; }
.app-hero__platform { margin: 0; font-size: 0.9rem; color: var(--color-text-sub); letter-spacing: 0.06em; }
.app-hero__name { margin: 0; font-family: var(--font-logo); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.2; letter-spacing: 0.02em; }
.app-hero__catch { margin: 12px 0 16px; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: 0.06em; line-height: 1.5; }
.app-hero__lead { margin: 0 0 24px; color: var(--color-text-sub); }

/* セクション */
.section { margin-top: 88px; }
.section__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--color-green);
}
.section__note { margin: 0 0 40px; text-align: center; font-size: 0.85rem; color: var(--color-text-sub); }
.section__catch { margin: 24px 0 8px; text-align: center; font-size: 1.2rem; font-weight: 700; }
.section__lead { max-width: 640px; margin: 0 auto 32px; text-align: center; color: var(--color-text-sub); }

/* 機能紹介（画像と文章を左右交互に並べる） */
.features { display: grid; gap: 64px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media img { width: 100%; height: auto; border-radius: 24px; }
.feature__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--tint-green);
  color: #9aae7a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.feature__num {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 1.1rem;
  color: var(--color-green);
  letter-spacing: 0.1em;
}
.feature__name { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.5; }
.feature__name .badge-premium { margin-left: 6px; }
.feature__catch { margin: 6px 0 12px; font-size: 1.1rem; font-weight: 700; color: var(--color-brown); }
.feature__text { margin: 0; color: var(--color-text-sub); }

/* 料金プラン */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 32px;
}
.plan {
  padding: 28px 24px;
  border-radius: 28px;
  background: var(--color-card);
  box-shadow: 0 8px 24px rgba(90, 58, 34, 0.08);
  text-align: center;
}
.plan--premium { background: var(--tint-premium); }
.plan__name { margin: 0; font-weight: 800; letter-spacing: 0.06em; }
.plan--premium .plan__name { color: var(--color-premium); }
.plan__price { margin: 4px 0; font-family: var(--font-logo); font-size: 2.6rem; line-height: 1.3; }
.plan__price small { margin-left: 4px; font-family: var(--font-base); font-size: 0.9rem; font-weight: 700; }
.plan__note { margin: 0; font-size: 0.85rem; color: var(--color-text-sub); }

.table-wrap { max-width: 720px; margin: 0 auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border-radius: 20px;
  overflow: hidden;
  font-size: 0.95rem;
}
.compare th,
.compare td { padding: 12px 16px; border-bottom: 1px solid var(--color-line); text-align: center; }
.compare tbody tr:last-child > * { border-bottom: none; }
.compare thead th { background: var(--tint-green); font-weight: 800; }
.compare thead th:last-child { background: var(--tint-premium); color: var(--color-premium); }
.compare tbody th { text-align: left; font-weight: 700; }
.compare td,
.compare thead th { white-space: nowrap; }  /* 「30 件まで」などを途中で折り返さない */
.compare td:last-child { background: #fffaf0; }
.mark-yes { color: var(--color-premium); font-weight: 800; font-size: 1.1em; }
.mark-no { color: #c9b8a6; }

/* 対応環境 */
.spec-list { max-width: 640px; margin: 24px auto 0; padding-left: 1.4em; list-style: disc; }
.spec-list li::marker { color: var(--color-green); }
.app-page__links { max-width: 640px; margin: 24px auto 0; }
.app-page__links a { color: var(--color-brown); font-weight: 700; border-bottom: 2px solid var(--color-green); }

/* ページ下のダウンロード案内 */
.app-page__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 88px;
  padding: 40px 24px;
  border-radius: 36px;
  background: var(--tint-green);
  text-align: center;
}
.app-page__cta .app-icon { width: 88px; height: 88px; }
.app-page__cta p { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.06em; }

/* =========================================================
   タブレット・スマホ
   ========================================================= */ */
@media (max-width: 1024px) {
  .nav__list { gap: 28px; }
  .header .btn--small { margin-left: 16px; }
  .concept__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .concept__item:nth-child(3) { border-left: none; }
}

@media (max-width: 768px) {
  .header__inner { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 8px 16px; }
  .logo__mark { width: 40px; height: 36px; }
  .logo__text { font-size: 1.6rem; }
  .header .btn--small { margin-left: auto; padding: 0.6em 1.1em; font-size: 0.85rem; }
  .nav { order: 3; width: 100%; margin: 0; }
  .nav__list { justify-content: space-between; gap: 4px; font-size: 0.9rem; }
  .nav__list a { white-space: nowrap; letter-spacing: 0.02em; padding: 6px 2px; }

  /* スマホでは写真を文字の背景に敷き、クリーム色の幕をかけて文字を読みやすく */
  .hero { min-height: 0; }
  .hero__photo {
    width: 100%;
    object-position: 70% center;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
      rgba(253, 249, 243, 0.88) 0%,
      rgba(253, 249, 243, 0.7) 55%,
      rgba(253, 249, 243, 0.15) 100%);
  }
  .hero__inner { padding: 36px 16px 72px; }
  .hero__wave { z-index: 1; }
  .hero__title,
  .hero__lead { text-shadow: 0 0 12px var(--color-bg), 0 0 4px var(--color-bg); }
  .hero__title { font-size: min(2.1rem, 8.6vw); letter-spacing: 0.04em; }
  .hero__lead { font-size: 1rem; }
  .hero__lead br { display: none; }
  .hero .btn { font-size: 0.75rem; }  /* スマホではボタンを小さめに */
  .hero__wave { height: 40px; }

  .concept { padding: 16px 16px 24px; }
  .concept__list { row-gap: 28px; }
  .concept__item { gap: 10px; }
  .concept__text { font-size: 1.2rem; }
  .concept__icon { width: 76px; height: 60px; }

  .footer { height: 120px; }
  .footer__hills { height: 80px; }
  .footer__sprout { width: 52px; bottom: 50px; }
  .footer__trees { width: 100px; bottom: 44px; }
  .footer__links { bottom: 34px; font-size: 0.8rem; }

  .doc { padding: 32px 24px 56px; font-size: 0.95rem; }
  .doc__applinks a { padding: 12px 18px; }

  /* アプリページ */
  .sp-only { display: inline; }
  .page-head { margin-bottom: 32px; }
  .apps { padding: 36px 16px 56px; }
  .app-card__link { gap: 18px; padding: 22px 20px; border-radius: 22px; }
  .app-card__icon { width: 72px; height: 72px; }
  .app-card__name { font-size: 1.3rem; }
  .app-card__catch { font-size: 1rem; margin-top: 8px; }
  .app-card__desc { font-size: 0.9rem; }

  .app-page { padding: 28px 16px 56px; }
  .app-hero { flex-direction: column; gap: 20px; padding: 32px 22px; border-radius: 28px; text-align: center; }
  .app-hero__icon { width: 120px; height: 120px; }
  .app-hero__lead { font-size: 0.92rem; text-align: left; }
  .app-hero__lead br { display: none; }
  .section { margin-top: 64px; }
  .section__note { margin-bottom: 28px; }
  .features { gap: 48px; }
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .feature__name { font-size: 1.3rem; }
  .feature__catch { font-size: 1rem; }
  .feature__text { font-size: 0.92rem; }
  .plans { gap: 12px; }
  .plan { padding: 20px 12px; border-radius: 22px; }
  .plan__price { font-size: 2rem; }
  .compare { font-size: 0.82rem; }
  .compare th, .compare td { padding: 10px 8px; }
  .app-page__cta { margin-top: 64px; border-radius: 28px; }
}

/* 幅の狭いスマホ（iPhone SE・画面表示を拡大設定にしている場合など） */
@media (max-width: 400px) {
  .header__inner { gap: 6px 10px; }
  .logo { gap: 6px; }
  .logo__mark { width: 32px; height: 29px; }
  .logo__text { font-size: 1.35rem; }
  .header .btn--small { padding: 0.55em 0.9em; font-size: 0.78rem; gap: 0.4em; }
  .nav__list { font-size: 0.8rem; }
  .concept__item { padding: 0 8px; }
  .concept__text { font-size: 1.05rem; letter-spacing: 0.04em; }

  .app-card__link { flex-direction: column; }
  .app-hero { padding: 28px 16px; }
  .plans { grid-template-columns: 1fr; }
  .compare { font-size: 0.78rem; }
  .compare th, .compare td { padding: 9px 6px; }
  .compare td, .compare thead th { font-size: 0.72rem; }
  .app-page__cta p { font-size: 1.05rem; letter-spacing: 0.02em; }
}
