/* ===========================
   Top Header
=========================== */
.site-header{
  background: transparent;
}
.site-header .logo span {
  color: var(--white);
  border: 1px solid var(--white);
}
.site-header {
  background: transparent;
  transition: background 0.3s;
}
.site-header.scrolled {
  background: #fff;
}
.site-header.scrolled .main-nav li a {
  color: var(--MS_blue);
}
.site-header.scrolled .main-nav li.sub a::after {
  color: var(--MS_blue);
}
@media screen and (min-width: 1265px) {
  .main-nav li a {
    color: var(--white);
  transition: color 0.3s;
  }
  .main-nav li.sub a::after {
    content: '';
    background: none;
    display: inline-block;
    vertical-align: middle;
    color: var(--white);
    line-height: 1;
    width: 9px;
    height: 9px;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-25%) rotate(135deg);
    opacity: 0.5;
  }
}
/* ===========================
   Hero Section
=========================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}/*
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 600px;
}*/
.video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 600px;
}
.hero .video video.video-pc {
    display: none;
}
.hero .video video.video-sp {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 600;
    object-fit: cover;
    margin: 0 auto;
    max-height: 600px;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  width: 100%;
}
.hero-title {
  font-size: 47px;
  margin-bottom: 20px;
  font-family: "Shippori Mincho", serif;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  font-weight: 400;
  font-style: normal;
}
.hero-subtitle {
  font-size: 12px;
  line-height: 1.8;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}
@media (min-width: 834px) {
  .hero .video video.video-sp{
    display: none;
  }
  .hero .video video.video-pc {
    display: block;
    width: 100%;
    min-height: 800px;
    height: auto;
    aspect-ratio: 1440 / 800;
    object-fit: cover;
    margin: 0 auto;
  }
  /* Keep desktop hero videos within the viewport on both TOP pages. */
  .top-main > .hero .video video.video-pc,
  .contact-main > .hero .video video.video-pc {
    min-height: 0;
    max-height: none; /* A single responsive video also carries the mobile class. */
    height: min(55.555556vw, 80vh);
    height: min(55.555556vw, 80svh);
    object-position: 50% 35%;
  }
  .hero-title {
    font-size: 60px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 84px;
    white-space: nowrap;
  }
  .hero-content {
    margin-top: 0;
  }
}
/* Keep hero copy below the header and inside short desktop viewports.
   The spacer preserves the 50% start position, shrinking only when needed. */
@media (min-width: 834px) {
  .top-main > .hero .hero-content,
  .contact-main > .hero .hero-content {
    top: 0;
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 24px;
  }
  .top-main > .hero .hero-content::before,
  .contact-main > .hero .hero-content::before {
    content: "";
    flex: 0 1 calc(50% + 12px);
    min-height: 72px;
  }
  .top-main > .hero .hero-content > *,
  .contact-main > .hero .hero-content > * {
    flex-shrink: 0;
  }
  .top-main > .hero .hero-content br.sp,
  .contact-main > .hero .hero-content br.sp {
    display: none;
  }
}
@media (min-width: 1024px) {
  .top-main > .hero .hero-title,
  .contact-main > .hero .hero-title {
    font-size: min(84px, 7.4vw);
  }
}
@media (min-width: 834px) and (max-height: 480px) {
  .top-main > .hero .hero-title,
  .contact-main > .hero .hero-title {
    font-size: clamp(32px, 10vh, 60px);
    font-size: clamp(32px, 10svh, 60px);
    margin-bottom: 12px;
  }
  .top-main > .hero .hero-subtitle,
  .contact-main > .hero .hero-subtitle {
    font-size: clamp(14px, 4vh, 20px);
    font-size: clamp(14px, 4svh, 20px);
  }
}
/* ===========================
   Top Page: Lens Section
=========================== */
.lens-section {
  padding: 10px 0 40px;
  text-align: center;
}
.lens-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}
.lens-subcatch {
  font-size: 16px;
  color: var(--gold900);
  font-family: serif;
  margin-bottom: 30px;
}
.lens-cards {
  display: flex;
  margin-bottom: 30px;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}
