/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #df462f;
  --color-secondary: #b7a53d;
  --color-text-main: #231816;
  --color-bg-light: #f5f5f5;
  --color-white: #ffffff;
  --font-base: 'Inter', 'Noto Sans JP', sans-serif;
  --font-serif: 'A-OTF Ryumin Pro', '游明朝', YuMincho, serif;
}

html{
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.text-center { text-align: center; }
/* .img-fluid { width: 100%; height: auto; object-fit: cover; } */
.placeholder { background-color: #e0e0e0; min-height: 200px; display: block; }

/* Typography */
h1, h2, .font-serif {
  font-family: var(--font-serif);
}

.sp-only {
  display: none;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 28px;
  position: relative;
}

.sub-section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}
.sub-section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 32px;
  background-color: var(--color-secondary);
  margin-right: 12px;
}

/* Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 50px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100vmax;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  min-width: 600px;
  margin-inline: auto;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid currentColor;
  padding: 16px 40px;
  font-size: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background-color: #c43e2a;
  transform: translateY(-2px);
}

.btn-arrow {
  margin-left: 10px;
  aspect-ratio: 1/1;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-arrow img { width: 100%; height: 100%; }

/* Header */
.header {
  padding: 20px;
  background-color: var(--color-white);
  position: absolute;
  top: 0;
  left: 45px;
}

.logo img {
  width: 300px;
}

/* 1. Hero Section */
.hero-section {
  padding: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  min-height: 400px;
}

.hero-text-overlay {
  color: var(--color-white);
  text-shadow: 0 4px 4px rgba(0,0,0,0.5);
  text-align: center;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  font-size: clamp(32px, 4.5vw, 50px);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: bold;
  line-height: 1.5;
  white-space: nowrap;
  padding-bottom: 30px;
  padding-left: 20px;
  border-left: 8px solid var(--color-primary);
}

.intro-text {
  max-width: 800px;
  margin: 100px auto;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.8;
  font-weight: bold;
}

/* 2. Recommend Section */
.recommend-section {
}

.with-lines {
  display: flex;
  align-items: center;
  justify-content: center;
}
.with-lines::before, .with-lines::after {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background-color: #ddd; /* simple lines, or use images/vector7.svg */
  margin: 0 20px;
}

