/* =========================================================
   梅林株式会社 サイト用スタイル
   基調色: #862040（梅紅） / #220000（墨赤）
   ========================================================= */

:root {
  --color-main: #862040;
  --color-dark: #220000;
  --color-main-light: #a8455f;
  --color-bg: #faf6f2;
  --color-bg-alt: #f2ebe4;
  --color-text: #2b1a1a;
  --color-text-sub: #6b5757;
  --color-line: #ddd0c8;
  --color-white: #fffdfb;

  --font-serif: "Shippori Mincho", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", sans-serif;

  --container: 1080px;
  --header-h: 64px;
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

/* PCでは改行しない（スマホのみ改行） */
.pc-hide {
  display: none;
}

@media (max-width: 768px) {
  .pc-hide {
    display: inline;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 画像・地図の仮置き */
.placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: var(--color-bg-alt);
  color: var(--color-text-sub);
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  min-width: 220px;
  padding: 14px 32px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn--light {
  background: var(--color-white);
  color: var(--color-main);
}

.btn--light:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 253, 251, 0.6);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-main);
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(34, 0, 0, 0.92);
  color: var(--color-white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav__list a {
  transition: opacity 0.3s;
}

.nav__list a:hover {
  opacity: 0.7;
}

.nav__cta {
  padding: 8px 20px;
  background: var(--color-main);
}

.nav__cta:hover {
  opacity: 1 !important;
  background: var(--color-main-light);
}

/* ハンバーガーボタン（スマホのみ表示） */
.nav-toggle__btn {
  display: none;
}

/* ---------- 1. ヒーロー ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) 20px 0;
  color: var(--color-white);
  text-align: center;
  /* お問い合わせの帯と同じ色。写真を使うときは url の行を有効にし、.hero__overlay の display: none を外します */
  background:
    /* url("../images/hero.jpg") center / cover no-repeat, */
    var(--color-main);
}

.hero__overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(34, 0, 0, 0.2), rgba(34, 0, 0, 0.6));
}

.hero__content {
  position: relative;
}

.hero__sub {
  font-size: 12px;
  letter-spacing: 0.5em;
  opacity: 0.8;
}

.hero__title {
  margin: 20px 0 24px;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.16em;
}

.hero__lead {
  margin-bottom: 40px;
  font-size: 14px;
  opacity: 0.9;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 120px 0;
}

.section__label {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-main);
  text-transform: uppercase;
}

.section__title {
  margin: 8px 0 48px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-dark);
}

.section__label--light,
.section__title--light {
  color: var(--color-white);
}

/* ---------- 2. 代表者挨拶 ---------- */
.message__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: start;
}

.message__photo picture {
  display: block;
}

.message__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.message__video,
.recruit__video {
  position: relative;
  margin-top: 56px;
  aspect-ratio: 16 / 9;
  background: var(--color-dark);
}

.recruit__video {
  max-width: 800px;
  margin: 64px auto 0;
}

.message__video iframe,
.recruit__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.message__body p + p {
  margin-top: 1.6em;
}

.message__body {
  line-height: 2.1;
}

.message__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 48px !important;
  font-family: var(--font-serif);
  line-height: 1.8;
}

.message__company,
.message__role {
  font-size: 13px;
  color: var(--color-text-sub);
}

.message__name {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: 0.24em;
  color: var(--color-dark);
}

/* ---------- 3. 会社沿革 ---------- */
.history {
  background: var(--color-bg-alt);
  text-align: center;
}

.history__list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.history__item {
  position: relative;
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 32px;
  padding: 20px 0 20px 28px;
  border-left: 1px solid var(--color-main);
}

/* タイムラインの丸印 */
.history__item::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-main);
}

.history__date {
  font-family: var(--font-serif);
  color: var(--color-main);
}

/* ---------- 4. 会社情報 ---------- */
.company {
  text-align: center;
}

.company__table {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

/* ---------- 5. 店舗情報 ---------- */
.info {
  background: var(--color-bg-alt);
  text-align: center;
}

.store__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: left;
}

.store {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--color-white);
  border-top: 3px solid var(--color-main);
  box-shadow: 0 1px 0 var(--color-line);
}

/* 店舗写真（カード上部に小さめに表示） */
.store__photo {
  display: block;
  margin-bottom: 24px;
}

.store__photo img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}

.store__photo img[src$="ekimae.png"] {
  object-position: center top;
}

.store__name {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-dark);
}

.info__row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-line);
}

.info__row:first-child {
  border-top: 1px solid var(--color-line);
}

.info__row dt {
  color: var(--color-main);
  font-weight: 500;
}

.info__row a {
  border-bottom: 1px solid var(--color-line);
}

/* Instagramボタン（LINEの友だち追加ボタンと同じ高さ・形にそろえる） */
.insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 22%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  transition: opacity 0.3s;
}

.insta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.insta-btn:hover {
  opacity: 0.8;
}