.lens-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid #ddd;
  text-align: center;
  align-items: center;
}
.lens-card img {
  width: 100px;
  height: auto;
  margin-right: 10px;
}
.lens-card .lens-card-text{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}
.lens-text {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
}
.lens-text::after {
  content: "";
  width: 18px;
  height: 10px;
  background: url(../images/icon_arrow_down_gold.svg) no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -15px;
  left: 50%;
  margin-left: -9px;
  display: block;
}
.lens-link {
  display: inline-block;
  background: #F2F9FF;
  color: var(--white);
  padding: 5px 15px;
  border-radius: 70px;
  font-size: 16px;
  color: var(--MS_blue);
  font-weight: bold;
}
.lens-view-more {
  margin-top: 20px;
}
@media (min-width: 834px) {
  .lens-section {
    padding: 60px 20px;
  }
  .lens-subcatch{
    font-size: 24px;
  }
  .lens-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
  }
  .lens-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    flex-direction: column;
  }
  .lens-card img{
    width: 135px;
    margin: 0 0 10px 0;
  }
  .lens-text,
  .lens-link{
    font-size: 18px;
  }
}
/* Lens cards: 4 in one row on wider PC (after 890px) */
@media (min-width: 1240px) {
  .lens-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ===========================
   Contact Problems Section - top and contact top
=========================== */
.contact-problems {
  padding: 40px 20px;
  text-align: center;
}
.title_g_serif {
  font-size: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  color: var(--gold900);
  font-family: "Shippori Mincho", serif;
}
.title_g_serif span.title_serif {
  display: block;
  font-size: 16px;
  margin-top: 5px;
}
.contact-problems .problems-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-problems .problem-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray200);
}
.contact-problems .problem-card img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-problems .problem-card-body {
  position: relative;
  padding: 10px 20px 20px;
  text-align: center;
}
/* Upside-down triangle ▽ 18×10px at bottom center (--wood300) */
.contact-problems .problem-card-body::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 9px 0 9px;
  border-color: var(--wood300) transparent transparent transparent;
  pointer-events: none;
}/*
.contact-problems .problem-card-body::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gray200);
  margin-top: 10px;
  margin-bottom: 10px;
}*/
#top .contact-problems .problem-card-body::before,
#top .contact-problems .problem-card-body::after{
  display: none;
}
.contact-problems .problem-title {
  font-size: 20px;
  color: var(--MS_blue, #0078C3);
  font-weight: bold;
}
.contact-problems .problem-desc {
  font-size: 14px;
  color: var(--gray600);
  font-weight: 600;
  margin: 15px 0;
  line-height: 1.6;
  text-align: left;
}
.contact-problems .problem-card-content {
  text-align: left;
  background-color: var(--blue000);
}
.contact-problems .content-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--blue500);
  margin: 0 0 10px;
  padding: 20px 20px 0 20px;
}
.contact-problems .problem-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--MS_blue);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  color: var(--MS_blue);
  cursor: pointer;
  margin: 0 auto 10px;
}
.contact-problems .problem-toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -3px;
}
.contact-problems .problem-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.contact-problems .problem-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.contact-problems .problem-card.is-open .problem-expand {
  max-height: 500px;
}
.contact-problems .problem-card.is-open .problem-toggle {
  display: none;
}
.contact-problems .content-text {
  font-size: 14px;
  color: var(--blue800);
  line-height: 1.7;
  margin: 0 0 15px;
  padding: 0 20px 20px 20px;
}
.contact-problems .problem-solutions {
  background: var(--gold100);
  padding: 15px;
  border-radius: 4px;
  text-align: left;
}
.contact-problems .solutions-title {
  display: inline-block;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  color: var(--white);
  background: var(--gold500);
  padding: 3px 12px;
  margin: 0 0 10px;
}
.contact-problems .problem-solutions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.contact-problems .problem-solutions li {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold800);
  padding: 5px 0 5px 15px;
  position: relative;
}
.contact-problems .problem-solutions li::before {
  content: '・';
  position: absolute;
  left: 0;
}
.contact-problems .problems-note {
  font-size: 14px;
  margin: 20px 0;
  color: #666;
}

