* {
  box-sizing: border-box;
}

:root {
  --green: #18c964;
  --green-2: #12b858;
  --green-deep: #08733d;
  --green-ink: #0c2c1b;

  --gold: #e6b83f;
  --gold-deep: #cf9f24;

  --page: #f6f8f5;
  --surface: rgba(255, 255, 255, 0.90);
  --surface-solid: #ffffff;

  --text: #102218;
  --muted: #66776c;
  --line: rgba(43, 83, 59, 0.11);

  --shadow-1: 0 10px 34px rgba(14, 42, 25, 0.055);
  --shadow-2: 0 18px 46px rgba(14, 42, 25, 0.085);
  --shadow-3: 0 28px 80px rgba(14, 42, 25, 0.13);

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 8%, rgba(24,201,100,.09), transparent 27%),
    radial-gradient(circle at 88% 12%, rgba(230,184,63,.08), transparent 22%),
    linear-gradient(180deg, #fbfcfb 0%, var(--page) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Header ===== */

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(251, 252, 251, 0.88);
  backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 29px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(238,249,242,.96));
  border: 1px solid rgba(24,201,100,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 26px rgba(24,201,100,.10);
}

.brand-title {
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.065em;
}

.brand-green {
  color: var(--green-2);
}

.brand-gold {
  color: var(--gold);
}

.brand-copy p {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: #44584b;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #203126;
  font-weight: 800;
  cursor: pointer;
}

.header-search-btn svg {
  width: 19px;
  height: 19px;
}

.header-btn {
  min-width: 134px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 900;
  transition: .18s ease;
}

.header-btn:hover,
.hero-btn:hover,
.side-primary:hover,
.side-secondary:hover,
.feature-card:hover,
.article-card:hover {
  transform: translateY(-2px);
}

.login-btn {
  color: var(--green-deep);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(24,201,100,.22);
  box-shadow: var(--shadow-1);
}

.signup-btn {
  color: #201b0d;
  background: linear-gradient(135deg, #f0c74e, var(--gold));
  border: 1px solid rgba(207,159,36,.22);
  box-shadow: 0 10px 28px rgba(207,159,36,.16);
}

/* ===== Nav ===== */

.global-nav {
  background:
    linear-gradient(90deg, #18c964 0%, #12b858 45%, #0da34d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 6px 18px rgba(8,115,61,.12);
}

.nav-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 9px 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.nav-inner a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: rgba(255,255,255,.96);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .01em;
  transition: .18s ease;
}

.nav-inner a:hover {
  background: rgba(255,255,255,.10);
}

.nav-inner a.active {
  color: var(--green-deep);
  background: rgba(255,255,255,.98);
  box-shadow: 0 7px 20px rgba(6,86,44,.12);
}

/* ===== Main ===== */

.page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 78px;
}

/* Search */

.search-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) 140px;
  gap: 14px;
  margin-bottom: 28px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap svg {
  width: 21px;
  height: 21px;
  position: absolute;
  left: 21px;
  top: 20px;
  color: #7d8d82;
}

.search-input-wrap input {
  width: 100%;
  height: 62px;
  padding: 0 22px 0 56px;
  border: 1px solid rgba(65,105,78,.14);
  border-radius: 20px;
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    var(--shadow-1);
}

.search-input-wrap input:focus {
  border-color: rgba(24,201,100,.38);
  box-shadow:
    0 0 0 4px rgba(24,201,100,.07),
    var(--shadow-1);
}

.search-panel button {
  border: 0;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(135deg, #1bd169 0%, #0eaa50 100%);
  box-shadow: 0 14px 30px rgba(18,184,88,.18);
}

/* ===== Hero ===== */

.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  overflow: hidden;
  position: relative;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.96);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(249,251,249,.93));
  box-shadow: var(--shadow-3);
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: -180px;
  border-radius: 50%;
  background: rgba(24,201,100,.08);
  filter: blur(4px);
}

.hero-copy {
  padding: 54px 50px 48px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
}

.hero-kicker span {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
}

.hero h1 {
  margin: 19px 0 20px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.072em;
  font-weight: 950;
}

.hero h1 > span {
  color: var(--green-2);
}

.hero h1 strong {
  color: var(--gold-deep);
  font-weight: 950;
}

