/* ==================== 基本スタイル ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==================== ボタンスタイル ==================== */
.btn {
  display: inline-block;
  background-color: #4169e1;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:hover {
  background-color: #3050c8;
}

.btn-outline {
  background-color: transparent;
  color: #4169e1;
  border: 1px solid #4169e1;
}

.btn-outline:hover {
  background-color: #f0f5ff;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* ==================== ヘッダー ==================== */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #4169e1;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

.mobile-menu {
  display: none;
}

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

  .mobile-menu {
    display: block;
    font-size: 24px;
  }
}

/* ==================== チェックアウトステップ ==================== */
.checkout-steps {
  display: flex;
  align-items: center;
}

.step {
  display: flex;
  align-items: center;
  color: #999;
}

.step.active {
  color: #4169e1;
  font-weight: bold;
}

.step.completed {
  color: #28a745;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #eee;
  color: #666;
  margin-right: 8px;
  font-size: 14px;
}

.step.active .step-number {
  background-color: #4169e1;
  color: white;
}

.step.completed .step-number {
  background-color: #28a745;
  color: white;
}

.step-divider {
  width: 30px;
  height: 1px;
  background-color: #ddd;
  margin: 0 10px;
}

/* ==================== フッター ==================== */
footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 10px;
  color: #ddd;
}

.footer-links a:hover {
  color: white;
}

.footer-text {
  font-size: 14px;
  color: #999;
}

/* ==================== ホームページスタイル ==================== */
/* ヒーローセクション */
.hero {
  background-color: #f8f9fa;
  padding: 50px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 商品セクション */
.products {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.product-image {
  height: 200px;
}

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

.product-info {
  padding: 15px;
}

.product-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.product-price {
  color: #4169e1;
  font-weight: bold;
  font-size: 18px;
}

.product-button {
  margin-top: 10px;
  text-align: center;
}

/* ==================== 商品詳細ページスタイル ==================== */
/* パンくずリスト */
.breadcrumb {
  padding: 15px 0;
  background-color: #f8f9fa;
}

.breadcrumb ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li {
  margin-right: 5px;
}

.breadcrumb li:after {
  content: ">";
  margin-left: 5px;
  color: #999;
}

.breadcrumb li:last-child:after {
  content: "";
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #4169e1;
}

/* 商品詳細 */
.product-detail {
  padding: 40px 0;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .product-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* 商品画像 */
.product-images {
  display: flex;
  flex-direction: column;
}

.main-image {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

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

.thumbnail.active {
  border-color: #4169e1;
}

/* 商品情報 */
.product-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 24px;
  font-weight: bold;
  color: #4169e1;
  margin-bottom: 15px;
}

.product-description {
  margin-bottom: 20px;
  color: #666;
}

.product-meta {
  margin-bottom: 20px;
}

.product-meta p {
  margin-bottom: 5px;
}

.product-meta span {
  font-weight: bold;
}

/* バリエーション選択 */
.product-variations {
  margin-bottom: 20px;
}

.variation-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.color-options {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-option.active {
  border-color: #4169e1;
}

.color-black {
  background-color: #000;
}

.color-silver {
  background-color: #c0c0c0;
}

.color-blue {
  background-color: #4169e1;
}

/* 数量選択 */
.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-selector label {
  margin-right: 10px;
  font-weight: bold;
}

.quantity-input {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background-color: #f5f5f5;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.quantity-btn:hover {
  background-color: #e5e5e5;
}

.quantity-value {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
}

/* アクションボタン */
.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.product-actions .btn {
  flex: 1;
}

/* 商品詳細タブ */
.product-tabs {
  margin-top: 40px;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: bold;
  color: #666;
}

.tab-btn.active {
  color: #4169e1;
  border-bottom-color: #4169e1;
}

.tab-content {
  display: none;
}

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

.tab-content h3 {
  margin-bottom: 15px;
}

.specifications {
  width: 100%;
  border-collapse: collapse;
}

.specifications tr {
  border-bottom: 1px solid #eee;
}

.specifications th,
.specifications td {
  padding: 10px;
  text-align: left;
}

.specifications th {
  width: 30%;
  color: #666;
}

/* 関連商品 */
.related-products {
  padding: 40px 0;
  background-color: #f8f9fa;
}

.product-card-image {
  height: 180px;
}

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

.product-card-info {
  padding: 15px;
}

.product-card-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.product-card-price {
  color: #4169e1;
  font-weight: bold;
}

/* ==================== お支払いページスタイル ==================== */
/* フォームスタイル */
.form-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
}

.checkout-content {
  padding: 40px 0;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .checkout-container {
    grid-template-columns: 2fr 1fr;
  }
}

.form-row {
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-control:focus {
  border-color: #4169e1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 576px) {
  .form-grid-3 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* 支払い方法 */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.payment-method:hover {
  border-color: #b8c7ff;
  background-color: #f8f9ff;
}

.payment-method.selected {
  border-color: #4169e1;
  background-color: #f0f5ff;
}

.payment-method input[type="radio"] {
  margin-right: 10px;
}

.payment-method-info {
  flex-grow: 1;
}

.payment-method-title {
  font-weight: bold;
  margin-bottom: 2px;
}

.payment-method-description {
  font-size: 14px;
  color: #666;
}

.payment-method-logo {
  display: flex;
  gap: 5px;
}

.payment-method-logo img {
  height: 24px;
  width: auto;
}

/* クレジットカードフォーム */
.card-form {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* 注文概要 */
.order-summary {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  position: sticky;
  top: 20px;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 15px;
}

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

.item-details {
  flex-grow: 1;
}

.item-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.item-variant {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.item-price {
  font-weight: bold;
  color: #4169e1;
}

.item-quantity {
  font-size: 14px;
  color: #666;
}

.price-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.price-row.total {
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.price-label {
  color: #666;
}

.price-value {
  font-weight: 500;
}

.checkout-actions {
  margin-top: 20px;
}

.secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  color: #666;
  font-size: 14px;
}

.secure-checkout svg {
  margin-right: 5px;
}

/* ==================== 注文完了ページスタイル ==================== */
/* 完了メッセージ */
.completion-message {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
}

.completion-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #28a745;
}

.completion-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.order-number {
  font-weight: bold;
  color: #4169e1;
}

/* 注文詳細 */
.order-details {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.order-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .order-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-box {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.info-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.info-content {
  line-height: 1.5;
}

.info-content p {
  margin-bottom: 5px;
}

/* 注文商品 */
.order-items {
  margin-bottom: 30px;
}

.item-table {
  width: 100%;
  border-collapse: collapse;
}

.item-table th {
  text-align: left;
  padding: 12px 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
  color: #666;
}

.item-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.text-right {
  text-align: right;
}

/* 注文合計 */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
  font-weight: bold;
  font-size: 18px;
  padding-top: 15px;
}

.summary-label {
  color: #666;
}

/* 次のステップ */
.next-steps {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.steps-list {
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  margin-bottom: 15px;
}

.step-icon {
  width: 30px;
  height: 30px;
  background-color: #f0f5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #4169e1;
  font-weight: bold;
}

.step-content h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.step-content p {
  color: #666;
  font-size: 14px;
}

/* アクションボタン */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 30px;
}

@media (min-width: 576px) {
  .action-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

aupus-ugcs {
  margin: 20px auto 80px;
}
