/*
Theme Name: room R
Theme URI: https://roomr.example.com
Author: room R
Description: room R（銀のさら／cafe choose+）コーポレートサイト用オリジナルテーマ
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: roomr
*/

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

:root {
  --gold: #ad8a4e;
  --gold-light: #c8ab77;
  --ink: #2b2926;
  --gray: #6f6a63;
  --bg: #ffffff;
  --bg-soft: #efeeea;
  --line: #e6e0d6;
  --serif: "Shippori Mincho", serif;
  --title: "Italiana", var(--serif);
  --sans: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.u-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header (fixed logo + right-side vertical nav) ---------- */
.cm-h { position: relative; z-index: 100; }
.cm-h__logo {
  position: fixed; top: 32px; left: 32px;
  z-index: 101;
}
.cm-h__logo img { height: 30px; }

.cm-h__nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  padding-right: 44px;
}
.cm-h__navList {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 26px;
  text-align: right;
}
.cm-h__navList a {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.75);
  position: relative;
  padding-bottom: 4px;
}
.cm-h__navList a::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.cm-h__navList a:hover::after,
.cm-h__navList a.is-active::after { width: 100%; }
.cm-h__navList li.is-current a::after,
.cm-h__navList li.current-menu-item a::after,
.cm-h__navList li.current_page_item a::after { width: 100%; }

.cm-menu {
  display: none;
  width: 32px; height: 24px;
  position: fixed; top: 30px; right: 32px;
  z-index: 102;
  background: none; border: none; cursor: pointer;
}
.cm-menu span, .cm-menu::before, .cm-menu::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ink);
}
.cm-menu::before { top: 0; }
.cm-menu span { top: 11px; }
.cm-menu::after { bottom: 0; }

@media (max-width: 860px) {
  .cm-h__nav {
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .cm-h__nav.is-open { transform: translateX(0); }
  .cm-h__navList { flex-direction: column; gap: 22px; text-align: center; }
  .cm-h__navList a { text-shadow: none; }
  .cm-menu { display: block; }
}

/* ---------- Hero (full-bleed video + overlay text) ---------- */
.p-hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
}
.p-hero-full video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.p-hero-full::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.4) 100%);
}
.p-hero-full__content {
  position: absolute; left: 48px; bottom: 64px; right: 48px;
  z-index: 2;
  color: #fff;
  max-width: 640px;
}
.p-hero-full__mark img { height: 56px; margin-bottom: 22px; filter: brightness(0) invert(1); }
.p-hero-full__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  line-height: 1;
  animation: heroTitleIn 1.3s cubic-bezier(.19,1,.22,1) both;
}
.p-hero-full__sub {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  margin: 0;
  opacity: .92;
  animation: heroSubIn 1.3s ease .5s both;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: .92; transform: translateY(0); }
}
@media (max-width: 760px) {
  .p-hero-full__content { left: 24px; bottom: 40px; max-width: none; }
  .p-hero-full__title { font-size: clamp(36px, 12vw, 56px); }
}

/* ---------- Generic section ---------- */
.p-section {
  padding: 100px 0;
}
.p-section.is-soft { background: var(--bg-soft); }
.p-section__title {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 12px;
}
.p-section__heading {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 34px);
  text-align: center;
  margin: 0 0 56px;
  line-height: 1.7;
}

/* ---------- About / Rinen text block ---------- */
.p-about__txt {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.p-about__quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  text-align: center;
  color: var(--ink);
  margin: 0 0 40px;
  line-height: 1.8;
}

/* ---------- Concept (two-column on desktop) ---------- */
.p-concept { display: flex; flex-direction: column; }
@media (min-width: 761px) {
  .p-concept { flex-direction: row; align-items: flex-start; gap: 80px; }
  .p-concept__head { flex: 0 0 300px; text-align: left; position: sticky; top: 140px; }
  .p-concept__head .p-section__title,
  .p-concept__head .p-section__heading { text-align: left; }
  .p-concept__head .p-section__heading { margin-bottom: 0; }
  .p-concept__body { flex: 1; }
  .p-concept__body .p-about__txt { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
  .p-concept__head.js-fade { transform: translateX(-36px); }
  .p-concept__body .js-fade { transform: translateX(36px); }
  .p-concept__head.js-fade.is-visible,
  .p-concept__body .js-fade.is-visible { transform: translateX(0); }
  .p-concept__body .p-about__txt.js-fade:nth-of-type(2) { transition-delay: .15s; }
}

/* ---------- Photo ---------- */
.p-photo { padding: 0; }
.p-photo img { width: 100%; height: 60vh; object-fit: cover; }

/* ---------- Photo trio (3 equal images in a row) ---------- */
.p-photo-trio { display: flex; gap: 4px; }
.p-photo-trio img { width: 33.333%; height: 60vh; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .p-photo-trio { flex-direction: column; gap: 2px; }
  .p-photo-trio img { width: 100%; height: 26vh; }
}

/* ---------- Philosophy 3 pillars ---------- */
.p-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.p-pillars__item {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}
.p-pillars__item h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 14px;
}
.p-pillars__item p { margin: 0; font-size: 14.5px; color: var(--gray); }

