/* ================================================================
   根と葉 (Ne to Ha) — 和モダン × 北欧の落ち着き
   小さなユーズド家具のオンラインショップ
   ================================================================ */

:root {
  /* 和の配色: 生成り・土壁・墨・藍・茶 */
  --kinari:      #F4EFE4;  /* 生成り (背景のベース) */
  --kinari-deep: #ECE5D4;  /* 生成り・深 */
  --tsuchi:      #D9CDB4;  /* 土壁 */
  --tsuchi-dark: #B8A887;  /* 土壁・影 */
  --cha:         #8A7359;  /* 茶 */
  --cha-dark:    #5E4B38;  /* 深い茶 */
  --sumi:        #2B2621;  /* 墨 (本文) */
  --sumi-light:  #4A4139;  /* 墨・薄 */
  --ai:          #3A5368;  /* 藍 (差し色) */
  --line:        #D8CEB8;  /* 罫線 */
  --white:       #FBF8F1;  /* 雪のような白 */

  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-jp: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;

  --max-w: 1100px;
  --max-w-narrow: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-jp);
  color: var(--sumi);
  background: var(--white);
  line-height: 2;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .3s, color .3s; }
a:hover { opacity: 0.65; }

/* ================================================================
   HEADER
   ================================================================ */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.scrolled { border-bottom-color: var(--line); }

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sumi);
}
.header-logo-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--kinari-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cha-dark);
}
.header-logo-text {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sumi);
}

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  color: var(--cha);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--sumi);
  opacity: 1;
}
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--cha);
}

.hamburger {
  display: none;
  width: 26px; height: 18px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--sumi);
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================================
   LAYOUT — 余白たっぷり
   ================================================================ */

main { padding-top: 68px; }

section { padding: 120px 32px; }
.container { max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; }

.section-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--cha);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.9;
  letter-spacing: 4px;
  color: var(--sumi);
  margin-bottom: 24px;
}
.section-title-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 5px;
  color: var(--sumi);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 14.5px;
  color: var(--sumi-light);
  line-height: 2.3;
  max-width: 640px;
  font-weight: 300;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--tsuchi-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) sepia(0.15);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 32px;
}
.hero-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 6px;
  opacity: 0.85;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-title-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 84px);
  letter-spacing: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title-jp {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 12px;
  margin-bottom: 40px;
  opacity: 0.92;
}
.hero-tagline {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 4px;
  line-height: 2.2;
  max-width: 640px;
  margin: 0 auto;
}
.hero-tagline .jp-large {
  display: block;
  font-size: 19px;
  letter-spacing: 6px;
  margin-bottom: 18px;
  opacity: 0.95;
}

/* 下層ページの小さなヒーロー */
.page-hero {
  padding: 160px 32px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--kinari-deep) 0%, var(--white) 100%);
}
.page-hero .section-title-en { font-size: 48px; }
.page-hero .section-title { font-size: 18px; letter-spacing: 8px; color: var(--cha); }

/* ================================================================
   COMPONENTS
   ================================================================ */

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--sumi);
  border: 1px solid var(--sumi);
  transition: all .3s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--sumi); opacity: 1; }
.btn-outline { color: var(--sumi); background: transparent; }
.btn-outline:hover { background: var(--sumi); color: var(--white); }
.btn-lg { padding: 18px 48px; font-size: 12px; }

.divider {
  width: 36px;
  height: 1px;
  background: var(--tsuchi-dark);
  margin: 28px auto;
}

/* シンプルなカード */
.card {
  background: var(--white);
  padding: 36px 28px;
  border-top: 1px solid var(--line);
  transition: background .3s;
}
.card:hover {
  background: var(--kinari);
}
.card h3 {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  color: var(--sumi);
}
.card p {
  font-size: 13.5px;
  color: var(--sumi-light);
  line-height: 2.1;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }

/* ================================================================
   BRANDS — シンプルな縦リスト
   ================================================================ */

.brand-section { margin-bottom: 80px; }
.brand-section h3 {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--sumi);
  margin-bottom: 6px;
  text-align: center;
}
.brand-section .section-sub {
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--cha);
  margin-bottom: 32px;
  text-align: center;
}
.brand-names {
  text-align: center;
  font-size: 14.5px;
  line-height: 2.4;
  letter-spacing: 2px;
  color: var(--sumi);
}
.brand-names .sep {
  margin: 0 10px;
  color: var(--tsuchi-dark);
}

/* ================================================================
   BLOG
   ================================================================ */

