@charset "utf-8";

/* ===== フォント ===== */
@font-face {
  font-family: "ShinRetroMaruGothic";
  src: url("../assets/fonts/ShinRetroMaruGothic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ShinRetroMaruGothic";
  src: url("../assets/fonts/ShinRetroMaruGothic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ShinRetroMaruGothic";
  src: url("../assets/fonts/ShinRetroMaruGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== ベース ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e2eded;
  color: #5d6363;
  font-family: "ShinRetroMaruGothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #318989;
  text-decoration: none;
}
a:hover {
  color: #1f5267;
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 内側ハイライト（ニューモーフィズムの浮き出し表現） */
.emboss {
  position: relative;
}
.emboss::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border-top: 2px solid var(--hl, rgba(255, 255, 255, 0.55));
  border-left: 2px solid var(--hl, rgba(255, 255, 255, 0.55));
  pointer-events: none;
}

/* ===== アイコン ===== */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ===== ヘッダー ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.brand span {
  font-size: 18px;
  font-weight: 700;
  color: #1f5267;
}

/* ===== ヒーロー ===== */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 48px 0 56px;
}
.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.32;
  font-weight: 700;
  color: #1a426d;
  text-wrap: pretty;
}
.hero-lead {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: #5d6363;
  max-width: 34em;
}
.store-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.store-badges a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.store-badges img {
  height: 56px;
  width: auto;
  display: block;
}
.hero-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #5d6363;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-shot {
  width: 300px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(8px 8px 16px rgba(26, 92, 92, 0.28));
}

/* ===== スマホモックアップ ===== */
.phone {
  width: 300px;
  height: 600px;
  border-radius: 38px;
  background: #e2eded;
  border: 2px solid rgba(34, 103, 103, 0.41);
  box-shadow: 8px 8px 24px rgba(26, 92, 92, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone--white {
  background: #ffffff;
}
.statusbar {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 10px;
  font-weight: 500;
  color: #5d6363;
}
.phone-body {
  flex: 1;
  padding: 14px 16px;
  overflow: hidden;
}
.phone-body--show {
  padding: 20px;
}
.phone-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #5d6363;
}
.phone-header-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  color: #5d6363;
}
.tabbar {
  display: flex;
  height: 52px;
  background: #ffffff;
  border-top: 1px solid #e0e1e0;
  padding-top: 8px;
}
.tabbar span {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 500;
  color: #5d6363;
}
.tabbar .is-active {
  color: #05593e;
}

/* ヒーロー内 ホーム画面 */
.home-date {
  margin: 0 0 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #5d6363;
}
.home-weather {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
  font-size: 11px;
  color: #5d6363;
}
.home-weather .w {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tile-primary {
  border-radius: 16px;
  background: #50bdc9;
  border: 2px solid rgba(26, 93, 93, 0.74);
  box-shadow: 3px 3px 4px rgba(32, 109, 109, 0.57);
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
}
.tile-primary img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.tile-primary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #f5fdff;
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.home-tile {
  min-height: 118px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
}
.home-tile span {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #1f5267;
}
.home-tile--accent {
  background: #8ed1d1;
  border: 2px solid rgba(34, 103, 103, 0.41);
  box-shadow: 4px 4px 8px rgba(26, 92, 92, 0.5);
  --hl: rgba(255, 255, 255, 0.45);
}
.home-tile--soft {
  background: #bed6d7;
  border: 2px solid rgba(18, 87, 87, 0.38);
  box-shadow: 4px 4px 8px rgba(14, 74, 74, 0.45);
  --hl: rgba(255, 255, 255, 0.8);
}

/* ===== セクション共通 ===== */
.section {
  padding: 56px 0;
}
.section h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  font-weight: 700;
  color: #1a426d;
}
.section-lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5d6363;
}

/* ===== 機能一覧 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.feature-card {
  border-radius: 16px;
  background: #f1fdff;
  border: 2px solid #0a7a5569;
  box-shadow: 1px 1px 4px rgba(30, 141, 141, 0.5);
  padding: 24px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-icon--teal {
  background: #8ed1d1;
  border: 2px solid rgba(34, 103, 103, 0.41);
  color: #1f5267;
}
.feature-icon--green {
  background: #a8cdb0;
  border: 2px solid #0a7a5569;
  color: #05593e;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a426d;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5d6363;
}

/* ===== 画面紹介（マーキー） ===== */
.marquee-viewport {
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 32px 0 8px;
}
.tm-marquee {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: tm-marquee 56s linear infinite;
}
.tm-marquee:hover {
  animation-play-state: paused;
}
@keyframes tm-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-marquee {
    animation: none;
  }
}
.shot {
  width: 300px;
  flex: 0 0 auto;
}
.shot-caption {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5d6363;
}

