@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* モバイルナビの高さ（JSが優先的に参照）*/
  --nav-h: 0px;
  /* スムーススクロール時のオフセット（CSSで設定） */
  --scroll-offset: 0px;
  /* 固定ヘッダー分の基準余白 */
  --scroll-pad: 72px;

  /* Color scheme */
  --color-text: #000;
  --color-text-secondary: #333;
  --color-text-muted: #555;
  --color-text-dim: #666;
  --color-bg: #fff;
  --color-bg-soft: #f9f9f9;
  --color-footer-bg: #F7F7F7;
  --color-border: #D9D9D9;
  --color-header-glass-bg: rgba(249, 249, 249, 0.5);
  --color-header-shadow: rgba(0, 0, 0, 0.5);
  --color-accent-1: #D8E6F1;
  --color-accent-2: #FDDE9F;
  --color-cta-bg: #4a90e2;
  --color-btn-text: #fff;
  --color-amazon-bg: #FF7F24;
  --color-amazon-text: #1D2F44;
  --color-mercari-bg: #FF0211;
}
body {
  font-family: "Montserrat", "Noto Sans JP",  sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--scroll-pad) + var(--scroll-offset));
}
.container {
  max-width: 1440px;
  padding-inline: clamp(16px, 5.5vw, 80px);
  margin-inline: auto;
}
img {
  max-width: 100%;
  vertical-align: top;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  --header-pb: 12px;
  margin-top: 8px;
  width: calc(100% - 16px);
  padding: var(--header-pb) 12px;
  border-radius: 8px;
  transition: all .2s ease;
}
@media screen and (max-width: 1023px) {
  :root { --scroll-pad: 56px; }
  .header-inner {
    margin-top: 4px;
    width: calc(100% - 8px);
    --header-pb: 6px;
    padding: var(--header-pb) 12px;
  }
}
.header.is-scrolled .header-inner,
.header.is-opened .header-inner {
  background: var(--color-header-glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 5px var(--color-header-shadow);
}
@media screen and (max-width: 1023px) {
  .header.is-opened .header-inner {
    overflow: hidden;
    padding-bottom: calc(var(--header-pb) + var(--nav-h));
  }
}

.logo {
  width: 110px;
}
.logo a {
  display: block;
}
@media screen and (max-width: 1023px) {
  .logo {
    width: 80px;
  }
}
.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  transition: all .2s ease;
}
.nav a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
@media screen and (max-width: 767px) {
  .nav {
    position: absolute;
    left: 50%;
    top: 44px;
    transform: translateX(-50%);
    width: calc(100vw - 8px);
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    opacity: 0;
    pointer-events: none;
  }
  .is-opened .nav ul {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .nav li {
    border-top: 1px solid var(--color-border);
  }
  .nav a {
    display: block;
    padding: 16px;
    text-align: center;
  }
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-text);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
  transform-origin: center;
}
@media screen and (max-width: 767px) {
  .menu-btn {
    display: block;
  }
  /* 集合→ばってん(X) アニメーション */
  @keyframes burger-top-open {
    0% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(6px) rotate(0); } /* 中央に集める */
    100% { transform: translateY(7px) rotate(45deg); }
  }
  @keyframes burger-mid-open {
    0%, 40% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
  }
  @keyframes burger-bottom-open {
    0% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-6px) rotate(0); } /* 中央に集める */
    100% { transform: translateY(-7px) rotate(-45deg); }
  }

  /* .is-opened 付与時に再生 */
  .header.is-opened .menu-btn span:nth-child(1) { animation: burger-top-open 320ms ease forwards; }
  .header.is-opened .menu-btn span:nth-child(2) { animation: burger-mid-open 320ms ease forwards; }
  .header.is-opened .menu-btn span:nth-child(3) { animation: burger-bottom-open 320ms ease forwards; }
  /* 最終形（アニメ後の保持用） */
  .header.is-opened .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-opened .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .header.is-opened .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  text-align: center;
  background: var(--color-bg-soft);
  line-height: 1;
}
.hero img {
  max-width: 1024px;
  width: 100%;
}

.hero--spacer {
  padding-top: calc(var(--scroll-pad) + 16px);
  padding-bottom: 16px;
}


