/* 釣りにいGO - スマートフォン向けWebアプリ */
:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  background-color: #eaf7ff;
  color: #102f4b;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  background-color: #5db9dc;
  background-image:
    linear-gradient(180deg, rgba(235, 248, 255, 0.66) 0%, rgba(224, 244, 253, 0.72) 48%, rgba(216, 239, 249, 0.78) 100%),
    url("../images/ui/ocean-background.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 28%),
              radial-gradient(circle at left center, rgba(167, 216, 255, 0.25), transparent 25%);
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 0;
  width: min(100%, 640px);
  min-height: 100vh;
  padding: 20px;
  background: rgba(247, 252, 255, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 44px rgba(4, 68, 105, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.app-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid rgba(96, 155, 211, 0.2);
  border-radius: 28px;
  padding: 24px 22px;
  box-shadow: 0 18px 50px rgba(11, 54, 92, 0.08);
  margin-bottom: 18px;
}

.app-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f4d85;
  background: rgba(16, 77, 133, 0.08);
  padding: 10px 14px;
  border-radius: 999px;
}

.app-banner h1 {
  margin: 16px 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.app-banner p {
  margin: 0;
  color: #3d566d;
  line-height: 1.7;
}

.home-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px rgba(27, 64, 100, 0.08);
  border: 1px solid rgba(145, 194, 233, 0.25);
}

.screen-hidden {
  display: none;
}

.area-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.back-button {
  min-width: 58px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: #e9f3ff;
  color: #0f4d85;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 74, 135, 0.12);
  transition: transform 0.18s ease, background 0.18s ease;
}

.back-button:hover,
.back-button:focus-visible {
  transform: translateY(-1px);
  background: #d4e8ff;
}

.area-region-label {
  margin: 0 0 5px;
  color: #0f4d85;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.breadcrumb-link {
  padding: 2px 3px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #0f4d85;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  background: #e9f3ff;
  outline: 2px solid #8abbea;
  outline-offset: 1px;
}

.breadcrumb-separator {
  margin: 0 3px;
  color: #7691a9;
}

.fish-month {
  margin: 10px 0 0;
  color: #4b6a86;
  font-size: 0.95rem;
}

.area-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.vertical-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fish-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%);
  border: 1px solid rgba(116, 168, 221, 0.35);
  box-shadow: 0 10px 26px rgba(16, 63, 110, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fish-card:hover,
.fish-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(16, 63, 110, 0.12);
}

.fish-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fish-card p {
  margin: 0;
  color: #3f556b;
  line-height: 1.6;
}

.fish-card .fish-meta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.fish-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f4d85;
  font-weight: 700;
}

.fish-stage span {
  font-size: 0.95rem;
}

.fish-description {
  color: #4b6a86;
}

.fish-label {
  font-size: 0.93rem;
  color: #5b6f85;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #0f4d85;
}

.mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.mode-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 12px;
  background: #eaf5ff;
  color: #0f4d85;
  font-weight: 700;
  cursor: pointer;
}

.mode-button.is-active {
  background: #0f61bc;
  color: #ffffff;
}

.search-input {
  width: 100%;
  border: 1px solid rgba(15, 77, 132, 0.2);
  border-radius: 18px;
  padding: 13px 14px;
  margin-bottom: 14px;
  background: #f7fbff;
  color: #102f4b;
  font-size: 1rem;
}

.search-input:focus {
  outline: 2px solid rgba(15, 77, 132, 0.18);
  outline-offset: 2px;
}

.section-title span {
  font-size: 1.2rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.grid-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.region-card,
.fish-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #f8fcff 0%, #e7f2ff 100%);
  box-shadow: 0 10px 28px rgba(14, 50, 86, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.region-card:hover,
.region-card:focus-visible,
.fish-card:hover,
.fish-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 77, 132, 0.22);
  box-shadow: 0 14px 32px rgba(14, 50, 86, 0.12);
}

.region-card {
  color: #0f4d85;
  font-weight: 700;
  font-size: 1rem;
}

.region-card p {
  margin: 8px 0 0;
  color: #476177;
  font-size: 0.92rem;
}

.fish-card h3,
.fish-card p {
  margin: 0;
}

.fish-card h3 {
  font-size: 1rem;
  color: #102f4b;
}

.fish-card p {
  margin-top: 8px;
  color: #3f556b;
  line-height: 1.5;
  font-size: 0.94rem;
}

.fish-card--compact {
  min-height: 96px;
}

.fish-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.fish-visual__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fish-visual__fallback {
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 1;
}