/* メモ一覧画面 */
.memo-card {
  border-radius: 16px;
  background: #ecf3f3;
  border: 2px solid #0a7a5569;
  box-shadow: 1px 1px 4px rgba(30, 141, 141, 0.5);
  padding: 14px;
  margin-bottom: 12px;
}
.memo-card:last-child {
  margin-bottom: 0;
}
.memo-date {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  color: #05593e;
}
.memo-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #5d6363;
}
.memo-title--spaced {
  margin-bottom: 10px;
}
.memo-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.chip-primary {
  padding: 6px 10px;
  border-radius: 12px;
  background: #8ed1d1;
  border: 2px solid rgba(34, 103, 103, 0.41);
  font-size: 11px;
  font-weight: 700;
  color: #1f5267;
}
.chip-outline {
  padding: 6px 10px;
  border-radius: 12px;
  background: #f9fffb;
  border: 1.5px solid #318989;
  font-size: 11px;
  font-weight: 500;
  color: #318989;
}

/* 見せるモード画面 */
.show-h {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f5267;
}
.show-h--mid {
  margin: 0 0 10px;
}
.show-p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
  color: #5d6363;
}
.show-p--gap {
  margin-bottom: 20px;
}
.show-med {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: #5d6363;
}
.show-med:last-child {
  margin-bottom: 0;
}

/* ひとりごと画面 */
.post {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d4e8d9;
  padding: 14px;
  margin-bottom: 12px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: #c8d6cb;
  display: grid;
  place-items: center;
  color: #7a9a80;
}
.post-name {
  font-size: 13px;
  font-weight: 500;
  color: #5d6363;
}
.post-body {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #5d6363;
}
.post-time {
  margin: 0;
  font-size: 11px;
  color: #5d6363;
}

/* くすり・サプリ画面 */
.med-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.med-filter {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f5f1;
  box-shadow: 2px 2px 6px rgba(197, 209, 200, 0.7);
  font-size: 11px;
  color: #5d6363;
}
.med-filter.is-active {
  background: #8ed1d1;
  border: 2px solid #11455f;
  box-shadow: none;
  font-weight: 500;
  color: #11455f;
}
.med-card {
  border-radius: 16px;
  background: #c4dfca;
  border: 2px solid #0a7a5569;
  box-shadow: 2px 2px 6px rgba(53, 115, 94, 0.5);
  padding: 14px;
  margin-bottom: 12px;
}
.med-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #5d6363;
}
.med-detail {
  margin: 0;
  font-size: 11px;
  color: #5d6363;
}

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.faq-card {
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #0a7a5569;
  box-shadow: 1px 1px 4px rgba(30, 141, 141, 0.5);
  padding: 22px;
}
.faq-q {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f5267;
}
.faq-a {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #5d6363;
}

/* ===== ダウンロード CTA ===== */
.cta {
  border-radius: 16px;
  background: #50bdc9;
  border: 2px solid rgba(26, 93, 93, 0.74);
  box-shadow: 3px 3px 6px rgba(32, 109, 109, 0.57);
  padding: 44px 32px;
  text-align: center;
  margin: 24px 0 56px;
}
.cta > img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin-bottom: 14px;
}
.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  font-weight: 700;
  color: #f5fdff;
}
.cta p {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.8;
  color: #eafbfd;
}
.cta .store-badges {
  justify-content: center;
  margin-top: 0;
}