.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  display: flex;
  flex-direction: column;
  transition: opacity .3s;
}
.blog-card:hover { opacity: 0.8; }
.blog-card-thumb {
  aspect-ratio: 4/3;
  background: var(--kinari-deep);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  filter: sepia(0.1);
}
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 0 4px; }
.blog-card-date {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--cha);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--sumi);
}
.blog-card p {
  font-size: 13px;
  color: var(--sumi-light);
  line-height: 2;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card .read-more {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--cha);
  text-transform: uppercase;
}

/* ブログ記事本体 */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 32px;
}
.article-meta {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--cha);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.article h1 {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.8;
  letter-spacing: 3px;
  color: var(--sumi);
  margin-bottom: 48px;
}
.article h2 {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--sumi);
  margin: 64px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.article h3 {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2px;
  margin: 40px 0 14px;
}
.article p {
  font-size: 14.5px;
  line-height: 2.3;
  color: var(--sumi);
  margin-bottom: 24px;
}
.article ul, .article ol { margin: 20px 0 28px 24px; }
.article li { margin-bottom: 10px; font-size: 14.5px; line-height: 2.1; }
.article blockquote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--kinari);
  border-left: 2px solid var(--cha);
  font-style: italic;
  color: var(--sumi-light);
  font-size: 14px;
  line-height: 2.1;
}

/* ================================================================
   SHOP / SNS / ACCESS / CONTACT
   ================================================================ */

.shop-card, .sns-card, .access-card, .contact-card {
  background: var(--kinari);
  padding: 72px 40px;
  text-align: center;
}
.shop-card .brand-name {
  font-family: var(--font-en);
  font-size: 32px;
  letter-spacing: 6px;
  color: var(--sumi);
  margin-bottom: 24px;
}
.shop-card p { color: var(--sumi-light); margin-bottom: 36px; font-size: 14px; line-height: 2.2; }

.sns-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.sns-item {
  padding: 48px 32px;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}
.sns-item .icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tsuchi-dark);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--sumi);
  letter-spacing: 1px;
}
.sns-item h4 {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: var(--sumi);
}
.sns-item p { font-size: 13px; color: var(--sumi-light); margin-bottom: 24px; line-height: 2; }

.info-table {
  width: 100%;
  margin: 32px auto;
  max-width: 600px;
  border-collapse: collapse;
  text-align: left;
}
.info-table th, .info-table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 2;
}
.info-table th {
  width: 120px;
  color: var(--cha);
  font-weight: 400;
  font-family: var(--font-en);
  letter-spacing: 3px;
  font-size: 11px;
  text-transform: uppercase;
  vertical-align: top;
}
.info-table td { color: var(--sumi); }

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-field { margin-bottom: 28px; }
.form-field label {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--cha);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--sumi);
  line-height: 1.8;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--cha);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-submit { text-align: center; margin-top: 36px; }

/* ================================================================
   FOOTER
   ================================================================ */

footer {
  padding: 96px 32px 32px;
  background: var(--sumi);
  color: var(--kinari);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand h3 {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 6px;
  margin-bottom: 10px;
}
.footer-brand .jp {
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 6px;
  margin-bottom: 24px;
  color: var(--tsuchi);
}
.footer-brand p {
  font-size: 12.5px;
  line-height: 2.1;
  color: var(--tsuchi);
  max-width: 320px;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--kinari);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--tsuchi);
  font-size: 12.5px;
  letter-spacing: 1px;
}
.footer-col a:hover { color: var(--kinari); opacity: 1; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--tsuchi-dark);
  font-family: var(--font-en);
  text-transform: uppercase;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 960px) {
  header { padding: 0 20px; height: 60px; }
  main { padding-top: 60px; }
  .header-logo-text { font-size: 16px; }

  nav.main-nav {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s;
  }
  nav.main-nav.open { max-height: 560px; }
  nav.main-nav a {
    padding: 18px 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .hamburger { display: block; }

  section { padding: 72px 20px; }
  .page-hero { padding: 120px 20px 56px; }
  .page-hero .section-title-en { font-size: 34px; }

  .section-title-en { font-size: 30px; letter-spacing: 3px; }
  .section-title { font-size: 20px; letter-spacing: 3px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .article { padding: 24px 20px; }
  .article h1 { font-size: 22px; letter-spacing: 2px; }
  .article h2 { font-size: 17px; margin-top: 48px; }
  .shop-card, .sns-card, .access-card, .contact-card { padding: 48px 24px; }
}