.fish-visual--detail {
  aspect-ratio: auto;
  border: 1px solid rgba(15, 77, 132, 0.1);
}

.fish-visual--detail .fish-visual__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.fish-visual__image:is(
  [src$="/aoriika.webp"],
  [src$="/kasago.webp"],
  [src$="/kijihata.webp"],
  [src$="/gure.webp"],
  [src$="/kurodai.webp"],
  [src$="/taman.webp"],
  [src$="/madako.webp"],
  [src$="/mebaru.webp"]
) {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.fish-visual--detail .fish-visual__image:is(
  [src$="/aoriika.webp"],
  [src$="/kasago.webp"],
  [src$="/kijihata.webp"],
  [src$="/gure.webp"],
  [src$="/kurodai.webp"],
  [src$="/taman.webp"],
  [src$="/madako.webp"],
  [src$="/mebaru.webp"]
) {
  height: auto;
  max-height: 228px;
}

.fish-card--expandable {
  align-items: stretch;
}

.fish-card__content {
  width: 100%;
}

.target-detail-panel {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.target-detail-card {
  padding: 12px 14px;
}

.fish-card--ranking {
  gap: 10px;
}

.ranking-subtitle {
  color: #4b6a86;
  font-size: 0.95rem;
}

.ranking-description {
  color: #3f556b;
  font-size: 0.94rem;
  line-height: 1.6;
}

.ranking-action {
  margin-top: 10px;
  color: #0f4d85;
  font-weight: 700;
}

.vertical-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.detail-info {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-card,
.method-card,
.tip-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(15, 77, 132, 0.12);
  box-shadow: 0 10px 26px rgba(15, 56, 95, 0.08);
}

.detail-card h3,
.method-card h3,
.tip-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #102f4b;
}

.detail-card p,
.method-card p,
.tip-card p {
  margin: 0;
  color: #3f556b;
  line-height: 1.6;
}

.detail-row {
  display: grid;
  gap: 8px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.detail-meta .detail-label {
  color: #0f4d85;
  font-weight: 700;
}

.method-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.method-card:hover,
.method-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 77, 132, 0.22);
}

.tip-card p {
  margin-top: 8px;
}

.fish-month {
  margin: 4px 0 0;
  color: #4b6b85;
  font-size: 0.95rem;
}

.month-selector {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.month-button {
  min-width: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: #e9f3ff;
  color: #0f4d85;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.month-button:hover,
.month-button:focus-visible {
  background: #d4e8ff;
}

.month-current {
  font-size: 1rem;
  font-weight: 700;
  color: #0f4d85;
}

.fish-screen-message {
  margin-top: 14px;
  color: #346293;
  font-size: 0.95rem;
}

.fish-note {
  margin-top: 16px;
  color: #5b6f85;
  font-size: 0.88rem;
  line-height: 1.6;
}

.favorite-card {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #e4f5ff 100%);
  border: 1px solid rgba(84, 154, 212, 0.25);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(15, 75, 135, 0.08);
}

.favorite-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #0f4d85;
}

.favorite-card p {
  margin: 0;
  color: #3f566f;
  line-height: 1.6;
}

.favorite-fish-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.favorite-fish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 77, 132, 0.1);
}

.favorite-fish-name {
  font-size: 0.95rem;
  color: #102f4b;
}

.favorite-fish-rating {
  color: #f7b500;
  font-weight: 700;
}

.favorite-card-button,
.favorite-button {
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: #0f61bc;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.favorite-card-button:hover,
.favorite-button:hover,
.favorite-card-button:focus-visible,
.favorite-button:focus-visible {
  background: #094d94;
}

.favorite-remove-button {
  margin-top: 8px;
  background: #ffffff;
  color: #a33a3a;
  border: 1px solid #dba3a3;
}

.favorite-remove-button:hover,
.favorite-remove-button:focus-visible {
  background: #fff0f0;
}

.favorite-card-status {
  margin-top: 10px;
  color: #0f4d85;
  font-weight: 700;
}

.favorite-card-note {
  margin-top: 12px;
  color: #5b6f85;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rating {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f4d85;
  font-weight: 600;
}

.ad-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #6b7e8f;
  text-align: center;
}

.tackle-list p,
.tackle-list li {
  margin: 6px 0;
  color: #2f4b63;
}

