/* ========================================
   お店探しAIサイト - メインスタイル
   Figma: お店探しAIサイト_DV0_003
   ======================================== */

:root {
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-accent: #DD4E35;
  --color-bg-pink: #FAE9E4;
  --color-bg-gray: #EDEBE9;
  --color-bg-footer: #F7F7F7;
  --color-border: #DDDDDD;
  --color-logo: #8E8787;
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
  --shadow-btn: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
  --shadow-mv: 1px 2px 4px 0px rgba(0, 0, 0, 0.3);
  --max-width: 1200px;
  --inner-padding: 120px;
  --inner-padding-sp: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-inter);
  color: var(--color-black);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

/* ========================================
   l-wrapper
   ======================================== */
.l-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--color-white);
}

/* ========================================
   m-siteid（サイトID・キャッチ）
   ======================================== */
.m-siteid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 7px var(--inner-padding);
  background: var(--color-white);
}

.m-siteid-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 60px;
}

.m-siteid-inner .img-siteid {
  flex-shrink: 0;
  width: 151px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.m-siteid-inner .p-siteid {
  margin: 4px 0 0;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.85;
  color: #333333;
  flex-shrink: 0;
}

.m-siteid-inner .p-sitecatch {
  margin: 4px 0 0 auto;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 12px;
  line-height: 2em;
  color: #4D4D4D;
  text-align: center;
  max-width: 431px;
}

/* ========================================
   img-mv
   ======================================== */
.img-mv {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 120px;
  overflow: hidden;
  box-shadow: var(--shadow-mv);
}

.img-mv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   m-header
   ======================================== */
.m-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 50px var(--inner-padding) 40px;
  text-align: center;
}

.h1-maintit {
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.21;
}

.p-subtit {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: var(--color-accent);
}

.p-catch {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
}

/* ========================================
   l-contents
   ======================================== */
.l-contents {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-bg-gray);
  padding: 40px var(--inner-padding) 60px;
}

.l-contents-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

/* m-contents-card */
.m-contents-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.h2-tit {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
}

.p-place {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.71;
}

