/*
Theme Name: Kottou Simple WP
Theme URI: https://etsuantiques.com/
Author: etsu antiques
Description: 骨董品・古美術品買取店向けのシンプルなWordPressテーマ。トップページ、投稿一覧、投稿詳細、固定ページに対応。
Version: 1.1.0
Text Domain: kottou-simple-wp
*/

/* ==================================================
   基本設定
================================================== */

:root {
  --color-black: #111111;
  --color-navy: #1f2937;
  --color-gold: #d4af37;
  --color-gold-dark: #b58f20;
  --color-brown: #8b5e3c;
  --color-brown-dark: #623b25;
  --color-text: #222222;
  --color-muted: #666666;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-soft: #f9f8f4;
  --color-bg-warm: #f4efe7;
  --color-border: #e5e0d8;
  --shadow-soft: 0 3px 14px rgba(0, 0, 0, 0.07);
  --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.08);
  --radius-small: 8px;
  --radius-medium: 12px;
  --max-width: 1120px;
  --content-width: 860px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family:
    "Zen Old Mincho",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

a:hover {
  opacity: 0.84;
}

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

p {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  color: inherit;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.2rem);
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.45;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.55;
}

/* ==================================================
   ヘッダー
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 20px;
  color: var(--color-white);
  background: var(--color-black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-white);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: auto;
  height: 64px;
  max-width: 190px;
  object-fit: contain;
}

.site-menu,
.site-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--color-white);
  font-size: 1.03rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-menu a:hover::after {
  transform: scaleX(1);
}

.site-menu .current-menu-item > a,
.site-menu .is-accent {
  color: var(--color-gold);
  font-weight: 700;
}

/* ==================================================
   共通レイアウト
================================================== */

.section {
  padding: 76px 24px;
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 44px;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.center-text,
.area-text {
  max-width: 840px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ==================================================
   メインビジュアル
================================================== */

.hero {
  padding: 96px 24px;
  color: var(--color-white);
  background:
    linear-gradient(rgba(31, 41, 55, 0.96), rgba(31, 41, 55, 0.96)),
    var(--color-navy);
  text-align: center;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.15rem, 5.5vw, 3.45rem);
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.hero p {
  margin: 0 0 34px;
  font-size: 1.22rem;
  line-height: 1.75;
}

/* ==================================================
   ボタン
================================================== */

.button,
.wp-block-button__link {
  display: inline-block;
  min-width: 180px;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius-small);
  color: #000000;
  background: var(--color-gold);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--color-gold-dark);
  opacity: 1;
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--color-white);
  background: #25d366;
}

.button.secondary:hover {
  background: #1fb858;
}

.button.disabled,
span.button {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

/* ==================================================
   カード
================================================== */

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

.flow-card,
.feature-card,
.policy-card,
.post-card {
  padding: 26px;
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.flow-card {
  background: #fafafa;
}

.flow-card h3,
.feature-card h3,
.policy-card h3 {
  margin: 0 0 12px;
}

.flow-card p,
.feature-card p,
.policy-card p,
.post-card p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.85;
}

/* ==================================================
   買取品目
================================================== */

.items-section {
  background: var(--color-bg-soft);
}

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

.item-card {
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

.item-card img,
.item-placeholder {
  width: 100%;
  height: 180px;
}

.item-card img {
  object-fit: cover;
}

.item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--color-brown-dark);
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    var(--color-bg-warm);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.7;
}

.item-label {
  min-height: 58px;
  padding: 14px 12px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
}

/* ==================================================
   買取実績
================================================== */

.results-section,
.policy-section {
  background: #f7f7f7;
}

.card-grid .post-card {
  display: block;
}

.post-card {
  overflow: hidden;
}

.post-card-thumb {
  display: block;
  margin: -26px -26px 20px;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.post-card-title a {
  text-decoration: none;
}

.post-meta {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ==================================================
   FAQ
================================================== */

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 10px;
  color: var(--color-brown);
}

.faq-item p {
  margin-bottom: 0;
}

/* ==================================================
   全国宅配買取エリア
================================================== */

.service-area-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 94, 60, 0.06), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    #f3efe7;
}