/* Desktop */
@media (min-width: 834px) {
  .contact-problems {
    padding: 60px 20px;
  }
  .title_g_serif {
    font-size: 20px;
  }
  .title_g_serif span.title_serif {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 32px;
  }
  .contact-problems .problems-cards {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    align-items: stretch;
  }
  .contact-problems .problem-card {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
  }
  .contact-problems .problem-card img {
    flex-shrink: 0;
  }
  .contact-problems .problem-card-body {
    flex-shrink: 0;
  }
  .contact-problems .problem-card-body::after {
    display: none;
  }
  .contact-problems .problem-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 220px;
  }
  .contact-problems .problem-expand {
    flex: 1 1 auto;
    max-height: none;
    overflow: visible;
  }
  .contact-problems .problem-solutions {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .contact-problems .problem-title {
    font-size: 24px;
  }
  .contact-problems .content-text {
    min-height: 115px;
  }
  .contact-problems .problem-desc {
    font-size: 18px;
    min-height: 57px;
  }
  .contact-problems .content-title {
    font-size: 18px;
    text-align: left;
    margin-bottom: 15px;
    min-height: 80px;
    line-height: 1.3;
  }
  .contact-problems .problem-toggle {
    display: none;
  }
}


/* ===========================
   Store Consultation CTA
=========================== */
.store-consultation {
  background: #F8F2ED;
  padding: 40px 20px;
  margin-bottom: 60px;
  text-align: center;
  color: var(--white);
}
.pic {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}
.store-consultation .pic img {
    width: 140px;
    height: auto;
    border-radius: 50%;
}
.store-consultation .title_serif{
  line-height: 1.3;
}
.store-consultation .consultation-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: left;
}
.subscription-banner .subscription-off {
  font-size: 36px;
}
.store-consultation .consultation-buttons {
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 834px) {
  .store-consultation .container{
    display: flex;
    justify-content: center;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
  }
  .store-consultation .pic img {
      width: 203px;
  }
  .store-consultation .sp {
    display: block;
  }
  .store-consultation .consultation-text {
    text-align: center;
  }
}
@media (min-width: 1024px) {
  .store-consultation .sp {
    display: none;
  }
  .store-consultation .consultation-text {
    text-align: left;
}
}

/* ===========================
   Commitment Section
=========================== */
.commitment {
  background: #F8F2ED;
  text-align: center;
  padding: 60px 0 30px;
  border-top: 1px solid #000;
}
.commitment .title_serif {
  font-size: 24px;
  margin-bottom: 40px;
}
.commitment .commitment-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}
.commitment .commitment-card {
  background-color: #000;
  padding: 20px;
  width: 100%;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 3 / 2;
}
.commitment .commitment-card:first-child {
  background-image: url(../images/top-commitment-01b.webp);
}
.commitment .commitment-card:nth-child(2) {
  background-image: url(../images/top-commitment-02b.webp);
}
.commitment .commitment-card:last-child {
  background-image: url(../images/top-commitment-03b.webp);
}
.commitment .commitment-card :is(h3:where(:not([data-ms-h])), :where([data-ms-h="3"])).title_serif {
  margin-bottom: 20px;
  color: var(--white);
}
.commitment .commitment-card p {
  font-size: 14px;
  color: var(--white);
  line-height: 1.6;
}
@media (min-width: 834px) {
  .commitment .commitment-cards {
    flex-direction: row;
    width: 100%;
    align-items: stretch;
  }
  .commitment .commitment-card {
    width: calc(100% / 3);
  aspect-ratio: 4 / 3;
  }
}
/* sesrvice */
.service .ejh2 .jp{
  margin-bottom: 0;
}

