/* マイナ保険証ページ専用スタイル */

.mynumber-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* タイトルセクション */
.mynumber-title-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding: 0;
}

.mynumber-title-image {
  flex: 0 0 auto;
  text-align: left;
  margin-left: 0;
}

.mynumber-title-image img {
  height: 300px;
  width: auto;
  max-width: none;
}

.mynumber-title-content {
  flex: 1;
}

.mynumber-main-title {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
  display: inline-block; /* 追加 */
  width: auto; /* 追加 */
}

.mynumber-main-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%; /* 200px から 100% に変更 */
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  border-radius: 2px;
}

.mynumber-intro-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  text-align: left;
}

/* メリットセクション */
.mynumber-benefits {
  background: #f8f9fa;
  padding: 20px 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mynumber-benefits-title {
  font-size: 24px;
  color: #0066cc;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.mynumber-benefits-content {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mynumber-benefits-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.mynumber-benefit-item {
  background: #e3f2fd;
  border-radius: 15px;
  padding: 20px 20px 0;
  margin-bottom: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mynumber-benefit-title {
  font-size: 18px;
  color: #1976d2;
  font-weight: bold;
  margin-bottom: 10px;
}

.mynumber-benefit-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0 0 1rem!important; /* 追加 */
}

/* 医療機関利用方法セクション */
.mynumber-usage {
  margin: 40px 0;
}

.mynumber-usage-main-title {
  color: #1976d2;
  padding: 15px 0 0 0;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin: 1.5rem 0 1rem!important;
  border-top: 3px solid #1976d2;
  position: relative;
}

.mynumber-usage-main-title::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #42a5f5;
}