/* 住所の下のGoogleマップへのリンク */
.info__row a.map-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-main);
  border-bottom: 0;
}

.map-link::after {
  content: " →";
}

.map-link:hover {
  opacity: 0.7;
}

/* LINE公式の「友だち追加」ボタン */
.info__row a.line-btn {
  display: inline-block;
  margin-top: 8px;
  border-bottom: 0;
}

.line-btn img {
  height: 36px;
  width: auto;
}

.line-btn:hover {
  opacity: 0.8;
}

.store__sub {
  font-size: 12px;
  color: var(--color-text-sub);
}

.store__notice {
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.8;
  background: var(--color-bg-alt);
  border-left: 2px solid var(--color-main);
}

.store__notice--strong {
  margin: 0 0 20px;
  color: var(--color-main);
  font-weight: 500;
}

/* ウェブ予約ボタン */
.store__reserve {
  display: block;
  margin-bottom: 20px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-white);
  background: var(--color-main);
  transition: background-color 0.3s;
}

.store__reserve::after {
  content: " →";
}

.store__reserve:hover {
  background: var(--color-dark);
}

/* 休業中の店舗 */
.store--closed {
  position: relative;
  background: #e4dcd8;
  border-top-color: #9a8f8c;
  box-shadow: none;
}

.store--closed .store__name {
  color: var(--color-text-sub);
}

.store--closed .store__table {
  opacity: 0.5;
}

.store__badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-white);
  background: var(--color-dark);
}

.store--closed .store__notice--strong {
  background: var(--color-white);
}

.store__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 32px;
}

.store__links .store__link {
  margin-top: 0;
  padding-top: 0;
}

.store__link {
  align-self: flex-start;
  padding-top: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-main);
}

.store__link::after {
  content: " →";
}

.store__link:hover {
  opacity: 0.7;
}

/* ---------- 6. 求人案内 ---------- */
.recruit {
  text-align: center;
}

.recruit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  text-align: left;
}

.recruit__heading {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-dark);
}

.recruit__list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dotted var(--color-line);
}

/* 行頭の丸印 */
.recruit__list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
  transform: translateY(-50%);
}

.recruit__catch {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--color-main);
}

.recruit__dots li::before {
  content: "・";
}

.recruit__cta {
  margin-top: 64px;
  padding: 48px 24px;
  background: var(--color-bg-alt);
}

.recruit__cta p {
  margin-bottom: 28px;
}

.btn--main {
  background: var(--color-main);
  color: var(--color-white);
}

.btn--main:hover {
  background: var(--color-dark);
}

/* ---------- 7. お問い合わせ ---------- */
.contact {
  background: var(--color-main);
  color: var(--color-white);
  text-align: center;
}

.contact__inner .section__title {
  margin-bottom: 24px;
}

.contact__text {
  margin-bottom: 40px;
}

.contact__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- フッター ---------- */
.footer {
  padding: 48px 20px;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.3em;
}

.footer__copy {
  margin-top: 12px;
  opacity: 0.6;
}

/* =========================================================
   タブレット（〜960px）
   ========================================================= */
@media (max-width: 960px) {
  .message__inner {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }

  .store__grid {
    gap: 24px;
  }

  .store {
    padding: 32px 24px;
  }
}

/* =========================================================
   スマホ（〜768px）
   ========================================================= */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 80px 0;
  }

  .section__title {
    font-size: 24px;
    margin-bottom: 36px;
  }

  /* ハンバーガーメニュー */
  .nav-toggle__btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
    z-index: 110;
  }

  .nav-toggle__btn span {
    display: block;
    height: 1px;
    background: var(--color-white);
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav__list {
    flex-direction: column;
    gap: 28px;
    font-size: 16px;
  }

  .nav-toggle:checked ~ .nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle:checked + .nav-toggle__btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle__btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle__btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ヒーロー */
  .hero__title {
    font-size: 30px;
  }

  /* 代表者挨拶 */
  .message__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message__head .section__title {
    margin-bottom: 28px;
  }

  .message__photo {
    max-width: 160px;
  }

  .message__sign {
    margin-top: 36px !important;
  }

  /* 会社沿革 */
  .history__item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 16px 0 16px 24px;
  }

  .history__item::before {
    top: 25px;
  }

  /* 店舗情報 */
  .store__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .store {
    padding: 28px 20px;
  }

  .store__name {
    font-size: 18px;
  }

  .info__row {
    grid-template-columns: 4.5em 1fr;
    gap: 12px;
  }

  /* 求人案内 */
  .recruit__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .recruit__catch {
    font-size: 16px;
  }

  .recruit__table .info__row {
    grid-template-columns: 5.5em 1fr;
  }

  .recruit__video {
    margin-top: 48px;
  }

  .recruit__cta {
    margin-top: 48px;
    padding: 36px 20px;
  }

  .sp-hide {
    display: none;
  }

  /* お問い合わせ */
  .contact__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}