/* eyecare-contents */
#top .eyecare-contents .lead {
  display: none;
}
@media (min-width: 834px) {
  #top .eyecare-contents .container {
    max-width: 1028px;
  }
  #top .eyecare-contents .lead {
    display: block;
    font-size: 15px;
  }
}
/* INDEX */
.index {
  margin-top: 40px;
  text-align: center;
}
.index-cards {
  display: grid;
  text-align: left;
  margin: 30px auto;
  border-top: 1px solid #ddd;
}
.index-card {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  display: flex;
  gap: 20px;
}
.index-card .index-card-thumb {
  display: block;
  flex-shrink: 0;
}
.index-card .index-card-thumb img,
.index-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.index-card .index-card-text{
  display: flex;
  align-items: center;
}
.index-card .index-card-text :is(h3:where(:not([data-ms-h])), :where([data-ms-h="3"])) {
  font-size: 16px;
  font-weight: normal;
}
.index-card .index-card-text p {
  display: none;
}
@media (min-width: 834px) {
  .index-card{
    padding: 20px 0;
  }
  .index-cards {
    grid-template-columns: repeat(auto-fit, minmax(498px, 1fr));
    text-align: left;
    margin: 30px auto;
    border-top: none;
    gap: 0 20px;
  }
  .index-card .index-card-thumb img,
  .index-card img {
    width: 120px;
    height: 120px;
  }
  .index-card .index-card-text :is(h3:where(:not([data-ms-h])), :where([data-ms-h="3"])) {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .index-card .index-card-text{
    flex-direction: column;
        align-items: flex-start;
  }
  .index-card .index-card-text p {
    display: block;
    font-size: 15px;
    margin-bottom: 30px;
    color: #454545;
  }
}

/* ===========================
   Product Box Slider
=========================== */
.prod_box_list {
  display: none;
}
.prod_box_list.active {
  display: block;
}
.prod_box_list.slick-initialized.active {
  display: block;
}
/* Ensure slides are always visible */
.prod_box_list .slick-slide {
  visibility: visible !important;
  opacity: 1 !important;
}
/* Prevent stretching when fewer items */
.prod_box_list.slick-initialized .slick-track {
  margin-left: 0;
}
/* Mobile first - card styles */
.prod_box_card {
  margin: 0 8px;
  box-sizing: border-box;
}
.prod_box_card .product_image {
  margin: 0 auto;
}
.prod_box_card .product_image img {
  width: 100%;
  height: auto;
	border:1px solid var(--gray100);
}
.prod_box_card .product_colors {
  min-height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.prod_box_list.slick-initialized {
  overflow: visible !important;  /* overflow:scroll/auto を無効化 */
}
/* ついでに display:flex 強制も解除（Slickに任せる） */
#top .prod_box_list.active {
  display: block !important;     /* flex をやめる */
  min-width: 0 !important;       /* fit-content をやめる */
}
/* 次のカードを少し見せたい場合 */
.prod_box_list.slick-initialized .slick-list {
  overflow: visible;             /* hidden だとチラ見せできない */
}
/* ただしクリック領域などが崩れる場合は padding で調整 */
.prod_box_list.slick-initialized .slick-list {
  padding-right: 40px;           /* 例：右に余白を作ってチラ見せ */
}
/* 横スワイプはSlickに任せ、縦スクロールは許可 */
.prod_box_list.slick-initialized .slick-list {
  touch-action: pan-y;
}

/* Desktop */
@media (min-width: 834px) {
  .prod_box_card {
    width: 286px;
	    margin: 0 16px;
  }
  .prod_box_card .product_image {
    max-width: 100%;
  }
}
@media (min-width: 1240px) {
  .prod_box_container{
    max-width: 1240px;
    margin: 0px auto !important;
  }
  .prod_box_list{
    padding: 0 0 20px;
  }
  .prod_box_card:first-child{
    margin-left: 0;
    padding-left: 0;
  }
  /* 右端に余白を作る（PCで効果を出す） */
  #top .prod_box_list.slick-initialized .slick-list{
    padding-right: 40px; /* ここを 24〜64pxで調整 */
    overflow: visible;   /* チラ見せしたい場合 */
  }
}
/* ===========================
   Contact 
=========================== */
@media (min-width: 834px) {
	#contact .contact-problems .problems-cards{
		gap: 20px;
	}
	#contact .contact-problems .content-text{
		min-height: 162px;
	}
#contact .contact-problems .problem-card-body{
	min-height: 12.5rem;
	}
#contact .recommend-cards{
	    gap: 20px;
}
}
@media (min-width: 960px) {
#contact .contact-problems .problem-card-body {
    min-height: 10rem;
  }
	#contact .contact-problems .content-text{
		min-height: 138px;
	}
}
@media (min-width: 1160px) {
	#contact .contact-problems .problems-cards{
		gap: 40px;
	}
	#contact .contact-problems .content-text{
		min-height: 115px;
	}
#contact .recommend-cards{
	    gap: 40px;
}
}
/* Contact Slider - Mobile First */
.contact-slider {
  margin: 20px auto 50px;
}
.contact-slider .slick-slide {
  margin: 0 5px;
}
.contact-slider .slick-slide img {
  width: 100%;
  height: auto;
}
.contact-slider .slick-dots {
  display: block !important;
  bottom: -35px;
}
@media (min-width: 834px) {
  .contact-slider {
    margin: 30px auto 60px;
    overflow: visible;
  }
  .contact-slider .slick-slide {
    margin: 0 10px;
  }
}
/* Contact Submenu */
.contact-submenu .submenu{
  background: #F9F9F9;
  margin-top: 0;
  margin-bottom: 60px;
}
.contact-submenu .submenu .submenu-title{
  display: none;
}
/* Contact Section */
.contact-article {
  display: flex;
  flex-direction: column;
}
.contact-article .prod_box_section{
  padding: 0;
}
.contact-section-2 .store-consultation{
  margin-bottom: 0;
}
/* Contact FAQ */
#contact #glasses{
  margin-top: 0;
}
@media (min-width: 834px) {
  .contact-article {
    flex-direction: column-reverse;
  }
  .contact-section-2{
    margin-top: 60px;
  }
  /* Contact TOP: keep the ranking-to-problems gap compact. */
  .contact-main > article.contact-article > .contact-section-2 {
    margin-top: 20px;
  }
  .contact-section-2 .contact-problems .container{
    max-width: 1158px;
    padding: 0 16px;
    margin: 0 auto;
  }
  .contact-section-2 .contact-problems .problem-card{
    width: 345px;
  }
  #contact #glasses .faq-boxes{
    margin: 20px auto 48px;
  }
}