.recommend-grid {
  padding: 30px;
  background-color: var(--color-bg-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.recommend-card {
  background-color: var(--color-white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.outline-card {
  background-color: #fdeed0;
  border: 2px solid #856c4d;
}

.recommend-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3. Capabilities Section */

.capabilities-header {
  padding-block: 40px;
  background-image: url(./../images/capabilities-header.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 60px;
}

.capabilities-header .section-title {
  font-size: 36px;
  line-height: 1.4;
  font-weight: bold;
}

.capability-row {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  gap: 60px;
}

.capability-row:last-child {
  margin-bottom: 0;
}

.capability-row.reverse {
  flex-direction: row-reverse;
}

.capability-image {
  flex: 1;
}

.capability-content {
  flex: 1;
}

.capability-content p {
  line-height: 1.8;
}

.badge-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge-icon {
  aspect-ratio: 194/35;
  width: min(100%, 194px);
}

.badge-title h3 {
  font-size: 32px;
  font-weight: bold;
}

/* 4. Store List Section */
.store-list-section {
  padding-bottom: 100px;
}

.store-list-section .section-title {
  font-size: 36px;
  text-align: left;
  padding-left: 27px;
  position: relative;
}

.store-list-section .section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background-color: var(--color-secondary);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.store-card {
  border: 2px solid #000;
  background: var(--color-white);
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card-image {
  position: relative;
}

.renewal-badge {
  display: inline-block;
  background-color: var(--color-secondary); /* or #b7a53d from root */
  color: var(--color-white);
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  line-height: 22px;
  height: 22px;
  max-width: 165px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
}

.store-detail-header {
  display: grid;
  place-content: center;
  padding-inline: 30px;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-bottom: 2px solid #000;
}

.store-detail-section .renewal-badge {
  position: static;
  display: inline-block;
}

.store-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: bold;
}

.store-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.tag {
  background-color: #231816;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
}

.store-card-text {
  font-size: .8rem;
  line-height: 1.7;
  flex-grow: 1;
}

.store-tel{
  display: flex;
  align-items: center;
  gap: .25rem;
}

.store-tel img{
  width: 1rem;
  height: 1rem;
  filter: brightness(0) invert(0);
}

.store-tel small{
  font-size: 0.75rem;
}

.more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  background-color: #000;
  color: var(--color-white);
  padding: 10px 20px;
  align-self: stretch;
}
.more-link .icon {
  margin-left: 10px;
  aspect-ratio: 15/18;
  width: 15px;
  filter: brightness(0) invert(1);
}

.more-link:hover {
  background-color: var(--color-primary);
}

/* 5. Store Details */
.store-detail-section {
  padding: 60px 0;
}

.store-detail-title {
  font-family: var(--font-serif);
  font-size: 40px;
}

.store-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 60px;
}

.gallery-subs {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

.space-images {
  margin-bottom: 60px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.store-info-box {
  background-color: var(--color-bg-light);
  padding: 24px;
}

.info-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.info-text {
  flex: 1;
}

.info-map {
  flex: 1;
}

.info-list {
  margin: 1em 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.info-list dt {
  font-weight: bold;
}

.contact-number {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1em;
}

.contact-number .tel-icon {
  aspect-ratio: 1/1;
  width: 40px;
  margin-right: 15px;
}

.contact-number a {
  font-size: 40px;
  color: var(--color-primary);
  text-decoration: underline;
}

/* 6. FAQ Section */
.faq-section {
  padding: 80px 0 100px;
}

.faq-section .section-title {
  color: #231816;
  font-family: var(--font-serif);
  font-size: 32px;
  text-align: left;
  border-bottom: 2px solid #856C4D;
  padding-left: 20px;
  margin-bottom: 36px;
}
.faq-section .section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background-color: #856C4D;
}

.faq-list {
  margin: 0 auto;
}

.faq-item:not(:last-child) {
  margin-bottom: 2px;
}

.faq-question {
  display: flex;
  align-items: stretch;
  background-color: #231816;
  color: var(--color-white);
  cursor: pointer;
  list-style: none; /* Hide default arrow */
}

/* Hide marker in webkit */
.faq-question::-webkit-details-marker {
  display: none;
}

.q-icon {
  aspect-ratio: 1/1;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-family: var(--font-serif);
  font-size: 36px;
  border-right: 2px solid var(--color-white);
  flex-shrink: 0;
}

.q-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-secondary);
  margin: 10px;
}

.q-text {
  font-size: 24px;
  flex-grow: 1;
  padding-right: 20px;
}

.toggle-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-right: 10px;
}
.toggle-icon::before, .toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-white);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.toggle-icon::before {
  width: 3px;
  height: 20px;
}
.toggle-icon::after {
  width: 20px;
  height: 3px;
}

details[open] .toggle-icon {
  transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
  display: flex;
  background-color: #eeeeee;
  color: var(--color-text-main);
  padding: 1rem 60px 1rem 0;
}

.a-icon {
  width: 60px;
  display: flex;
  justify-content: center;
  color: var(--color-secondary);
  font-family: var(--font-serif);
  font-size: 36px;
  flex-shrink: 0;
  line-height: 1.2;
}

.a-content {
  flex-grow: 1;
}

.a-content__row{
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.a-short {
  font-family: var(--font-base);
  font-size: 24px;
  font-weight: bold;
}

.a-detail {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
}

.a-box{
  padding: 20px 30px;
  margin-top: 10px;
  background-color: #fff;
}

.a-box__list{
  font-size: 16px;
  line-height: 1.875;
  display: flex;
  flex-direction: column;
  gap: 1lh;
}

.a-box__item{

}

.a-box__head{
  font-weight: bold;
}

.a-box__body{

}

/* 7. Footer */
.msg-section {
  text-align: center;
  padding: 60px 20px;
}

.msg-text {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 60px;
}

.msg-section__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.msg-img {
  max-width: 200px;
}

.msg-chara {
  max-width: 365px;
}

.foot-img{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
  .intro-text {
    font-size: 12px;
    margin: 50px auto 0;
  }

  .btn{
    min-width: auto;
  }
  
  .section-title {
    font-size: 20px;
  }

  .capabilities-header .section-title{
    font-size: 20px;
    margin-bottom: unset;
  }
  
  .store-list-section .section-title{
    font-size: 16px;
  }

  .faq-section .section-title{
    font-size: 20px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }
  
  .capability-row, .capability-row.reverse {
    flex-direction: column;
    gap: 30px;
  }
  
  .store-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .info-flex {
    flex-direction: column;
  }

  .info-map{
    max-width: 550px;
    margin-inline: auto;
  }

}

@media screen and (max-width: 767px) {
  .sp-only{
    display: block;
  }

  .logo img {
    width: 120px;
  }

  section,.store-list-section,.store-detail-section,.faq-section,.msg-section{
    padding-block: 30px;
  }

  .with-lines::before,
  .with-lines::after {
    width: 10%;
  }
  .with-lines::before{
    margin-left: unset;
  }
  .with-lines::after{
    margin-right: unset;
  }

  .capabilities-header{
    background-image: unset;
    margin-bottom: unset;
  }

  .hero-title { font-size: 20px; }
  .hero-subtitle { font-size: 14px; }

  .store-card-title{
    font-size: 16px;
  }

  .store-detail-header{
    padding-inline: unset;
  }

  .store-detail-title{
    font-size: 16px;
  }

  .store-gallery {
    flex-direction: column;
  }

  .gallery-subs{
    flex-direction: column;
  }
  
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-number a {
    font-size: 30px;
  }

  .faq-answer{
    padding-inline: unset;
  }

  .msg-text{
    font-size: 16px;
  }

  .msg-section__row{
    gap: 30px;
  }

  .info-list{
    grid-template-columns: auto;
    gap: 5px;
    font-size: 14px;
  }

  .cta-btn{
    font-size: 16px;
  }

  .tag{
    font-size: 12px;
  }

  .sub-section-title{
    font-size: 20px;
  }

  .badge-title h3{
    font-size: 24px;
  }
  .capability-content p{
    font-size: 14px;
  }

  .hero-image{
    min-height: auto;
  }
}

@media screen and (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
  .q-text, .a-short {
    font-size: 16px;
  }
  .q-icon, .a-icon {
    width: 60px;
    font-size: 28px;
  }
  .a-content, .q-content {
    padding-right: 10px;
  }
  .a-content__row{
    gap: 0;
  }
  .a-box{
    padding: 20px;
  }
}

.l-footer {
  position: relative;
}
.l-footer__pagetop {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
}
.l-footer__pagetop a {
  transition: 0.6s;
  width: 60px;
  height: 70px;
  position: relative;
  background-color: #231815;
  display: block;
  font-size: 0;
}
.l-footer__pagetop a::before {
  transition: 0.6s;
  content: " ";
  position: absolute;
  width: 30px;
  height: 20px;
  background: no-repeat right top url(./../images/common/icon__link--normal-w.svg);
  background-size: auto 100%;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -12px;
  transform: rotate(-90deg);
}
@media (hover: hover) and (pointer: fine) {
  .l-footer__pagetop a:hover {
    opacity: 0.88;
    background-color: #624c45;
  }
  .l-footer__pagetop a:hover::before {
    margin-top: -12px;
  }
}
.l-footer .l-footer-main,
.l-footer .l-footer-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.l-footer .l-footer-main {
  padding: 80px 5%;
}
.l-footer .l-footer-main__logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.l-footer .l-footer-main__logo .l-footer-main-logo {
  margin-right: 16px;
}
.l-footer .l-footer-main__logo .l-footer-main-sns {
  display: flex;
  flex-wrap: wrap;
}
.l-footer .l-footer-main__logo .l-footer-main-sns__item {
  background-color: #231815;
  border-radius: 50%;
  margin-right: 10px;
}
.l-footer .l-footer-main__link .l-footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.l-footer .l-footer-main__link .l-footer-links__item {
  font-size: 1.6rem / 1.6 * 10;
  font-weight: 700;
  padding-left: 1.8em;
  letter-spacing: 0;
}
.l-footer .l-footer-main__link .l-footer-sublinks {
  justify-content: flex-end;
  display: flex;
  flex-wrap: wrap;
}
.l-footer .l-footer-main__link .l-footer-sublinks__item {
  font-size: calc(1.35rem / 1.6 * 10);
  padding-left: 1.5em;
  font-weight: 500;
}
.l-footer .l-footer-sub {
  padding: 10px 5%;
  color: #fff;
  background-color: #231815;
}
.l-footer .l-footer-sub__link .l-footer-links {
  display: flex;
  flex-wrap: wrap;
}
.l-footer .l-footer-sub__link .l-footer-links__item {
  list-style: none;
  font-size: calc(1.3rem / 1.6);
  letter-spacing: 0.025em;
  font-weight: 400;
  padding-left: 1.5em;
}
.l-footer .l-footer-sub__link .l-footer-links__item a {
  color: #fff;
}
.l-footer .l-footer-sub__copy {
  font-size: calc(1.25rem / 1.6);
  color: #c4bbb8;
  letter-spacing: 0.2em;
}
@media screen and (width <= 1050px) {
  .l-footer__pagetop {
    display: block;
    position: relative;
  }
  .l-footer__pagetop a {
    width: 100%;
    height: 50px;
  }
  .l-footer__pagetop a::before {
    width: 20px;
    height: 14px;
    margin: -6px 0 0 -7px;
  }
  .l-footer .l-footer-main {
    padding: 5vw 5%;
    align-items: center;
  }
  .l-footer .l-footer-main__logo {
    display: block;
    margin-bottom: 0;
  }
  .l-footer .l-footer-main__logo .l-footer-main-logo {
    text-align: center;
    margin: 0 auto 4.5vw;
    width: 70%;
  }
  .l-footer .l-footer-main__logo .l-footer-main-sns {
    justify-content: center;
  }
  .l-footer .l-footer-main__logo .l-footer-main-sns__item {
    margin: 0 5px;
  }
  .l-footer .l-footer-main__link {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }
  .l-footer .l-footer-main__link .l-footer-links {
    display: block;
    margin-bottom: 0;
    padding-right: 2em;
  }
  .l-footer .l-footer-main__link .l-footer-links__item {
    font-size: calc(1.4rem / 1.6);
    font-weight: 700;
    padding-left: 0;
    letter-spacing: 0.02em;
    margin-bottom: 2vw;
  }
  .l-footer .l-footer-main__link .l-footer-sublinks {
    display: block;
  }
  .l-footer .l-footer-main__link .l-footer-sublinks__item {
    font-size: calc(1.28rem / 1.6);
    padding-left: 0;
    letter-spacing: 0;
    margin-bottom: 1.6vw;
  }
  .l-footer .l-footer-sub {
    padding: 6vw 2.5% 14vw;
  }
}
@media screen and (width <= 640px) {
  .l-footer .l-footer-main,
  .l-footer .l-footer-sub {
    display: block;
  }
  .l-footer .l-footer-main {
    padding: 10vw 6%;
  }
  .l-footer .l-footer-main__logo {
    display: block;
    margin-bottom: 6vw;
  }
  .l-footer .l-footer-main__logo .l-footer-main-logo {
    text-align: center;
    margin: 0 auto 4.5vw;
    width: 70%;
  }
  .l-footer .l-footer-main__logo .l-footer-main-sns {
    justify-content: center;
  }
  .l-footer .l-footer-main__logo .l-footer-main-sns__item {
    margin: 0 5px;
  }
  .l-footer .l-footer-main__link {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }
  .l-footer .l-footer-main__link .l-footer-links {
    display: block;
    margin-bottom: 0;
  }
  .l-footer .l-footer-main__link .l-footer-links__item {
    font-size: calc(1.4rem / 1.6);
    font-weight: 700;
    padding-left: 0;
    letter-spacing: 0.02em;
    margin-bottom: 2vw;
  }
  .l-footer .l-footer-main__link .l-footer-sublinks {
    display: block;
  }
  .l-footer .l-footer-main__link .l-footer-sublinks__item {
    font-size: calc(1.28rem / 1.6);
    padding-left: 0;
    letter-spacing: 0;
    margin-bottom: 1.6vw;
  }
  .l-footer .l-footer-sub {
    padding: 6vw 0;
  }
  .l-footer .l-footer-sub__link .l-footer-links {
    justify-content: center;
    margin-bottom: 6vw;
  }
  .l-footer .l-footer-sub__link .l-footer-links__item {
    font-size: calc(1.175rem / 1.6);
    letter-spacing: 0;
    padding: 0 0.5em;
  }
  .l-footer .l-footer-sub__copy {
    text-align: center;
    font-size: calc(1.22rem / 1.6);
    letter-spacing: 0.04em;
  }
}