@media (max-width: 760px) {
  .p-pillars { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Vision/Mission/Value ---------- */
.p-vmv { display: flex; flex-direction: column; gap: 56px; }
.p-vmv__item { text-align: center; transition: transform .5s ease; }
.p-vmv__item:hover { transform: translateY(-6px); }
.p-vmv__item.js-fade:nth-child(1) { transition-delay: .05s; }
.p-vmv__item.js-fade:nth-child(2) { transition-delay: .18s; }
.p-vmv__item.js-fade:nth-child(3) { transition-delay: .31s; }
.p-vmv__label {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.p-vmv__sub { font-size: 13px; color: var(--gray); margin: 0 0 16px; }
.p-vmv__txt {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.85;
  margin: 0;
}

/* ---------- Action guidelines list ---------- */
.p-actions { counter-reset: action; list-style: none; margin: 0; padding: 0; max-width: 760px; margin-inline: auto; }
.p-actions li {
  counter-increment: action;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 24px; align-items: baseline;
}
.p-actions li::before {
  content: counter(action, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 22px;
  flex: none;
  width: 40px;
}
.p-actions li strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 6px;
}
.p-actions li span { font-size: 13.5px; color: var(--gray); }

/* ---------- Brand teaser cards ---------- */
.p-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.p-brand-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  transition: transform .5s ease, box-shadow .5s ease;
}
.p-brand-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(0,0,0,.16); }
.p-brand-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-brand-card:hover img { transform: scale(1.06); }
.p-brand-card.js-fade:nth-child(1) { transition-delay: .05s; }
.p-brand-card.js-fade:nth-child(2) { transition-delay: .2s; }
.p-brand-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%);
  display: flex; align-items: flex-end;
  padding: 24px;
}
.p-brand-card__label {
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
}
.p-brand-card__label small { display: block; font-size: 11px; letter-spacing: 0.2em; opacity: .85; margin-top: 6px; }

@media (max-width: 760px) {
  .p-brands { grid-template-columns: 1fr; }
}

/* ---------- Info rows (access / recruit / company) ---------- */
.p-rows { max-width: 780px; margin: 0 auto; }
.p-rows__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.p-rows__row dt {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.05em;
}
.p-rows__row dd { margin: 0; color: var(--ink); }
.p-rows__row dd p { margin: 0 0 6px; }

@media (max-width: 620px) {
  .p-rows__row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Recruit (bottom of TOP) ---------- */
.p-recruit-bottom { background: var(--ink); color: #f4f1ea; padding: 90px 0; }
.p-recruit-bottom .p-section__title { color: var(--gold-light); }
.p-recruit-bottom .p-section__heading { color: #fff; }
.p-recruit-bottom .p-rows__row { border-bottom-color: rgba(255,255,255,.15); }
.p-recruit-bottom .p-rows__row dd { color: #efece4; }
.p-recruit-bottom .p-rows__row dt { color: var(--gold-light); }
.p-recruit-bottom .c-btn { margin: 48px auto 0; }

/* ---------- Instagram teaser card ---------- */
.p-insta-card {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 420px;
  margin: 36px auto 0;
  padding: 16px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(43,41,38,.06);
  transition: transform .4s ease, box-shadow .4s ease;
}
.p-insta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(43,41,38,.12);
}
.p-insta-card__icon {
  flex: none;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%);
}
.p-insta-card__icon svg { width: 24px; height: 24px; }
.p-insta-card__text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.p-insta-card__text strong {
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: 0.02em;
}
.p-insta-card__text span { font-size: 12.5px; color: var(--gray); }

/* ---------- Buttons ---------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 14px 32px;
  transition: background .3s ease, color .3s ease;
}
.c-btn:hover { background: var(--gold); color: #fff; }
.c-btn-row { text-align: center; margin-top: 48px; }

/* ---------- Contact form ---------- */
.p-form { max-width: 640px; margin: 0 auto; }
.p-form__row { margin-bottom: 24px; }
.p-form__row label { display: block; font-size: 13px; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--gray); }
.p-form__row input,
.p-form__row select,
.p-form__row textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  background: #fff;
}
.p-form__row textarea { min-height: 140px; resize: vertical; }
.p-form__submit { text-align: center; margin-top: 12px; }
.p-form__submit button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  padding: 14px 44px;
  cursor: pointer;
  font-size: 14px;
}

/* ---------- Page hero (sub pages) ---------- */
.p-pagehero { padding: 140px 0 60px; text-align: center; }
.p-pagehero__en {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--gold);
}
.p-pagehero__ja {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  margin: 12px 0 0;
}

/* ---------- Footer ---------- */
.cm-f {
  background: var(--ink);
  color: #cfc9bd;
  padding: 56px 32px 32px;
  text-align: center;
}
.cm-f__logo img { height: 30px; margin: 0 auto 20px; }
.cm-f__nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 0 0 28px; padding: 0; list-style: none; }
.cm-f__nav a { font-size: 12.5px; letter-spacing: 0.05em; }
.cm-f__copy { font-size: 11px; letter-spacing: 0.1em; color: #8b8577; }

/* ---------- Animate on scroll ---------- */
.js-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.js-fade.is-visible { opacity: 1; transform: translateY(0); }
