@charset "UTF-8";
/* ココット（Cocotte）— 夫婦の献立管理アプリ
   FLOCSS準拠（l- レイアウト / p- プロジェクト / c- コンポーネント / u- ユーティリティ）
   ハローベビーと同じくSCSSビルドは挟まず、この1枚を直接編集する運用。
   ※ 変更したら index.html / login.html の ?v= を必ず上げること */

/* ===== Foundation ===== */
:root {
  --bg: #fdfbf7;
  --card: #ffffff;
  --main: #d2694a;
  --main-dark: #b8543a;
  --main-pale: #fbeee8;
  --accent: #4a6b52;
  --text: #3a3330;
  --text-sub: #8b8079;
  --border: #ede6dc;
  --shadow: 0 2px 12px rgba(120, 90, 70, 0.07);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 calc(64px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", -apple-system,
    BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Layout ===== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-top));
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.l-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--main);
}

.l-header__logo svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.l-header__user {
  font-size: 1.2rem;
  color: var(--text-sub);
}

.l-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  /* 端まで流す横スクロール要素（.p-week）が1pxでも溢れたら握りつぶす保険 */
  overflow-x: hidden;
}

.l-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.l-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 2px 7px;
  border: none;
  background: none;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.3;
  transition: color 0.15s;
}

.l-nav__item span {
  font-size: 2rem;
  line-height: 1;
}

.l-nav__item.is-active {
  color: var(--main);
  font-weight: 700;
}

/* ===== Components ===== */
.c-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.c-section {
  margin-bottom: 24px;
}

.c-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}

.c-btn:active {
  transform: scale(0.97);
}

.c-btn--block {
  width: 100%;
}

.c-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-sub);
}

.c-btn--small {
  padding: 7px 14px;
  min-height: 36px;
  font-size: 1.3rem;
}

.c-btn--danger {
  background: transparent;
  border: 1.5px solid #e0b4a8;
  color: #c4593f;
}

.c-form__row {
  margin-bottom: 14px;
}

.c-form__label {
  display: block;
  margin-bottom: 5px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-sub);
}

.c-input,
.c-textarea,
.c-select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  /* iOSで自動ズームさせないため 16px 以上を厳守 */
  font-size: 1.6rem;
  font-family: inherit;
  line-height: 1.5;
}

.c-input:focus,
.c-textarea:focus,
.c-select:focus {
  outline: none;
  border-color: var(--main);
}

.c-textarea {
  min-height: 96px;
  resize: vertical;
}

/* iOSの日付入力は既定スタイルだと枠からはみ出すため打ち消す */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.c-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-sub);
  font-size: 1.4rem;
}

.c-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--main-pale);
  color: var(--main-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.c-chip {
  padding: 6px 13px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-sub);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
}

.c-chip.is-active {
  border-color: var(--main);
  background: var(--main-pale);
  color: var(--main-dark);
}

.c-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1.5px solid #e8d3a8;
  border-radius: 12px;
  background: #fdf6e6;
  color: #8a6a2f;
  font-size: 1.3rem;
}

.c-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(58, 51, 48, 0.45);
}

.c-modal.is-open {
  display: flex;
}

.c-modal__inner {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-radius: 20px 20px 0 0;
}

.c-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.c-modal__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.c-modal__close {
  border: none;
  background: none;
  color: var(--text-sub);
  font-size: 2.4rem;
  line-height: 1;
  padding: 4px 8px;
}

.c-toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%) translateY(12px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.c-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Project: ホーム ===== */
.p-hero {
  position: relative;
  margin-bottom: 22px;
  padding: 22px 18px;
  border-radius: 18px;
  background: linear-gradient(150deg, #f6d9cb 0%, #eebfa9 100%);
  color: #5c3a2c;
  overflow: hidden;
}

.p-hero__label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.p-hero__title {
  margin: 4px 0 6px;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.p-hero__meta {
  font-size: 1.3rem;
  opacity: 0.8;
}

.p-hero__actions {
  margin-top: 14px;
}

.p-week {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  -webkit-overflow-scrolling: touch;
}

.p-week__day {
  flex: 0 0 84px;
  padding: 11px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
}

.p-week__day.is-today {
  border-color: var(--main);
  background: var(--main-pale);
}

.p-week__date {
  font-size: 1.1rem;
  color: var(--text-sub);
  font-weight: 700;
}

.p-week__menu {
  margin-top: 5px;
  font-size: 1.2rem;
  line-height: 1.4;
  min-height: 2.8em;
  word-break: break-word;
}

.p-week__menu.is-empty {
  color: #c9bfb6;
}

.p-stats {
  display: flex;
  gap: 10px;
}

.p-stats__item {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}

.p-stats__num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--main);
  line-height: 1.2;
}

.p-stats__label {
  font-size: 1.1rem;
  color: var(--text-sub);
}

/* ===== Project: カレンダー ===== */
.p-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.p-cal__month {
  font-size: 1.8rem;
  font-weight: 700;
}

.p-cal__nav {
  display: flex;
  gap: 6px;
}

.p-cal__nav button {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 1.6rem;
}

.p-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.p-cal__wd {
  padding: 4px 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-sub);
}