.service-area-lead {
  margin: -10px auto 18px;
  text-align: center;
  font-size: clamp(1.2rem, 2.7vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-area-note {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
  line-height: 2;
}

.service-area-layout {
  max-width: 980px;
  margin: 0 auto;
}

.area-region-list {
  display: grid;
  gap: 14px;
}

.area-region-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
}

.area-region-name {
  margin: 0;
  padding: 15px 18px;
  border: 1px solid rgba(139, 94, 60, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.area-prefectures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  color: #4f1f1f;
  line-height: 1.8;
}

.area-prefectures span {
  display: inline-block;
  padding: 0 12px;
  border-right: 1px solid rgba(139, 94, 60, 0.18);
}

.area-prefectures span:first-child {
  padding-left: 0;
}

.area-local-box {
  max-width: 930px;
  margin: 44px auto 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-brown);
  background: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
}

.area-local-box strong {
  color: var(--color-brown-dark);
}

/* ==================================================
   出張買取エリア
================================================== */

.visit-area-section {
  background: #f7f3ec;
}

.visit-area-lead {
  max-width: 920px;
  margin: -10px auto 36px;
  text-align: center;
  line-height: 2;
}

.visit-area-lead strong {
  color: #8b3e2f;
}

.visit-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.visit-area-card {
  padding: 28px;
  border: 1px solid rgba(139, 94, 60, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.visit-area-card h3 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 94, 60, 0.2);
  color: #5a231d;
  font-size: 1.28rem;
}

.visit-city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit-city-list li {
  padding: 8px 12px;
  border: 1px solid rgba(139, 94, 60, 0.15);
  background: #fbf8f3;
  color: #6b3128;
  font-size: 1rem;
  line-height: 1.4;
}

.visit-area-note {
  max-width: 920px;
  margin: 34px auto 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-brown);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.visit-area-cta {
  margin-top: 30px;
  text-align: center;
}

/* ==================================================
   会社概要
================================================== */

.company-section {
  background: #f0f0f0;
}

.company-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.66);
}

.company-table th,
.company-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 1rem;
  vertical-align: top;
}

.company-table th {
  width: 36%;
  text-align: left;
  white-space: nowrap;
}

.company-table a {
  color: var(--color-brown-dark);
}

/* ==================================================
   お問い合わせ
================================================== */

.contact-section {
  color: var(--color-white);
  background: var(--color-navy);
  text-align: center;
}

.contact-section .section-title {
  color: var(--color-white);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

/* ==================================================
   フッター
================================================== */

.site-footer {
  padding: 28px 20px;
  color: #cccccc;
  background: var(--color-black);
  font-size: 0.96rem;
  text-align: center;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: #cccccc;
  text-decoration: underline;
}

/* ==================================================
   投稿・固定ページ
================================================== */

.content-wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 68px 24px;
}

.archive-title,
.entry-title {
  margin-top: 0;
  line-height: 1.45;
}

.post-list {
  display: grid;
  gap: 26px;
}

.post-list .post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.post-card.no-thumb {
  grid-template-columns: 1fr;
}

.entry-content {
  font-size: 1rem;
}

.entry-content p {
  margin: 0 0 1.5em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.9em;
  margin-bottom: 0.7em;
}

.entry-content img {
  border-radius: var(--radius-small);
}

.featured-image {
  margin: 28px 0;
}

.pagination,
.post-navigation {
  margin-top: 38px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination a,
.pagination span {
  padding: 9px 13px;
  border: 1px solid var(--color-border);
  text-decoration: none;
}

/* ==================================================
   レスポンシブ
================================================== */

@media (max-width: 980px) {
  .site-nav {
    align-items: flex-start;
  }

  .site-menu,
  .site-menu ul {
    gap: 16px;
  }

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

  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .site-nav {
    flex-direction: column;
    gap: 10px;
  }

  .site-logo img {
    height: 52px;
    max-width: 155px;
  }

  .site-menu,
  .site-menu ul {
    width: 100%;
    gap: 8px 14px;
  }

  .site-menu a {
    font-size: 1rem;
  }

  .section {
    padding: 58px 18px;
  }

  .hero {
    padding: 72px 18px;
  }

  .hero h1 {
    font-size: 2.08rem;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .section-title {
    margin-bottom: 34px;
    font-size: 1.78rem;
  }

  .grid-3,
  .card-grid,
  .visit-area-grid {
    grid-template-columns: 1fr;
  }

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

  .item-card img,
  .item-placeholder {
    height: 160px;
  }

  .area-region-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .area-region-name {
    text-align: left;
  }

  .area-prefectures span {
    padding: 0 9px;
  }

  .visit-area-card {
    padding: 22px 18px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-bottom: 0;
  }

  .company-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .post-list .post-card {
    grid-template-columns: 1fr;
  }

  .button,
  .wp-block-button__link {
    min-width: 170px;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 16.5px;
  }

  .site-menu,
  .site-menu ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-menu a {
    display: block;
    padding: 7px 4px;
    text-align: left;
  }

  .hero h1 {
    font-size: 1.82rem;
  }

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

  .item-card img,
  .item-placeholder {
    height: 190px;
  }

  .contact-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-buttons .button {
    width: 100%;
  }

  .area-local-box,
  .visit-area-note {
    padding: 20px;
  }
}

/* ==================================================
   ヘッダーを白背景・黒文字に変更
================================================== */

.site-header {
  color: #111111;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-brand {
  color: #111111;
}

.site-menu a {
  color: #111111;
}

/* 現在のページ・トップページも黒文字 */
.site-menu .current-menu-item > a,
.site-menu .is-accent {
  color: #111111;
}

/* 「越」だけ少し大きく表示 */
.brand-etsu {
  font-size: 1.45em;
  line-height: 1;
  font-weight: 700;
}

