/* styles.css */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

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

/* Global Header */
.global-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.logo {
  width: 110px;
  height: 32px;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.main-nav a:hover {
  color: #008dde;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.header-icons {
  display: flex;
  gap: 16px;
}

.link-text {
  white-space: nowrap;
}

.link-blue {
  color: #008dde;
}

.divider {
  color: #ddd;
}

/* Key Visual */
.kv-section {
  position: relative;
  height: 307px;
  overflow: hidden;
}

.kv-background {
  width: 100%;
  height: 100%;
  background: url(https://www.img-ikyu.com/contents/special-cms/coupon-usage/img/bg_pc.jpg?auto=compress,format&fit=crop&lossless=0&w=1512&h=470&q=75) no-repeat center top;
  background-size: cover;
}

.kv-overlay {
  position: absolute;
  inset: 0;
  background: #fbfbfb;
  opacity: 0.1;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

.kv-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.kv-badge {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(90deg, #1a4473 0%, #3180d9 100%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 999px;
  margin-bottom: 20px;
}

.kv-title {
  font-size: 46px;
  font-weight: bold;
  color: #1a4473;
  margin-bottom: 16px;
}

.kv-subtitle {
  font-size: 20px;
  font-weight: bold;
  color: #1a4473;
}

/* Main Content */
.main-content {
  background-color: #fff;
  padding: 40px 20px;
  width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Info Section */
.info-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 16px;
}

.section-description {
  font-size: 14px;
  line-height: 1.6;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  background-color: #f7f7f7;
  margin-bottom: 40px;
}

.tab-navigation .sp {
  display: none;
}

.tab-button {
  flex: 1;
  padding: 24px 32px;
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
}

.tab-button:hover {
  background-color: #f0f0f0;
}

.tab-button.active {
  border-bottom-color: #008dde;
  font-weight: bold;
}

/* Content Area */
.content-area {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  padding: 32px;
  margin-bottom: 40px;
}

.content-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 40px;
}

/* Step Section */
.step-section {
  margin-bottom: 40px;
}

.step-section:last-child {
  margin-bottom: 0;
}

.step-text {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.step-text:not(:has(.step-title)) {
  align-items: center;
}

.step-badge {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border: 1px solid #008dde;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-label {
  font-size: 12px;
  color: #008dde;
}

.step-number {
  font-size: 18px;
  font-weight: bold;
  color: #008dde;
}

.step-description {
  flex: 1;
}

.step-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.step-detail {
  font-size: 14px;
  line-height: 1.6;
}

/* Step Images */
.step-images {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  padding-top: 12px;
}

.step-images.single {
  justify-content: center;
}

.phone-screen {
  width: 220px;
}

.page-capture {
  width: 500px;
}

.phone-screen img,
.page-capture img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-image {
  position: absolute;
  z-index: 10;
}

.arrow-icon {
  display: flex;
  align-items: center;
}

/* Step Note */
.step-note {
  background-color: #f7f7f7;
  border-radius: 6px;
  padding: 16px;
}

.step-note p {
  font-size: 12px;
  line-height: 1.6;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Links Section */
.links-section {
  font-size: 14px;
  line-height: 1.6;
}

.links-section p {
  margin-bottom: 8px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .kv-title {
    font-size: 32px;
  }

  .kv-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .kv-section {
    height: 200px;
  }

  .kv-title {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .kv-subtitle {
    font-size: 14px;
  }

  .kv-badge {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .content-area {
    padding: 0;
    box-shadow: none;
    padding: 0 16px;
  }

  .step-text {
    gap: 16px;
    align-items: flex-start;
  }

  .step-text:not(:has(.step-title)) {
    align-items: flex-start;
  }

  .step-images {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .phone-screen {
    width: 180px;
  }

  .page-capture {
    width: 250px; 
  }

  .arrow-icon {
    transform: rotate(90deg);
  }

  .section-title {
    font-size: 20px;
  }

  .content-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .header-icons {
    gap: 12px;
  }

  .header-right {
    font-size: 12px;
    gap: 12px;
  }

  .kv-background {
    background: url(https://www.img-ikyu.com/contents/special-cms/coupon-usage/img/bg_sp.jpg?auto=compress,format&fit=crop&lossless=0&q=80) no-repeat center top;
    background-size: 100% 100%;
  }

  .kv-content {
    width: 100%;
  }

  .main-content {
    padding: 0;
    width: 100%;
  }

  .info-section {
    padding: 32px 16px;
    margin-bottom: 0;
  }

  .tab-navigation .sp {
    display: block;
  }

  .tab-button {
    padding: 16px 0;
    font-size: 14px;
  }

  .step-badge {
    width: 56px;
    height: 56px;
  }

  .step-number {
    font-size: 16px;
  }
  
  .links-section {
    padding: 0 16px 32px;
  }
}