.p-cal__wd:nth-child(6) {
  color: #6b8cad;
}

.p-cal__wd:nth-child(7) {
  color: #c4746a;
}

.p-cal__cell {
  min-height: 58px;
  padding: 4px 2px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  font-family: inherit;
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.p-cal__cell.is-blank {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.p-cal__cell.is-today {
  border-color: var(--main);
  background: var(--main-pale);
}

.p-cal__cell.is-past {
  opacity: 0.55;
}

.p-cal__day {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.p-cal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--main);
  flex-shrink: 0;
}

.p-cal__label {
  display: none;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text-sub);
  word-break: break-word;
}

/* ===== Project: レシピ ===== */
.p-recipe__search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.p-recipe__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-recipe__card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.p-recipe__body {
  flex: 1;
  min-width: 0;
}

.p-recipe__name {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.p-recipe__meta {
  margin-top: 3px;
  font-size: 1.15rem;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.p-recipe__ing {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1.45rem;
}

.p-recipe__ing:last-child {
  border-bottom: none;
}

.p-recipe__ingqty {
  color: var(--text-sub);
  flex-shrink: 0;
}

.p-recipe__step {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1.45rem;
}

.p-recipe__stepno {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--main-pale);
  color: var(--main-dark);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Project: 妊娠中・授乳中モードの目印 ===== */
/* 「禁止」ではなく「気づき」なので、赤で強く出しすぎない */
.c-warn {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1.5px solid #e8cfa8;
  border-radius: 12px;
  background: #fdf7ec;
}

.c-warn__head {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8a6428;
  margin-bottom: 6px;
}

.c-warn__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #6b5637;
}

.c-warn__tag {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f0dcb8;
  color: #7a5b25;
  font-size: 1.05rem;
  font-weight: 700;
}

.c-warn__tag.is-high {
  background: #f3cfc4;
  color: #9c4630;
}

.c-warn__note {
  margin: 8px 0 0;
  font-size: 1.15rem;
  color: #8b7c60;
}

/* ヒーロー（今日の献立）の上に出す小さい版 */
.p-hero__warn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a4a2c;
  font-size: 1.15rem;
  font-weight: 700;
}

.c-offline {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 8px 16px;
  background: #6b5f57;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
}

/* ===== Project: 献立のおすすめ ===== */
.p-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-family: inherit;
  color: var(--text);
  text-align: left;
}

.p-suggest__item:active {
  border-color: var(--main);
  background: var(--main-pale);
}

.p-suggest__body {
  flex: 1;
  min-width: 0;
}

.p-suggest__name {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.p-suggest__why {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ===== Project: レシピ取り込み ===== */
.p-import__card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  margin-bottom: 10px;
  padding: 15px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-family: inherit;
  color: var(--text);
  text-align: left;
}

.p-import__card:active {
  border-color: var(--main);
  background: var(--main-pale);
}

.p-import__icon {
  flex-shrink: 0;
  font-size: 2.2rem;
  line-height: 1.2;
}

.p-import__name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-import__desc {
  display: block;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-sub);
}

/* 読み取り結果の確認欄。保存前に必ず目を通せるようにする */
.p-import__preview {
  margin-top: 10px;
  padding: 12px 13px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: #fffdf9;
}

.p-import__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.p-import__row span:first-child {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.p-import__cat {
  flex-shrink: 0;
  color: var(--text-sub);
  font-size: 1.1rem;
}

.p-import__row.is-unknown .p-import__cat {
  color: #c08a2e;
  font-weight: 700;
}

.c-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 16px;
  color: var(--text-sub);
  font-size: 1.4rem;
}

.c-loading__dot {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--main-pale);
  border-top-color: var(--main);
  border-radius: 50%;
  animation: cc-spin 0.8s linear infinite;
}

@keyframes cc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 端末側で「動きを減らす」設定なら回さない */
@media (prefers-reduced-motion: reduce) {
  .c-loading__dot {
    animation: none;
  }
}

