/*
Theme Name: Lily 2026
Description: 株式会社Lily コーポレートサイト（2026年リニューアル）
Author: 株式会社Lily
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lily-2026
*/

:root {
  --ink: #14171c;
  --mute: #5b6470;
  --line: #d9dde3;
  --line-strong: #8a929e;
  --soft: #f3f4f6;
  --dark: #0e1116;
  --accent: #17759f;
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(96px, 11vw, 160px);
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Jost", "Zen Kaku Gothic New", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.en { font-family: var(--font-en); }
.sp-only { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 0 28px; font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .14em; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: max(640px, 100vh); min-height: max(640px, 100svh);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 140px var(--pad) 160px;
  background: var(--dark); color: #fff; text-align: center;
}
.hero__bg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-en); font-weight: 600; font-size: 46vw; line-height: 1; letter-spacing: -.02em;
  color: #171b22; white-space: nowrap; pointer-events: none; user-select: none;
}
.hero__label { position: relative; font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .3em; color: #c9ced6; }
.hero__title { position: relative; font-weight: 500; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.5; letter-spacing: .1em; }
.hero__sub { position: relative; font-family: var(--font-en); font-size: clamp(13px, 1.3vw, 18px); letter-spacing: .12em; color: #c9ced6; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 44px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .24em; color: #c9ced6;
}
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: #c9ced6; animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; overflow: hidden; padding: var(--sec) var(--pad); }
.section--soft { background: var(--soft); }
.section__bg {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-weight: 600; font-size: clamp(88px, 17vw, 260px); line-height: 1;
  color: #f1f3f5; white-space: nowrap; pointer-events: none; user-select: none;
}
.section--soft .section__bg { color: #fafbfc; }
.section__inner { position: relative; margin: 0 auto; }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.label { font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .14em; color: var(--accent); }
.heading { font-weight: 700; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.6; letter-spacing: .06em; }
.note { font-size: 13px; color: var(--mute); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; min-height: 52px; padding: 0 32px;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .16em;
  transition: background-color .3s ease, color .3s ease;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- About ---------- */
.about .section__inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.about__body { display: flex; flex-direction: column; gap: 16px; }
.origin { margin-top: 16px; padding: 24px 28px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.origin__label { font-family: var(--font-en); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.origin p { font-size: 15px; }

/* ---------- Business ---------- */
.business .section__inner { max-width: 1200px; display: flex; flex-direction: column; gap: clamp(72px, 8vw, 120px); }
.biz { display: flex; flex-direction: column; gap: 32px; }
.biz__intro { max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.biz__no { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .14em; color: var(--accent); }
.biz__no b { font-weight: 500; font-size: 22px; letter-spacing: .04em; }
.biz__no i { display: block; width: 40px; height: 1px; background: var(--accent); }
.biz__title { font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.6; letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.shop { background: #fff; display: flex; flex-direction: column; }
.shop__img { overflow: hidden; aspect-ratio: 4 / 3; }
.shop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shop:hover .shop__img img { transform: scale(1.04); }
.shop__body { min-height: 76px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop__name { display: flex; flex-direction: column; line-height: 1.5; }
.shop__name small { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.shop__name strong { font-weight: 700; }
.arrow { flex-shrink: 0; transition: transform .3s ease; }
a:hover > .arrow, a:hover .shop__body .arrow, button:hover > .arrow { transform: translateX(4px); }
.hours { font-size: 14px; color: var(--mute); }

.linkbox {
  padding: 24px 28px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color .3s ease;
}
.linkbox:hover { background: #fff; }
.linkbox__text { display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.linkbox__text .label { font-size: 12px; }
.linkbox__text strong { font-weight: 700; }
.linkbox__text span:last-child { font-size: 14px; color: var(--mute); }

.subsidy { background: #fff; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.subsidy__mark { font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .14em; color: var(--mute); }
.subsidy h4 { font-weight: 700; font-size: 20px; line-height: 1.6; }
.subsidy p { font-size: 15px; }
.tag { align-self: flex-start; padding: 2px 12px; border: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 500; }
.tools { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; }
.tools__label { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.tools div { display: flex; flex-direction: column; gap: 2px; }
.tools strong { font-weight: 700; }
.tools span { color: var(--mute); }

/* ---------- Company ---------- */
.company .section__inner { max-width: 880px; display: flex; flex-direction: column; gap: 56px; }
.table { border-top: 1px solid var(--line); }
.table > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 24px; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 700; }
.table .note { font-size: 14px; }

/* ---------- Profile ---------- */
.profile .section__inner { max-width: 760px; display: flex; flex-direction: column; gap: 56px; }
.profile__card { background: #fff; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.profile__role { font-size: 14px; color: var(--mute); }
.profile__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.profile__name strong { font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.5; letter-spacing: .1em; }
.profile__name span { font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; color: var(--mute); }
.posts { border-top: 1px solid #c9ced6; }
.posts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding: 16px 4px; border-bottom: 1px solid #c9ced6; }
.posts strong { font-weight: 700; }
.posts small { font-weight: 400; font-size: 13px; color: var(--mute); }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: #fff; padding: clamp(80px, 9vw, 128px) var(--pad); }
.contact__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.contact .label { color: #fff; }
.form { margin-top: 16px; width: 100%; background: #fff; color: var(--ink); padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 24px; text-align: left; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.req { padding: 0 8px; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 500; line-height: 1.7; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 0; background: #fff;
  font-family: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { padding: 14px 16px; line-height: 1.7; resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 117, 159, .2); }
.field ::placeholder { color: #8a929e; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 13px; color: var(--mute); text-align: center; }
.btn-submit {
  align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-width: 280px; max-width: 100%; min-height: 60px; padding: 0 36px;
  border: none; border-radius: 0; background: var(--ink); color: #fff; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .08em;
  transition: background-color .3s ease;
}
.btn-submit:hover { background: #2a303a; }
.notice { width: 100%; padding: 18px 24px; background: #fff; color: var(--ink); font-weight: 700; text-align: center; }
.notice--error { color: #a3261b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c9ced6; padding: 56px var(--pad) 32px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 12px; letter-spacing: .1em; }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer .site-nav { flex-wrap: wrap; }
.copyright { border-top: 1px solid #2a303a; padding-top: 24px; font-family: var(--font-en); font-size: 12px; letter-spacing: .1em; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero__label, .js .hero__title, .js .hero__sub { opacity: 0; transform: translateY(20px); animation: heroIn 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero__title { animation-delay: .15s; }
.js .hero__sub { animation-delay: .35s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__label, .js .hero__title, .js .hero__sub { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 720px) {
  .sp-only { display: inline; }
  html { scroll-padding-top: 64px; }
  .hero__title { font-size: clamp(20px, 6.4vw, 30px); letter-spacing: .06em; }
  .heading { font-size: clamp(18px, 5.6vw, 24px); letter-spacing: .04em; }
  .site-logo img { height: 34px; }
  .nav-toggle {
    position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0; border: none; background: none; color: inherit; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .3s ease; }
  .nav-open .nav-toggle { color: #fff; }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .site-header .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: var(--dark); color: #fff; font-size: 18px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-open .site-header .site-nav { opacity: 1; visibility: visible; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .table > div { grid-template-columns: minmax(0, 1fr); }
  .subsidy { padding: 28px 24px; }
  .btn-submit { min-width: 0; width: 100%; }
}

/* ---------- Standalone pages (privacy policy) ---------- */
.site-header--solid { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.copyright { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.copyright__link { font-family: var(--font-jp); font-size: 13px; letter-spacing: .06em; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.form__privacy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-main { padding: calc(72px + clamp(56px, 8vw, 104px)) var(--pad) clamp(80px, 10vw, 140px); }
.page-article { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.page-content { display: flex; flex-direction: column; gap: 16px; }
.page-content > * { margin: 0; }
.page-content h2 { margin-top: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.6; letter-spacing: .04em; }
.page-content ul, .page-content ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.page-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-content .policy-meta { margin-top: 32px; color: var(--mute); font-size: 14px; text-align: right; }
.page-back { margin: 0; text-align: center; }
