@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

.ym-red { color: #E60012; }
.bg-ym-red { background-color: #E60012; }
.bg-ym-gold { background-color: #D4AF37; }

.hero-gradient {
    background: linear-gradient(180deg, #E60012 0%, #B3000E 100%);
}

.floating-cta {
    box-shadow: 0 10px 25px -5px rgba(230, 0, 18, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =========================================
   Header
   ========================================= */
.l-header-lp {
    position: relative;
    height: 54px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 14px;
    background-color: #fff;
    z-index: 50;
    border-bottom: 1px solid #f0f0f0;
}
.header-logo-lp {
    display: block;
    background: url(https://www.ymobile.jp/common_c/images/common/logo.svg) no-repeat center top;
    background-size: 110px 22px;
    width: 110px;
    height: 22px;
    padding: 0px;
    margin: 0px auto;
    text-indent: -99em;
    overflow: hidden;
}

/* このページ限定エリア */
.limited-alert-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    position: relative;
    z-index: 40;
}

/* 申込エリア */
.cta-section-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.target-group-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    padding-left: 0.75rem;
    border-left: 4px solid #E60012;
}

.btn-entry {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border: 2px solid #E60012;
    color: #E60012;
    font-weight: 900;
    border-radius: 0.75rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.condition-badge {
    display: inline-flex;
    align-items: center;
    background: #fdf2f2;
    color: #E60012;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #ffdada;
}

.plan-list-inline {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    font-size: 10px;
    color: #777;
    line-height: 1.6;
    margin-top: 8px;
}

.attention-box {
    background: #fff5f5;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}

/* SIM選択オプション（モーダル内） */
.sim-option-card {
    border: 2px solid #eee;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
}
@media (min-width: 768px) {
    .sim-option-card {
        flex-direction: column;
        justify-content: center;
    }
}
.sim-option-card:active {
    transform: scale(0.98);
    border-color: #E60012;
    background-color: #fffafa;
}

.dummy-img {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    color: #9ca3af;
}

.step-icon-circle {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #E60012;
    color: #E60012;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* 魅力カード内の詳細リンク用共通スタイル */
.miryoku-link {
    color: #333;
    text-decoration: underline;
    font-size: 11px;
    font-weight: 900;
    margin-top: 8px;
    display: block;
}

/* =========================================
   Custom Modal Styles (No Tailwind)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: flex-end; /* SP: Bottom */
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center; /* PC: Center */
        padding: 1rem;
    }
}

.modal-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    border-radius: 2rem 2rem 0 0; /* SP: Rounded top */
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
    color: #333;
    transform: translateY(0);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 768px) {
    .modal-container {
        border-radius: 2rem;
        padding: 2.5rem;
        transform: translateY(0);
        animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

.modal-drag-handle {
    width: 48px;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin: 0 auto 1.5rem;
}
@media (min-width: 768px) {
    .modal-drag-handle { display: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Modal Internal Buttons */
.modal-btn-primary {
    background-color: #E60012;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 900;
    width: 100%;
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}
.modal-btn-secondary {
    background-color: transparent;
    color: #9ca3af;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-decoration: underline;
}

/* =========================================
   Appeal Area
   ========================================= */
.appeal-section {
    background-color: #FDF2F2;
    padding: 25px 10px 40px 10px;
    text-align: center;
}
.appeal-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.3;
    color: #333;
    margin-bottom: 24px;
}
.appeal-title .num-large { font-size: 3.5rem; color: #E60012; }
.appeal-title .red-text { color: #E60012; }
.appeal-card {
    background: #fff;
    border-radius: 2rem;
    padding: 20px 20px 10px 20px;
    max-width: 340px;
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.appeal-list-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #333;
    padding-left: 20px;
}
.appeal-list-item i { color: #E60012; margin-right: 12px; font-size: 1.4rem; }
.appeal-cta-text { color: #E60012; font-weight: 900; font-size: 1.1rem; margin-bottom: 16px; }
.btn-appeal-cta {
    background-color: #E60012;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 9999px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.4);
}
.hero-section{
    margin-bottom: 30px;
}
.sp-only { display: none; }
@media (max-width: 768px) {
    .sp-only { display: inline; }
    .pc-only { display: none; }
}
.mv-ct{
  margin-top: 25px;
}
/* 4ヵ月後もおトクに！セクションのスタイル */
.month4-card {
    background: #fff;
    border: 2px solid #f3f4f6;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.month4-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.month4-card img{
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 25px;
}

.month4-tag {
    background: #E60012;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
}

.plan-change-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    /* background: #f9fafb; */
    /* padding: 20px 12px; */
    border-radius: 16px;
    margin-bottom: 24px;
    max-width: 500px;
    margin: 0px auto 20px auto;
}

.plan-box {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.plan-box.active {
    border: 2px solid #E60012;
    position: relative;
}

.plan-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    color: #9ca3af;
    margin-bottom: 2px;
}

.plan-box.active .plan-label {
    color: #E60012;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.plan-data {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
}

.discount-area {
    background: #FFF5F5;
    border-radius: 16px;
    padding: 10px;
}

.discount-title {
    font-size: 14px;
    font-weight: 900;
    color: #E60012;
    text-align: center;
    margin-bottom: 10px;
}

.discount-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #fee2e2;
    margin: 5px;
}

.discount-icon {
    width: 36px;
    height: 36px;
    background: #E60012;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.discount-name {
    font-size: 12px;
    font-weight: 900;
    margin: 0;
}

.discount-detail {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    margin: 0;
}

.month4-link {
    display: inline-block;
    color: #E60012;
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.month4-link:hover {
    opacity: 0.7;
}

.m4-m{
    margin-top: 10px;
}
.zyogai{
  color: #333;
  display: block;
  font-weight: bold;
}

/* フッターのブラッシュアップ */
.footer-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    gap: 8px 0; /* 行間の調整 */
}

.footer-nav-item {
    font-size: 10px;
    line-height: 1.2;
    padding: 0 10px;
    border-right: 1px solid #374151; /* gray-700相当の薄い区切り線 */
    margin-bottom: 4px;
}

.footer-nav-item:last-child {
    border-right: none;
}

.footer-nav-item a {
    color: #6b7280; /* gray-500 */
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap; /* 折り返しを防いで綺麗に整列 */
}

.footer-nav-item a:hover {
    color: #9ca3af; /* gray-400 */
    text-decoration: underline;
}

.copyright {
    font-size: 10px;
    color: #4b5563; /* gray-600 */
    margin-top: 24px;
    letter-spacing: 0.025em;
}

.limited{color: #ff2c48;padding: 8px 0;}

/* モバイル対応：画面が狭い時は区切り線を消して柔軟に配置 */
@media (max-width: 640px) {
    .footer-nav-item {
        border-right: none;
        padding: 0 8px;
    }
    .footer-bottom-nav {
        gap: 12px 4px;
    }
}

/* 提供条件書セクションのスタイル */
.terms-section {
    padding: 60px 0;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.terms-box {
    background: #fff;
    padding: 32px;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.terms-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E60012;
    color: #111827;
    text-align: center;
}

.terms-content {
    color: #374151;
}

.terms-subtitle {
    font-size: 14px;
    font-weight: 900;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #111827;
    border-left: 4px solid #E60012;
    padding-left: 10px;
}

.terms-text {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.terms-list {
    font-size: 12px;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 16px;
    list-style-type: disc;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 16px 0;
}

.terms-table th, .terms-table td {
    border: 1px solid #d1d5db;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.terms-table th {
    background-color: #f3f4f6;
    font-weight: 900;
}

.terms-note {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.6;
}

.terms-footer-info {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 11px;
    text-align: right;
    color: #6b7280;
}

@media (max-width: 640px) {
    .terms-box {
        padding: 20px;
    }
    .terms-title {
        font-size: 16px;
    }
}
.fixed-text{
    color: #333333;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 10px;
    text-align: center;
}
.price-text{
  font-size: 11px;
  line-height: 14px;
  background-color: #eee;
  padding: 10px;
  margin: 12px 0px;
  border-radius: 9px;
  text-align: center;
  display: none;
}
/* モーダル内のSIM/eSIMカード：スマホでの崩れ（折り返し/余白/タップ領域）対策 */
a[data-contract-link] {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.sim-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  background: #fff;
  text-align: left;
  box-sizing: border-box;
}
.sim-option-card > div {
  min-width: 0; /* 長いテキストで横にはみ出すのを防ぐ */
}
.sim-option-card h4,
.sim-option-card p {
  line-height: 1.3;
  text-align: center;
}
.sim-option-card:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  .sim-option-card {
    padding: 12px 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .sim-option-card i {
    font-size: 1.75rem !important;
  }
  .sim-option-card h4 {
    font-size: 0.95rem !important;
    text-align: left;
  }
  .sim-option-card p {
    font-size: 0.6rem !important;
  }
}
