@import url("../fonts/fonts.css");

:root {
  --text: #737373;
  --text-step: #777;
  --black: #000;
  --accent: #f13c46;
  --button: #dd3333;
  --airmail-red: #d43c49;
  --airmail-blue: #289dc0;
  --footer-bg: #353535;
  --footer-text: rgba(255, 255, 255, .66);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Karla", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header (home) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 132px;
  background: #fff;
  transition: height .3s, background-color .3s, box-shadow .3s;
}
.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 55px 0 69px;
}
.site-header .logo img { width: 400px; transition: width .3s; }
.site-header.is-stuck {
  height: 80px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header.is-stuck .logo img { width: 240px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 38px; }
.main-nav a {
  display: block;
  padding: 14px 0;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); text-decoration: none; }

.nav-toggle { display: none; }

.header-spacer { height: 132px; }

/* ---------- Hero ---------- */
.hero { max-width: 1500px; margin: 0 auto; }
.hero img { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-top: 70px; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  margin: 13px 0 15px;
  padding-top: 26px;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  font-size: 51px;
  font-weight: 600;
  line-height: 1.5;
}
.subtitle {
  margin: 0;
  color: var(--accent);
  letter-spacing: 6px;
  line-height: 22.5px;
  text-transform: uppercase;
}

/* お知らせ */
.notice {
  padding-bottom: 60px;
  text-align: center;
  color: var(--black);
  letter-spacing: 6px;
  line-height: 22.5px;
}
.notice p { margin: 0 0 13px; }
.notice .notice-title { font-size: 21px; font-weight: 700; margin-bottom: 26px; }
.notice .gap { height: 22px; }
.notice a { color: #f00; }

/* About */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 30px;
  max-width: 1140px;
  margin: 0 auto;
}
.step { text-align: center; color: var(--text-step); }
.step img { width: 300px; margin: 0 auto 20px; }
.step:last-child { grid-column: 1 / -1; }

.photos { display: grid; gap: 24px; justify-items: center; margin: 60px auto 0; }
.photos img { width: 600px; }

/* スクロールに合わせてその場でふわっと表示（フェードインのみ） */
.js .fade-up { opacity: 0; }
.js .fade-up.is-inview { animation: fadeIn 1s both; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .fade-up { opacity: 1; }
  .js .fade-up.is-inview { animation: none; }
}

/* Letter */
.letter { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.letter-body p { margin-bottom: 27px; }
.founder { text-align: center; padding-top: 10px; }
.founder img { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; }
.founder p { margin-bottom: 20px; }

.btn {
  display: inline-block;
  padding: 0 20px;
  background: var(--button);
  color: #fff;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 1.5px;
}
.btn:hover { text-decoration: none; opacity: .88; }

/* Pics */
.insta-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.insta-head .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #222; color: #fff;
  display: grid; place-items: center;
}
.insta-head .avatar svg { width: 22px; height: 22px; }
.insta-head a { color: var(--black); font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 500; }

.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.insta-grid a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #eee; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.insta-grid a:hover img { transform: scale(1.04); opacity: .85; }

.insta-follow { text-align: center; margin: 24px 0 0; }
.insta-follow a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #408bd1;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.insta-follow a:hover { text-decoration: none; opacity: .88; }
.insta-follow svg { width: 14px; height: 14px; }

/* Contact（エアメール封筒） */
.contact { padding-bottom: 50px; }
.envelope {
  border-style: solid none;
  border-width: 8px 0;
  border-image: repeating-linear-gradient(-45deg,
    var(--airmail-red) 0 30px, transparent 0 60px,
    var(--airmail-blue) 0 90px, transparent 0 120px) 8 / 1 / 0 stretch;
  padding: 30px 20px 20px;
}
.form-frame { width: 100%; height: 1250px; border: 0; display: block; }
.form-fallback { text-align: center; margin: 12px 0 0; font-size: 14px; }
.form-pending { text-align: center; padding: 40px 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 70px;
  padding: 60px 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
}
.social { list-style: none; margin: 0 0 30px; padding: 0; display: flex; justify-content: center; gap: 10px; }
.social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #565656; color: #c6c6c6;
}
.social a:hover { color: #fff; text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.quote { margin: 0; font-size: 13px; }

.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #222;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 12px; height: 12px; }

/* ---------- Sub pages ---------- */
.sub-header .container { padding-top: 26px; }
.sub-header .logo img { width: 400px; }
.sub-nav { margin-top: 40px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 40px; }
.sub-nav a { display: block; padding: 16px 0; color: var(--black); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.sub-nav a:hover { color: var(--accent); text-decoration: none; }

.article { padding-top: 70px; color: #555; }
.article p { margin: 0 0 27px; }
.article .article-title { font-size: 17px; font-weight: 700; color: var(--black); }
.article h2 { font-size: 15px; font-weight: 700; color: var(--black); margin: 54px 0 27px; }
.article h3 { font-size: 15px; font-weight: 700; color: var(--black); margin: 40px 0 20px; }
.article .signature { margin-top: 54px; }
.article .envelope { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-header .inner { padding: 0 30px; }
  .site-header .logo img { width: 280px; }
  .main-nav ul { gap: 0 24px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 64px; }
  .site-header, .site-header.is-stuck { height: 64px; }
  .header-spacer { height: 64px; }
  .site-header .inner { padding: 0 16px; }
  .site-header .logo img, .site-header.is-stuck .logo img { width: 200px; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: #222; position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }

  .section-title h2 { font-size: 38px; }
  .notice { letter-spacing: 2px; }
  .notice .notice-title { font-size: 18px; }
  .notice br { display: none; }
  .steps { grid-template-columns: 1fr; }
  .letter { grid-template-columns: 1fr; }
  .founder { order: -1; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .container { padding: 0 16px; }

  .sub-header .logo img { width: 240px; }
  .sub-nav ul { flex-wrap: wrap; gap: 0 20px; }
  .article { padding-top: 40px; }
  .to-top { right: 16px; bottom: 16px; }
}
