:root {
  --color-forest: #2f5d50;
  --color-forest-deep: #203f38;
  --color-moss: #6f8f72;
  --color-earth: #9a7652;
  --color-sand: #e8dfcf;
  --color-mist: #eef2ef;
  --color-cloud: #fafbf8;
  --color-stone: #5f6862;
  --color-line: #d8ded7;
  --color-sunrise: #d99a5f;
  --color-ink: #26302b;
  --color-muted: #69746d;
  --shadow-soft: 0 14px 34px rgba(38, 48, 43, 0.09);
  --shadow-hover: 0 18px 36px rgba(38, 48, 43, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(145deg, rgba(47, 93, 80, 0.16) 0%, rgba(47, 93, 80, 0) 34%),
    linear-gradient(24deg, rgba(154, 118, 82, 0) 0%, rgba(154, 118, 82, 0) 58%, rgba(154, 118, 82, 0.16) 100%),
    repeating-linear-gradient(0deg, rgba(95, 104, 98, 0.026) 0, rgba(95, 104, 98, 0.026) 1px, transparent 1px, transparent 34px),
    linear-gradient(180deg, #eef2ef 0%, #f7f2e8 48%, #e8dfcf 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  font-family:
    "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--color-forest);
  text-decoration: none;
}

a:hover {
  color: var(--color-forest-deep);
}

img {
  max-width: 100%;
}

button,
select {
  font: inherit;
}

.cloudview-container {
  max-width: 1180px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 222, 215, 0.9);
  background: rgba(250, 249, 244, 0.92);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 78px;
  padding: 12px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  max-width: min(318px, 64vw);
  padding: 0;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-button {
  border-color: var(--color-line);
  border-radius: var(--radius);
}

.nav-link {
  color: var(--color-stone);
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-forest-deep);
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.share-links a {
  --share-bg: #fff;
  --share-border: var(--color-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--share-border);
  border-radius: var(--radius);
  background: var(--share-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(38, 48, 43, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.share-links a:hover {
  border-color: var(--share-border);
  color: #fff;
  filter: brightness(0.92);
  box-shadow: 0 10px 18px rgba(38, 48, 43, 0.12);
  transform: translateY(-1px);
}

.share-links .share-link-x {
  --share-bg: #000;
  --share-border: #000;
}

.share-links .share-link-facebook {
  --share-bg: #1877f2;
  --share-border: #1877f2;
}

.share-links .share-link-line {
  --share-bg: #06c755;
  --share-border: #06c755;
}

.page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding-top: 34px;
  padding-bottom: 48px;
}

.sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 22px;
}

.sidebar .tool-panel + .tool-panel {
  margin-top: 24px;
}

.main-content {
  min-width: 0;
}

.main-content > * + * {
  margin-top: 42px;
}

.tool-panel,
.notice-panel,
.hero-section,
.news-section {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.tool-panel,
.notice-panel {
  padding: 18px;
}

.tool-panel h2,
.notice-panel h2 {
  margin: 0 0 14px;
  color: var(--color-forest-deep);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.search-form {
  display: grid;
  gap: 10px;
}

.form-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.form-select {
  min-height: 44px;
  border-color: var(--color-line);
  border-radius: var(--radius);
  color: var(--color-ink);
}

.form-select:focus {
  border-color: rgba(47, 93, 80, 0.55);
  box-shadow: 0 0 0 0.22rem rgba(47, 93, 80, 0.13);
}

.btn {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
}

.btn-primary {
  border-color: var(--color-forest);
  background: var(--color-forest);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--color-forest-deep);
  background: var(--color-forest-deep);
}

.btn-secondary {
  border-color: var(--color-earth);
  background: var(--color-earth);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: #7e6043;
  background: #7e6043;
}

.notice-panel {
  background: #fffaf2;
  border-color: rgba(217, 154, 95, 0.38);
}

.notice-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
  color: #6e5f4f;
  font-size: 14px;
}

.about-panel p {
  margin: 0;
  color: #6e5f4f;
  font-size: 15px;
  line-height: 1.85;
}

.about-panel p + p {
  margin-top: 12px;
}

.about-panel-link a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(47, 93, 80, 0.28);
  border-radius: var(--radius);
  background: rgba(47, 93, 80, 0.06);
  color: var(--color-forest-deep);
  font-weight: 900;
  line-height: 1.55;
  text-decoration: none;
}

.about-panel-link a:hover {
  border-color: rgba(47, 93, 80, 0.48);
  background: rgba(47, 93, 80, 0.1);
  color: var(--color-forest);
}

.hero-section {
  overflow: hidden;
  padding: 22px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--color-forest-deep);
  font-weight: 900;
  line-height: 1.25;
}

.section-heading h1 {
  font-size: 32px;
}

.section-heading h2 {
  font-size: 25px;
}

.section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--color-earth);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.shooting-note,
.section-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.feature-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-mist);
  box-shadow: none;
  cursor: zoom-in;
}

.feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition:
    transform 240ms ease,
    filter 240ms ease;
}

.feature-image:hover img {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.015);
}

.feature-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(32, 63, 56, 0.74);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.content-section {
  padding-top: 4px;
}

.news-section {
  padding: 22px;
}

.news-article {
  padding: 18px 0;
  border-top: 1px solid var(--color-line);
}

.news-article:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.news-article:last-child {
  padding-bottom: 0;
}

.news-article h3 {
  margin: 0 0 8px;
  color: var(--color-forest);
  font-size: 18px;
  font-weight: 900;
}

.news-article p {
  margin: 0;
  color: var(--color-stone);
}