/* ===== フッター ===== */
.site-footer {
  border-top: 1px solid #e0e1e0;
  padding: 36px 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.footer-brand span {
  font-size: 15px;
  font-weight: 700;
  color: #1f5267;
}
.footer-info {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.8;
  color: #5d6363;
}
.footer-env {
  margin: 0;
  font-size: 12px;
  color: #5d6363;
}
.footer-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #5d6363;
}
.footer-history {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #5d6363;
}
.footer-history b {
  color: #5d6363;
}
.footer-links {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.footer-copy {
  margin: 16px 0 0;
  font-size: 12px;
  color: #5d6363;
}

/* ===== 下層ページ（プライバシーポリシー・利用規約） ===== */
a.brand {
  text-decoration: none;
}
a.brand:hover {
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 64px;
}
.legal-main h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.4;
  font-weight: 700;
  color: #1a426d;
  text-wrap: pretty;
}
.legal-date {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #5d6363;
}
.legal-main h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a426d;
}
.legal-main h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  color: #1a426d;
}
.legal-main p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: #5d6363;
}
.legal-main p.legal-intro {
  margin: 28px 0 16px;
}
.legal-main p.mb-12 {
  margin-bottom: 12px;
}
.legal-main ul {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #5d6363;
}
.legal-main ul.mb-16 {
  margin-bottom: 16px;
}
.legal-main ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.9;
  color: #5d6363;
}
.legal-main ol.mb-16 {
  margin-bottom: 16px;
}
.legal-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #5d6363;
}
.divider {
  border: 0;
  border-top: 1px solid #e0e1e0;
  margin: 36px 0;
}
.note-box {
  border-radius: 16px;
  background: #f1fdff;
  border: 2px solid #0a7a5569;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}
.note-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #5d6363;
}
.contact-block {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: #5d6363;
}

.legal-footer {
  border-top: 1px solid #e0e1e0;
  padding: 28px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.legal-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-footer p {
  margin: 0;
  color: #5d6363;
}

/* ===== お問い合わせフォーム ===== */
.contact-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #318989;
}
.legal-main p.contact-lead {
  margin: 16px 0 0;
}
.legal-main p.contact-lead-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.9;
}
.contact-card {
  border-radius: 16px;
  background: #f1fdff;
  border: 2px solid #0a7a5569;
  box-shadow: 1px 1px 4px rgba(30, 141, 141, 0.5);
  padding: 28px;
  margin-top: 32px;
}
.contact-form {
  display: grid;
  gap: 20px;
}
.form-label {
  display: block;
  margin: 0 0 6px 4px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #5d6363;
}
.field {
  border-radius: 12px;
  background: #cce7e7;
  border: 1px solid #318989;
  box-shadow: inset 3px 3px 6px rgba(49, 137, 137, 0.25);
  overflow: hidden;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  display: block;
  background: transparent;
  border: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #5d6363;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
}
.field--select select {
  appearance: none;
  cursor: pointer;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.legal-main p.form-hint {
  margin: 6px 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.8;
  color: #5d6363;
  cursor: pointer;
}
.check-label input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #05593e;
  flex: 0 0 auto;
  cursor: pointer;
}
.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: #fde8e8;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #b52a2a;
}
.form-alert .icon {
  flex: 0 0 auto;
}
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  background: #e8f7eb;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #05593e;
}
.form-status .icon {
  flex: 0 0 auto;
  margin-top: 3px;
}
/* display: flex がUAの [hidden] を打ち消すため、非表示を明示する */
.form-alert[hidden],
.form-status[hidden] {
  display: none;
}
.form-actions {
  display: flex;
  justify-content: center;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 32px;
  border-radius: 16px;
  background: #8ed1d1;
  border: 2px solid rgba(34, 103, 103, 0.41);
  box-shadow: 3px 3px 6px rgba(26, 92, 92, 0.5);
  color: #1f5267;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  --hl: rgba(255, 255, 255, 0.5);
}
.btn-submit:active {
  transform: scale(0.96);
  box-shadow: none;
  background: #7ac1c1;
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: default;
}
.legal-main ul.contact-notes {
  gap: 10px;
}

/* ===== ハンバーガーメニュー（スマホ） ===== */
.nav-toggle {
  display: none;
}
@media (max-width: 840px) {
  .site-header {
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: #8ed1d1;
    border: 2px solid rgba(34, 103, 103, 0.41);
    box-shadow: 2px 2px 4px rgba(26, 92, 92, 0.4);
    cursor: pointer;
  }
  .nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #1f5267;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .site-nav {
    display: none;
  }
  .site-nav.is-open {
    display: grid;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    border-radius: 16px;
    background: #f1fdff;
    border: 2px solid #0a7a5569;
    box-shadow: 4px 4px 12px rgba(26, 92, 92, 0.35);
    padding: 10px;
    font-size: 15px;
  }
  .site-nav.is-open a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .site-nav.is-open a:hover,
  .site-nav.is-open a:active {
    background: #cce7e7;
    text-decoration: none;
  }
}