/* Contact Recommend Section */
.contact-recommend-section {
  padding: 40px 0;
}
.recommend-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.recommend-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold200);
  color: var(--gold800);
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.3;
}
.discount-label {
  display: block;
  font-size: 10px;
  font-weight: bold;
}
.discount-percent {
  display: block;
  font-size: 23px;
  font-weight: bold;
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
}
.discount-percent small {
  font-size: 12px;
}
.discount-note {
  display: block;
  font-size: 8px;
  margin-top: 2px;
  color: var(gray600);
}
.recommend-card-image {
  text-align: center;
}
.recommend-card-image img {
  max-width: 100%;
  height: auto;
}
.recommend-card-name {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 15px 0;
}
.recommend-points {
  overflow: hidden;
  font-size: 14px;
}
.recommend-points-title {
  background: #F2F9FF;
  border-radius: 50px;
  color: var(--blue500);
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: bold;
  margin: 0 16px;
}
.recommend-points-list {
  list-style: none;
  padding: 15px;
  margin: 0;
}
.recommend-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: left;
}
.recommend-points-list li:last-child {
  margin-bottom: 0;
}
.recommend-points-list .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--MS_blue);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}
.sp-none{
  display: none;
}
@media (min-width: 834px) {
  .recommend-cards {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }
  .recommend-card {
    flex: 1;
    max-width: 340px;
  }
  .sp-none{
    display: block;
  }
}

/* Purchase Flow Section */
.purchase-flow {
  background: var(--wood100);
  margin-top: 60px;
  padding: 48px 0 0;
}
.purchase-flow .container{
  margin-bottom: 30px;
}
.purchase-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.purchase-step {
  background: #fff;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-number {
  display: block;
  font-size: 24px;
  font-family: "Shippori Mincho", serif;
  color: var(--gray600);
  line-height: 1;
  font-weight: bold;
}
.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.step-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--MS_blue);
  line-height: 1;
    margin-bottom: 10px;
}
.step-description {
  font-size: 13px;
  color: var(--gray600);
  line-height: 1.6;
  text-align: left;
}
.step-btn {
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--white);
  font-size: 18px;
  background: var(--MS_blue);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex: 1 1 100%;
  box-sizing: border-box;
  text-align: center;
}
.step-btn:hover {
  background: #2d6a9f;
}
.step-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
.step-arrow {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid var(--wood300);
}

