/* ↓↓↓↓↓共通↓↓↓↓↓ */
:root {
  /* カラー変数 */
  --blue-color: #004ba5;
  --blue-light: #2875d3;
  --blue-dark: #0e4990;
  --blue-medium: #2f80a6;
  --orange-color: #ef4803;
  --orange-gradient: #d76334;
  --bg-color-light: #fafaf2;
  --white: #fff;
  --gray-light: #d9d9d9;
  --gray-medium: #696969;
  --gray-dark: #3b2a1a;
  --gray-bg: #f5f5f5;
  --border-light: #d3d3d3;

  /* フォントサイズ */
  --font-xs: 0.875rem; /* 14px */
  --font-sm: 1rem; /* 16px */
  --font-md: 1.25rem; /* 20px */
  --font-lg: 1.5rem; /* 24px */
  --font-xl: 2rem; /* 32px */
  --font-2xl: 2.5rem; /* 40px */
  --font-3xl: 2.875rem; /* 46px */
  --font-4xl: 3.4375rem; /* 55px */
  --font-5xl: 5rem; /* 80px */
  --font-6xl: 5.625rem; /* 90px */
  --font-7xl: 6.25rem; /* 100px */

  /* スペーシング */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.25rem; /* 20px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 2.5rem; /* 40px */
  --spacing-3xl: 3.75rem; /* 60px */
  --spacing-4xl: 5rem; /* 80px */
  --spacing-5xl: 6.25rem; /* 100px */
  --spacing-6xl: 8.75rem; /* 140px */

  /* レイアウト */
  --container-padding-desktop: 12.5rem; /* 200px */
  --container-padding-mobile: 1.25rem; /* 20px */
  --border-radius: 0.625rem; /* 10px */
  --border-radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
}
.inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
/* 英文用のフォント設定 */
.en-font {
  font-family: "din-2014", sans-serif;
}

img {
  max-width: 100%;
}

/* ↓↓↓↓↓ヘッダー↓↓↓↓↓ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 23px;
  background-color: var(--white);
}

.header-left {
  display: flex;
  align-items: center;
}

.logo img {
  height: 37px;
}

.nav-links {
  display: flex;
  gap: 50px;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 0.7;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 37px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 10;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--blue-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: var(--white);
  padding: 80px 20px 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 5;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-links {
  flex-direction: column;
  gap: 20px;
}

.mobile-menu .contact-button {
  margin-top: 30px;
  display: inline-block;
  text-align: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.contact-button {
  background-color: var(--blue-color);
  color: var(--white);
  font-size: var(--font-sm);
  padding: 18px 48px;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.1em;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 768px) {
  /* ヘッダーここまで */

  /* ヘッダー */
  .header {
    justify-content: space-between;
    padding: 18px 15px;
  }

  .header-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .contact-button {
    display: none;
  }

  /* メインビジュアル */
  .main-visual {
    display: block;
    padding: 30px 10px;
  }

  .main-left {
    width: 100%;
  }

  .main-logo {
    width: 80%;
  }

  .main-txt {
    font-size: 1.25rem; /* 20px */
  }

  .futureshop-meister-pc {
    display: none;
  }

  .futureshop-meister-sp {
    display: block;
    width: 100px;
    margin-top: 25px;
  }
  .main-left .contact-button {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    width: 300px;
  }
}
/* ↓↓↓↓↓テンプレートトップ↓↓↓↓↓ */
.template-top {
  padding: 80px 0;
}
.template-title {
  font-size: 32px;
  font-weight: bold;
  color: #000;
  margin-bottom: 64px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.template-grid .template-card:nth-child(4) {
  grid-column: 1;
}

.template-card {
  background-color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.template-card:hover {
  opacity: 0.7;
}

.template-image {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--gray-bg);
}

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

.template-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 16px;
}

.template-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-content h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--gray-dark);
  margin: 0;
  line-height: 1.3;
}

.template-category {
  font-size: 11px;
  font-weight: bold;
  color: var(--white);
  padding: 5px 8px;
  line-height: 1;
  width: fit-content;
  background-color: var(--orange-color);
}

.template-arrow {
  color: var(--gray-medium);
  display: flex;
  align-items: center;
}

.template-card:hover .template-arrow {
  color: var(--gray-dark);
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .template-title {
    font-size: 18px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .template-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }

  .template-grid .template-card:nth-child(4) {
    grid-column: auto;
  }

  .template-card {
    max-width: 316px;
  }

  .template-content h3 {
    font-size: var(--font-sm);
  }

  .template-category {
    font-size: 10px;
    padding: 4px 8px;
  }

  h2 {
    font-size: var(--font-3xl);
    text-align: center;
  }

  .section-title {
    margin-bottom: var(--spacing-xl);
  }
}
/* テンプレートトップここまで */