.step-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(15,77,132,0.08);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,77,132,0.08);
  background: #ffffff;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.shop-button {
  flex: 1 1 50%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.shop-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.shop-button.rakuten { background: #fff1f0; color: #b02a37; }
.shop-button.amazon { background: #f0f6ff; color: #1460a6; }

.product-pr-note {
  margin: 0 0 12px;
  color: #6b7e8f;
  font-size: 0.9rem;
}

.rating span {
  font-size: 0.95rem;
}

.star-rating {
  color: #f7b500;
}

.sns-feed-entry {
  padding: 0;
  overflow: hidden;
}

.sns-feed-entry-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 0;
  background: linear-gradient(135deg, #eff9ff 0%, #dceeff 100%);
  color: #102f4b;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.sns-feed-entry-button + .sns-feed-entry-button {
  border-top: 1px solid rgba(15, 77, 132, 0.12);
}

.sns-home-auth-panel,
.sns-home-auth-status {
  border-top: 1px solid rgba(15, 77, 132, 0.12);
  padding: 16px 20px;
}

.sns-home-auth-panel.screen-hidden,
.sns-home-auth-status.screen-hidden {
  display: none;
}

.sns-home-auth-panel p {
  margin: 10px 0 0;
  color: #476177;
}

.sns-home-auth-primary {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #0f61bc;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-home-auth-link {
  border: 0;
  padding: 0;
  background: none;
  color: #0f61bc;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.sns-home-auth-greeting {
  margin: 0 0 8px;
  font-weight: 700;
}

.sns-home-auth-panel .sns-feed-entry-button {
  border-radius: 12px;
}

.sns-feed-entry-button:hover,
.sns-feed-entry-button:focus-visible {
  background: linear-gradient(135deg, #e3f4ff 0%, #cbe5ff 100%);
}

.sns-feed-entry-button:focus-visible {
  outline: 3px solid rgba(15, 97, 188, 0.3);
  outline-offset: -3px;
}

.sns-feed-entry-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffffff;
  font-size: 1.55rem;
  box-shadow: 0 8px 20px rgba(15, 77, 132, 0.1);
}

.sns-feed-entry-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sns-feed-entry-copy strong {
  color: #0f4d85;
  font-size: 1.05rem;
}

.sns-feed-entry-copy span {
  color: #476177;
  font-size: 0.92rem;
  line-height: 1.5;
}

.sns-feed-entry-arrow {
  margin-left: auto;
  color: #0f61bc;
  font-size: 2rem;
  line-height: 1;
}

.sns-feed-list {
  display: grid;
  gap: 16px;
}

.sns-post-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 77, 132, 0.12);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 56, 95, 0.08);
}

.sns-post-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9f3ff;
}

.sns-post-images {
  display: grid;
  gap: 3px;
}

.sns-post-images--1 {
  grid-template-columns: 1fr;
}

.sns-post-images--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sns-post-images--3 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.sns-post-images--3 .sns-post-image-item:first-child {
  grid-row: 1 / 3;
}

.sns-post-image-item {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.sns-post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sns-post-image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #55728d;
  font-weight: 700;
  text-align: center;
}

.sns-post-image-fallback[hidden] {
  display: none;
}

.sns-post-body {
  padding: 17px 18px 19px;
}

.sns-post-username {
  margin: 0 0 6px;
  color: #46627c;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sns-post-fish-name {
  margin: 0;
  color: #102f4b;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.sns-post-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin-top: 12px;
}

.sns-post-meta-item {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf6ff;
  color: #315e87;
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sns-post-comment {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 77, 132, 0.1);
  color: #304a62;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sns-feed-status {
  margin: 10px 0 16px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #f1f8ff;
  color: #346293;
  line-height: 1.6;
  text-align: center;
}

.sns-feed-status--error {
  background: #fff5f5;
  color: #8b3939;
}

.sns-feed-status--error p {
  margin: 0;
}

.sns-feed-action-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: #0f61bc;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-feed-action-button:hover,
.sns-feed-action-button:focus-visible {
  background: #094d94;
}

.sns-feed-action-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.sns-feed-action-button.screen-hidden {
  display: none;
}

.sns-feed-more {
  margin-top: 16px;
}

.sns-mypage-status {
  padding: 20px;
  border: 1px solid rgba(15, 77, 132, 0.12);
  border-radius: 18px;
  background: #f7fbff;
  color: #294b67;
  line-height: 1.7;
  text-align: center;
}

.sns-mypage-status p {
  margin: 0;
}

.sns-mypage-status--error {
  border-color: rgba(139, 57, 57, 0.16);
  background: #fff5f5;
  color: #8b3939;
}

.sns-mypage-note {
  margin-top: 6px !important;
  color: #6b7e8f;
  font-size: 0.9rem;
}

