/*
Theme Name: 沖縄のーと。
Theme URI: https://example.com/
Author: Okinawa Note
Description: 沖縄の暮らし・移住・グルメ・ホテル・観光・県内旅行・沖縄発旅行を発信するためのオリジナルWordPressテーマ。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: okinawa-note
*/

:root {
  --ink: #17314d;
  --ink-soft: #5e7185;
  --sky: #51aee8;
  --sky-deep: #168fcf;
  --aqua: #7edbd6;
  --sand: #fff7e8;
  --coral: #ff8f89;
  --leaf: #8dbb73;
  --lavender: #c7b7e6;
  --line: #e6edf3;
  --paper: #ffffff;
  --soft: #f7fbfd;
  --shadow: 0 14px 40px rgba(29, 72, 105, .10);
  --radius: 24px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  letter-spacing: .02em;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sky-deep); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230,237,243,.9);
}
.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50% 50% 45% 55%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ebfbff, #d7f4ff);
  color: var(--sky-deep); font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(81,174,232,.18);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: .03em;
}
.brand-en { color: var(--sky-deep); font-size: 10px; letter-spacing: .34em; margin-top: 7px; font-weight: 700; }

.main-nav ul { display: flex; justify-content: center; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.main-nav a { display: block; padding: 11px 10px; font-size: 13px; font-weight: 700; border-radius: 999px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: #edf8ff; color: var(--sky-deep); }
.header-search { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

.hero { position: relative; min-height: 540px; display: grid; align-items: center; isolation: isolate; background: #9cdbf5; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-image), linear-gradient(135deg, #c9efff 0%, #6fc8ee 46%, #4bb2da 100%);
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.62) 38%, rgba(255,255,255,.08) 72%);
}
.hero-inner { padding-block: 64px; }
.hero-card {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 10px 50px 10px 50px;
  background: rgba(255,255,255,.83);
  box-shadow: 0 20px 60px rgba(19,81,118,.15);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-kicker { color: var(--sky-deep); font-weight: 800; letter-spacing: .15em; font-size: 13px; margin-bottom: 12px; }
.hero h1 {
  margin: 0 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 4.7vw, 58px);
  line-height: 1.42;
  letter-spacing: .05em;
  font-weight: 600;
}
.hero p { margin: 0; color: #3f5e78; font-weight: 600; font-size: clamp(14px, 1.4vw, 17px); }
.hero-line { width: 190px; height: 8px; margin-top: 26px; border-bottom: 3px solid var(--sky); border-radius: 50%; transform: rotate(-1deg); }

.category-strip { position: relative; margin-top: -32px; z-index: 3; }
.category-grid {
  background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 24px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
}
.category-card { min-width: 0; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 8px 4px; border-radius: 18px; transition: .2s ease; }
.category-card:hover { transform: translateY(-3px); background: #f8fbfd; }
.category-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: var(--icon-bg, #eef8ff); }
.category-name { font-size: 13px; font-weight: 800; line-height: 1.45; }

.main-layout { padding: 68px 0 84px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-title { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; position: relative; display: inline-block; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 6px; border-bottom: 3px solid var(--sky); border-radius: 50%; transform: rotate(-1deg); }
.section-more { color: var(--ink-soft); font-size: 13px; font-weight: 700; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; transition: .22s ease; box-shadow: 0 5px 18px rgba(30,70,100,.04); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg,#cceeff,#8fd3f2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-body { padding: 18px 18px 16px; }
.post-cat { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: #e9f7ff; color: var(--sky-deep); font-size: 11px; font-weight: 800; }
.post-title { margin: 10px 0 12px; font-size: 17px; line-height: 1.65; }
.post-meta { display: flex; gap: 16px; color: #8a99a8; font-size: 11px; }
.empty-thumb { height: 100%; display: grid; place-items: center; color: #fff; font-size: 40px; }

.feature-section { margin-top: 64px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 210px; border-radius: 22px; padding: 28px; position: relative; display: flex; align-items: end; overflow: hidden; color: #fff; background: linear-gradient(140deg,#5dc4ef,#187aaf); box-shadow: var(--shadow); }
.feature-card:nth-child(2) { background: linear-gradient(140deg,#91c98e,#3a8c6a); }
.feature-card:nth-child(3) { background: linear-gradient(140deg,#8eb7e3,#6b7fc0); }
.feature-card::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -70px; top: -80px; background: rgba(255,255,255,.15); }
.feature-card h3 { position: relative; margin: 0; font-family: "Yu Mincho", serif; font-size: 24px; line-height: 1.55; }

.sidebar { display: grid; align-content: start; gap: 26px; }
.widget-box { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
.profile-avatar { width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; background: linear-gradient(145deg,#e8f8ff,#c9edff); overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { text-align: center; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.profile-text { color: var(--ink-soft); font-size: 13px; margin: 0; }
.widget-title { margin: 0 0 18px; font-size: 20px; font-family: "Yu Mincho", serif; }
.latest-list { display: grid; gap: 14px; }
.latest-item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.latest-thumb { aspect-ratio: 4/3; border-radius: 10px; background: #dff3ff; overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-title { margin: 0; font-size: 12px; line-height: 1.55; font-weight: 700; }
.latest-date { color: #98a4af; font-size: 10px; display: block; margin-top: 4px; }

.page-hero { padding: 78px 0 58px; background: linear-gradient(180deg,#f0faff,#fff); text-align: center; }
.page-hero h1 { font-family: "Yu Mincho", serif; font-size: clamp(32px,5vw,52px); margin: 0 0 12px; }
.page-hero p { margin: 0; color: var(--ink-soft); }
.content-wrap { width: min(calc(100% - 40px), 860px); margin: 60px auto 90px; }
.article-header { margin-bottom: 34px; }
.article-title { font-family: "Yu Mincho", serif; font-size: clamp(28px,4.5vw,46px); line-height: 1.5; margin: 12px 0 16px; }
.article-meta { color: #8192a2; font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.article-cover { margin: 30px 0 40px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content { font-size: 16px; color: #2e465b; }
.entry-content h2 { font-family: "Yu Mincho", serif; font-size: 28px; margin: 2.2em 0 .9em; padding: 12px 0 12px 18px; border-left: 4px solid var(--sky); background: linear-gradient(90deg,#f1fbff,transparent); }
.entry-content h3 { font-size: 22px; margin-top: 2em; }
.entry-content a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em 0; padding: 20px 24px; background: #f6fbfd; border-left: 4px solid var(--aqua); }

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

.site-footer { background: #edf8fd; padding: 58px 0 28px; border-top: 1px solid #d8edf6; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.footer-copy { color: #627889; font-size: 13px; margin-top: 16px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.footer-nav a { font-size: 13px; font-weight: 700; }
.copyright { margin-top: 44px; padding-top: 20px; border-top: 1px solid #d5e8f1; color: #7890a0; font-size: 11px; text-align: center; }

.pagination { margin-top: 38px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }
.page-numbers.current { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .main-nav { grid-column: 1/-1; order: 3; display: none; padding-bottom: 14px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { justify-content: flex-start; }
  .header-search { display: none; }
  .menu-toggle { display: block; }
  .category-grid { grid-template-columns: repeat(4,1fr); }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-title { font-size: 24px; }
  .brand-en { font-size: 8px; }
  .hero { min-height: 470px; }
  .hero::after { background: linear-gradient(90deg,rgba(255,255,255,.83),rgba(255,255,255,.55)); }
  .hero-card { border-radius: 10px 34px 10px 34px; padding: 28px 24px; }
  .hero h1 { font-size: 34px; }
  .category-strip { margin-top: -18px; }
  .category-grid { grid-template-columns: repeat(2,1fr); padding: 16px; }
  .category-card:last-child { grid-column: 1/-1; }
  .post-grid, .feature-grid, .archive-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .main-layout { padding-top: 48px; gap: 56px; }
  .feature-section { margin-top: 52px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .article-title { font-size: 31px; }
}