.template-section {
  background-color: var(--bg-color-light);
}

.template-container {
  padding: 120px 0;
  border-bottom: 1px solid #cdcdcd;
}

.template-container:last-child {
  border-bottom: none;
}

.template-container .template-category {
  font-size: 16px;
  font-weight: bold;
  color: var(--white);
  padding: 9px 26.5px;
  line-height: 1;
  width: fit-content;
  background-color: var(--orange-color);
}

.template-container-title {
  display: flex;
  align-items: flex-start;
  gap: 120px;
}

.template-number {
  font-size: 100px;
  font-weight: bold;
  color: var(--blue-color);

  font-family: "din-2014", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.template-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-dark);
  font-weight: bold;
  letter-spacing: 4px;
}

/* 横スクロールギャラリー */
.template-gallery {
  margin-top: 60px;
  overflow: hidden;
  margin-right: calc(50% - 50vw);
}

.template-gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  align-items: end;
  padding-right: 200px;
}

.template-gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.template-gallery-scroll::-webkit-scrollbar-track {
  border-radius: 5px;
}

.template-gallery-scroll::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 5px;
}

.template-gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: #3b2a1a;
}

.template-gallery-item {
  flex-shrink: 0;
  width: 270px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
  max-height: 450px;
}

.template-gallery-item.sp-item {
  max-height: 380px;
}

.template-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-gallery-item:hover .template-gallery-overlay {
  opacity: 1;
}

.template-gallery-overlay-txt {
  font-size: 16px;
  color: var(--white);
  display: block;
}

.expand-button {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 8px 65px;
  font-size: 14px;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-item .expand-button {
  padding: 8px 20px;
}

.expand-button img {
  display: block;
  width: 20px !important;
  height: 20px !important;
}

.sp-item {
  width: 168px;
}

/* レスポンシブ - ギャラリー */
@media screen and (max-width: 768px) {
  .template-section {
    padding: 0 20px;
  }

  .template-container {
    padding: 64px 0;
  }

  .template-container-title {
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

  .template-number {
    font-size: 80px;
  }

  .template-info {
    gap: 16px;
  }

  .template-gallery {
    margin-top: 40px;
  }

  .template-gallery-scroll {
    padding-right: 20px;
  }

  .template-gallery-item {
    width: 240px;
  }

  .template-gallery-scroll {
    gap: 16px;
  }

  .template-desc {
    font-size: 14px;
    letter-spacing: 2px;
  }
}

/* モーダルスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-inner {
  position: relative;
  width: 100%;
  padding: 0 70px;
}

.modal-inner.sp-modal {
  max-width: 375px;
  width: 100%;
}

.modal-content {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 128px); /* 上下のpadding 64px × 2 = 128px */
  margin: auto;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -20px;
  right: 50px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.modal-close img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.modal-close:hover {
  background: var(--bg-color-light);
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: calc(100vh - 40px); /* 上下のpadding 20px × 2 = 40px */
  }

  .modal-close {
    top: -15px;
    right: 5px;
    width: 35px;
    height: 35px;
  }

  .modal-inner {
    padding: 0 15px;
  }

  .expand-button {
    padding: 10px 20px;
    font-size: 12px;
    gap: 6px;
  }

  .expand-icon {
    width: 14px;
    height: 14px;
  }
}

/* ↓↓↓↓↓ラスト↓↓↓↓↓ */
.last-section {
  background-color: var(--bg-color-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

.last-section img {
  width: 100%;
  max-width: 335px;
}

.last-section p {
  margin: var(--spacing-2xl) 0;
  font-weight: bold;
  font-size: 24px;
}

.contact-button-sp {
  background-color: var(--blue-color);
  color: var(--white);
  font-size: var(--font-sm);
  padding: 15px 48px;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

/* ここまで */

/* ↓↓↓↓↓フッター↓↓↓↓ */
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 112px;
  background-color: var(--blue-color);
  color: var(--white);
}
/* ここまで */

@media screen and (max-width: 768px) {
  /* ラスト */
  .last-section {
    text-align: center;
  }

  /* フッター */
  .footer {
    flex-direction: column;
    height: auto;
    padding: 30px var(--spacing-md);
    text-align: left;
    align-items: flex-start;
  }

  .footer .nav-links {
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}
