/* ============================================================
   Eibun Tokyo - Main Stylesheet
   ============================================================ */

/* --- CSS Reset/Normalize --- */
*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,h4,h5,h6,p,ol,ul,figure,blockquote,dl,dd{margin:0;padding:0}ul,ol{list-style:none}img{max-width:100%;display:block}input,button,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button{background:none;border:none;cursor:pointer}table{border-spacing:0}

/* --- @font-face --- */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/NotoSansJP-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/NotoSansJP-Bold.woff2') format('woff2');
}

/* --- CSS Variables --- */
:root {
  --color-primary: #B65C02;
  --color-primary-light: #FFF5EB;
  --color-primary-dark: #8B4700;
  --color-primary-accent: #E67E22;
  --color-text: #2D2D2D;
  --color-text-light: #555555;
  --color-bg: #FFFFFF;
  --color-bg-gray: #F7F7F7;
  --color-footer: #2D2D2D;
  --font-family: 'Noto Sans JP', sans-serif;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Typography --- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

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

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   Navigation (.site-nav)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #eee;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-nav__logo img {
  height: 45px;
  width: auto;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.site-nav__link:hover {
  color: var(--color-primary);
}

.site-nav__cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.site-nav__cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.site-nav__cta:active {
  transform: translateY(0);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.site-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   Hero (.hero)
   ============================================================ */
.hero {
  padding: 80px 40px;
  text-align: center;
}

.hero__logo {
  width: 80px;
  margin: 0 auto 16px;
}

.hero__title {
  font-size: 28px;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 12px;
  color: #767676;
  letter-spacing: 3px;
  margin: 8px 0 20px;
  text-transform: uppercase;
}

.hero__tagline {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.hero__cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(182, 92, 2, 0.25);
}

.hero__cta:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================================================
   Page Header (.page-header)
   ============================================================ */
.page-header {
  background: var(--color-bg-gray);
  padding: 60px 40px;
  border-bottom: 3px solid var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.page-header--has-bg {
  background-blend-mode: soft-light;
  background-color: rgba(255,255,255,0.85);
}

/* Hero background images per page */
.hero {
  background: linear-gradient(135deg, rgba(255,245,235,0.88) 0%, rgba(255,255,255,0.85) 50%, rgba(255,249,242,0.88) 100%),
              url('../images/hero-index.webp') center / cover no-repeat;
}

.page-header--services { background-image: url('../images/hero-services.webp'); }
.page-header--about { background-image: url('../images/hero-about.webp'); }
.page-header--philosophy { background-image: url('../images/hero-philosophy.webp'); }
.page-header--message { background-image: url('../images/hero-message.webp'); }
.page-header--access { background-image: url('../images/hero-access.webp'); }
.page-header--contact { background-image: url('../images/hero-contact.webp'); }

.page-header__label {
  font-size: 12px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
}

.page-header__title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

.page-content {
  padding: 50px 0;
}

/* ============================================================
   Section Label (.section-label)
   ============================================================ */
.section-label {
  text-align: center;
  margin-bottom: 40px;
}

.section-label__en {
  font-size: 12px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
}

.section-label__ja {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

/* ============================================================
   Service Card (.service-card)
   ============================================================ */
.services {
  padding: 60px 40px;
}

.services .section-label,
.services .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.services .section-title {
  margin-bottom: 32px;
}

.services__cards {
  display: flex;
  gap: 24px;
}

.service-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.service-card__icon {
  background: var(--color-primary-light);
  padding: 0;
  text-align: center;
  font-size: 32px;
  overflow: hidden;
}
.service-card__icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card__body {
  padding: 20px;
}

.service-card__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.service-card__link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
}

.service-card__link:hover {
  color: var(--color-primary-dark);
}

/* ============================================================
   Strength Item (.strength-item)
   ============================================================ */
.strengths {
  background: var(--color-bg-gray);
  padding: 60px 40px;
}

.strengths .section-label,
.strengths .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.strengths .section-title {
  margin-bottom: 32px;
}

.strengths__items {
  display: flex;
  gap: 30px;
}

.strength-item {
  text-align: center;
  flex: 1;
}

.strength-item__icon {
  display: block;
  margin: 0 auto 8px;
  width: 48px;
  height: 48px;
}

.strength-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.strength-item__title {
  font-weight: 700;
  margin-top: 12px;
}

.strength-item__desc {
  color: var(--color-text-light);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================================
   Info Table (.info-table)
   ============================================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  background: var(--color-bg-gray);
  padding: 14px 16px;
  text-align: left;
  font-weight: normal;
  width: 25%;
  border-bottom: 1px solid #eee;
}

.info-table th strong,
.info-table th.bold {
  font-weight: 700;
}

.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

/* ============================================================
   Related Links (.related-links)
   ============================================================ */
.related-links {
  display: flex;
  gap: 16px;
}

.related-link {
  flex: 1;
  background: var(--color-bg-gray);
  padding: 16px;
  border-radius: 4px;
  border-left: 3px solid var(--color-primary);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.related-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  transform: translateY(-2px);
}

.related-link__label {
  font-size: 12px;
  color: #767676;
}

.related-link__title {
  font-weight: 700;
  margin-top: 4px;
}

/* ============================================================
   CTA Bar (.cta-bar)
   ============================================================ */
.cta-bar {
  background: var(--color-primary);
  color: #fff;
  padding: 50px 40px;
  text-align: center;
}

.cta-bar h2,
.cta-bar__title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.cta-bar p,
.cta-bar__text {
  color: #fff;
  margin: 12px 0 24px;
}

.cta-bar__buttons {
  display: inline-flex;
  gap: 15px;
}

.cta-bar__btn--white {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cta-bar__btn--white:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-bar__btn--white:active {
  transform: translateY(0);
}

.cta-bar__btn--outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 30px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base);
}

.cta-bar__btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.cta-bar__btn--outline:active {
  transform: translateY(0);
}

/* ============================================================
   Contact Form (.contact-form)
   ============================================================ */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background var(--transition-base), transform var(--transition-base);
}

.form-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#form-status {
  margin-top: 16px;
}

