/* =========================================================
   SOiRO -ソイロ- スタイルシート
   このファイル1枚で全ページを構成する。ビルド不要、直接編集可。
   構成: 1.トークン/リセット 2.ヘッダー/ナビ 3.ヒーロー 4.about(特徴)
        5.usage image 6.spec(商品仕様) 7.news 8.shop 9.contact
        10.フッター 11.固定ボトムメニュー/トップへ戻る 12.ニュース記事ページ
   ========================================================= */

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

/* ---------- 1. トークン / リセット ---------- */
:root {
  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --color-text: #3a3a3a;
  --color-bg: #ffffff;
  --color-heading: #000000;
  --color-accent: #81d742;   /* ブランドアクセント(緑) */
  --color-accent-num: #bbd53c; /* 「1分」「6kg」などの大数字 */
  --color-hover: #dd9933;    /* ホバー(橙) */
  --color-muted: #5d7280;    /* サブグレー */
  --color-danger: #ff0000;   /* NEW!! などの強調赤 */
  --color-border: #e6e6e6;
  --color-bg-soft: #f5f5f5;
  --color-bg-soft2: #eaeaea;
  --color-spec-bg: #ece0cd;  /* 商品仕様セクションのベージュ背景(実測近似値) */

  --content-max: 1140px;
  --section-gap: 80px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.5; margin: 0; color: var(--color-heading); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

.container { width: min(100% - 40px, var(--content-max)); margin-inline: auto; }
.section { padding-block: var(--section-gap); }
.section--soft { background: var(--color-bg-soft); }
.section--spec { background: var(--color-spec-bg); }

/* 特徴(#about)〜ご利用イメージ(#image)〜商品仕様(#spec)の3セクションで使う
   紙テクスチャの繰り返し背景。実測値は docs/design-reference.md 参照。
   background-color はテクスチャ画像の読み込み前でも崩れないためのフォールバック。 */
.section--textured {
  background-color: var(--color-spec-bg);
  background-image: url("/assets/img/2021/02/p0420_l.png.webp");
  background-repeat: repeat;
  background-position: top left;
}

/* #about と #image の間に挟む全面写真の帯(Elementorの背景写真セクションを再現) */
.photo-divider {
  height: 220px;
  background-color: var(--color-spec-bg);
  background-image: url("/assets/img/2021/02/IMG_4757-scaled.jpg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
@media (max-width: 600px) {
  .photo-divider { height: 140px; }
}

.section-label {
  margin: 0 0 .5em;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: .1em;
  text-align: center;
  color: var(--color-text);
}
.section-heading {
  margin: 0 auto 2.5em;
  text-align: center;
  font-size: 28px;
  position: relative;
  padding-bottom: .6em;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}
.section-note {
  text-align: center;
  color: var(--color-muted);
  margin-top: -1.5em;
  margin-bottom: 2.5em;
  font-size: .9em;
}

@media (max-width: 768px) {
  :root { --section-gap: 48px; }
}

/* ---------- 2. ヘッダー / ナビ ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding-block: .6em;
}
.logo img { height: 40px; width: auto; }

.nav-toggle {
  display: none;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .2em .4em;
  color: var(--color-heading);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6em;
  font-size: 14px;
}
.site-nav a:hover { color: var(--color-hover); }
.site-nav .nav-buy {
  background: var(--color-accent);
  color: #fff;
  padding: .6em 1.4em;
  border-radius: 999px;
  font-weight: 700;
}
.site-nav .nav-buy:hover { background: var(--color-hover); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: .5em 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8em 1.2em; }
  .site-nav .nav-buy { margin: .6em 1.2em; text-align: center; }
}

/* ---------- 3. ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 78vh;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4em;
  text-align: center;
}
.hero-content h1 {
  color: #fff;
  font-size: 34px;
  margin-bottom: .8em;
}
.hero-lead {
  max-width: 640px;
  margin-inline: auto;
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 24px; }
}

/* お知らせバッジ・コワーキングバナー */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8em;
  margin: 2em auto 0;
}
.badge-pill {
  display: inline-block;
  background: #fff;
  color: var(--color-text);
  border-radius: 999px;
  padding: .6em 1.4em;
  font-size: 13px;
}
.coworking-banner {
  max-width: 640px;
  margin: 2.5em auto 0;
  text-align: center;
}
.coworking-banner p:first-child { margin-bottom: .6em; }
.coworking-banner .banner-highlight {
  display: inline-block;
  background: #59c3e0;
  color: #fff;
  border-radius: 999px;
  padding: .6em 1.4em;
  font-size: 13px;
}

/* 商品カード(SOiRO-U / SOiRO-t / SOiRO) */
.product-cards {
  background: var(--color-bg-soft);
  padding-block: var(--section-gap);
}
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em;
}
.product-card { text-align: center; }
.product-card h3 { font-size: 18px; margin-bottom: .8em; }
.product-card img { border-radius: var(--radius); margin-inline: auto; }
.product-note {
  text-align: center;
  color: var(--color-danger);
  font-size: 13px;
  margin-top: 1.5em;
}

@media (max-width: 700px) {
  .product-card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 商品詳細カルーセル(6項目・横スクロール) */
.detail-carousel {
  display: flex;
  gap: 1.2em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5em 0 .5em;
  -webkit-overflow-scrolling: touch;
}
.detail-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-align: center;
}
.detail-item img, .detail-item video {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.detail-caption {
  margin-top: .8em;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 4. about(特徴) ---------- */
.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5em;
  align-items: center;
}
.feature-block + .feature-block { margin-top: 4em; }
.feature-block.is-reverse .feature-media { order: 2; }
.feature-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .8em;
}
.feature-media.is-single { grid-template-columns: minmax(0, 1fr); }
.feature-media img, .feature-media video {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature-highlight {
  font-size: 20px;
  margin-bottom: .6em;
}
.feature-highlight .num {
  color: var(--color-accent-num);
  font-size: 1.8em;
  font-weight: 700;
}
.feature-text h3 {
  font-size: 20px;
  margin-bottom: .8em;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.feature-text p { font-size: 14px; }

@media (max-width: 768px) {
  .feature-block, .feature-block.is-reverse .feature-media {
    grid-template-columns: minmax(0, 1fr);
    order: initial;
  }
}

/* ---------- 5. Usage image (ご利用イメージ) ---------- */
.usage-block + .usage-block { margin-top: 3.5em; }
.usage-block h3 {
  font-size: 18px;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  margin-bottom: .3em;
}
.usage-note {
  color: var(--color-danger);
  font-size: 13px;
  margin-bottom: 1em;
}
.usage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2em;
  align-items: start;
  margin-top: 1em;
}
.usage-list { list-style: none; }
.usage-list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 14px;
  margin-bottom: .3em;
}
.usage-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}
.usage-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .6em;
}
.usage-gallery img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 768px) {
  .usage-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. spec(商品仕様) ---------- */
.spec-product + .spec-product {
  margin-top: 4em;
  padding-top: 4em;
  border-top: 1px dotted var(--color-muted);
}
.spec-headline {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}
.spec-headline h3 { font-size: 20px; }
.spec-new {
  color: var(--color-danger);
  font-weight: 700;
  font-size: 13px;
  margin-right: .5em;
}
.spec-name { font-size: 24px; margin: .2em 0 .5em; }
.spec-price { font-size: 22px; margin-bottom: 1.5em; }
.spec-price .price-note { font-size: 14px; }

.spec-points { display: grid; gap: 1em; margin-bottom: 1.5em; }
.spec-point { display: flex; align-items: flex-start; gap: 1em; }
.point-badge {
  flex: 0 0 auto;
  background: #f0a848;
  color: #fff;
  border-radius: 999px;
  padding: .3em 1em;
  font-size: 12px;
  font-weight: 700;
}
.spec-point p { font-size: 13px; text-decoration: underline; }
.spec-partner { font-size: 13px; margin-bottom: 1.5em; }

.spec-body {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 2.5em;
  align-items: start;
}
.spec-table {
  background: #fff;
  border-radius: 16px;
  padding: 2em;
}
.spec-table dl { display: grid; gap: 0; }
.spec-table > dl > div {
  padding: 1em 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.spec-table > dl > div:last-child { border-bottom: 0; }
.spec-table dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: .5em;
}
.spec-table dd { margin: 0; font-size: 13px; }
.spec-table .spec-utility { color: var(--color-danger); font-size: 12px; }
.spec-diagram img { margin-inline: auto; }
.spec-stain-note {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2em;
}

@media (max-width: 768px) {
  .spec-body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 7. news(最新情報) ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 1px solid var(--color-border); }
.news-list a {
  display: flex;
  gap: 1.5em;
  align-items: baseline;
  padding: 1em 0;
}
.news-list a:hover span { text-decoration: underline; }
.news-list time {
  color: var(--color-muted);
  font-size: .9em;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.more-link { text-align: right; margin-top: 1.5em; }
.more-link a:hover { color: var(--color-hover); }

@media (max-width: 600px) {
  .news-list a { flex-direction: column; gap: .2em; }
}

/* ---------- 8. shop(取り扱い店舗情報) ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5em 3em;
}
.shop-item { text-align: center; }
.shop-item h3 { font-size: 15px; margin-bottom: .8em; }
.shop-item p { font-size: 13px; margin-bottom: .3em; }
.shop-item a { color: var(--color-accent); }
.shop-item a:hover { color: var(--color-hover); }

@media (max-width: 700px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9. contact(お問い合わせ) ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3em;
  align-items: start;
}
.contact-intro p { font-size: 14px; }
.contact-company {
  margin-top: 2em;
  font-size: 14px;
}

#contact-form {
  display: grid;
  gap: 1em;
  background: var(--color-bg-soft);
  padding: 2em;
  border-radius: 16px;
}
#contact-form input,
#contact-form textarea {
  font: inherit;
  padding: .9em 1.1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
#contact-form textarea { resize: vertical; }
#contact-form button {
  font: inherit;
  padding: .9em 3em;
  justify-self: center;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
#contact-form button:hover { background: var(--color-hover); }
#contact-form button:disabled { opacity: .6; cursor: default; }
#form-message { font-size: 14px; }
#form-message.is-success { color: #1a7f37; }
#form-message.is-error { color: #b42318; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10. フッター ---------- */
.site-footer {
  background: #2b2b2b;
  color: #cfcfcf;
  padding-block: 3em;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 1em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .6em; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-copyright {
  text-align: center;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid #444;
  font-size: 12px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6em; }
}

/* ---------- 11. 固定ボトムメニュー / トップへ戻る ---------- */
.bottom-menu {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: #81d742;
}
.bottom-menu a {
  flex: 1 1 33.3333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: .3em 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}
.bottom-menu a:hover { color: #dd9933; }
.bottom-menu svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
  body { padding-bottom: 56px; }
}
@media (min-width: 768px) {
  .bottom-menu { display: none; }
}

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 29;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  font-size: 20px;
}
.scroll-top.is-visible { opacity: .85; pointer-events: auto; }
@media (min-width: 768px) {
  .scroll-top { bottom: 24px; }
}

/* ---------- 12. ニュース記事ページ(/news/配下) ---------- */
.news-article .news-date { color: var(--color-muted); font-size: .9em; margin-bottom: .5em; }
.news-article h1 { font-size: 24px; margin-bottom: 1.5em; }
.news-body { font-size: 15px; }
.news-body img { border-radius: var(--radius); margin-block: 1em; }
.back-link { margin-top: 3em; }
.back-link a:hover { color: var(--color-hover); }

/* 404ページ */
.notfound { text-align: center; padding-block: 3em; }
.notfound h1 { margin-block: .5em 1em; }
.notfound-links { list-style: none; padding: 0; margin-top: 2em; display: grid; gap: .8em; }
.notfound-links a { display: inline-block; padding: .2em 0; }