#sns-authenticated.sns-mypage-status {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.sns-mypage-account,
.sns-mypage-posts,
.sns-mypage-actions {
  padding: 18px;
  border: 1px solid rgba(15, 77, 132, 0.12);
  border-radius: 18px;
  background: #f7fbff;
}

.sns-mypage-posts,
.sns-mypage-actions {
  margin-top: 16px;
}

.sns-mypage-greeting {
  color: #294b67;
  font-size: 1.05rem;
  font-weight: 700;
}

.sns-mypage-posts h3 {
  margin: 0 0 12px;
  color: #0f4d85;
  font-size: 1.05rem;
}

.sns-mypage-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sns-mypage-posts-header h3 {
  margin: 0;
}

.sns-mypage-post-create-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: #0f61bc;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-mypage-post-create-button:hover,
.sns-mypage-post-create-button:focus-visible {
  background: #094d94;
}

.sns-mypage-post-create-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sns-post-create-content {
  padding: 20px;
  border: 1px solid rgba(15, 77, 132, 0.12);
  border-radius: 18px;
  background: #f7fbff;
  color: #294b67;
}

.sns-post-create-content h3 {
  margin: 0 0 8px;
  color: #0f4d85;
  font-size: 1.08rem;
}

.sns-post-create-content p {
  margin: 0;
  line-height: 1.7;
}

.sns-post-create-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.sns-post-create-field {
  display: grid;
  gap: 8px;
}

.sns-post-create-field label {
  color: #294b67;
  font-size: 0.95rem;
  font-weight: 700;
}

.sns-post-create-field select,
.sns-post-create-field input,
.sns-post-create-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 40px 11px 14px;
  border: 1px solid rgba(15, 77, 132, 0.25);
  border-radius: 14px;
  background: #ffffff;
  color: #102f4b;
  font: inherit;
}

.sns-post-create-field input {
  padding-right: 14px;
}

.sns-post-create-field textarea {
  min-height: 128px;
  padding-right: 14px;
  resize: vertical;
}

.sns-post-create-field select:focus,
.sns-post-create-field input:focus,
.sns-post-create-field textarea:focus {
  border-color: #0f61bc;
  outline: 3px solid rgba(15, 97, 188, 0.16);
}

.sns-post-create-size-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sns-post-create-size-unit {
  color: #294b67;
  font-weight: 700;
}

.sns-post-create-character-count {
  color: #6b7e8f;
  font-size: 0.82rem;
  text-align: right;
}

.sns-post-create-image-help {
  color: #6b7e8f;
  font-size: 0.84rem;
}

.sns-post-create-image-error {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5f5;
  color: #8b3939;
  font-size: 0.9rem;
}

.sns-post-create-image-preview-area {
  display: grid;
  gap: 10px;
}

.sns-post-create-image-preview-area.screen-hidden {
  display: none;
}

.sns-post-create-image-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sns-post-create-image-preview-item {
  display: grid;
  gap: 8px;
}

.sns-post-create-image-preview-item:only-child {
  grid-column: 1 / -1;
}

.sns-post-create-image-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #e8f1f8;
  object-fit: cover;
}

.sns-post-create-image-remove {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(15, 77, 132, 0.25);
  border-radius: 12px;
  background: #ffffff;
  color: #0f4d85;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-post-create-image-upload {
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  background: #0f61bc;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-post-create-image-remove:disabled,
.sns-post-create-image-upload:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sns-post-create-image-upload-status {
  padding: 10px 12px;
  border-radius: 12px;
  background: #edf8f1;
  color: #287044;
  font-size: 0.9rem;
}

.sns-post-create-image-remove:focus-visible {
  border-color: #0f61bc;
  outline: 3px solid rgba(15, 97, 188, 0.16);
}

.sns-post-create-image-upload:focus-visible {
  outline: 3px solid rgba(15, 97, 188, 0.25);
  outline-offset: 2px;
}

.sns-post-create-field select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.sns-post-create-required,
.sns-post-create-optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.4;
  vertical-align: middle;
}

.sns-post-create-required {
  background: #fff0f0;
  color: #a13d3d;
}

.sns-post-create-optional {
  background: #edf4fa;
  color: #567086;
}

.sns-post-create-data-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5f5;
  color: #8b3939;
}

.sns-post-create-submit-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5f5;
  color: #8b3939;
  line-height: 1.6;
}

.sns-post-create-submit {
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: #0f61bc;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-post-create-submit:focus-visible {
  outline: 3px solid rgba(15, 97, 188, 0.25);
  outline-offset: 2px;
}

.sns-post-create-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sns-mypage-posts-message {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  color: #6b7e8f;
  line-height: 1.6;
  text-align: center;
}

