/* 全画面共通のベーススタイルとログイン後の共通ナビゲーションを提供するスタイルシートです。 */
:root {
  --accent: #d1842f;
  --bg: #fff;
  --text: #111;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.container {
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}
.primary-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1px solid #111;
  margin-top: 24px;
  background: #e39a3e;
  font-weight: 700;
  text-decoration: none;
}
.link-btn {
  text-align: center;
}
ul.errorlist {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #b21c1c;
}
.messages {
  max-width: 430px;
  margin: 16px auto 0;
  padding: 0 16px;
}
.messages .success {
  color: #196d27;
}
.messages .error {
  color: #b21c1c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.authenticated .container {
  padding-bottom: 120px;
}
.app-nav {
  z-index: 20;
}
.app-nav-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 84px;
  border-top: 1px solid #c9c9c9;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.app-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #777;
  font-size: 12px;
}
.app-nav-link .icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-nav-link .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-nav-link.is-active {
  color: var(--accent);
  font-weight: 700;
}
.app-nav-link.is-active .icon img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(70%) saturate(1226%) hue-rotate(334deg) brightness(97%) contrast(87%);
}
.app-nav-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.app-nav-desktop {
  display: none;
}

@media (max-width: 1023px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .messages {
    padding-left: 30px;
    padding-right: 30px;
  }

  h1,
  .auth-main h1,
  .home-screen h1,
  .share-screen h1,
  .directory-screen h1,
  .contact-entry h1 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
  }

  p,
  .lead,
  .history-list p,
  .share-help,
  .empty-state {
    font-size: 15px;
    font-weight: 500;
    color: #5e5e5e;
    line-height: 1.6;
  }

  .tab,
  .directory-filter-form input,
  .directory-filter-form select,
  .share-link-row input,
  .share-link-row button,
  .text-link,
  .text-link-btn,
  .template-card span,
  .tone-switch button,
  .template-card,
  .share-screen label,
  .sns-title {
    font-size: 15px;
  }

  .auth-header {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .authenticated .container,
  .authenticated .messages {
    max-width: 980px;
    margin: auto;
  }
  .authenticated .container {
    padding: 28px 24px 32px;
  }

  .app-nav-mobile {
    display: none;
  }
  .app-nav-desktop {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    border-right: 1px solid #cfcfcf;
    background: #efefef;
    flex-direction: column;
    padding: 24px 14px;
    gap: 8px;
  }
  .app-nav-desktop .app-nav-link {
    flex-direction: row;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 12px 10px;
    font-size: 18px;
    gap: 12px;
  }
  .app-nav-desktop .app-nav-link .icon {
    width: 24px;
    height: 24px;
  }
  .app-nav-desktop .app-nav-link.is-active {
    background: #fff;
  }
}

.ios-install-guide {
  position: fixed;
  inset: auto 0 96px;
  z-index: 30;
  padding: 0 16px;
}

.ios-install-guide__dialog {
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ios-install-guide__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #111;
}

.ios-install-guide ol {
  margin: 0;
  padding-left: 18px;
  color: #444;
}

.ios-install-guide__close {
  margin-top: 10px;
  border: 1px solid #999;
  border-radius: 999px;
  background: #fff;
  color: #333;
  padding: 6px 12px;
}

@media (min-width: 1024px) {
  .ios-install-guide {
    inset: auto 24px 24px auto;
    width: 360px;
    padding: 0;
  }
}

.settings-info-screen {
  display: grid;
  gap: 14px;
}

.settings-info-screen h1,
.settings-info-page h1 {
  margin: 0;
}

.settings-info-lead {
  margin: 0;
}

.settings-info-drawer {
  display: grid;
  gap: 14px;
  padding: 18px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #d8d5f4 0%, #d9e9f3 100%);
}

.settings-info-drawer h2 {
  margin: 0;
  font-size: 16px;
  color: #5f6370;
}

.settings-info-drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.settings-info-drawer li + li {
  border-top: 1px solid #ececf1;
}

.settings-info-drawer a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 700;
  color: #434a69;
}

.settings-info-page {
  display: grid;
  gap: 12px;
}

.settings-info-page p {
  margin: 0;
}

.settings-info-back a {
  text-decoration: underline;
}
