/* ==========================================================
   NANAMEKI CO., LTD. — corporate site
   POP orange/yellow palette, playful, kids-excited energy
   ========================================================== */

:root{
  --orange: #FF7A1A;
  --orange-dark: #E8600A;
  --yellow: #FFC93C;
  --yellow-soft: #FFE9A8;
  --teal: #1FB6A6;
  --pink: #FF5C8A;
  --purple: #7B5CFF;
  --cream: #FFF9EF;
  --cream2: #FFF2DC;
  --ink: #2B2118;
  --ink-soft: #6B5D4F;
  --white: #FFFFFF;
  --line: #F0DFC2;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(232,96,10,0.14);
  --shadow-sm: 0 6px 16px rgba(43,33,24,0.08);
  font-size: 16px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}
img{ display:block; max-width:100%; height:auto; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; line-height:1.4; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width: 1140px; margin:0 auto; padding: 0 24px; }
.wrap-narrow{ max-width: 860px; margin:0 auto; padding:0 24px; }

/* decorative blobs */
.blob{ position:absolute; border-radius:50%; filter: blur(0px); opacity:.9; z-index:0; pointer-events:none; }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(255,249,239,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.header-inner{
  max-width:1140px; margin:0 auto; padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.3rem; color: var(--orange-dark); }
.brand .logo-badge{
  width:42px; height:42px; border-radius:50%;
  background: conic-gradient(from 180deg, var(--orange), var(--yellow), var(--pink), var(--orange));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:900; font-size:1.1rem; box-shadow: var(--shadow-sm);
  flex-shrink:0;
}
.brand .brand-sub{ display:block; font-size:.62rem; font-weight:600; color: var(--ink-soft); letter-spacing:.06em; }

.nav-desktop{ display:flex; align-items:center; gap: 6px; }
.nav-desktop a{
  padding: 10px 16px; font-weight:700; font-size:.95rem; border-radius: 999px;
  color: var(--ink); transition: all .2s;
}
.nav-desktop a:hover, .nav-desktop a.active{ background: var(--orange); color:#fff; }
.nav-cta{
  margin-left: 8px; background: var(--ink); color:#fff !important; padding:10px 20px !important;
}
.nav-toggle{ display:none; background:none; border:2px solid var(--orange); border-radius:10px; width:44px; height:40px; align-items:center; justify-content:center; flex-direction:column; gap:5px; }
.nav-toggle span{ width:20px; height:2px; background: var(--ink); display:block; }

.nav-mobile{ display:none; flex-direction:column; padding: 10px 24px 20px; background: var(--cream); border-bottom:2px solid var(--line); }
.nav-mobile a{ padding: 12px 4px; font-weight:700; border-bottom:1px dashed var(--line); }
.nav-mobile.open{ display:flex; }

@media (max-width: 860px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding: 15px 32px; border-radius: 999px; font-weight:800; font-size:1rem;
  border: none; transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary{ background: var(--orange); color:#fff; box-shadow: var(--shadow); }
.btn-primary:hover{ transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 34px rgba(232,96,10,0.24); }
.btn-outline{ background:#fff; color: var(--orange-dark); border: 2px solid var(--orange); }
.btn-outline:hover{ background: var(--orange); color:#fff; transform: translateY(-3px); }
.btn-dark{ background: var(--ink); color:#fff; }
.btn-dark:hover{ transform: translateY(-3px); }
.btn-sm{ padding:10px 20px; font-size:.85rem; }
.btn-block{ width:100%; }

.pill-tag{
  display:inline-block; background: var(--yellow-soft); color: var(--orange-dark);
  font-weight:800; font-size:.78rem; padding: 6px 16px; border-radius: 999px; letter-spacing:.04em;
}

/* ---------------- Hero ---------------- */
.hero{ position:relative; padding: 78px 0 90px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items:center; position:relative; z-index:2; }
.hero h1{ font-size: 2.7rem; font-weight:900; margin: 18px 0 20px; letter-spacing:-.01em; }
.hero h1 .accent{ color: var(--orange); position:relative; }
.hero-lead{ font-size:1.06rem; color: var(--ink-soft); margin-bottom: 32px; max-width:520px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-media{ position:relative; }
.hero-media img{ border-radius: var(--radius-lg); box-shadow: var(--shadow); width:100%; aspect-ratio: 4/3.1; object-fit:cover; }
.hero-media .float-card{
  position:absolute; background:#fff; border-radius: var(--radius-md); box-shadow: var(--shadow);
  padding: 14px 18px; display:flex; align-items:center; gap:10px; font-weight:800; font-size:.85rem;
}
.hero-media .fc-1{ top:-22px; left:-24px; color: var(--orange-dark); }
.hero-media .fc-2{ bottom:-20px; right:-18px; color: var(--teal); }
.hero-media .fc-1 .dot, .hero-media .fc-2 .dot{ width:10px; height:10px; border-radius:50%; background: currentColor; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 2.1rem; }
  .hero-media{ order:-1; }
  .hero-media .float-card{ display:none; }
}

/* ---------------- Sections ---------------- */
section{ position:relative; padding: 84px 0; }
.section-alt{ background: var(--white); }
.section-cream2{ background: var(--cream2); }
.section-dark{ background: var(--ink); color:#fff; }
.section-head{ text-align:center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2{ font-size: 2.1rem; font-weight:900; margin: 14px 0 16px; }
.section-head p{ color: var(--ink-soft); }
.section-dark .section-head p{ color:#d8cdbf; }

/* ---------------- Cards / Grid ---------------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr); } .grid-2{ grid-template-columns:1fr; } }
@media (max-width: 600px){ .grid-3,.grid-4,.grid-2{ grid-template-columns: 1fr; } }

.grid-5{ display:grid; grid-template-columns: repeat(5,1fr); gap: 26px; }
@media (max-width: 900px){ .grid-5{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px){ .grid-5{ grid-template-columns: repeat(2,1fr); } }

.icon-card{
  background:#fff; border-radius: var(--radius-md); padding: 30px 26px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent; transition: all .25s;
}
.icon-card:hover{ border-color: var(--orange); transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-card .icon-badge{
  width:54px; height:54px; border-radius: 16px; display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; margin-bottom:18px;
}
.icon-card h3{ font-size:1.1rem; margin-bottom:10px; }
.icon-card p{ color: var(--ink-soft); font-size:.92rem; }

.bg-orange{ background: #FFE3CC; }
.bg-teal{ background: #D8F5F0; }
.bg-pink{ background: #FFE0EB; }
.bg-yellow{ background: var(--yellow-soft); }
.bg-purple{ background: #EAE3FF; }

/* ---------------- Numbers strip ---------------- */
.stats-strip{ display:flex; justify-content:space-between; flex-wrap:wrap; gap: 30px; background:#fff; border-radius: var(--radius-lg); padding: 40px 44px; box-shadow: var(--shadow-sm); margin-top:-40px; position:relative; z-index:5; }
.stat{ text-align:center; flex:1; min-width:130px; }
.stat b{ display:block; font-size:2.1rem; font-weight:900; color: var(--orange-dark); }
.stat span{ font-size:.82rem; color: var(--ink-soft); font-weight:700; }

/* ---------------- Brand teaser cards (home) ---------------- */
.brand-teaser{
  position:relative; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 3/3.6; display:flex; align-items:flex-end; transition: transform .3s, box-shadow .3s;
}
.brand-teaser:hover{ transform: translateY(-8px); box-shadow: var(--shadow); }
.brand-teaser img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.brand-teaser::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,10,0,.82) 100%); }
.brand-teaser .bt-body{ position:relative; z-index:2; padding: 22px; color:#fff; }
.brand-teaser .bt-tag{ font-size:.72rem; font-weight:800; letter-spacing:.08em; opacity:.9; }
.brand-teaser h3{ font-size:1.3rem; margin: 6px 0 8px; }
.brand-teaser p{ font-size:.82rem; opacity:.92; }

/* ---------------- Timeline / flow ---------------- */
.flow-list{ counter-reset: flow; display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
@media (max-width:900px){ .flow-list{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .flow-list{ grid-template-columns: 1fr; } }
.flow-item{ background:#fff; border-radius: var(--radius-md); padding: 28px 22px; box-shadow: var(--shadow-sm); position:relative; }
.flow-item::before{
  counter-increment: flow; content: counter(flow); position:absolute; top:-16px; left:22px;
  width:36px; height:36px; border-radius:50%; background: var(--orange); color:#fff; font-weight:900;
  display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-sm);
}
.flow-item h4{ margin-top:10px; font-size:1rem; margin-bottom:8px; }
.flow-item p{ font-size:.86rem; color: var(--ink-soft); }

/* ---------------- Testimonials ---------------- */
.testi-card{ background:#fff; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.testi-card .stars{ color: var(--yellow); font-size: 1rem; margin-bottom: 12px; letter-spacing:2px; }
.testi-card p.quote{ font-size:.94rem; color: var(--ink); margin-bottom:18px; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-person .avatar{ width:42px; height:42px; border-radius:50%; background: var(--orange); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.testi-person b{ display:block; font-size:.88rem; }
.testi-person span{ font-size:.76rem; color: var(--ink-soft); }

/* ---------------- CTA band ---------------- */
.cta-band{
  border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--orange) 0%, #FF9A3D 100%);
  color:#fff; padding: 56px; display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:1.7rem; margin-bottom:10px; }
.cta-band p{ opacity:.95; }
.cta-band .btn-dark{ background:#fff; color: var(--orange-dark); }
.cta-band .btn-dark:hover{ background: var(--ink); color:#fff; }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--ink); color: #E8DCCB; padding: 64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color:#fff; font-size:.86rem; margin-bottom:16px; letter-spacing:.04em; }
.footer-grid li{ margin-bottom:10px; font-size:.86rem; }
.footer-grid a:hover{ color: var(--yellow); }
.footer-brand .brand{ color:#fff; margin-bottom: 14px; }
.footer-brand p{ font-size:.85rem; color:#B9AB98; max-width: 280px; }
.footer-bottom{ border-top: 1px solid #423528; padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.78rem; color:#9C8E7C; }

/* ---------------- Page header (inner pages) ---------------- */
.page-head{ padding: 58px 0 46px; position:relative; overflow:hidden; }
.page-head .pill-tag{ margin-bottom:14px; }
.page-head h1{ font-size: 2.3rem; font-weight:900; }
.breadcrumb{ font-size:.82rem; color: var(--ink-soft); margin-top:14px; }
.breadcrumb a{ font-weight:700; color: var(--orange-dark); }

/* ---------------- Products page: brand tabs ---------------- */
.brand-tabs{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom: 46px; }
.brand-tab{
  background:#fff; border: 2px solid var(--line); padding: 12px 22px; border-radius: 999px; font-weight:800; font-size:.9rem;
  display:flex; align-items:center; gap:8px; transition: all .2s;
}
.brand-tab .dot{ width:10px; height:10px; border-radius:50%; }
.brand-tab.active, .brand-tab:hover{ background: var(--ink); color:#fff; border-color: var(--ink); }
.brand-tab.active .dot, .brand-tab:hover .dot{ box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

.brand-panel{ display:none; }
.brand-panel.active{ display:block; animation: fadeUp .45s ease; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:none; } }

.brand-hero{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; margin-bottom: 54px; }
@media (max-width: 860px){ .brand-hero{ grid-template-columns: 1fr; } }
.brand-hero img{ border-radius: var(--radius-lg); box-shadow: var(--shadow); width:100%; aspect-ratio: 4/3; object-fit:cover; }
.brand-hero .bh-badge{ display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:.8rem; padding:8px 16px; border-radius:999px; margin-bottom:16px; }
.brand-hero h3{ font-size:1.8rem; margin-bottom: 14px; }
.brand-hero p.desc{ color: var(--ink-soft); margin-bottom: 22px; }
.spec-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 24px; }
.spec-list div{ font-size:.85rem; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-list b{ display:block; color: var(--ink-soft); font-size:.72rem; font-weight:700; margin-bottom:3px; }

.product-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width:860px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .product-grid{ grid-template-columns: 1fr; } }
.product-card{ background:#fff; border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-sm); transition: all .25s; }
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .pc-img{ position:relative; aspect-ratio: 4/3; overflow:hidden; }
.product-card .pc-img img{ width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.product-card:hover .pc-img img{ transform: scale(1.06); }
.product-card .pc-badge{ position:absolute; top:12px; left:12px; background:#fff; font-size:.68rem; font-weight:800; padding:5px 12px; border-radius:999px; }
.product-card .pc-body{ padding: 18px 20px 22px; }
.product-card .pc-body .pc-cat{ font-size:.7rem; font-weight:800; letter-spacing:.05em; margin-bottom:6px; }
.product-card .pc-body h4{ font-size:1rem; margin-bottom:8px; }
.product-card .pc-body p{ font-size:.82rem; color: var(--ink-soft); margin-bottom: 14px; }
.product-card .pc-foot{ display:flex; justify-content:space-between; align-items:center; font-size:.8rem; font-weight:800; }

/* ---------------- Company page table ---------------- */
.info-table{ width:100%; border-collapse: collapse; background:#fff; border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-sm); }
.info-table tr{ border-bottom: 1px solid var(--line); }
.info-table tr:last-child{ border-bottom:none; }
.info-table th{ text-align:left; width: 220px; padding: 20px 26px; background: var(--cream2); font-size:.86rem; color: var(--orange-dark); vertical-align:top; }
.info-table td{ padding: 20px 26px; font-size:.92rem; vertical-align:top; }
@media (max-width:640px){ .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td{ display:block; width:auto; } .info-table th{ padding-bottom:6px; } .info-table td{ padding-top:0; padding-bottom:20px; } }

.map-box{ border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16/6; }
.map-box iframe{ width:100%; height:100%; border:0; }

.member-card{ background:#fff; border-radius: var(--radius-md); padding: 24px; text-align:center; box-shadow: var(--shadow-sm); }
.member-card .m-avatar{ width:78px; height:78px; border-radius:50%; margin: 0 auto 16px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:1.4rem; color:#fff; }
.member-card h4{ font-size:.98rem; margin-bottom:4px; }
.member-card span{ font-size:.78rem; color: var(--ink-soft); }

.history-list{ border-left: 3px solid var(--yellow-soft); padding-left: 28px; display:flex; flex-direction:column; gap: 26px; }
.history-item{ position:relative; }
.history-item::before{ content:""; position:absolute; left:-33px; top:5px; width:14px; height:14px; border-radius:50%; background: var(--orange); border:3px solid #fff; box-shadow:0 0 0 2px var(--orange); }
.history-item b{ display:block; color: var(--orange-dark); font-size:.86rem; margin-bottom:4px; }
.history-item p{ font-size:.9rem; color: var(--ink-soft); }

/* ---------------- Contact page ---------------- */
.contact-grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items:flex-start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info-card{ background:#fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-info-card .ci-row{ display:flex; gap:14px; margin-bottom: 22px; }
.contact-info-card .ci-icon{ width:44px; height:44px; border-radius:12px; background: var(--yellow-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:1.1rem; }
.contact-info-card .ci-row b{ display:block; font-size:.82rem; margin-bottom:4px; }
.contact-info-card .ci-row span{ font-size:.86rem; color: var(--ink-soft); }

.form-card{ background:#fff; border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.form-row{ margin-bottom: 22px; }
.form-row label{ display:block; font-weight:800; font-size:.86rem; margin-bottom:8px; }
.form-row label .req{ color: var(--pink); font-size:.72rem; margin-left:6px; font-weight:800; }
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--line); font-size:.92rem; font-family:inherit;
  background: var(--cream); transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{ outline:none; border-color: var(--orange); background:#fff; }
.form-row-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:560px){ .form-row-2{ grid-template-columns:1fr; } }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; font-size:.82rem; color: var(--ink-soft); }
.checkbox-row input{ margin-top:3px; }
.field-error{ color: var(--pink); font-size:.76rem; margin-top:6px; display:none; font-weight:700; }
.form-row.invalid input, .form-row.invalid textarea, .form-row.invalid select{ border-color: var(--pink); }
.form-row.invalid .field-error{ display:block; }
.form-success{ display:none; background: #E8F9F0; border: 2px solid var(--teal); border-radius: var(--radius-md); padding: 26px; text-align:center; }
.form-success.show{ display:block; }
.form-success h3{ color: #0E8C7C; margin-bottom:8px; }

/* ---------------- FAQ accordion ---------------- */
.faq-item{ background:#fff; border-radius: var(--radius-md); margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow:hidden; }
.faq-q{ display:flex; justify-content:space-between; align-items:center; padding: 20px 26px; cursor:pointer; font-weight:800; font-size:.94rem; }
.faq-q .plus{ width:26px; height:26px; border-radius:50%; background: var(--yellow-soft); color: var(--orange-dark); display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; transition: transform .25s; }
.faq-item.open .plus{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-a p{ padding: 0 26px 22px; color: var(--ink-soft); font-size:.88rem; }

/* ---------------- Terms page ---------------- */
.terms-body h2{ font-size: 1.15rem; margin: 38px 0 14px; color: var(--orange-dark); }
.terms-body h2:first-child{ margin-top:0; }
.terms-body p, .terms-body li{ font-size:.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.terms-body ol, .terms-body ul{ padding-left: 22px; list-style: decimal; margin-bottom: 16px; }
.terms-body ul{ list-style: disc; }
.terms-updated{ font-size:.8rem; color: var(--ink-soft); text-align:right; margin-top: 30px; }

/* ---------------- Utility ---------------- */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
.center{ text-align:center; }
.mt-40{ margin-top:40px; }
.small-note{ font-size:.78rem; color: var(--ink-soft); }

::selection{ background: var(--yellow); color: var(--ink); }

/* Back to top */
.to-top{ position: fixed; right: 24px; bottom: 24px; width:50px; height:50px; border-radius:50%; background: var(--orange); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow); opacity:0; pointer-events:none; transition: opacity .25s, transform .25s; z-index: 400; font-size:1.2rem; }
.to-top.show{ opacity:1; pointer-events:auto; }
.to-top:hover{ transform: translateY(-4px); }
