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

:root {
  --color-brand-blue: #79a7d3;
  --color-text-blue: #4f7394;
  --color-muted-text: #5f6f80;
  --color-button-text: #456987;
  --color-action-background: #4f7394;
}

  
body {
  background: #dfe3ef;
  color: #5d6470;
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-button-text);
  box-shadow: 0 8px 18px rgba(120, 130, 150, 0.2);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}
  
.page {
  width: 90%;
  max-width: 980px;
  margin: 50px auto;
  background: #fffdfa;
  box-shadow: 12px 12px 20px rgba(120, 130, 150, 0.25);
  overflow: visible;
}

/* ======================
   Common
====================== */

button {
  border: none;
  background: #ffffff;
  color: var(--color-button-text);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(150, 160, 180, 0.18);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.btn,
.small-btn {
  display: inline-block;
  padding: 13px 28px;
  background: #ffffff;
  color: var(--color-button-text);
  text-decoration: none;
  border-radius: 16px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(150, 160, 180, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-text-blue);
  outline-offset: 4px;
}

/* ======================
   Header
====================== */

.header {
  height: 70px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(121, 167, 211, 0.12);
}
  
.logo {
  text-decoration: none;
  color: var(--color-brand-blue);
  font-size: 19px;
  letter-spacing: 3px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-brand-blue);
  border-radius: 2px;
}
  
.header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--color-muted-text);
  font-size: 12px;
  letter-spacing: 2px;
}

.header nav a[aria-current="page"] {
  color: var(--color-text-blue);
  font-weight: bold;
}

.cart-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e8f0f7;
  color: var(--color-button-text);
  font-size: 11px;
  letter-spacing: 0;
}
  
.header nav span {
  margin-left: 20px;
}

/* ======================
   Top Page - Hero
====================== */

.hero {
  height: 470px;
  margin: 0 30px;
  border-radius: 0 0 70px 70px;
  background: linear-gradient(90deg, #fffdfa 0%, #f5f0e8 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
  
.hero-text h1 {
  color: var(--color-brand-blue);
  font-size: 40px;
  line-height: 1.6;
  letter-spacing: 8px;
  margin-bottom: 30px;
}

.hero-img {
  width: 42%;
  border-radius: 40px;
}

/* ======================
   Top Page - About
====================== */


.about {
  padding: 90px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
  
.about h2,
.products h2 {
  color: var(--color-brand-blue);
  font-size: 34px;
  letter-spacing: 8px;
  margin-bottom: 20px;
}
  
.about p {
  line-height: 2;
  font-size: 14px;
  margin-bottom: 25px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
  
.about-images img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 28px;
  background: #f3f6fb;
}
  
.about-images img:first-child {
  grid-row: span 2;
  height: 318px;
}

/* ======================
   Top Page - Products
====================== */

.products {
  padding: 40px 70px 100px;
}
  
.sub-title {
  color: #566f86;
  letter-spacing: 4px;
  margin-bottom: 35px;
}
  
.product-area {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 35px;
}
  
.product-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}

.product-list li {
  width: 100%;
}
  
.product-item {
  width: 100%;
  border: 2px solid transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f8fb;
  border-radius: 28px;
  padding: 15px;
  color: #626f7c;
  font-size: 13px;
  transition: .3s;
}

.product-item:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 18px rgba(150,160,180,.15);
}
  
.product-item.active {
  border: 2px solid #c8dff4;
  background: #eef6ff;
}
  
.product-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 22px;
}
  
.product-detail {
  background: #f4f6fb;
  border-radius: 45px;
  padding: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}
  
.main-product-img {
  background: #dcecff;
  border-radius: 35px;
  padding: 25px;
}
  
.main-product-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
}
  
.product-info h3 {
  color: var(--color-brand-blue);
  font-size: 22px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}
  
.price {
  font-size: 20px;
  margin-bottom: 25px;
}
  
.product-info p {
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
}
  
.option {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}
  
.color-dot {
  width: 16px;
  height: 16px;
  background: var(--color-brand-blue);
  border-radius: 50%;
}