.form-status--success {
  color: green;
}

.form-status--error {
  color: red;
}

/* ============================================================
   Footer (.site-footer)
   ============================================================ */
.site-footer {
  background: var(--color-footer);
  color: #AAAAAA;
  padding: 40px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
}

.site-footer__company {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.site-footer__info p {
  font-size: 13px;
  line-height: 1.8;
}

.site-footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #AAAAAA;
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__copyright {
  margin-top: 20px;
  font-size: 12px;
  color: #9A9A9A;
}

/* ============================================================
   Icon utilities
   ============================================================ */
.btn-icon {
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}

.footer-icon {
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}

/* ============================================================
   Page: Services (services.html)
   ============================================================ */
.service-section { margin-bottom: 50px; }
.service-section__header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.service-section__number { width: 36px; height: 36px; background: var(--color-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; flex-shrink: 0; }
.service-section__header h2 { margin: 0; font-size: 22px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.product-tag { background: var(--color-primary-light); color: var(--color-primary); padding: 6px 14px; border-radius: 4px; font-size: 14px; }
.channels { color: var(--color-text-light); font-size: 14px; }
.sub-cards { display: flex; gap: 16px; }
.sub-card { flex: 1; background: var(--color-bg-gray); padding: 20px; border-radius: 8px; }
.sub-card h3 { margin-top: 0; font-size: 16px; }

/* ============================================================
   Page: Message (message.html)
   ============================================================ */
.message-content { max-width: 800px; line-height: 2.0; }
.message-content p { margin-bottom: 24px; }
.message-representative { font-size: 20px; font-weight: bold; color: var(--color-primary); margin-bottom: 32px; }

/* ============================================================
   Page: Philosophy (philosophy.html)
   ============================================================ */
.philosophy-section { margin-bottom: 50px; }
.philosophy-section h2 { font-size: 22px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--color-primary); display: inline-block; }
.philosophy-keywords { font-size: 28px; font-weight: bold; color: var(--color-text); line-height: 1.8; }
.strategy-items { display: flex; flex-direction: column; gap: 16px; }
.strategy-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--color-bg-gray); border-radius: 8px; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.strategy-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.strategy-number { font-size: 24px; font-weight: bold; color: var(--color-primary); flex-shrink: 0; }
.strategy-item p { margin: 0; line-height: 1.8; }

/* ============================================================
   Page: Access (access.html)
   ============================================================ */
.access-map { margin-bottom: 40px; }
.access-map iframe { border-radius: 8px; }
.access-info h2 { font-size: 22px; margin-bottom: 20px; }
.access-details { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.access-details dt { font-weight: bold; color: var(--color-text); }
.access-details dd { margin: 0; line-height: 1.8; }
.access-details a { color: var(--color-primary); }

/* ============================================================
   Page: Contact (contact.html)
   ============================================================ */
.contact-intro { margin-bottom: 32px; line-height: 1.8; }
.required { color: #C53030; }

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