/* l-contents-thum */
.l-contents-thum {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.l-contents-thum img {
  width: 265px;
  max-width: 100%;
  height: 164px;
  object-fit: cover;
}

.p-read {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

/* l-contents-info */
.l-contents-info {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.img-icon_map {
  flex-shrink: 0;
  width: 58px;
  height: 42px;
}

.p-info {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.54;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* l-reserv-list */
.l-reserv-list {
  display: grid;
  grid-template-columns: repeat(3, 174px);
  gap: 14px;
  margin-bottom: 20px;
}

/* m-reservbtn（DV0_004デザイン） */
.m-reservbtn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  width: 174px;
  height: 36px;
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.71;
  text-decoration: none;
  transition: opacity 0.2s;
}

.m-reservbtn:hover {
  opacity: 0.9;
}

.m-reservbtn--hotpepper { background: #E73820; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25); }
.m-reservbtn--paypay { background: #FD5C5C; }
.m-reservbtn--ikyu { background: #AF9B65; }
.m-reservbtn--ozmall { background: #FB4466; }
.m-reservbtn--tabelog { background: #F3980A; }
.m-reservbtn--gnav { background: #E32F2F; }

/* m-review-head */
.m-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--color-bg-pink);
  border-radius: 4px;
}

.review-head-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.71;
}

.review-head-link-open {
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.review-head-link-open:hover {
  opacity: 0.8;
}

/* l-review-section（l-review-body + 閉じるボタンのラッパー） */
.l-review-section {
  display: none;
  margin-top: 20px;
}

.l-review-section:not(.is-collapsed) {
  display: block;
}

/* l-review-body */
.l-review-body {
  padding: 0;
  background: var(--color-white);
}

.m-review-body-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.m-review-body-block:last-of-type {
  border-bottom: none;
}

.p-score {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14;
}

.p-review {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.54;
}

.review-body-link-close {
  display: block;
  margin-top: 12px;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.review-body-link-close:hover {
  opacity: 0.8;
}

/* ========================================
   l-theme
   ======================================== */
.l-theme {
  padding: 60px var(--inner-padding) 80px;
}

.h3-tit {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
}

.l-theme-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.m-theme-card {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s;
  text-align: left;
  cursor: pointer;
}

.m-theme-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* theme -> area popup */
body.is-popup-open {
  overflow: hidden;
}

.m-area-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.m-area-popup.is-hidden {
  display: none;
}

.m-area-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.m-area-popup__dialog {
  position: relative;
  max-width: 640px;
  width: calc(100% - 40px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.m-area-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.m-area-popup__title {
  margin: 0 0 8px;
  font-size: 20px;
}

.m-area-popup__subtitle {
  margin: 0 0 16px;
  font-size: 14px;
}

.m-area-popup__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.m-theme-card > a {
  display: block;
  color: inherit;
}

.l-theme-card-head {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: var(--color-bg-pink);
}

.l-theme-card-head .h4-tit {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.21;
}

.l-theme-card-body {
  display: flex;
  gap: 15px;
  padding: 15px;
}

.theme_thm-01 {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  object-fit: cover;
  margin-left: auto;
}

.l-theme-card-body .p-text {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.69;
  white-space: pre-line;
}

/* ========================================
   l-area
   ======================================== */
.l-area {
  padding: 0 var(--inner-padding) 60px;
}

.l-area-block {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin-bottom: 20px;
}

.l-area-link,
.l-station-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
}

.a-area-link,
.a-station-link {
  color: var(--color-accent);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
}

.a-area-link:hover,
.a-station-link:hover {
  text-decoration: underline;
}

/* m-btn-pink */
.m-btn-pink {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  background: var(--color-bg-pink);
  border: none;
  border-radius: 48px;
  cursor: pointer;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.21;
  transition: background 0.2s;
}

.m-btn-pink:hover {
  background: #f5d9d1;
}

/* ========================================
   l-station
   ======================================== */
.l-station {
  padding: 0 var(--inner-padding) 80px;
}

.l-station-block {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin-bottom: 20px;
}

/* ========================================
   l-footer
   ======================================== */
.l-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-bg-footer);
  padding: 30px var(--inner-padding) 40px;
}

.l-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 20px 0;
}

.p-footer-text {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.71;
}

.l-footer-link {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
}

.l-footer-sns {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 15px;
  align-items: center;
}

.a-footer-link {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.71;
}

.a-footer-link:hover {
  text-decoration: underline;
}

.l-footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-footer-sns img {
  width: 30px;
  height: 30px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --inner-padding: 40px;
  }

  .l-contents-inner {
    grid-template-columns: 1fr;
  }

  .l-theme-block {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --inner-padding: var(--inner-padding-sp);
  }

  .m-siteid {
    padding: 7px var(--inner-padding-sp);
  }

  .m-siteid-inner {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
  }

  .m-siteid-inner .img-siteid {
    width: 120px;
    height: 37px;
  }

  .m-siteid-inner .p-siteid {
    font-size: 12px;
  }

  .m-siteid-inner .p-sitecatch {
    font-size: 11px;
    line-height: 1.4;
    max-width: 100%;
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .m-siteid-inner .p-sitecatch .p-sitecatch-break {
    display: block;
  }

  .img-mv {
    height: 80px;
  }

  .m-header {
    padding: 30px var(--inner-padding-sp) 30px;
    gap: 15px;
  }

  .h1-maintit {
    font-size: 22px;
  }

  .p-subtit {
    font-size: 18px;
  }

  .p-catch {
    font-size: 14px;
  }

  .l-contents {
    padding: 30px var(--inner-padding-sp) 40px;
  }

  .l-contents-inner {
    gap: 30px;
  }

  .h2-tit {
    font-size: 18px;
  }

  .l-contents-thum {
    flex-direction: column;
    align-items: center;
  }

  .l-contents-thum img {
    width: 100%;
    max-width: 265px;
  }

  .l-contents--index .l-contents-thum img {
    max-width: 100%;
  }

  .l-reserv-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .l-contents--index .l-reserv-list {
    grid-template-columns: 1fr;
  }

  .m-reservbtn {
    width: 100%;
    min-width: 0;
  }

  .l-theme {
    padding: 40px var(--inner-padding-sp) 60px;
  }

  .l-theme-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .l-area-block,
  .l-station-block {
    gap: 12px;
  }

  .m-btn-pink {
    padding: 12px 24px;
    font-size: 14px;
  }

  .l-footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .p-footer-text {
    grid-row: 1;
  }

  .l-footer-link {
    grid-row: 2;
  }

  .l-footer-sns {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .m-review-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
