/* ===================================================
   AOI INFORMATION CO., LTD. — Shared Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* === VARIABLES === */
:root {
  --bg:            #F9F7F2;
  --white:         #FFFFFF;
  --text:          #252525;
  --text-muted:    #6B6457;
  --primary:       #1B3A5C;
  --primary-hover: #2E5F8A;
  --accent:        #8B6E4E;
  --accent-light:  #C4956A;
  --border:        #D8D0C4;
  --section-alt:   #EEE9E0;
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:         1180px;
  --nav-h:         76px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary); transition: color .25s; }
a:hover { color: var(--accent); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }

/* === CONTAINER === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* =============================
   NAVIGATION
   ============================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(249,247,242,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.08); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .03em;
}
.nav__logo-kanji {
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
}
.nav__logo-sub {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav__logo-name { font-size: 1.05rem; }
.nav__logo-corp {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover,
.nav__link.active { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all .3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link {
  font-size: .92rem;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

/* =============================
   PAGE HEADER
   ============================= */
.page-header {
  margin-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.45);
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27,58,92,.25) 0%, rgba(27,58,92,.5) 100%);
}
.page-header__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 24px;
}
.page-header__label {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  margin-bottom: 14px;
  display: block;
}
.page-header__title {
  color: white;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.page-header__ornament {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(255,255,255,.38);
  font-size: .85rem;
  letter-spacing: .3em;
}
.page-header__ornament::before,
.page-header__ornament::after {
  content: '';
  width: 44px; height: 1px;
  background: rgba(255,255,255,.38);
}

/* =============================
   SECTIONS
   ============================= */
.section { padding: 88px 0; }
.section--alt { background: var(--section-alt); }
.section--sm { padding: 56px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--primary); }

.section__label {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
  font-weight: 500;
}
.section__title { margin-bottom: 18px; }
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.78;
}
.divider {
  width: 52px; height: 1px;
  background: var(--accent);
  margin: 22px 0;
}
.divider--center { margin: 22px auto; }
.text-center { text-align: center; }
.text-center .section__subtitle { margin: 0 auto; }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-40 { margin-bottom: 40px; }

/* =============================
   BUTTONS
   ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  border: none;
  border-radius: 0;
}
.btn--primary { background: var(--primary); color: white; }
.btn--primary:hover { background: var(--accent); color: white; }
.btn--outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: white; }
.btn--accent { background: var(--accent); color: white; }
.btn--accent:hover { background: var(--accent-light); color: white; }
.btn--white { background: white; color: var(--primary); }
.btn--white:hover { background: var(--accent-light); color: white; }
.btn--outline-white { background: transparent; color: white; border: 1px solid rgba(255,255,255,.55); }
.btn--outline-white:hover { background: white; color: var(--primary); }
.btn--sm { padding: 10px 22px; font-size: .75rem; }

/* =============================
   CARDS
   ============================= */
.card {
  background: var(--white);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.09); }

.card__img-wrap { overflow: hidden; height: 230px; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.card:hover .card__img { transform: scale(1.06); }

.card__body { padding: 28px 30px; }
.card__tag {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}
.card__title { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.3; }
.card__excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.card__date { font-size: .78rem; color: var(--text-muted); }
.card__link {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .25s;
}
.card__link:hover { color: var(--primary); }

/* =============================
   GRID HELPERS
   ============================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================
   BREADCRUMB
   ============================= */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 20px 0;
}
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border); margin: 0 2px; }

/* =============================
   FORMS
   ============================= */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  border-radius: 0;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,110,78,.12);
}
.form-control::placeholder { color: #b5ac9e; }
textarea.form-control { resize: vertical; min-height: 145px; }

/* =============================
   FOOTER
   ============================= */
.footer { background: var(--primary); color: rgba(255,255,255,.82); padding: 68px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo-kanji { color: var(--accent-light); font-size: 2.1rem; }
.footer__desc {
  font-size: .875rem;
  line-height: 1.88;
  color: rgba(255,255,255,.58);
  margin-bottom: 0;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: .875rem; color: rgba(255,255,255,.58); transition: color .25s; }
.footer__link:hover { color: white; }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer__contact-icon { flex-shrink: 0; margin-top: 2px; color: var(--accent-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer__bottom a { color: rgba(255,255,255,.5); transition: color .25s; }
.footer__bottom a:hover { color: rgba(255,255,255,.85); }
.footer__bottom-links { display: flex; gap: 20px; }

/* =============================
   TOAST
   ============================= */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  padding: 16px 22px;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.55;
  max-width: 340px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  border-left: 3px solid var(--accent-light);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.toast--visible { transform: translateY(0); opacity: 1; }
.toast--error { border-color: #c0392b; }

/* =============================
   ARTICLE
   ============================= */
.article-hero { width: 100%; height: 460px; object-fit: cover; display: block; }
.article-body {
  font-family: var(--font-heading);
  font-size: 1.13rem;
  line-height: 1.92;
  color: var(--text);
}
.article-body p { color: var(--text); margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; color: var(--primary); }
.article-body h3 { font-size: 1.35rem; margin: 2rem 0 .8rem; color: var(--primary); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 28px;
  margin: 2.2rem 0;
  background: var(--section-alt);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--text-muted);
}
.article-body figure { margin: 2.5rem 0; }
.article-body figure img { width: 100%; max-height: 420px; object-fit: cover; }
.article-body figcaption {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 10px;
  letter-spacing: .04em;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section--sm { padding: 40px 0; }
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .page-header { height: 240px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer__bottom-links { justify-content: center; }
  .article-hero { height: 280px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { padding: 13px 26px; }
  .card__body { padding: 22px 20px; }
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
  .page-header { height: 200px; }
}
