/* IAM NATURAL 公式サイト（新）  色は「商品ページ デザインルール」にそろえています */
:root {
  --bg: #ffffff;
  --bg2: #f7f5f2;
  --text: #5a4632;
  --sub: #987a62;
  --line: #e8e2da;
  --accent: #d9847c;
  --pink: #ffffff;   /* 写真の読み込み前・写真がないときの背景（白） */
  --olive: #ffffff;
  --yellow: #ffffff;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.9; letter-spacing: .04em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.en { font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; letter-spacing: .14em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.sec-head { margin-bottom: 40px; }
.sec-head .en { margin: 0; font-size: 13px; font-weight: 500; color: var(--sub); text-transform: uppercase; }
.sec-head h2 { margin: 6px 0 0; font-size: 22px; font-weight: 400; letter-spacing: .08em; line-height: 1.7; }

/* 写真がまだないときの代わりの色 */
.ph { background: var(--pink); display: grid; place-items: center; text-align: center; color: var(--sub); font-size: 12px; line-height: 1.5; padding: 8px; width: 100%; height: 100%; }
.ph:nth-of-type(3n+2), .ph.alt1 { background: var(--olive); }
.ph.alt2 { background: var(--yellow); }

/* ヘッダー */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 20px; letter-spacing: .2em; }
nav.gnav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-size: 12px; }
nav.gnav a { padding: 6px 0; border-bottom: 1px solid transparent; }
nav.gnav a:hover { border-color: var(--text); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--text); margin: 7px auto; }

/* ひと言 */
.intro { padding: 56px 0 8px; text-align: center; }
.intro h1 { margin: 0; font-size: clamp(22px, 3.4vw, 34px); font-weight: 500; letter-spacing: .12em; line-height: 1.6; }
.intro p { margin: 8px 0 0; font-size: 12px; color: var(--sub); }

/* 大きな写真 */
.hero { padding: 36px 0 24px; }
.hero-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px)); scroll-padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.hero-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(88%, 960px); scroll-snap-align: start; cursor: pointer; }
.slide .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--pink); }
.slide .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.slide:hover .pic img { transform: scale(1.02); }
.cap { padding: 14px 2px 0; }
.cap .meta { font-size: 12px; color: var(--sub); }
.cap .meta b { color: var(--accent); font-weight: 500; margin-right: 8px; }
.cap h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 500; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--sub); }
.tags span::before { content: "#"; }
.hero-ctrl { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hero-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 14px; }
.hero-ctrl button:hover { background: var(--bg2); }

/* 特集 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.card { display: block; width: 100%; align-self: start; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--olive); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .pic img { transform: scale(1.03); }
.card h3 { margin: 12px 0 4px; font-size: 16px; font-weight: 500; line-height: 1.7; }

/* ABOUT */
.about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about h3 { margin: 0 0 20px; font-size: 22px; font-weight: 500; letter-spacing: .1em; line-height: 1.7; }
.about p { margin: 0 0 1.2em; font-size: 15px; }
.color-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.color-item .pic { aspect-ratio: 3 / 4; overflow: hidden; background: var(--pink); }
.color-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.color-item .sw { width: 28px; height: 28px; border-radius: 50%; margin: 14px 0 6px; border: 1px solid var(--line); }
.color-item h4 { margin: 0; font-size: 14px; font-weight: 500; }
.color-item p { margin: 2px 0 0; font-size: 12px; color: var(--sub); line-height: 1.7; }

/* シーン */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--yellow); cursor: pointer; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 14px; background: linear-gradient(transparent, rgba(60,45,30,.55)); color: #fff; line-height: 1.5; }
.scene .label b { display: block; font-weight: 500; font-size: 15px; }
.scene .label small { font-size: 11px; }

/* 掲載・声 */
.media-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.media-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.media-item .pic { aspect-ratio: 1; overflow: hidden; background: var(--olive); }
.media-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.media-item small { color: var(--sub); }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.voice { background: #fff; border: 1px solid var(--line); padding: 22px; font-size: 14px; }
.voice small { display: block; margin-top: 10px; color: var(--sub); }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { aspect-ratio: 3 / 4; overflow: hidden; background: var(--yellow); display: block; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }
.btn { display: inline-block; border: 1px solid var(--text); padding: 10px 28px; font-size: 13px; letter-spacing: .1em; transition: background .2s, color .2s; }
.btn:hover { background: var(--text); color: var(--bg); }
.center { text-align: center; margin-top: 32px; }

/* 買える場所 */
.stores { background: var(--bg2); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.store { display: block; background: var(--bg); border: 1px solid var(--line); padding: 20px; text-align: center; transition: border-color .2s; }
.store:hover { border-color: var(--text); }
.store b { display: block; font-weight: 500; }
.store small { display: block; margin-top: 4px; font-size: 11px; color: var(--sub); line-height: 1.6; }

/* お知らせ */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: flex; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.news-list time { flex: 0 0 96px; color: var(--sub); }

/* 卸・お問い合わせ */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two h3 { margin: 0 0 16px; font-size: 20px; font-weight: 500; }
.two p { font-size: 14px; margin: 0 0 1em; }
.small { font-size: 12px !important; color: var(--sub); }
form dl { margin: 0 0 18px; }
form dt { font-size: 12px; color: var(--sub); margin-bottom: 4px; }
form dt .req { color: var(--accent); }
form input[type=text], form input[type=email], form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--text); }
form textarea { height: 140px; }
form ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
form button { cursor: pointer; background: var(--text); color: var(--bg); border: 0; padding: 12px 40px; font: inherit; font-size: 13px; letter-spacing: .14em; }