/* Section */
.section {
  padding-block: 80px;
}
@media screen and (max-width: 1023px) {
  .section {
    padding-block: 40px;
  }
}
.section:nth-child(even) {
  background: var(--color-bg-soft);
}
.section .container {
  display: grid;
  grid-template-columns: 1fr 3fr;
}

@media screen and (max-width: 1023px) {
  .section .container {
    grid-template-columns: 1fr;
  }
}
.section .section-title {
  font-size: 2.25rem;
  font-weight: 500;
}
.section .section-title span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.section .section-title span:before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: var(--color-accent-1);
  border-radius: 8px 8px 0px 8px;
}
.section:nth-child(even) .section-title span:before {
  background: var(--color-accent-2);
}
@media screen and (max-width: 1023px) {
  .section .section-title {
    font-size: 1.75rem;
  }
  .section .section-title span {
    font-size: 0.75rem;
  }
  .section .section-title span:before {
    width: 24px;
    height: 24px;
  }
}
.section-content {
  padding-top: 40px;
}
@media screen and (max-width: 1023px) {
  .section-content {
    padding-top: 32px;
  }
}

/* News */
.news-list {
  list-style: none;
}
.news-list li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.news-list li:first-child {
  border-top: 1px solid var(--color-border);
}
.news-list span {
  color: var(--color-text-dim);
  margin-right: 10px;
}

/* Service */
.service-grid {
  display: flex;
  gap: 20px;
}
@media screen and (max-width: 1023px) {
  .service-grid {
    flex-direction: column;
  }
}
.service-item {
  flex: 1;
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
}
.service-item img {
  width: 100%;
}
.service-item-content {
  padding: 8px 20px 32px;
}
.service-item-title {
  font-size: 1.25rem;
  font-weight: 500;
}

/* EC */
.ec .brand-logo {
  display: block;
  margin: 0 auto 40px;
  width: 100%;
  max-width: 600px;
}

.ec-grid {
  display: flex;
  gap: 20px;
}
@media screen and (max-width: 1023px) {
  .ec-grid {
    flex-direction: column;
  }
}

.ec-item {
  position: relative;
  flex: 1;
  background: var(--color-bg-soft);
  padding: 20px;
  padding-bottom: 80px;
  border-radius: 8px;
}
.ec-item-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.ec-item p {
  text-align: justify;
}
.ec-item .btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--color-btn-text);
  text-decoration: none;
  width: 190px;
  text-align: center;
  font-size: 1rem;
}
.amazon {
  color: var(--color-amazon-text);
  background: var(--color-amazon-bg);
}
.mercari {
  background: var(--color-mercari-bg);
}

/* Company */
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th {
  text-align: left;
  width: 25%;
  font-weight: 400;
  color: var(--color-text-muted);
}
.company-table th,
.company-table td {
  padding-block: 16px;
  border-bottom: 1px solid var(--color-border);
}
.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid var(--color-border);
}
@media screen and (max-width: 1023px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  .company-table th {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .company-table tr:first-child td {
    border-top: 0;
  }
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: grid;
  grid-template-columns: 1fr 3fr;
  font-weight: 400;
  color: var(--color-text-muted);
}
@media screen and (max-width: 1023px) {
  .contact-form label {
    grid-template-columns: 1fr;
  }
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 400;
}
@media screen and (max-width: 1023px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    margin-top: 16px;
  }
}
.contact-form textarea {
  height: 300px;
}
.contact-form input:placeholder,
.contact-form select:placeholder,
.contact-form textarea:placeholder {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 400;
}
.contact-form button {
  display: block;
  margin-inline: auto;
  background: var(--color-cta-bg);
  color: var(--color-btn-text);
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.8rem;
  background: var(--color-footer-bg);
}
.footer > *:first-child {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.footer a {
  color: var(--color-text);
}

/* Privacy Policy */
.privacy-body h3 {
  margin: 1.75em 0 0.5em;
  font-weight: 600;
}
.privacy-body h3:first-of-type {
  margin-top: 0;
}
.privacy-body p {
  margin: 0 0 1.25em;
  line-height: 1.9;
  text-align: justify;
}
@media screen and (max-width: 1023px) {
  .privacy-body h3 { margin: 1.5em 0 0.5em; }
  .privacy-body p { margin-bottom: 1.1em; }
}

/* Utilities: br shown only on SP */
br.sp-only { display: none; }
@media screen and (max-width: 767px) {
  br.sp-only { display: inline; }
}
