@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  --ink: #547c98;
  /* Mamekwoko Blue */
  --ink-soft: rgba(84, 124, 152, 0.8);
  --accent-sand: #fefcf5;
  --accent-rose: #fdf2f0;
  --accent-mint: #f0f7f4;
  --accent-mint-dark: #e0ece6;
  --border-soft: rgba(84, 124, 152, 0.15);
  --card-shadow: 2px 2px 0px rgba(84, 124, 152, 0.1);
  /* Hard shadow style */
}

body.page {
  font-family: "Zen Maru Gothic", sans-serif;
  margin: 0;
  color: var(--ink);
  background: #fffaf0;
  /* Mamekoko Base */
  min-height: 100vh;
  padding-bottom: 4rem;
}

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

.articles-header,
.article-detail-header,
.contact-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.header-back:hover {
  color: var(--ink);
}

.articles-header h1,
.article-detail-header h1,
.contact-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.2rem 0;
}

.lede {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.articles-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.articles-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.articles-list li article {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  border: 2px solid var(--border-soft);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.articles-list li article:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(84, 124, 152, 0.15);
  border-color: var(--ink-soft);
}

.articles-list h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.date {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
}

.summary {
  margin: 0;
  line-height: 1.6;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

.tags li {
  background: var(--accent-mint);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid rgba(47, 39, 33, 0.08);
}

.page--guides .articles-list li article {
  background: var(--accent-sand);
  border-color: rgba(47, 39, 33, 0.08);
}

.page--guides .tags li {
  background: var(--accent-rose);
}

.article-detail-main {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  background: white;
  border-radius: 30px;
  border: 2px solid var(--border-soft);
  box-shadow: var(--card-shadow);
}

.article-meta {
  padding: 2rem 2rem 0;
}

.article-meta .date {
  display: block;
  margin-bottom: 0.6rem;
}

.article-content {
  padding: 0 2rem 2.5rem;
  line-height: 1.9;
  font-size: 1.02rem;
}

/* --- Typography Enhancements --- */

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed var(--border-soft);
  color: var(--ink);
  position: relative;
}

.article-content h3 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 5px solid var(--accent-mint-dark);
}

.page--guides .article-content h3 {
  border-left-color: var(--accent-rose);
}

.article-content h4 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.article-content p {
  margin: 1rem 0;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content ul li {
  list-style-type: none;
  position: relative;
  margin-bottom: 0.5rem;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink-soft);
}

.article-content ol li {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* Callout Box */
.callout {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 16px;
  background: var(--accent-mint);
  border: 1px solid rgba(84, 124, 152, 0.1);
}

.page--guides .callout {
  background: var(--accent-rose);
  border-color: rgba(220, 100, 100, 0.1);
}

.callout-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content img,
.article-content figure {
  width: 100%;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-content blockquote {
  border-left: 4px solid var(--accent-rose);
  padding-left: 1.2rem;
  color: var(--ink-soft);
  margin: 2rem 0;
  font-style: italic;
  background: rgba(253, 242, 240, 0.3);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
}

.article-content pre {
  background: #232a31;
  color: #f7f3ef;
  padding: 1.2rem;
  border-radius: 14px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Product Card (Amazon Link) --- */
.product-card {
  display: flex;
  background: white;
  border: 2px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 3rem 0;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
  text-decoration: none !important;
  /* Force no underline */
  color: inherit !important;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
  box-shadow: 4px 4px 0px rgba(84, 124, 152, 0.15);
}

.product-image {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
  /* Override article img margin */
  box-shadow: none;
  /* Override article img shadow */
  border-radius: 0;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white !important;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  font-size: 0.9rem;
  align-self: flex-start;
  transition: opacity 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-btn:hover {
  opacity: 0.9;
}

.product-btn .icon {
  margin-left: 0.4rem;
  font-size: 1.1em;
  line-height: 1;
}

/* --- Share Buttons --- */

.article-footer {
  margin-top: 4rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--border-soft);
}

.share-area {
  text-align: center;
}

.share-label {
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-mint);
  color: var(--ink);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.2rem;
}

.share-btn:hover {
  transform: scale(1.15) rotate(5deg);
  background: var(--ink);
  color: white;
}

/* Contact Page Styles */
.page--contact .contact-card {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 2rem;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border-soft);
  box-shadow: var(--card-shadow);
}

.contact-card iframe {
  width: 100%;
  border: none;
  border-radius: 16px;
  min-height: 720px;
  background: #fff;
}

.contact-card .placeholder {
  background: var(--accent-sand);
  border-radius: 16px;
  padding: 1.5rem;
}

.contact-card .placeholder p {
  margin: 0;
  line-height: 1.7;
}

.page--notfound .notfound-main {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.page--notfound .notfound-image {
  width: min(560px, 100%);
  height: auto;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: 2px solid var(--border-soft);
  background: white;
}

.page--notfound .notfound-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  box-shadow: var(--card-shadow);
  border: 2px solid rgba(47, 39, 33, 0.08);
}

.page--notfound .notfound-home:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {

  .page--news .news-header-oshirase {
    display: none;
  }

  .articles-list li article,
  .article-detail-main,
  .contact-card {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .article-meta,
  .article-content {
    padding: 0 1rem 1.5rem;
  }

  .contact-card iframe {
    min-height: 640px;
  }

  /* Mobile Product Card */
  .product-card {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
  }

  .product-image {
    width: 100%;
    height: 180px;
  }

  .product-image img {
    height: 100%;
    width: auto;
  }

  .product-btn {
    align-self: stretch;
  }
}