/*
Theme Name: Iroha Rebuild
Theme URI: http://iroha.1detukureru.com/
Author: Arbird
Description: Rebuild theme for Hiroshima shigoto no soudan cafe iroha.
Version: 0.1.0
Text Domain: iroha-rebuild
*/

:root {
  --iroha-blue: #1382c5;
  --iroha-deep: #075986;
  --iroha-sky: #e6f6ff;
  --iroha-pink: #f68aa9;
  --iroha-yellow: #ffe48a;
  --iroha-green: #61bf8a;
  --iroha-ink: #213547;
  --iroha-muted: #657789;
  --iroha-line: #d8eaf4;
  --iroha-bg: #fbfdff;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--iroha-ink);
  background: var(--iroha-bg);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}
a { color: var(--iroha-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--iroha-line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--iroha-deep); }
.site-logo img { width: 178px; display: block; }
.test-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--iroha-yellow);
  color: #614b00;
  font-size: 13px;
  font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--iroha-ink);
  font-size: 14px;
  font-weight: 700;
}
.site-nav a.cta {
  background: var(--iroha-pink);
  color: #fff;
  padding-inline: 15px;
}
.site-nav a:hover { background: var(--iroha-sky); text-decoration: none; }
.site-nav a.cta:hover { background: #eb6f94; }

.hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,228,138,.75), transparent 18rem),
    linear-gradient(135deg, #e8f8ff 0%, #fff 47%, #fff2f7 100%);
}
.hero-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
  gap: 34px;
  align-items: center;
}
.hero-copy p.kicker {
  margin: 0 0 10px;
  color: var(--iroha-blue);
  font-weight: 800;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--iroha-deep);
}
.hero-lead {
  margin: 20px 0 0;
  max-width: 36rem;
  color: #3c5268;
  font-size: 17px;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--iroha-blue);
  background: #fff;
  color: var(--iroha-deep);
  font-weight: 800;
}
.button.primary { background: var(--iroha-blue); color: #fff; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.hero-visual {
  position: relative;
  min-height: 350px;
}
.hero-visual img {
  position: absolute;
  width: 64%;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(7,89,134,.18);
  object-fit: cover;
}
.hero-visual img:first-child { left: 0; top: 0; }
.hero-visual img:last-child { right: 0; bottom: 0; }
.info-strip {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.info-strip a, .info-card {
  background: #fff;
  border: 1px solid var(--iroha-line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(7,89,134,.08);
  font-weight: 800;
}

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 54px 20px;
}
.section-title {
  margin: 0 0 24px;
  color: var(--iroha-deep);
  font-size: 30px;
  letter-spacing: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--iroha-line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(7,89,134,.07);
}
.card h3 { margin: 0 0 10px; color: var(--iroha-deep); font-size: 18px; }
.card p { margin: 0; color: var(--iroha-muted); }
.news-list {
  display: grid;
  gap: 10px;
}
.news-row {
  display: grid;
  grid-template-columns: 120px 130px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--iroha-line);
}
.news-date { color: var(--iroha-muted); font-weight: 700; }
.news-cat { color: #fff; background: var(--iroha-blue); border-radius: 999px; padding: 2px 10px; font-size: 13px; text-align: center; }
.news-title { font-weight: 800; }

.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.page-title {
  margin: 0 0 26px;
  color: var(--iroha-deep);
  font-size: 38px;
  line-height: 1.3;
}
.entry-content {
  background: #fff;
  border: 1px solid var(--iroha-line);
  border-radius: 8px;
  padding: 30px;
}
.entry-content h2, .entry-content h3 { color: var(--iroha-deep); line-height: 1.4; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--iroha-line); padding: 10px; }
.entry-content th { background: var(--iroha-sky); text-align: left; }

.site-footer {
  background: #e9f7ff;
  border-top: 1px solid var(--iroha-line);
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--iroha-muted);
  font-size: 14px;
}
.footer-inner img { width: 160px; }

@media (max-width: 860px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-visual { min-height: 280px; }
  .info-strip { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .news-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 520px) {
  .site-logo img { width: 144px; }
  .site-nav a { font-size: 13px; min-height: 34px; padding-inline: 8px; }
  .grid { grid-template-columns: 1fr; }
  .entry-content { padding: 20px; }
}