@media (min-width: 834px) {
  .purchase-flow {
    padding: 60px 0;
  }
  .purchase-flow .ejh2 .en {
    font-size: 36px;
  }
  .purchase-flow .ejh2 .jp {
    font-size: 16px;
  }
  .purchase-flow-steps {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0 12px;
  }
  .purchase-step {
    flex: 1;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
  }
  .purchase-step .step-description {
    flex: 1;
  }
  .step-arrow {
    display: flex;
    align-items: center;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 18px solid var(--wood300);
    border-right: none;
    margin: 0 5px;
    align-self: center;
  }
  .step-title{
    font-size: 20px;
    margin: 0 auto 10px;
  }
  .step-description{
    font-size: 14px;
  }
  .step-btn{
    flex: 1;
    width: 100%;
    display: flex;
    gap: 10px;
  }
  .purchase-flow .banner .container{
    margin: 20px auto;
  }
  .purchase-flow .banner.subscription{
    margin-bottom: 0;
    max-height: 460px;
    background-image: linear-gradient(180deg, #462809, #7A634A);
  }
  .purchase-flow .banner.subscription .contact-display {
    display: block;
  }
  .purchase-flow .banner.subscription .contact-display p{
    font-size: 14px;
  }
  .purchase-flow .banner.subscription .contact-display .subscription-note-title{
    font-size: 14px;
    color: var(--gray050);
    background: var(--gold900);
    border: 1px solid var(--gray050);
    border-radius: 0;
    width: 100%;
    max-width: 560px;
    padding: 3px;
    margin: 20px auto;
    text-align: center;
  }
}

/* ===========================
   コンタクトトップ：Figma準拠の修正（2026-09-07 上野）
   Figma: NWS999NGNoQI05qQcUWnU9 ／ PC 1003:11424 ・ SP 5957:23867
   Box指摘 p2・p5・p9・p10・p11 に対応。いずれもコンタクトページ限定のセレクタ。
=========================== */

/* --- p2: サブメニュー直下〜「Campaign」の間隔をFigmaに合わせる ---
   Figma PC: サブメニュー下端 813 → Campaign 856（余白 43px）
   Figma SP: サブメニュー下端 730 → Campaign 750（余白 23px）
   .gold は 36px / line-height 64.8px で上に 14.4px の余白が入るため、その分を引いた値。 */
@media screen and (min-width: 834px) {
  .contact-submenu .submenu { margin-bottom: 29px; }
}
@media screen and (max-width: 833px) {
  .contact-submenu .submenu { margin-bottom: 9px; }
}

/* --- p9: SPのサブメニューを横スクロールから2列グリッドへ ---
   Figma SP 5957:22996（375×129 ／ セル 187×43 ／ 枠線 #DEDEDE ／ 文字は左12pxインデント） */
@media screen and (max-width: 833px) {
  .contact-submenu .submenu { background: #FCFCFC; }
  .contact-submenu .submenu--contact .submenu-scroll { overflow: visible; }
  .contact-submenu .submenu--contact .submenu-scroll ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #DEDEDE;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul li {
    border-top: 1px solid #DEDEDE;
    border-right: 1px solid #DEDEDE;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul li:nth-child(2n) {
    border-right: none;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul li a {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 24px;
    color: #333333;
    border-bottom: none;
  }
}

/* --- p10: SPではお悩みカードの補足文を出さない ---
   Figma PC（1003:11503）にはあるが、SP には無い */
@media screen and (max-width: 833px) {
  .contact-problems .problem-desc { display: none; }
}

/* --- 「定期便について詳しく見る」1行化（PPTの p12）→ 対応不要（2026-09-07 上野さん判断）
   実測でも 320px 幅で1行に収まっており（w232 / h45 / 1行）、折り返しは起きていない。 --- */

/* --- p5: 「店頭価格より」より 50%OFF を目立たせる ---
   Figma 1003:11597: 店頭価格より 10px/700 #856220 ／ 50%OFF #C30000 ／ （定期便加入時）#666666
   ※ 既存の .discount-note は color: var(gray600) と書かれており（--が抜けている）無効。 */
.discount-badge { padding: 8px; }
.discount-percent {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  color: #C30000;
  white-space: nowrap;
}
.discount-percent small {
  font-size: 13px;
  font-weight: 700;
}
.discount-note {
  color: var(--gray600);
}


/* ===========================
   コンタクトトップ：p6・p7 対応（2026-09-07 上野）
=========================== */

/* --- p6: ご購入の流れの下に「はじめてコンタクトレンズを使用する場合はこちら」 ---
   Figma 27552:79976（478×41 ／ #006EB2 ／ radius110 ／ Noto Sans JP 700 17px ／ 白矢印7×12）
   既存の .btn-view-all が同じ部品（色・矢印・17px が一致）なので流用し、幅と太さだけ合わせる。 */
.purchase-flow .flow-beginner {
  margin-top: 16px;
  text-align: center;
}
.purchase-flow .flow-beginner .btn-view-all {
  max-width: 478px;
  font-weight: 700;
}
@media screen and (min-width: 834px) {
  /* common.css 1608行の @media(min-width:834px) が .btn-view-all に width:385px を当てているため上書き */
  .purchase-flow .flow-beginner .btn-view-all { width: 478px; }
}

/* --- p7: 定期便バナーのフォント統一 ---
   Figma 1003:11737 配下と突き合わせたところ、「コンタクト初回購入分」だけ Noto Sans JP 400 25px で、
   周囲の Shippori Mincho と揃っていなかった。あわせて太さと文字色もFigmaに合わせる。
   文言も PPT「CL TOPページ修正点」p7 の指示どおり Figma 1003:11740 の文面へ変更済み（2026-09-07）。
   ※ inc/banner-subscription.php は front-page.php とも共用（TOPにも反映。上野さん承認済み）。 */
.banner.subscription .title_serif {
  font-weight: 600;
}
.banner.subscription .contact-display p {
  font-weight: 500;
  color: #EDEDED;
}
/* common.css 2021行・2036行が .subscription-box を含む3クラスで font-size / font-weight を
   指定しているため、こちらも .subscription-box を挟んで同じ詳細度にする（top.css が後読みで勝つ）。 */
.banner.subscription .subscription-box .subscription-first {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.11;
  color: #FFFBE6;
}
.banner.subscription .subscription-box .subscription-off,
.banner.subscription .subscription-box .subscription-off em {
  font-weight: 600;
}
.banner.subscription .subscription-note {
  color: #EDEDED;
}


/* ===========================
   TOP：PPT「総合TOP」対応（2026-09-07 上野）
   Figma: NWS999NGNoQI05qQcUWnU9 ／ PC 1062:4040 ・ SP 1074:7695
=========================== */

/* --- p2 / p11: ヒーロー説明文（白い服に重なって読みにくい）---
   p2(PC)「2周りくらい大きく」＋「もう少し影を入れて」／ p11(SP)「太く」＋「影」
   .hero-subtitle はコンタクトTOPも同じクラスなので、PPTの「※コンタクトTOPも同様」を同時に満たす。 */
.hero-subtitle {
  font-weight: 600;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6);
}
@media screen and (min-width: 834px) {
  .hero-subtitle { font-size: 20px; }
}

/* --- p7: 「コンタクトについて詳しく見る」ボタン（見出し直下）--- */
.prod_box_section.contact .contact-more {
  margin-top: 24px;
  text-align: center;
}

/* --- p13: ハンバーガーを開いている間は下部の追従バーを消す --- */
body:has(.main-nav.open) .fixed-bottom-box {
  display: none;
}

@media screen and (max-width: 833px) {
  /* --- p12: 「こんなお悩みありませんか？」を上と離して大きく（PC版は24px）--- */
  .lens-subcatch {
    margin-top: 28px;
    font-size: 20px;
    font-weight: 600;
  }

  /* --- p14-1 / p15: 「現在コンタクトレンズをお使いの方、〜」「あなたのコンタクトレンズのお悩み解決します。」
     いずれも .title_g_serif。TOPのみに効かせるため body.home で絞る。 --- */
  body.home .title_g_serif { font-size: 16px; }
  body.home .title_g_serif span.title_serif { font-size: 22px; }

  /* --- p14-2: 写真は1枚だけにして、乾燥する・ゴロゴロする・疲れる を1行に ---
     .problem-card を display:contents にして、中の img と body を直接グリッドに並べる。
     カードの見た目（背景・角丸）は .problem-card-body 側へ移す。 */
  body.home .contact-problems .problems-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  body.home .contact-problems .problem-card {
    display: contents;
  }
  body.home .contact-problems .problem-card img {
    display: none;
  }
  body.home .contact-problems .problem-card:first-child img {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 4px;
  }
  body.home .contact-problems .problem-card-body {
    background: var(--white);
    border-radius: 8px;
    padding: 12px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  body.home .contact-problems .problem-title {
    font-size: 16px;
    line-height: 1.3;
  }
}


/* --- TOPのサブメニュー（PPT p2）: ヒーロー直下に置くため上下の余白を打ち消す ---
   .submenu の既定は margin-top:50px（1200px以上で110px）で、ヒーローとの間が空いてしまう。 */
.glasses-submenu .submenu {
  margin-top: 0;
  margin-bottom: 0;
  background: #F9F9F9;
}


/* --- 緊急のお知らせバー（PPT外・サイトマップ3行目「8/20 TOPに緊急のお知らせをみせたい」）---
   Figma PC 27552:81207（1440x46 / #FFFBE6 / 16px / 文字 #4E341B / 矢印 #856220）
        SP 27552:81211（375x60 / 14px）
   出し分けは inc/emergency-notice.php（TOPページのカスタムフィールドでお知らせを1件選ぶ）。
   日付＋カテゴリー（__meta）は太字、記事タイトル（__title）は通常。Figmaの2倍書き出しで確認済み。
   2026-09-08 上野: 投稿選択方式への変更にあわせて __meta / __title を追加。 */
.emergency-notice {
  background: #FFFBE6;
}
.emergency-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  min-height: 60px;
  margin: 0;
  padding: 8px 20px;
  color: #4E341B;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}
.emergency-notice__meta {
  font-weight: 700;
  white-space: nowrap;
}
.emergency-notice__title {
  font-weight: 400;
}
a.emergency-notice__inner::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-top: 2px solid #856220;
  border-right: 2px solid #856220;
  transform: rotate(45deg);
}
a.emergency-notice__inner:hover .emergency-notice__title {
  text-decoration: underline;
}
@media screen and (min-width: 834px) {
  .emergency-notice__inner {
    flex-wrap: nowrap;
    min-height: 46px;
    font-size: 16px;
    line-height: 22px;
  }
  .emergency-notice__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 2026-09-08: トップ B306 / 総合TOP P7：詳細ボタンをキャッチコピー直下に配置 */
body.home .prod_box_section.contact > .container:first-child {
  display: flex;
  flex-direction: column;
}
body.home .prod_box_section.contact > .container:first-child > .title_line {
  width: 100%;
  order: 1;
  margin-top: 40px;
}

/* 2026-09-08: Contact B239 / Figma SP 5957:22996 (43px rows). */
@media screen and (max-width: 833px) {
  .contact-submenu .submenu {
    border-bottom: 0;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(43px, auto);
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 #DEDEDE;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul li {
    min-width: 0;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul li a {
    height: 100%;
    min-height: 0;
    font-weight: 400;
  }
}

/* Keep the six Contact TOP links within narrow desktop viewports. */
@media screen and (min-width: 834px) and (max-width: 1139px) {
  .contact-submenu .submenu--contact .submenu-scroll ul {
    gap: 8px;
  }
  .contact-submenu .submenu--contact .submenu-scroll ul li a {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* 2026-09-08: SP emergency notice wrapping. Contact TOP now has six real navigation cells. */
@media screen and (max-width: 833px) {
  body.home .emergency-notice__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    text-align: left;
  }
  body.home .emergency-notice__meta {
    grid-column: 1;
    grid-row: 1;
  }
  body.home .emergency-notice__title {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow-wrap: break-word;
  }
  body.home a.emergency-notice__inner::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-left: 0;
    margin-right: 3px;
    align-self: center;
  }
}

/* 2026-09-09: Home SP navigation matches the Contact TOP grid. */
@media screen and (max-width: 833px) {
  body.home .glasses-submenu .submenu {
    background: #FCFCFC;
    border-bottom: 0;
  }
  body.home .glasses-submenu .submenu .submenu-title {
    display: none;
  }
  body.home .glasses-submenu .submenu-box ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(43px, auto);
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    box-shadow: inset 0 -1px 0 #DEDEDE;
  }
  body.home .glasses-submenu .submenu-box ul li {
    min-width: 0;
    border-top: 1px solid #DEDEDE;
    border-right: 1px solid #DEDEDE;
  }
  body.home .glasses-submenu .submenu-box ul li:nth-child(2n) {
    border-right: 0;
  }
  body.home .glasses-submenu .submenu-box ul li a {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 0;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    color: #333333;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
}


/* Contact knowledge entry: scoped to the contact landing page. */
.contact-knowledge-entry { padding: 48px 0; background: #f5faff; }
.contact-knowledge-entry > .container { box-sizing: border-box; padding-left: 16px; padding-right: 16px; }
.contact-knowledge-entry .ejh2 { text-align: center; margin-bottom: 28px; }
.contact-knowledge-entry__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-knowledge-entry__card { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #fff; border: 1px solid #d4e5ef; border-radius: 8px; min-width: 0; }
.contact-knowledge-entry__card h3 { margin: 0; color: #006fae; font-size: 20px; line-height: 1.6; }
.contact-knowledge-entry__card p { margin: 0; font-size: 16px; line-height: 1.8; }
.contact-knowledge-entry__card .btn-view-all-blue { box-sizing: border-box; width: 100%; max-width: 100%; margin: auto 0 0; padding: 14px 34px 14px 18px; font-size: 16px; white-space: normal; }
@media (max-width: 833px) {
  .contact-knowledge-entry { padding: 36px 0; }
  .contact-knowledge-entry__cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-knowledge-entry__card { padding: 22px 18px; }
  .contact-knowledge-entry__card h3 { font-size: 18px; }
}