.p-recipe__thumb {
  flex-shrink: 0;
  width: 56px;
  /* 元画像の比率は保ったまま枠に収める */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--main-pale);
}

.p-recipe__thumb--big {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.p-recipe__thumbwrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.p-recipe__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--main-pale);
}

/* ===== Project: 買い物リスト ===== */
.p-home__shop {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-family: inherit;
  color: var(--text);
  text-align: left;
}

.p-home__shopday {
  font-size: 1.15rem;
  color: var(--text-sub);
  font-weight: 700;
}

.p-home__shopnum {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.p-shop__head {
  margin-bottom: 14px;
}

.p-shop__period {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.p-shop__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-shop__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.p-shop__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.p-shop__barfill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s;
}

.p-shop__count {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-sub);
  flex-shrink: 0;
}

.p-shop__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 0;
  border: none;
  border-bottom: 1px dashed var(--border);
  background: none;
  font-family: inherit;
  color: var(--text);
  text-align: left;
}

.p-shop__item:last-child {
  border-bottom: none;
}

.p-shop__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid #d5cabf;
  border-radius: 7px;
  background: #fff;
  color: transparent;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.p-shop__item.is-checked .p-shop__box {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.p-shop__body {
  flex: 1;
  min-width: 0;
}

.p-shop__name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

/* 出典（どの日の何に使うか）は補足なので1行に抑える */
.p-shop__src {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.1rem;
  color: var(--text-sub);
}

.p-shop__qty {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--main-dark);
}

.p-shop__item.is-checked .p-shop__name,
.p-shop__item.is-checked .p-shop__qty {
  color: #b3a89f;
  text-decoration: line-through;
}

.p-shop__del {
  flex-shrink: 0;
  padding: 0 4px;
  border: none;
  background: none;
  color: #c9bfb6;
  font-size: 1.8rem;
  line-height: 1;
}

.p-shop__add {
  display: flex;
  gap: 8px;
}

.p-shop__summary {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
}

/* ===== Project: 設定 ===== */
.p-setting__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  cursor: pointer;
}

.p-setting__toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--main);
  flex-shrink: 0;
}

.p-setting__block {
  margin-bottom: 18px;
}

.p-setting__member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1.4rem;
}

.p-setting__member:last-child {
  border-bottom: none;
}

/* ===== Project: ログイン ===== */
.p-login {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.p-login__box {
  width: 100%;
  max-width: 380px;
  padding: 30px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.p-login__logo {
  margin-bottom: 4px;
}

.p-login__logo svg {
  width: 54px;
  height: 54px;
}

.p-login__name {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.08em;
  margin: 0 0 2px;
}

.p-login__sub {
  margin: 0 0 22px;
  font-size: 1.2rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.p-login__error {
  margin-top: 12px;
  color: #c4593f;
  font-size: 1.3rem;
  min-height: 1.7em;
}

/* ===== Utility ===== */
.u-hidden {
  display: none !important;
}

.u-mt {
  margin-top: 14px;
}

.u-row {
  display: flex;
  gap: 8px;
}

.u-row > * {
  flex: 1;
}

.u-sub {
  font-size: 1.25rem;
  color: var(--text-sub);
}

/* ===== Responsive ===== */
/* 献立名をカレンダーに出せるのは狭い端末では無理なので、広い時だけ表示する */
@media (min-width: 600px) {
  .p-cal__cell {
    min-height: 74px;
  }

  .p-cal__label {
    display: block;
  }

  .p-cal__dot {
    display: none;
  }
}

@media (min-width: 800px) {
  .c-modal {
    align-items: center;
  }

  .c-modal__inner {
    border-radius: 20px;
    padding-bottom: 24px;
  }
}

/* 320px（iPhone SE 第1世代など）での破綻を防ぐ */
@media (max-width: 360px) {
  .l-main {
    padding: 12px;
  }

  /* l-main の padding を縮めたら、端まで流す .p-week の負マージンも必ず揃える
     （揃えないと左右に4pxずつ溢れて横スクロールが出る） */
  .p-week {
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .p-hero {
    padding: 18px 14px;
  }

  .p-hero__title {
    font-size: 2.2rem;
  }

  .p-week__day {
    flex: 0 0 76px;
  }

  .p-cal__grid {
    gap: 2px;
  }

  .p-cal__cell {
    min-height: 50px;
    border-radius: 7px;
  }

  .l-nav__item {
    font-size: 0.95rem;
  }
}
