/* ==========================================
   STUDIO HARU - Common Styles
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Kosugi+Maru&display=swap');

:root {
  --primary: #2d6060;
  --primary-light: #4a8a8a;
  --primary-dark: #1a3d3d;
  --accent: #e07840;
  --accent-light: #f5a55c;
  --bg: #f8f6f2;
  --surface: #ffffff;
  --text: #2a2a2a;
  --text-mid: #5a5a5a;
  --text-light: #909090;
  --border: #e0dbd3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-hover: 0 10px 36px rgba(0,0,0,0.13);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
body {
  font-family: 'Kosugi Maru', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  font-size: 16px;
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  transition: background 0.4s, box-shadow 0.4s;
}
header.transparent {
  background: transparent;
}
header.transparent .logo-text,
header.transparent nav a { color: #fff; }
header.transparent nav a::after { background-color: var(--accent-light); }

header.white,
header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
header.white .logo-text,
header.scrolled .logo-text { color: var(--primary); }
header.white nav a,
header.scrolled nav a { color: var(--text); }
header.white nav a::after,
header.scrolled nav a::after { background-color: var(--accent); }
header.white nav a:hover,
header.scrolled nav a:hover { color: var(--accent); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { height: 38px; }
.logo-text {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  font-family: 'Noto Serif JP', serif;
  transition: color 0.4s;
}

nav { display: flex; gap: 28px; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background-color: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
nav a:hover::after { transform: scaleX(1); }

/* ---- PAGE BANNER (inner pages) ---- */
.page-banner {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 130px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.page-banner-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: 'Noto Serif JP', serif;
  position: relative; z-index: 1;
}
.page-banner h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.45;
  position: relative; z-index: 1;
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 2;
  position: relative; z-index: 1;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Noto Serif JP', serif;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}
.section-lead {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 2;
}

/* ---- INFO BOX ---- */
.info-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.info-box h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.info-box p { color: var(--text-mid); font-size: 0.95rem; }
.info-box.accent-left { border-left: 4px solid var(--accent); }
.info-box.primary-left { border-left: 4px solid var(--primary); }

/* ---- STYLED LIST ---- */
ul.styled {
  list-style: none;
  padding-left: 0;
}
ul.styled li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
}
ul.styled li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.75em;
  margin-top: 0.35em;
  flex-shrink: 0;
}

/* ---- TWO COLUMN ---- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: start;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

/* ---- CARDS ---- */
.cards {
  display: grid;
  gap: 24px;
}
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Noto Serif JP', serif;
}
.card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  flex: 1;
  line-height: 1.85;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  margin-top: 18px;
  transition: color 0.3s, border-color 0.3s;
  align-self: flex-start;
}
.card-link:hover { color: var(--accent); border-color: var(--accent); }
.card-link::after { content: ' →'; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  cursor: pointer;
  border: none;
  font-family: 'Kosugi Maru', sans-serif;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,96,96,0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,96,96,0.3);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(224,120,64,0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,120,64,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 32px;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  display: inline-block;
  padding: 13px 40px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ---- TABLE ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table th, .info-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th {
  background: #f0ede7;
  color: var(--primary);
  font-family: 'Noto Serif JP', serif;
  width: 28%;
  white-space: nowrap;
  font-size: 0.88rem;
}
.info-table td { color: var(--text-mid); }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ---- FORM ---- */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 9px;
  letter-spacing: 0.04em;
}
.form-group label .required {
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Kosugi Maru', sans-serif;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45,96,96,0.1);
}
.form-group textarea { resize: vertical; min-height: 150px; }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #c85520 100%);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.5;
}
.cta-band p {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 2;
}

/* ---- FOOTER ---- */
footer {
  background: #182828;
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr;
  gap: 52px;
  margin-bottom: 44px;
}
.footer-brand .brand-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  color: #fff;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.12em;
}
.footer-brand p { font-size: 0.85rem; line-height: 2; }
.footer-nav h4,
.footer-info h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-nav a {
  display: block;
  color: rgba(255,255,255,0.57);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-nav a:hover { color: #fff; }
.footer-info p { font-size: 0.84rem; line-height: 2.1; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 22px;
  text-align: center;
  font-size: 0.78rem;
}

/* ---- FADE-IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.12s; }
.fade-delay-2 { transition-delay: 0.24s; }
.fade-delay-3 { transition-delay: 0.36s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; padding: 14px 20px; }
  nav { gap: 14px; margin-top: 8px; width: 100%; flex-wrap: wrap; }
  .cards.cols-3,
  .cards.cols-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .page-banner { padding: 108px 20px 52px; }
  .section { padding: 60px 20px; }
  .info-table th { width: 38%; }
  .info-box { padding: 22px 20px; }
}