.button-area {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.buy-btn {
  width: 140px;
  height: 55px;
  padding: 0 30px;
  white-space: nowrap;
  transition: 0.3s;
}

.buy-btn {
  font-size: 0;
}

.buy-btn::after {
  content: "購入する";
  font-size: 13px;
}

.buy-btn:hover {
  transform: translateY(-3px);
  background: var(--color-action-background);
  color:#fff;
}

.favorite-btn {
  width: 55px;
  height: 55px;
  padding: 0;
  font-size: 24px;
  color: #b8bcc4;
  transition: 0.3s;
}

.favorite-btn:hover {
  transform: translateY(-3px);
}

.favorite-btn.active {
  color: var(--color-button-text);
  background: #eef6ff;
}

.product-text{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.product-text .product-name{
  margin:0;
  font-size:14px;
}

.product-text span{
  color: var(--color-text-blue);
  font-size:13px;
  font-weight:bold;
}

/* ======================
   Cart Page
====================== */

.cart {
  padding: 90px 70px;
}

.cart h1 {
  color: var(--color-brand-blue);
  font-size: 36px;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.cart-lead {
  color: #637589;
  margin-bottom: 40px;
}

.cart-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.cart-items {
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr 100px 90px 40px;
  align-items: center;
  gap: 20px;
  background: #f6f9fd;
  border-radius: 28px;
  padding: 20px;
  margin-bottom: 18px;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 22px;
}

.cart-info h3 {
  color: var(--color-text-blue);
  font-size: 16px;
  margin-bottom: 8px;
}

.cart-info p {
  color: #637589;
  font-size: 12px;
  margin-bottom: 8px;
}

.cart-info span,
.subtotal {
  color: #6f7f91;
  font-size: 14px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button,
.remove {
  border: none;
  background: #ffffff;
  color: var(--color-button-text);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.cart-summary {
  width: 280px;
  background: #eef5ff;
  border-radius: 32px;
  padding: 32px;
}

.cart-summary h2 {
  color: var(--color-brand-blue);
  margin-bottom: 28px;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  color: #6f7f91;
  margin-bottom: 18px;
}

.summary-total {
  border-top: 1px solid #d6e6f7;
  padding-top: 20px;
  font-weight: bold;
}

.checkout-btn {
  width: 100%;
  border: none;
  background: #ffffff;
  color: var(--color-button-text);
  padding: 16px;
  border-radius: 18px;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(150, 170, 190, 0.15);
}

/* ======================
   Contact
====================== */

.contact {
  padding: 50px 70px;
  background: #f7f9fc;
}

.contact-heading {
  text-align: center;
  margin-bottom: 30px;
}

.contact-heading h2 {
  color: var(--color-brand-blue);
  font-size: 30px;
  letter-spacing: 7px;
  margin-bottom: 12px;
}

.contact-heading p {
  font-size: 14px;
  line-height: 1.8;
  color: #627384;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 26px;
  background: #fffdfa;
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(150, 160, 180, 0.12);
}

.demo-notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #d6e6f7;
  border-radius: 14px;
  background: #eef6ff;
  color: #64788d;
  font-size: 13px;
  line-height: 1.7;
}

.status-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 20px;
  border: 1px solid #c8dff4;
  border-radius: 16px;
  background: #fffdfa;
  color: #64788d;
  box-shadow: 0 10px 24px rgba(120, 130, 150, 0.2);
  line-height: 1.6;
}

.cart-demo-notice {
  max-width: 620px;
  margin-top: -20px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #6f7c8a;
  font-size: 12px;
  letter-spacing: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  background: #ffffff;
  color: #5d6470;
  font: inherit;
  outline: none;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #9fc3e2;
  box-shadow: 0 0 0 3px rgba(159, 195, 226, 0.14);
}

.submit-btn {
  display: block;
  min-width: 140px;
  padding: 12px 28px;
  margin: 8px auto 0;
  transition: 0.3s;
}

.submit-btn:hover {
  background: var(--color-action-background);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ======================
   Footer
====================== */

.footer {
  text-align: center;
  padding: 40px;
  background: #f5f0e8;
  color: #566f86;
  letter-spacing: 3px;
}

.footer-logo{
  margin-bottom:20px;
}

.footer-logo a {
  color: var(--color-brand-blue);
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 3px;
  text-decoration: none;
}

.footer-guide-nav {
  max-width: 760px;
  margin: 0 auto 24px;
}

.footer-guide-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  list-style: none;
}

.footer-guide-nav a {
  color: var(--color-muted-text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-guide-nav a:hover {
  color: var(--color-text-blue);
}

.footer-demo-note {
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 40px 40px;
  margin-top: -22px;
  background: #f5f0e8;
}

.footer-social button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--color-button-text);
  font-size: 18px;
  box-shadow: none;
}

/* ======================
   Information Pages
====================== */

.info-page {
  padding: 54px 70px 90px;
}

.breadcrumbs {
  margin-bottom: 42px;
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: #8c99a7;
  content: "/";
}

.breadcrumbs a {
  color: var(--color-text-blue);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-muted-text);
}

.info-hero {
  margin-bottom: 46px;
  padding: 48px;
  border-radius: 36px;
  background: linear-gradient(90deg, #fffdfa 0%, #f5f0e8 100%);
}

.info-hero h1 {
  margin-bottom: 16px;
  color: var(--color-brand-blue);
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.info-hero p {
  max-width: 680px;
  line-height: 1.9;
}

.info-notice {
  margin-bottom: 40px;
  padding: 18px 22px;
  border: 1px solid #d6e6f7;
  border-radius: 18px;
  background: #eef6ff;
  color: #596f84;
  line-height: 1.8;
}

.info-content {
  max-width: 760px;
}

.info-section {
  margin-top: 44px;
}

.info-section h2 {
  margin-bottom: 18px;
  color: var(--color-brand-blue);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.info-section h3 {
  margin: 28px 0 12px;
  color: var(--color-text-blue);
  font-size: 18px;
}

.info-section p,
.info-section li,
.info-table th,
.info-table td {
  line-height: 1.9;
}

.info-section ul,
.info-section ol {
  margin-left: 1.5em;
}

.info-section li + li {
  margin-top: 8px;
}

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

.info-table th,
.info-table td {
  padding: 16px;
  border-bottom: 1px solid #dce7f2;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 30%;
  color: var(--color-text-blue);
  font-weight: bold;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid #dce7f2;
  border-radius: 18px;
  background: #ffffff;
}

.faq-list summary {
  padding: 18px 22px;
  color: var(--color-text-blue);
  font-weight: bold;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 22px 20px;
}

.related-guides {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid #dce7f2;
}

.related-guides h2 {
  margin-bottom: 18px;
  color: var(--color-brand-blue);
  font-size: 22px;
}

.related-guides ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.related-guides a {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f4f6fb;
  color: var(--color-button-text);
  text-decoration: none;
}

/* ======================
   Responsive
====================== */

@media (max-width: 768px) {
  .header,
  .hero,
  .about,
  .product-area,
  .product-detail {
    display: block;
  }

  .header {
    position: sticky;
    display: flex;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .header nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 20px 20px;
    background: rgba(255, 253, 250, 0.98);
    border-bottom: 1px solid rgba(121, 167, 211, 0.18);
    box-shadow: 0 10px 20px rgba(120, 130, 150, 0.12);
  }

  .header nav.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .header nav a {
    min-height: 44px;
    margin-left: 0;
    padding: 14px 8px;
  }

  .hero {
    height: auto;
    padding: 60px 30px;
  }

  .hero-img {
    width: 100%;
    margin-top: 30px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .about,
  .products {
    padding: 60px 30px;
  }

  .product-list {
    margin-bottom: 30px;
  }

  .cart {
    padding: 60px 30px;
  }

  .cart-layout {
    display: block;
  }

  .cart-item {
    display: block;
  }

  .cart-item img {
    margin-bottom: 16px;
  }

  .quantity {
    margin: 16px 0;
  }

  .cart-summary {
    width: 100%;
    margin-top: 30px;
  }

  .contact {
    padding: 60px 30px;
  }

  .contact-form {
    padding: 28px 22px;
  }

  .footer-guide-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-guide-nav a {
    display: block;
    min-height: 44px;
    padding: 13px 8px;
  }

  .info-page {
    padding: 40px 30px 70px;
  }

  .info-hero {
    padding: 34px 26px;
  }

  .info-hero h1 {
    font-size: 28px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .info-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .related-guides ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .product-item:hover,
  .buy-btn:hover,
  .favorite-btn:hover,
  .submit-btn:hover,
  .footer-guide-nav a:hover {
    transform: none;
  }
}