.hero p {
  margin: 0;
  color: #53635a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.95;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btn {
  min-width: 165px;
  min-height: 56px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 17px;
  font-weight: 900;
  transition: .18s ease;
}

.hero-btn svg {
  width: 19px;
  height: 19px;
}

.hero-main {
  color: #fff;
  background: linear-gradient(135deg, #1bd169 0%, #0fa851 100%);
  box-shadow: 0 16px 34px rgba(18,184,88,.20);
}

.hero-gold {
  color: #201b0e;
  background: linear-gradient(135deg, #f1ca56 0%, #dfae34 100%);
  box-shadow: 0 16px 34px rgba(207,159,36,.18);
}

.hero-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718076;
  font-size: 12px;
  font-weight: 650;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24,201,100,.08);
}

.hero-visual {
  position: relative;
  padding: 28px 28px 28px 8px;
  display: flex;
  align-items: center;
}

.image-glow {
  position: absolute;
  inset: 50px 20px 42px 10px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 15%, rgba(230,184,63,.22), transparent 34%),
    linear-gradient(135deg, rgba(247,255,249,.7), rgba(255,249,230,.95));
  filter: blur(1px);
}

.hero-image-card {
  width: 100%;
  min-height: 370px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 26px 60px rgba(15,54,30,.16),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #173623;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(24,42,30,.10);
  font-size: 12px;
  font-weight: 800;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ===== Announcement ===== */

.announcement {
  margin: 24px 0;
  min-height: 64px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.announcement-label {
  padding: 7px 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(24,201,100,.09);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
}

.announcement strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.announcement > a {
  flex: 0 0 auto;
  color: var(--green-deep);
  font-weight: 900;
}

/* ===== Feature cards ===== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.feature-card {
  min-height: 122px;
  padding: 20px 18px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: .18s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--green-deep);
  background:
    linear-gradient(145deg, rgba(244,255,248,.98), rgba(231,248,237,.96));
  border: 1px solid rgba(24,201,100,.11);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-card strong {
  display: block;
  color: var(--green-deep);
  font-size: 17px;
  font-weight: 900;
}

.feature-card small {
  display: block;
  margin-top: 4px;
  color: #7b897f;
  font-size: 12px;
}

.feature-arrow {
  color: #8fa096;
  font-size: 19px;
}

/* ===== Content ===== */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #7b9282;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .17em;
}

.section-header h2,
.sidebar h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-header > a {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.posts-panel {
  padding: 26px 28px 10px;
}

.post-list {
  margin-top: 10px;
}

.post-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 105px minmax(0,1fr) auto auto;
  gap: 15px;
  align-items: center;
  border-top: 1px solid rgba(48,82,59,.08);
}

.tag {
  justify-self: start;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.tag-uber {
  background: linear-gradient(135deg, #25c967, #12a750);
}
.tag-demae {
  background: linear-gradient(135deg, #f05b63, #db3944);
}
.tag-rocket {
  background: linear-gradient(135deg, #f8b23c, #ef9418);
}
.tag-wolt {
  background: linear-gradient(135deg, #35bce8, #189bd0);
}
.tag-user {
  color: #2b240d;
  background: linear-gradient(135deg, #f4cd54, #e2b533);
}

.post-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.post-copy small {
  display: block;
  margin-top: 5px;
  color: #7a887f;
  font-size: 12px;
}

.post-meta {
  display: flex;
  gap: 12px;
  color: #7e8c82;
  font-size: 11px;
  white-space: nowrap;
}

.post-arrow {
  color: #92a096;
  font-size: 18px;
}

/* Sidebar */

.sidebar {
  display: grid;
  gap: 22px;
}

.login-panel,
.keyword-panel {
  padding: 26px;
}

.sidebar p {
  margin: 14px 0 18px;
  color: #5c6c61;
  font-size: 14px;
}

.side-primary,
.side-secondary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 900;
  transition: .18s ease;
}

.side-primary {
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1bd169, #0ea750);
  box-shadow: 0 14px 28px rgba(18,184,88,.16);
}

.side-secondary {
  color: var(--green-deep);
  background: #fff;
  border: 1px solid rgba(24,201,100,.20);
}

.keyword-list {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-list a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #3c4d42;
  background: #f3f6f3;
  border: 1px solid #e8eee9;
  font-size: 12px;
  font-weight: 650;
}

/* ===== Articles ===== */

.article-panel {
  margin-top: 24px;
  padding: 26px 28px 28px;
}

.article-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.article-card {
  min-width: 0;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.60);
  transition: .18s ease;
}

.article-card:hover {
  background: #fff;
  box-shadow: var(--shadow-1);
}

.article-thumb {
  height: 138px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
}

.article-thumb span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8,115,61,.9);
  font-size: 10px;
  font-weight: 900;
}

.article-thumb b {
  font-size: 52px;
}

.thumb-rain {
  background: linear-gradient(135deg, #c4d7df, #e9f0ed);
}
.thumb-beginner {
  background: linear-gradient(135deg, #dceadf, #f5f7e9);
}
.thumb-tax {
  background: linear-gradient(135deg, #efe2c8, #f8f4ea);
}
.thumb-trouble {
  background: linear-gradient(135deg, #dceee6, #e7edf5);
}

.article-card h3 {
  margin: 12px 2px 8px;
  font-size: 14px;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #7b897f;
  font-size: 11px;
}

/* ===== Footer ===== */

.site-footer {
  margin-top: 74px;
  color: #eef6f0;
  background:
    radial-gradient(circle at 14% 0%, rgba(24,201,100,.15), transparent 26%),
    linear-gradient(180deg, #123c24 0%, #0b2917 100%);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand strong {
  font-size: 22px;
}

.footer-brand p {
  margin: 7px 0 0;
  color: #bfd2c5;
  font-size: 12px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-content: flex-start;
}

.footer-inner nav a {
  color: #e6f0e9;
  font-size: 12px;
}

/* ===== Tablet ===== */

@media (max-width: 980px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .brand-title {
    font-size: 34px;
  }

  .brand-copy p {
    white-space: normal;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
    gap: 4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .nav-inner a {
    min-width: 0;
    padding: 0 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding: 0 28px 28px;
  }

  .image-glow {
    inset: 20px 28px 28px;
  }

  .hero-image-card {
    min-height: 300px;
  }

  .hero-image-card img {
    min-height: 300px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mobile ===== */

@media (max-width: 640px) {

  .global-nav {
    overflow: hidden;
    padding: 7px 8px;
  }

  .nav-inner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
  }

  .nav-inner a {
    min-width: 0;
    min-height: 44px;
    padding: 7px 4px;
    border-radius: 11px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: -0.025em;
    white-space: normal;
    text-align: center;
  }

  .nav-inner a.active {
    box-shadow: 0 4px 12px rgba(6,86,44,.10);
  }

  /* 2段目は3項目なので、少し広く見えるように配置 */
  .nav-inner a:nth-child(5) {
    grid-column: 1 / 2;
  }

  .nav-inner a:nth-child(6) {
    grid-column: 2 / 3;
  }

  .nav-inner a:nth-child(7) {
    grid-column: 3 / 4;
  }

  .header-inner {
    min-height: auto;
    padding: 15px 0;
    display: block;
  }

  .brand-mark {
    width: 49px;
    height: 49px;
    border-radius: 16px;
    font-size: 24px;
  }

  .brand-title {
    font-size: 30px;
  }

  .brand-copy p {
    font-size: 11px;
    margin-top: 7px;
  }

  .header-actions {
    margin-top: 14px;
  }

  .header-search-btn {
    display: none;
  }

  .header-btn {
    min-width: 0;
    flex: 1;
    min-height: 44px;
  }

  .page-wrap {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .search-panel {
    grid-template-columns: minmax(0,1fr) 82px;
    gap: 8px;
  }

  .search-input-wrap input {
    height: 54px;
    font-size: 13px;
  }

  .search-input-wrap svg {
    top: 17px;
  }

  .hero {
    min-height: 0;
    border-radius: 26px;
  }

  .hero-copy {
    padding: 27px 20px 24px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero p br {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-visual {
    padding: 0 18px 18px;
  }

  .image-glow {
    inset: 0 18px 18px;
  }

  .hero-image-card {
    min-height: 220px;
    border-radius: 22px;
  }

  .hero-image-card img {
    min-height: 220px;
  }

  .image-caption {
    right: 10px;
    bottom: 10px;
    font-size: 10px;
  }

  .announcement {
    padding: 16px;
    align-items: flex-start;
  }

  .announcement-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .announcement strong {
    white-space: normal;
    font-size: 13px;
  }

  .announcement > a {
    font-size: 11px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 88px;
  }

  .posts-panel,
  .login-panel,
  .keyword-panel,
  .article-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-header h2,
  .sidebar h2 {
    font-size: 22px;
  }

  .post-row {
    padding: 14px 0;
    grid-template-columns: 86px minmax(0,1fr) auto;
    align-items: start;
  }

  .post-meta {
    grid-column: 2 / 4;
    flex-wrap: wrap;
    gap: 9px;
  }

  .post-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    height: 170px;
  }

  .footer-inner {
    width: calc(100% - 24px);
    flex-direction: column;
  }
}


/* =========================================
   上へ戻るボタン
   ========================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 80;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(24, 201, 100, 0.22);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.94);
  color: var(--green-deep);

  box-shadow:
    0 12px 30px rgba(14, 42, 25, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(12px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);

  transition:
    opacity .22s ease,
    visibility .22s ease,
    transform .22s ease,
    background .18s ease;

  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Safariの下部バーに重ならない位置 */
@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
}

/* =========================================
   ログイン状態表示
   ========================================= */

.auth-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* hidden属性を確実に効かせる */
.auth-menu[hidden] {
  display: none !important;
}


.header-user-name {
  max-width: 160px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: var(--green-deep);

  font-size: 14px;
  font-weight: 900;
}


.logout-btn {
  border: 1px solid rgba(90, 110, 98, 0.18);

  color: #4f6156;

  background: #ffffff;

  cursor: pointer;
}


/* ================================
   スマホ
================================ */

@media (max-width: 640px) {

  .auth-menu {
    width: 100%;

    gap: 7px;
  }


  .header-user-name {
    max-width: 100px;

    font-size: 12px;
  }


  .auth-menu .header-btn {
    min-width: 0;

    flex: 1;

    padding-left: 8px;
    padding-right: 8px;

    font-size: 12px;
  }


  #userMenu {
    display: grid;

    grid-template-columns:
      auto 1fr 1fr;

    align-items: center;
  }


  #userMenu[hidden] {
    display: none !important;
  }

}

/* ========================================
   トップ 新着投稿
======================================== */

.recent-post-row {
  cursor: pointer;
}


.recent-post-row:focus-visible {
  outline:
    3px solid
    rgba(24, 201, 100, 0.22);

  outline-offset:
    -3px;
}


.recent-post-loading,
.recent-post-empty,
.recent-post-error {
  padding:
    35px 20px;

  color:
    #7b877f;

  font-size:
    14px;

  text-align:
    center;
}


.recent-post-error {
  color:
    #b44a42;
}


/* menu */

.tag-menu {
  color:
    #fff;

  background:
    #7164d9;
}


/* その他 */

.tag-other {
  color:
    #fff;

  background:
    #7a8980;
}

/* ===== share modal ===== */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.share-modal-sheet {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 22px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.share-modal-title {
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 800;
  color: #1f2a44;
}

.share-modal-message {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: #5f6677;
}

.share-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-main-btn,
.share-sub-btn,
.share-close-btn {
  width: 100%;
  border: none;
  border-radius: 22px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.share-main-btn {
  background: #69b9ec;
  color: #fff;
  font-size: 1.1rem;
  padding: 24px 18px;
}

.share-main-btn:hover {
  opacity: 0.92;
}

.share-sub-btn {
  background: #fff;
  color: #1f2a44;
  border: 4px solid #b8e0f9;
  font-size: 1.1rem;
  padding: 22px 18px;
}

.share-close-btn {
  background: transparent;
  color: #777;
  font-size: 1rem;
  padding: 18px 12px 6px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .share-modal-sheet {
    border-radius: 24px;
    padding: 24px 18px 22px;
  }

  .share-modal-title {
    font-size: 1.8rem;
  }

  .share-main-btn,
  .share-sub-btn {
    font-size: 1rem;
    padding: 20px 16px;
  }
}