.sns-mypage-posts-message--error {
  background: #fff5f5;
  color: #8b3939;
}

.sns-mypage-posts-list {
  display: grid;
  gap: 16px;
}

.sns-logout-error {
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5f5;
  color: #8b3939;
  line-height: 1.6;
}

.sns-logout-button {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  padding: 11px 15px;
  border: 1px solid rgba(139, 57, 57, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: #8b3939;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-logout-button:hover,
.sns-logout-button:focus-visible {
  background: #fff5f5;
}

.sns-logout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sns-login-form {
  display: grid;
  gap: 18px;
}

.sns-login-field {
  display: grid;
  gap: 8px;
}

.sns-login-field label {
  color: #294b67;
  font-size: 0.95rem;
  font-weight: 700;
}

.sns-login-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 77, 132, 0.25);
  border-radius: 14px;
  background: #ffffff;
  color: #102f4b;
  font: inherit;
}

.sns-login-field input:focus {
  border-color: #0f61bc;
  outline: 3px solid rgba(15, 97, 188, 0.16);
}

.sns-login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5f5;
  color: #8b3939;
  line-height: 1.6;
}

.sns-login-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: #0f61bc;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-login-submit:hover,
.sns-login-submit:focus-visible {
  background: #094d94;
}

.sns-login-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sns-login-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eefaf2;
  color: #23633a;
  line-height: 1.6;
}

.sns-login-register-entry,
.sns-register-login-entry {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 77, 132, 0.12);
  text-align: center;
}

.sns-login-register-entry p,
.sns-register-login-entry p {
  margin: 0;
  color: #6b7e8f;
  font-size: 0.92rem;
}

.sns-login-secondary-button,
.sns-register-secondary-button {
  width: 100%;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid rgba(15, 97, 188, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: #0f4d85;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-login-secondary-button:hover,
.sns-login-secondary-button:focus-visible,
.sns-register-secondary-button:hover,
.sns-register-secondary-button:focus-visible {
  background: #eff9ff;
}

.sns-register-form {
  display: grid;
  gap: 18px;
}

.sns-register-field {
  display: grid;
  gap: 8px;
}

.sns-register-field label {
  color: #294b67;
  font-size: 0.95rem;
  font-weight: 700;
}

.sns-register-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 77, 132, 0.25);
  border-radius: 14px;
  background: #ffffff;
  color: #102f4b;
  font: inherit;
}

.sns-register-field input:focus {
  border-color: #0f61bc;
  outline: 3px solid rgba(15, 97, 188, 0.16);
}

.sns-register-help {
  margin: 0;
  color: #6b7e8f;
  font-size: 0.86rem;
  line-height: 1.5;
}

.sns-register-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5f5;
  color: #8b3939;
  line-height: 1.6;
}

.sns-register-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: #0f61bc;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sns-register-submit:hover,
.sns-register-submit:focus-visible {
  background: #094d94;
}

.sns-register-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

#fish-master-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#fish-master-list .fish-card--compact {
  min-width: 0;
  min-height: 0;
  justify-content: flex-start;
  padding: 12px;
}

#fish-master-list .fish-visual {
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
}

#fish-master-list .fish-card--compact h3 {
  display: block;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#fish-master-list .fish-card--compact p {
  color: #5b6f85;
  font-size: 0.88rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#fish-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#fish-list .fish-card--calendar {
  min-width: 0;
  min-height: 0;
  justify-content: flex-start;
  padding: 12px;
}

#fish-list .fish-card--calendar .fish-visual {
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
}

#fish-list .fish-card--calendar h3 {
  display: block;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#fish-list .fish-card--calendar .fish-meta {
  margin-top: 8px;
  gap: 6px;
}

#fish-list .fish-card--calendar .fish-label {
  font-size: 0.88rem;
}

#fish-list .fish-card--calendar .star-rating {
  font-size: 0.95rem;
  white-space: nowrap;
}

#fish-list .fish-card--calendar > .fish-description {
  font-size: 0.88rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 16px;
  }

  .grid-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-banner {
    padding: 18px 16px;
  }

  .home-card {
    padding: 18px;
  }

  .sns-feed-entry {
    padding: 0;
  }

  .sns-feed-entry-button {
    padding: 18px;
  }

  .sns-mypage-posts-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sns-mypage-post-create-button {
    width: 100%;
  }

  .sns-post-body {
    padding: 15px 16px 17px;
  }
}

@media (max-width: 400px) {
  .grid-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  #fish-master-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  #fish-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