.mynumber-usage-section {
  margin-bottom: 30px;
  border: 1px solid #b7b7b7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mynumber-usage-section-title {
  background: #1976d2;
  color: white;
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.mynumber-usage-content {
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mynumber-usage-illustrations {
  flex: 0 0 200px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mynumber-usage-illustrations img {
  max-width: 200px;
  height: auto;
}

.mynumber-usage-instruction {
  flex: 1;
  min-width: 250px;
}

.mynumber-instruction-box {
  background: #fff;
  border: 2px solid #ff6b6b;
  border-radius: 8px;
  padding: 15px 15px 0;
  margin-bottom: 15px;
  text-align: center;
  transition: background-color 0.3s ease!important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mynumber-instruction-text {
  color: #ff6b6b;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 1rem!important;
}

.mynumber-usage-description {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* 申請方法セクション */
.mynumber-application-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 2px solid #e0e0e0;
}

.mynumber-application-title {
  font-size: 24px;
  color: #1976d2;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.mynumber-application-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.mynumber-method-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mynumber-method-item:hover {
  transform: translateY(-2px);
}

.mynumber-method-icon {
  flex: 0 0 60px;
  text-align: center;
}

.mynumber-method-icon img {
  max-width: 175px;
  height: auto;
}

.mynumber-method-content {
  flex: 1;
}

.mynumber-method-title {
  font-size: 16px;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 8px;
}

.mynumber-method-description {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* QRコードセクション */
.mynumber-qr-section {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}

.mynumber-qr-title {
  font-size: 20px;
  color: #1976d2;
  margin-bottom: 20px;
}

.mynumber-qr-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mynumber-qr-code img {
  max-width: 120px;
  height: auto;
}

.mynumber-qr-text p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
}

/* アプリセクション */
.mynumber-app-section {
  margin: 30px 0;
}

.mynumber-app-title {
  font-size: 20px;
  color: #1976d2;
  text-align: center;
  margin-bottom: 20px;
}

.mynumber-app-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.mynumber-app-item {
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mynumber-app-icon img {
  max-width: 40px;
  height: auto;
  margin-bottom: 10px;
}

.mynumber-app-qr img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.mynumber-app-qr p {
  font-size: 14px;
  color: #333;
  margin: 0;
}

/* 注意事項 */
.mynumber-notice {
  background: #fff3e0;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
}

.mynumber-notice-title {
  font-size: 18px;
  color: #e65100;
  margin-bottom: 15px;
}

.mynumber-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mynumber-notice-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.mynumber-notice-list li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  top: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mynumber-container {
    padding: 10px;
  }
  
  .mynumber-title-section {
    flex-direction: column;
    text-align: center;
  }
  
  .mynumber-title-image {
    flex: none;
  }
  
  .mynumber-main-title {
    font-size: 24px;
  }
  
  .mynumber-main-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .mynumber-benefits-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mynumber-usage-content {
    flex-direction: column;
  }
  
  .mynumber-usage-illustrations {
    flex: none;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }
  
  .mynumber-usage-instruction {
    min-width: auto;
  }
  
  .mynumber-application-methods {
    grid-template-columns: 1fr;
  }
  
  .mynumber-method-item {
    flex-direction: column;
    text-align: center;
  }
  
  .mynumber-qr-content {
    flex-direction: column;
  }
  
  .mynumber-app-content {
    flex-direction: column;
    align-items: center;
  }
  
  .mynumber-flow-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .mynumber-flow-header .mynumber-flow-title-group {
    gap: 2px;
  }
  
  .mynumber-application-methods-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mynumber-pickup-content {
    flex-direction: column;
    text-align: center;
  }
  
  .mynumber-pickup-content .mynumber-pickup-icon {
    order: -1;
  }
  
  .mynumber-notification-content {
    flex-direction: column;
    text-align: center;
  }
  
  .mynumber-notification-content .mynumber-postcard-icon {
    order: -1;
  }
}

/* マイナンバーカード取得フローセクション */
.mynumber-acquisition-flow-section {
  margin: 40px 0;
  padding: 30px 0;
}

.mynumber-flow-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  background-color: #1976d2;
  padding: 20px;
  border-radius: 8px;
}

.mynumber-flow-header .mynumber-flow-title-group {
  gap: 2px;
}

.mynumber-flow-step-number {
  background: white;
  color: #1976d2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.mynumber-flow-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mynumber-flow-subtitle {
  font-size: 16px;
  color: #fff;
  margin: 0 !important;
  line-height: 1.1;
  padding: 0;
}

.mynumber-flow-main-title {
  font-size: 24px;
  color: #fff;
  font-weight: bold;
  margin: 0 !important;
  line-height: 1.1;
  padding: 0;
}

.mynumber-flow-instruction {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
  padding: 0 20px;
}

.mynumber-flow-note {
  font-size: 12px;
  color: #666;
}

.mynumber-flow-section {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.mynumber-flow-section p {
  font-family: 'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN', sans-serif;
  margin:  1rem 0 0;
}

.mynumber-section-heading {
  font-size: 1.5rem;
  color: #1976d2;
  font-weight: bold;
  margin-bottom: 15px;
}

.mynumber-notification-content {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
  margin: 20px 0;
}

.mynumber-notification-content .mynumber-postcard-icon {
  flex-shrink: 0;
}

.mynumber-notification-content .mynumber-postcard-icon img {
  width: 200px;
  height: auto;
}

.mynumber-notification-list {
  text-align: left;
  flex: 1;
}

.mynumber-notification-list p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

.mynumber-pickup-content {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
  margin: 20px 0;
}

.mynumber-pickup-content .mynumber-pickup-icon {
  flex-shrink: 0;
}

.mynumber-pickup-content .mynumber-pickup-icon img {
  width: 200px;
  height: auto;
}

.mynumber-pickup-list {
  text-align: left;
  flex: 1;
}

.mynumber-pickup-list p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

.mynumber-application-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.mynumber-method-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mynumber-method-card .mynumber-method-icon img {
  max-width: 175px;
  height: auto;
  margin-bottom: 10px;
}

.mynumber-method-name {
  font-size: 14px;
  color: #333;
  margin: 0;
  font-weight: bold;
}

.mynumber-flow-arrow {
  text-align: center;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mynumber-flow-arrow::after {
  content: "";
  display: block;
  width: 50px;
  height: 20px;
  background-image: url('../images/img_arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mynumber-postcard-icon,
.mynumber-pickup-icon {
  margin-top: 15px;
}

.mynumber-postcard-icon img,
.mynumber-pickup-icon img {
  max-width: 200px;
  height: auto;
}

.mynumber-flow-footer {
  text-align: center;
  margin-top: 30px;
}

.mynumber-footer-text {
  font-size: 20px!important;
  color: #333;
  margin-bottom: 5px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-5px);
}

.mynumber-footer-text::before,
.mynumber-footer-text::after {
  width: 3px;
  height: 40px;
  background-color: #0066cc;
  content: '';
}

.mynumber-footer-text::before {
  transform: rotate(-35deg);
  margin-right: 30px;
}

.mynumber-footer-text::after {
  transform: rotate(35deg);
  margin-left: 30px;
}

.mynumber-site-button {
  background: #1976d2;
  color: white!important;
  padding: 12px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 0 25px;
}

.mynumber-site-button:hover {
  background: #1565c0;
  transform: scale(1.1);
}

.mynumber-app-button {
  width: 150px;
}

/* アニメーション */
.mynumber-method-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mynumber-method-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mynumber-app-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mynumber-app-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 角括弧見出しデザイン */
.bracket-heading {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #0066cc;
  margin: 40px auto;
  padding: 10px 60px;
  position: relative;
  display: block;
  width: fit-content;
}

.bracket-heading::before,
.bracket-heading::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  border-color: #0066cc;
  border-style: solid;
  border-width: 0;
}

.bracket-heading::before {
  left: 0;
  border-left-width: 2px;
  border-top-width: 2px;
  border-bottom-width: 2px;
}

.bracket-heading::after {
  right: 0;
  border-right-width: 2px;
  border-top-width: 2px;
  border-bottom-width: 2px;
}

.bracket-heading .large-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #0066cc;
}

/* お問い合わせボックス */
.mynumber-contact-box {
  margin: 40px auto;
  max-width: 1200px;
  border: 3px solid #2b6cb0;
  border-radius: 15px;
  overflow: hidden;
}

.mynumber-contact-title {
  background: linear-gradient(135deg, #2b6cb0 0%, #1e4d7b 100%);
  color: white;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 15px;
  margin: 0;
}

.mynumber-contact-content {
  background: white;
  padding: 30px 40px;
  text-align: center;
  line-height: 1.2;
}

.mynumber-contact-left {
  margin-bottom: 10px !important;
}

.mynumber-contact-label {
  font-size: 18px;
  color: #333;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  font-weight: normal;
  line-height: 1.2;
}

.mynumber-contact-phone {
  font-size: 2.5rem !important;
  font-weight: bold;
  color: #e65100;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.05em;
  line-height: 1.1 !important;
}

.mynumber-contact-right {
  text-align: center;
}

.mynumber-contact-hours {
  margin-bottom: 10px;
}

.mynumber-contact-hours p {
  font-size: 22px;
  margin: 3px 0;
  color: #333;
  font-weight: normal;
  line-height: 1.3;
}

.mynumber-contact-time {
  margin-left: 20px;
  font-weight: bold;
}

.mynumber-contact-note {
  display: inline-block;
  border: 2px solid #333;
  padding: 2px 12px;
  font-size: 16px;
  margin-left: 15px;
  border-radius: 3px;
}

.mynumber-contact-emergency {
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

/* マイナポータルステップ */
.mynumber-steps-container {
  margin-top: 0;
  padding: 30px 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 15px;
}

.mynumber-step-item {
  flex: 1;
  max-width: 250px;
  background: white;
  border-radius: 12px;
  padding: 20px 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mynumber-step-number-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0066cc, #0052a3);
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  min-width: 70px;
  text-align: center;
  letter-spacing: 0.5px;
}

p.mynumber-step-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0!important;
  line-height: 1.6;
  text-align: center;
}

.mynumber-step-arrow {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mynumber-contact-content {
    padding: 20px;
  }
  
  .mynumber-contact-phone {
    font-size: 40px;
  }
  
  .mynumber-contact-hours p {
    font-size: 18px;
  }
  
  .mynumber-steps-container {
    padding: 20px 15px;
    gap: 10px;
    flex-direction: column;
  }
  
  .mynumber-step-item {
    max-width: 100%;
    padding: 15px 20px;
  }
  
  .mynumber-step-text {
    font-size: 15px;
  }
  
  .mynumber-app-button {
    margin: 10px 0;
  }
}