footer.site { padding: 48px 0 32px; text-align: center; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); }
footer.site .logo { display: block; color: var(--text); margin-bottom: 18px; }
footer.site .sns { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; }
footer.site a:hover { color: var(--text); }

/* 特集のウィンドウ */
dialog { border: 0; padding: 0; max-width: 760px; width: calc(100% - 32px); background: var(--bg); color: var(--text); max-height: 90vh; }
dialog::backdrop { background: rgba(60,45,30,.5); }
.dlg-body { padding: 32px; }
.dlg-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--text); }
.dlg-body h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; line-height: 1.6; }
.dlg-lead { margin: 0 0 24px; font-size: 14px; }
.item { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.item .pic { aspect-ratio: 1; overflow: hidden; background: var(--olive); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item h4 { margin: 0; font-size: 15px; font-weight: 500; }
.item p { margin: 4px 0 10px; font-size: 13px; color: var(--sub); line-height: 1.7; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; }
.buy a { border: 1px solid var(--text); padding: 5px 14px; font-size: 12px; }
.buy a:hover { background: var(--text); color: var(--bg); }
.buy em { font-size: 12px; font-style: normal; color: var(--sub); }

/* スマホ */
@media (max-width: 800px) {
  section { padding: 56px 0; }
  .menu-btn { display: block; }
  nav.gnav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  nav.gnav.open { display: block; }
  nav.gnav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; font-size: 14px; }
  nav.gnav li a { display: block; padding: 12px 0; }
  .slide { flex-basis: 90%; }
  .cap h3 { font-size: 17px; }
  .hero-ctrl { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid, .two { grid-template-columns: 1fr; gap: 36px; }
  .scene-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .news-list li { flex-direction: column; gap: 2px; }
  .item { grid-template-columns: 96px 1fr; gap: 14px; }
  .dlg-body { padding: 24px 18px; }
}

/* ロゴ */
.logo-img { display: block; margin: 0 auto 18px; width: min(300px, 70%); height: auto; mix-blend-mode: multiply; }
.logo-img.small { width: 200px; margin-bottom: 14px; }

/* 「Scroll」の目印（細い線がゆっくり動く） */
.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin-top: 16px; }
.hero-foot .scroll-ind { grid-column: 2; }
.hero-foot .hero-ctrl { grid-column: 3; justify-self: end; margin-top: 0; }
.scroll-ind { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--sub); }
.scroll-ind span { writing-mode: vertical-rl; letter-spacing: .2em; }
.scroll-ind i { position: relative; display: block; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-ind i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--text); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ふわっと出てくる動き */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.card .pic, .scene, .color-item .pic { overflow: hidden; }
.js .reveal .pic img, .js .reveal.scene img { transform: scale(1.06); transition: transform 1.4s ease, opacity .6s ease; transition-delay: var(--d, 0s), 0s; }
.js .reveal.in .pic img, .js .reveal.in.scene img { transform: none; }
.js .card.reveal.in:hover .pic img { transform: scale(1.03); transition-delay: 0s; transition-duration: .6s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal .pic img { opacity: 1; transform: none; transition: none; }
  .scroll-ind i::after { animation: none; }
}

/* 買える場所：ならべ方をそろえる／ロゴを入れるとき */
.store-grid { grid-template-columns: repeat(5, 1fr); }
.store { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; }
.store-logo { max-width: 130px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 800px) {
  .store-grid { grid-template-columns: 1fr 1fr; }
  .scroll-ind { display: none; }
}

/* 掲載・お客さまの声：背景の帯 */
#media { background: var(--bg2); }

/* 写真が、枠いっぱいに表示されるようにする（ブラウザによって高さが足りなくなるのを防ぐ） */
.slide .pic, .card .pic, .color-item .pic, .media-item .pic, .item .pic, .ig-grid a, .scene { position: relative; }
.slide .pic img, .card .pic img, .color-item .pic img, .media-item .pic img, .item .pic img, .ig-grid a img, .scene > img,
.slide .pic .ph, .card .pic .ph, .color-item .pic .ph, .media-item .pic .ph, .item .pic .ph, .ig-grid a .ph, .scene > .ph {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}

/* 写真が全部読み込まれてから、ふわっと表示する（読み込み途中の、半分だけの写真を見せない） */
img.fade { opacity: 0; transition: opacity .6s ease; }
img.fade.ok { opacity: 1; }


/* 買える場所：枠の大きさはそのままで、ロゴだけを大きく表示する
   （ロゴ画像は 3:2 で上下左右に余白があるため、枠いっぱいに広げて余白を切る） */
.store-grid { gap: 14px; }
.store { min-height: 96px; padding: 20px; }
.store.has-logo { padding: 0; height: 100px; position: relative; overflow: hidden; }
.store.has-logo .store-logo { position: absolute; top: 7.5%; left: 7.5%; width: 85%; height: 85%; max-width: none; max-height: none; object-fit: cover; }

/* 特集カードの、短い文章 */
.card .lead { margin: 0 0 8px; font-size: 13px; line-height: 1.9; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
