/*
Theme Name: みんなの工具レンタル
Theme URI: https://weekend-diy.com
Description: 電動工具レンタルサイト用テーマ。kogu-rental プラグインと連動し、トップページ・申込フォーム・マイページ・規約ページを統一デザインで表示します。
Author: Weekend DIY
Version: 1.0.0
Text Domain: minna-kogu
*/

/* ── Variables ─────────────────────────────────────── */
:root {
  --accent:   #e85a2b;
  --accent-2: #f7c948;
  --ink:      #1f1d1a;
  --ink-soft: #3b362e;
  --muted:    #8a8273;
  --paper:    #f6f1e6;
  --paper-2:  #ece4d2;
  --white:    #ffffff;
  --radius:   8px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Base ──────────────────────────────────────────── */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

/* ── Utilities ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
}

/* ── Nav ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--paper-2);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-logo .mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
  align-items: center;
}

.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: opacity .15s, transform .15s;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

.nav-menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--paper-2);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--paper-2);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--paper-2); }
  .nav-menu-btn { display: flex; }
  .nav-logo { font-size: 15px; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.25) 50%,
    transparent 100%
  );
}

.hero-copy {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  max-width: 560px;
  color: #fff;
}

.hero-copy h1 {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  margin-bottom: 14px;
}

.hero-copy p {
  font-size: 15px;
  opacity: .9;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(232,90,43,.4);
  transition: transform .15s, box-shadow .15s;
  align-self: flex-start;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,90,43,.45);
}

@media (max-width: 640px) {
  .hero-img { height: 300px; }
  .hero-copy { padding: 28px 20px; }
}

/* ── Section titles ─────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--ink);
}

.section-head h2 .star {
  color: var(--accent);
  margin-right: 6px;
}

.see-all {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.see-all:hover { opacity: .75; }

/* ── Tool grid ──────────────────────────────────────── */
.section {
  padding-block: 48px;
}

.section.alt {
  background: var(--paper-2);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding-block: 32px; }
}

/* ── Tool card ──────────────────────────────────────── */
.tool-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.tool-card-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  overflow: hidden;
}

.tool-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.tool-card:hover .tool-card-img img {
  transform: scale(1.04);
}

.tool-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--paper) 0 12px,
    var(--paper-2) 12px 13px
  );
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
}

.tool-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.5;
}

.tool-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tool-card-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.tool-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.tool-card-price .day {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tool-card-price .day-unit {
  font-size: 12px;
  color: var(--muted);
}

.tool-card-price .week {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

.add-btn {
  margin-top: auto;
  width: 100%;
  padding: 9px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
}
.tool-card:hover .add-btn { background: var(--accent); }

@media (max-width: 640px) {
  .tool-card-body { padding: 10px; gap: 6px; }
  .tool-card-name { font-size: 12px; }
  .tool-card-price .day { font-size: 16px; }
  .add-btn { font-size: 11px; padding: 7px; }
}

/* ── Features strip ─────────────────────────────────── */
.features {
  background: var(--ink);
  color: #fff;
  padding-block: 36px;
}

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

.feature-item .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  opacity: .7;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink-soft);
  color: #fff;
  padding-block: 40px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; opacity: .6; line-height: 1.7; }

.footer-links h4 {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  opacity: .8;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 12px;
  opacity: .45;
  text-align: center;
}

/* ── Content pages (固定ページ / 申込フォーム / マイページ / 規約) ── */
.page-wrap {
  padding-block: 48px;
  min-height: 50vh;
}

.page-wrap .page-title {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--ink);
}

.page-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.page-card h2 { font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif; font-size: 22px; margin: 28px 0 12px; }
.page-card h3 { font-size: 17px; margin: 22px 0 8px; color: var(--ink-soft); }
.page-card p  { margin: 10px 0; }
.page-card ul, .page-card ol { margin: 10px 0 10px 22px; }
.page-card li { margin: 4px 0; }
.page-card a:not([class*="kogu-btn"]):not([class*="btn"]) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-card hr { border: none; border-top: 1px solid var(--paper-2); margin: 20px 0; }
.page-card table { width: 100%; border-collapse: collapse; }

@media (max-width: 640px) {
  .page-card { padding: 20px; }
  .page-wrap { padding-block: 32px; }
}

.empty-note {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.empty-note .empty-cta {
  display: inline-flex;
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
}