.mobile-search {
  display: grid;
  gap: 16px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.thumb-item {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-ink);
  text-align: left;
  cursor: zoom-in;
  --reveal-y: 0px;
  box-shadow: 0 8px 20px rgba(38, 48, 43, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.thumb-item:hover,
.thumb-item:focus {
  --reveal-y: -2px;
  border-color: rgba(47, 93, 80, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(var(--reveal-y));
}

.thumb-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.thumb-item:hover img,
.thumb-item:focus img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.025);
}

.thumb-item span {
  display: block;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--color-stone);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(47, 93, 80, 0.34);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-forest);
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.section-link:hover {
  border-color: var(--color-forest);
  background: rgba(47, 93, 80, 0.06);
  color: var(--color-forest-deep);
  transform: translateY(-1px);
}

.section-link-mobile {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: #f5f0e7;
  color: #5e554b;
  font-size: 14px;
}

.site-footer .cloudview-container {
  padding-top: 26px;
  padding-bottom: 28px;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 12px;
}

.site-footer a {
  color: var(--color-forest-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.copyright {
  font-weight: 800;
}

.gallery-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #111814;
  color: #fff;
}

.gallery-modal .modal-header,
.gallery-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111814;
}

.gallery-modal .modal-footer {
  justify-content: center;
  min-height: 58px;
}

.gallery-modal .modal-title {
  font-size: 18px;
  font-weight: 900;
}

.gallery-modal .btn-close {
  filter: invert(1) grayscale(1);
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-modal .carousel-item {
  background: #111814;
}

.gallery-modal .carousel-item img {
  display: block;
  width: 100%;
  max-height: min(74vh, 780px);
  object-fit: contain;
  background: #111814;
}

.gallery-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.gallery-caption-label {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.gallery-caption-time {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.82;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev.is-disabled,
.carousel-control-next.is-disabled {
  opacity: 0.22;
  pointer-events: none;
}

@media (min-width: 992px) {
  .navbar-nav {
    gap: 6px;
  }

  .nav-link {
    padding: 8px 12px;
    border-radius: var(--radius);
  }

  .nav-link.active {
    background: rgba(47, 93, 80, 0.08);
  }

  .share-links {
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  body {
    font-size: 15px;
  }

  .navbar {
    min-height: 68px;
  }

  .site-logo {
    max-width: min(232px, 68vw);
  }

  .navbar-collapse {
    padding-top: 14px;
  }

  .page-layout {
    display: block;
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .main-content > * + * {
    margin-top: 30px;
  }

  .hero-section,
  .news-section,
  .tool-panel,
  .notice-panel {
    padding: 16px;
  }

  .section-heading,
  .hero-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }

  .section-heading h1 {
    font-size: 28px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .feature-caption {
    left: 10px;
    bottom: 10px;
    padding: 7px 10px;
    font-size: 13px;
  }

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

  .thumb-item span {
    min-height: 40px;
    padding: 8px;
    font-size: 12px;
  }

  .section-link {
    width: 100%;
    margin-top: 14px;
  }

  .section-heading .section-link {
    display: none;
  }

  .section-link-mobile {
    display: inline-flex;
  }

  .site-footer .cloudview-container {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .gallery-modal .modal-content {
    border-radius: 0;
  }

  .gallery-modal .carousel-item img {
    height: calc(100vh - 132px);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.news-title-text {
  margin-bottom: 6px !important;
  color: var(--color-ink) !important;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(111, 143, 114, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  color: var(--color-muted);
  font-weight: 700;
}

.result-section {
  min-width: 0;
}

.result-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
}

.result-nav a,
.result-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius);
  font-weight: 900;
}

.result-nav a {
  min-width: 86px;
  padding: 7px 12px;
  border: 1px solid rgba(47, 93, 80, 0.34);
  background: #fff;
  color: var(--color-forest);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.result-nav a:hover {
  border-color: var(--color-forest);
  background: rgba(47, 93, 80, 0.06);
  color: var(--color-forest-deep);
  transform: translateY(-1px);
}

.result-nav span {
  flex: 1 1 auto;
  color: var(--color-stone);
  text-align: center;
}

.best-list {
  display: grid;
  gap: 18px;
}

.best-entry {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 20px rgba(38, 48, 43, 0.06);
}

.best-entry-photo {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-mist);
  cursor: zoom-in;
}

.best-entry-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.best-entry-photo:hover img,
.best-entry-photo:focus img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.025);
}

.best-entry-body h2 {
  margin: 0 0 12px;
  color: var(--color-forest-deep);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.best-entry-body dl,
.best-entry-body dd {
  margin: 0;
}

.best-entry-body dl {
  display: grid;
  gap: 10px;
}

.best-entry-body dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}

.best-entry-body dt {
  color: var(--color-earth);
  font-size: 13px;
  font-weight: 900;
}

.best-entry-body dd {
  color: var(--color-stone);
}

.share-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  fill: currentColor;
  flex: 0 0 auto;
}

.share-text {
  line-height: 1;
}

@media (max-width: 991.98px) {
  .result-nav {
    gap: 8px;
    padding: 10px;
  }

  .result-nav a {
    min-width: 66px;
    padding: 7px 10px;
  }

  .result-nav span {
    font-size: 13px;
    line-height: 1.4;
  }

  .best-entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .best-entry-body h2 {
    font-size: 20px;
  }

  .best-entry-body dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.scroll-reveal {
  --reveal-y: 0px;
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.18, 0.72, 0.24, 1),
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, var(--reveal-y), 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
