

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

:root {
  --red:         #B5281A;
  --red-dark:    #8A1E12;
  --red-soft:    #D94432;
  --cream:       #FAF7F0;
  --beige:       #F0EAD6;
  --beige-mid:   #DDD5C0;
  --charcoal:    #1C1C1C;
  --ink:         #2E2E2E;
  --gray-mid:    #6B6B6B;
  --gray-light:  #A8A8A8;
  --white:       #FFFFFF;

  --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;

  --max-w:       1200px;
  --sec-pad:     84px 0;
  --r:           4px;
  --r-lg:        8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.4;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 600; }
h3 { font-size: clamp(1rem, 2vw, 1.375rem);   font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p  { line-height: 1.85; color: var(--gray-mid); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.sec-header {
  text-align: center;
  margin-bottom: 56px;
}

.img-ph {
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 39px, var(--beige-mid) 39px, var(--beige-mid) 40px),
    repeating-linear-gradient(90deg,  transparent, transparent 39px, var(--beige-mid) 39px, var(--beige-mid) 40px);
}
.img-ph .ph-label {
  position: relative;
  z-index: 1;
  font-size: .78rem;
  color: var(--gray-mid);
  text-align: center;
  padding: 8px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--r);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  text-align: center;
}
.btn-primary  { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn-primary:hover  { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline  { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover  { background: var(--red);  color: var(--white); }
.btn-ghost    { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover    { background: rgba(255,255,255,.22); }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--beige-mid);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-svg   { flex-shrink: 0; }
.brand-wrap { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: .02em;
  line-height: 1.2;
}
.brand-sub  {
  font-family: var(--font-body);
  font-size: .65rem;
  color: var(--gray-mid);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero { background: var(--cream); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.hero-content {
  padding: 88px 64px 88px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero h1 { color: var(--charcoal); margin-bottom: 18px; }

.hero-desc {
  font-size: 1.0625rem;
  color: var(--gray-mid);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-img .img-ph { height: 100%; min-height: 480px; }

.hero-image, .block-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}

.about-intro { padding: var(--sec-pad); background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img .img-ph {
  height: 420px;
  border-radius: var(--r-lg);
}
.about-text .sec-label { text-align: center; }
.about-text h2  { margin-bottom: 18px; text-align: center; }
.about-text p   { margin-bottom: 20px; text-align: center; }
.about-text .btn { margin-top: 8px; }

.categories { padding: var(--sec-pad); background: var(--cream); }

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

.cat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--beige-mid);
}
.cat-card .img-ph  { height: 170px; }
.cat-body          { padding: 20px 22px 24px; }
.cat-icon          {
  width: 38px; height: 38px;
  background: var(--beige);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.cat-card h3 { font-size: .975rem; margin-bottom: 7px; }
.cat-card p  { font-size: .84rem; line-height: 1.65; color: var(--gray-mid); }

.how { padding: var(--sec-pad); background: var(--charcoal); }

.how .sec-label { color: var(--red-soft); }
.how .sec-title { color: var(--white); }
.how .sec-desc  { color: var(--gray-light); }

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

.step-num {
  width: 58px; height: 58px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { color: var(--white); font-size: 1.0625rem; margin-bottom: 10px; }
.step p  { color: var(--gray-light); font-size: .9rem; }

.tutorials { padding: var(--sec-pad); background: var(--white); }

.tut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.tut-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--beige-mid);
  background: var(--white);
}
.tut-card .img-ph { height: 210px; }
.tut-body         { padding: 22px; }

.tut-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red);
  background: rgba(181,40,26,.08);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.tut-card h3 { font-size: .96rem; margin-bottom: 8px; line-height: 1.5; }
.tut-card p  { font-size: .84rem; color: var(--gray-mid); margin-bottom: 14px; line-height: 1.65; }

.tut-meta {
  display: flex; gap: 16px;
  font-size: .78rem; color: var(--gray-light);
}
.tut-meta span { display: flex; align-items: center; gap: 5px; }

.products { padding: var(--sec-pad); background: var(--cream); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.prod-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--beige-mid);
  display: flex; flex-direction: column;
}
.prod-card .img-ph { height: 195px; }
.prod-body {
  padding: 18px 20px 20px;
  flex: 1; display: flex; flex-direction: column;
}
.prod-cat {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 7px;
}
.prod-card h3 { font-size: .93rem; margin-bottom: 7px; line-height: 1.45; }
.prod-card p  { font-size: .82rem; color: var(--gray-mid); margin-bottom: 14px; line-height: 1.65; flex: 1; }

.prod-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 10px; margin-top: auto;
}
.prod-price {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700;
  color: var(--red);
}
.prod-price .cur { font-size: .82rem; }

.btn-buy {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  background: var(--red); color: var(--white);
  border-radius: var(--r);
  border: 2px solid var(--red);
  cursor: pointer; white-space: nowrap; line-height: 1;
}
.btn-buy:hover { background: var(--red-dark); border-color: var(--red-dark); }

.why { padding: var(--sec-pad); background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--beige-mid);
}
.why-icon {
  width: 60px; height: 60px;
  background: var(--beige);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.why-card h3 { font-size: .975rem; margin-bottom: 10px; }
.why-card p  { font-size: .84rem; line-height: 1.7; color: var(--gray-mid); }

.gallery { padding: var(--sec-pad); background: var(--cream); }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gal-item { overflow: hidden; border-radius: var(--r); }
.gal-item .img-ph { height: 235px; }
.gal-item:nth-child(1) { grid-column: span 2; }
.gal-item:nth-child(1) .img-ph { height: 290px; }

.contacts { padding: var(--sec-pad); background: var(--charcoal); }

.contacts .sec-label { color: var(--red-soft); }
.contacts .sec-title { color: var(--white); }

.contacts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.contact-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
}
.c-icon {
  width: 50px; height: 50px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.c-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.c-value { font-size: .975rem; color: var(--white); line-height: 1.65; }
.c-value a { color: var(--red-soft); }
.c-value a:hover { color: var(--white); }

.site-footer { background: #111; padding: 52px 0 28px; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.foot-brand .logo-link   { display: inline-flex; margin-bottom: 16px; }
.foot-brand .brand-name  { color: var(--white); }
.foot-brand .brand-sub   { color: var(--gray-mid); }
.foot-brand p {
  font-size: .855rem; color: var(--gray-mid);
  line-height: 1.75; max-width: 270px; margin-top: 4px;
}
.foot-col h4 {
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a  { font-size: .855rem; color: var(--gray-mid); }
.foot-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.copy  { font-size: .8rem; color: var(--gray-mid); }
.legal { display: flex; gap: 22px; }
.legal a { font-size: .8rem; color: var(--gray-mid); }
.legal a:hover { color: var(--white); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.cookie-banner.active {
  max-height: 300px;
  padding: 20px 28px;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.cookie-text {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  min-width: 250px;
}

.cookie-text strong {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

.cookie-text p {
  margin: 0;
}

.cookie-text a {
  color: var(--red-soft);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--white);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-accept, .btn-reject, .btn-customize {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-accept {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-accept:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-reject, .btn-customize {
  background: transparent;
  color: var(--gray-light);
  border-color: var(--gray-light);
}

.btn-reject:hover, .btn-customize:hover {
  color: var(--white);
  border-color: var(--white);
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--beige-mid);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--charcoal);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--charcoal);
}

.modal-body {
  padding: 24px;
}

.cookie-option {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.cookie-option:last-child {
  margin-bottom: 0;
}

.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--red);
}

.cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-option label {
  cursor: pointer;
  flex: 1;
}

.cookie-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.cookie-option span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid var(--beige-mid);
  justify-content: flex-end;
}

.btn-save-preferences {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--r);
  border: 2px solid var(--red);
  cursor: pointer;
  line-height: 1;
}

.btn-save-preferences:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.modal-footer .btn-reject {
  padding: 10px 20px;
}

@media (max-width: 1024px) {
  .hero-content { padding: 72px 44px 72px 0; }
  .cat-grid     { grid-template-columns: repeat(2, 1fr); }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .prod-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-top   { grid-template-columns: 1fr 1fr; }
  .foot-brand   { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --sec-pad: 60px 0; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 0 44px; }
  .hero-img { display: none; }

  .about-inner  { grid-template-columns: 1fr; gap: 40px; }
  .steps        { grid-template-columns: 1fr; gap: 32px; }
  .tut-grid     { grid-template-columns: 1fr; }
  .prod-grid    { grid-template-columns: 1fr; }
  .contacts-row { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; gap: 32px; }
  .foot-brand   { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gal-grid     { grid-template-columns: 1fr 1fr; }
  .gal-item:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 540px) {
  .cat-grid  { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }
  .gal-grid  { grid-template-columns: 1fr; }
  .gal-item:nth-child(1) { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .legal { flex-direction: column; align-items: center; gap: 10px; }
}
