.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: #3a5f7d;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }


/* ============================================================
   RESET & BASE
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --yellow:   #f0f0f0;
  --navy:     #4a7496;
  --blue:     #1773ee;
  --blue2:    #0043c8;
  --lblue:    #67c0ff;
  --white:    #ffffff;
  --black:    #2a2a2a;
  --gray:     #f4f4f4;
  --border:   #dddddd;
  --text:     #444444;
  --subtext:  #666666;
}

/* ハンバーガーはモバイルのみ */
.nav-toggle { display: none; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 2.2;
  font-weight: 400;
  letter-spacing: 0.05em;
}

a { color: var(--black); }
a:hover { text-decoration: none; color: var(--black); }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--white);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-brand h1, .header-brand .header-brand-name {
  font-family: 'MS明朝','MS Mincho','游明朝','Yu Mincho','Shippori Mincho','Noto Serif JP',serif;
  font-size: 24px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
  margin: 0;
  border: none;
  letter-spacing: 0.1em;
}

.header-brand h1 a, .header-brand .header-brand-name a {
  color: #444444;
  text-decoration: none;
  border: none;
  outline: none;
}

.header-brand-name { margin: 0; }

.header-brand h2 {
  font-size: 11px;
  font-weight: 300;
  color: #444444;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* ============================================================
   GLOBAL NAV
   ============================================================ */
#menu-g {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

#menu-g li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color .2s;
  white-space: nowrap;
}

#menu-g li a:hover,
#menu-g li a.over {
  color: #888888 !important;
  text-decoration: none !important;
}
/* ============================================================
   PAGE SECTIONS (SPA routing)
   ============================================================ */


/* ============================================================
   HOME: HERO (yellow, 2-col)
   ============================================================ */
.hero {
  background: var(--white);
  display: block;
  min-height: calc(100vh - 90px);
  position: relative;
  padding: 40px 0;
}

.hero-tagline {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero-left {
  padding: 0 72px 0 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  min-height: calc(100vh - 90px);
  position: relative;
  z-index: 1;
}

.hero-left h2 {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 400;
  font-style: italic;
  color: #444444;
  line-height: 2.8;
  letter-spacing: 0.2em;
  margin: 0;
  animation: heroFadeIn 1.2s ease 0.3s both;
}

.hero-accent-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--white);
  margin-bottom: 24px;
  animation: heroFadeIn 1.2s ease 0.15s both;
  opacity: 0.8;
}


@keyframes fadeInPlace {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left p {
  font-size: 13px;
  color: #444;
  line-height: 2;
  max-width: 480px;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Stylised website-preview mockup (blue visual from wireframe) */
.site-preview {
  background: var(--blue2);
  border-radius: 4px;
  width: 100%;
  max-width: 360px;
  padding: 18px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
}

.preview-bar {
  background: var(--navy);
  height: 28px;
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  margin-bottom: 12px;
}

.preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.preview-body { display: flex; flex-direction: column; gap: 8px; }

.preview-row {
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  height: 14px;
}

.preview-row.short { width: 60%; }
.preview-row.med   { width: 80%; }

.preview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.preview-card {
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  height: 52px;
}

/* ============================================================
   HOME: INFORMATION BAR
   ============================================================ */
.info-bar {
  background: var(--white);
  padding: 14px 56px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.info-bar-label img { display: inline; }

.info-label-txt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #444;
  background: rgba(0,0,0,0.09);
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.info-date {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.info-text {
  font-size: 13px;
  color: #222;
  line-height: 1.7;
}

/* ============================================================
   HOME: GREETING
   ============================================================ */
.greeting-section {
  background: var(--white);
  padding: 70px 40px;
  text-align: left;
}

.greeting-h2 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.greeting-h3 {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.greeting-p {
  font-size: 16px;
  color: var(--text);
  line-height: 2.2;
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.greeting-sign {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.about-btn {
  display: inline-block;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 10px 28px;
  text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}

.about-btn:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(74,116,150,0.25);
  transform: translateY(-1px);
}

/* ============================================================
   HOME: BANNERS
   ============================================================ */
.banner-area {
  background: var(--white);
  padding: 40px 56px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.banner-area a {
  display: block;
  transition: opacity .2s;
  flex-shrink: 0;
}

.banner-area a:hover { opacity: .8; }

.banner-area img {
  max-height: 100px;
  width: auto;
}

/* ============================================================
   HOME: 事業内容
   ============================================================ */
.business-section {
  background: #f0f0f0;
  padding: 56px 40px 64px;
}

.business-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  color: #3a5f7d;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.12em;
}

.business-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--black);
  margin: 10px auto 40px;
}

.business-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.business-item {
  background: var(--white);
  display: flex;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: box-shadow .25s, transform .25s;
}

.business-item:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.business-item-img {
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
}

.business-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.business-item-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.business-item-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #3a5f7d;
  margin: 0;
  letter-spacing: 0.06em;
}

.business-item-body p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.business-btn {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 28px;
  text-decoration: none;
  letter-spacing: 0.15em;
  align-self: flex-end;
  margin-left: auto;
  transition: background .2s, color .2s;
}

.business-btn:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* ============================================================
   HOME: NOUSAGI / BLOG
   ============================================================ */
.nousagi-section {
  background: var(--gray);
  padding: 44px 56px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.nousagi-section a.rabbit-link {
  display: block;
  flex-shrink: 0;
}

.nousagi-section .rabbit-text .blog-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
}

.nousagi-section .rabbit-text .blog-title:hover {
  color: var(--black);
  text-decoration: none;
}

.nousagi-section .rabbit-text p {
  font-size: 13px;
  color: var(--subtext);
  line-height: 2;
}

/* ============================================================
   INNER PAGES: COMMON
   ============================================================ */

/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.04em;
  background: transparent;
  padding: 8px 40px;
  text-align: center;
  margin-top: -16px;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #444;
  text-decoration: underline;
}
.page-header-bar {
  background: var(--white);
  padding: 40px 56px 16px;
  text-align: center;
}

.page-header-bar h1 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 36px;
  font-weight: 700;
  color: #444444;
  letter-spacing: 0.12em;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid #444444;
}

.inner-contents {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  padding: 48px 56px;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   INNER PAGES: LEFT BOX
   ============================================================ */
.left-box h1 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  letter-spacing: 0.1em;
}

.left-box h2 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: #3a5f7d;
  margin: 56px 0 28px;
  padding-left: 14px;
  border-left: none;
  position: relative;
  letter-spacing: 0.06em;
}
.left-box h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 55%;
  width: 6px;
  background: #3a5f7d;
  border-radius: 1px;
}

.left-box h2:first-of-type { margin-top: 0; }

[data-page="company"] .left-box h2 { margin-top: 120px; }
[data-page="company"] .left-box h2:first-of-type { margin-top: 0; }

.left-box h3 {
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  margin: 14px 0 10px;
  letter-spacing: 0.06em;
}

/* ============================================================
   OURSTORY: Timeline / playful design
   ============================================================ */
.story-timeline {
  position: relative;
}

.story-block {
  position: relative;
  padding: 24px 0 48px;
  margin: 0;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.story-block.in-view { opacity: 1; transform: translateY(0); }

.story-block--01 { background: transparent; }
.story-block--02 { background: transparent; }
.story-block--03 { background: transparent; position: relative; overflow: hidden; }





.story-block > * { position: relative; z-index: 1; }

.story-quote {
  position: relative;
  text-align: center;
  margin: 4px 0 28px;
}

.story-quote::before, .story-quote::after {
  font-family: Georgia, serif;
  font-size: 64px;
  color: #4a7496;
  opacity: 0.25;
  line-height: 0;
  position: relative;
  top: 22px;
}

.story-quote::before { content: '“'; margin-right: 8px; }
.story-quote::after { content: '”'; margin-left: 8px; }

.story-quote strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3a5f7d;
}

.story-bignum {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 72px;
  color: #e8b84b;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.story-bignum span {
  font-size: 22px;
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  color: #3a5f7d;
  font-weight: 700;
  margin-left: 6px;
}

.left-box p {
  font-size: 16px;
  color: var(--text);
  line-height: 2.4;
  margin-bottom: 12px;
  font-weight: 400;
}

.left-box p.right { text-align: right; }

/* ============================================================
   TABLE (company overview & history)
   ============================================================ */
.left-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 16px;
}

.left-box table th {
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  min-width: 80px;
}

.left-box table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.85;
}

.left-box table td.sep {
  width: 10px;
  color: #aaa;
  padding: 11px 4px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   LIST (business contents)
   ============================================================ */
.left-box ul {
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
}

.left-box ul li {
  font-size: 16px;
  color: var(--text);
  line-height: 2;
  padding-left: 16px;
  position: relative;
}

.left-box ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--black);
  font-size: 11px;
  top: 4px;
}

/* ============================================================
   ORDERED LIST (privacy)
   ============================================================ */
.left-box ol {
  padding-left: 18px;
  margin: 8px 0 20px;
}

.left-box ol li {
  font-size: 14px;
  color: var(--text);
  line-height: 2;
  margin-bottom: 10px;
}

/* ============================================================
   CONTACT BOX
   ============================================================ */
.contact-block {
  margin: 8px 0 20px;
  padding: 20px 24px;
  background: #f5f5f5;
  border-radius: 10px;
}

.contact-block p[style*="margin-top:60px"],
.shodo-contact {
  text-align: center !important;
  padding-left: 0 !important;
  margin-top: 40px !important;
}

.contact-block h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #3a5f7d !important;
  margin: 0 0 8px !important;
}

.contact-block p { margin: 0 0 4px !important; font-weight: 600; }
.contact-block .shodo-contact { margin-top: 16px !important; }

/* ============================================================
   RIGHT BOX (nousagi image)
   ============================================================ */
#right-box { padding-top: 8px; }
#right-box a { display: block; }
#right-box img { width: 100%; }

/* ============================================================
   FOOTER NAV (yellow)
   ============================================================ */
.footer-nav {
  background: #eaeaea;
  padding: 24px 40px 20px;
  text-align: center;
}

.footer-nav-main {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav-main a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 20px;
  transition: color .2s;
  border-right: 1px solid rgba(0,0,0,0.2);
  font-weight: 600;
}

.footer-nav-main a:first-child { border-left: 1px solid rgba(0,0,0,0.2); }

.footer-nav-main a:hover { color: #888888 !important; text-decoration: none !important; }

.footer-nav-sub {
  margin-top: 4px;
}

.footer-nav-sub a {
  font-size: 11px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity .2s;
}

.footer-nav-sub a:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   FOOTER (black copyright)
   ============================================================ */
footer {
  background: #eaeaea;
  padding: 14px 40px;
  text-align: center;
}

footer p {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  letter-spacing: 0.06em;
}

/* ============================================================
   HOME: 会社案内グリッド
   ============================================================ */
.kaisha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.kaisha-box-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: #3a5f7d;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 6px solid #3a5f7d;
  letter-spacing: 0.06em;
}

.kaisha-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.kaisha-list li {
  font-size: 16px;
  color: var(--text);
  line-height: 2.2;
  padding-left: 16px;
  position: relative;
}

.kaisha-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 12px;
  top: 4px;
}

/* ============================================================
   HOME: 会社情報・お問い合わせ セクション
   ============================================================ */
.home-section {
  background: var(--white);
  padding: 52px 56px;
}

.home-section-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  color: #3a5f7d;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.12em;
}

.home-section-title::after {
  display: none;
}

.home-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.home-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-bottom: 20px;
}

.home-table th {
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  width: 100px;
  text-align: left;
  vertical-align: top;
}

.home-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.85;
}

.home-table td.sep { width: 10px; color: #aaa; padding: 12px 4px; border-bottom: 1px solid var(--border); }

.home-more-link {
  display: block;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.home-more-link span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.home-news-text { font-size: 16px; }

.home-more-link:hover span { border-bottom-color: currentColor; }

/* ============================================================
   PAGE TOP BUTTON
   ============================================================ */
.pagetop-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  opacity: 0;
  transition: opacity .3s;
  z-index: 300;
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

.pagetop-btn.visible { opacity: 1; }
.pagetop-btn:hover { background: var(--blue); }

/* ============================================================
   RESPONSIVE (スマートフォン)
   ============================================================ */



/* ============================================================
   PAGE-OURSTORY: Modern Minimal Redesign
   ============================================================ */



#page-ourstory { position: relative; }

#page-ourstory .inner-contents {
  max-width: 1100px;
  padding: 0 56px 100px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 0;
}

#page-ourstory .story-timeline {
  display: flex;
  flex-direction: column;
}

#page-ourstory .story-block {
  border-radius: 0;
  padding: 72px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
  background: transparent;
  overflow: visible;
}

#page-ourstory .os-photo-full.story-block { padding-bottom: 0; padding-top: 0; background: transparent; }
#page-ourstory .os-future.story-block { padding-top: 0; }

#page-ourstory .story-block:last-child {
  border-bottom: none;
  padding-bottom: 200px;
}

#page-ourstory .story-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

#page-ourstory .left-box h2 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3a3a3a;
  border-left: none;
  padding-left: 0;
  margin: 0 0 28px;
  text-align: left;
  width: auto;
  display: block;
}

#page-ourstory .ourstory-greeting {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

#page-ourstory .left-box p {
  font-size: 15px;
  line-height: 2.6;
  color: #444;
  margin-bottom: 16px;
}

#page-ourstory .left-box p.story-byline {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.12em;
  margin-top: 32px;
  margin-bottom: 0;
  line-height: 1.5;
}

#page-ourstory .story-quote {
  text-align: left;
  margin: 0 0 36px;
}

#page-ourstory .story-quote::before,
#page-ourstory .story-quote::after {
  display: none;
}

#page-ourstory .story-quote strong {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2a2a2a;
  display: block;
  line-height: 1.6;
}

#page-ourstory .story-bignum {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 80px;
  color: #2a2a2a;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 40px;
}

#page-ourstory .story-bignum span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  letter-spacing: 0.15em;
  margin-left: 12px;
  vertical-align: baseline;
}

#page-ourstory .ourstory-photo {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: none;
  display: block;
  filter: grayscale(15%);
}

#page-ourstory .left-box a {
  color: #4a7496;
  text-decoration: none;
  border-bottom: 1px solid rgba(74,116,150,0.3);
  padding-bottom: 1px;
  transition: border-color .2s;
}

#page-ourstory .left-box a:hover {
  border-color: #4a7496;
  color: #4a7496;
}



/* ---- Street photo (2026 editorial style) ---- */
.ourstory-street-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 64px;
  overflow: hidden;
  line-height: 0;
}

.ourstory-street-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

.ourstory-street-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.05) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px 56px;
}

.ourstory-street-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}



/* ============================================================
   PAGE-OURSTORY: 2026 Editorial Redesign
   ============================================================ */

/* Remove default inner for ourstory */
#page-ourstory .inner-contents  { display: none; }

/* ---- Hero: split screen ---- */
.os-hero {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 48px auto;
  background: #fff;
}

.os-hero-photo {
  position: relative;
  flex: 0 0 72%;
}

.os-hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.os-hero-left {
  position: absolute;
  top: 56px;
  right: 80px;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px 6px;
  z-index: 2;
  white-space: nowrap;
}

.os-hero-right { display: none; }

.os-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #bbb;
  writing-mode: vertical-rl;
  display: block;
}

.os-headline {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 2.0;
  color: #555;
  letter-spacing: 0.18em;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---- Body text sections ---- */
.os-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 48px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.os-section.in-view    { opacity: 1; transform: translateY(0); }

.os-section-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #999;
  display: block;
  margin-bottom: 32px;
}

.os-section-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  line-height: 1.5;
}

.os-body {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 2.6;
  color: #444;
  margin-bottom: 16px;
}

.os-byline {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 15px;
  color: #444;
  letter-spacing: 0.12em;
  margin-top: 32px;
}

/* ---- Full-width photo ---- */
.os-photo-full {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
  max-width: calc(1100px * 0.60);
  margin-left: auto;
  margin-right: auto;
}

.os-photo-full.in-view {
  opacity: 1;
  transform: translateY(0);
}

.os-photo-full img {
  width: 100%;
  height: auto;
  display: block;
}

.os-photo-overlay {
  position: absolute;
  inset: 0;
  background: none;
  display: flex;
  align-items: flex-end;
  padding: 40px 64px;
}

.os-photo-caption {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.45em;
  color: rgba(255,255,255,0.7);
  line-height: 1;
}

/* ---- 25周年: big number section ---- */
.os-future {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 0 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.os-future-num {
  position: absolute;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(180px, 22vw, 300px);
  color: rgba(0,0,0,0.05);
  line-height: 1;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.os-future-inner {
  position: relative;
  z-index: 1;
}

.os-future-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  line-height: 1.5;
}

.os-future-title span { vertical-align: middle; }

.os-divider { display: none; }

/* ---- Link ---- */
#page-ourstory a {
  color: #4a7496;
  text-decoration: none;
  border-bottom: 1px solid rgba(74,116,150,0.3);
  padding-bottom: 1px;
  transition: border-color .2s;
}

#page-ourstory a:hover { border-color: #4a7496; }
#page-ourstory .breadcrumb a { color: #999; text-decoration: none; border-bottom: none; padding-bottom: 0; }
#page-ourstory .breadcrumb a:hover { color: #444; border-color: transparent; }

/* ---- Mobile ---- */


/* ============================================================
   TABLET (769px - 1024px)
   ============================================================ */
@media (max-width: 768px) {


  /* ===== グローバル ===== */
  body, p, li, td, th {
    font-size: 12px;
  }

  /* ===== ヘッダー ===== */
  header {
    height: auto;
    padding: 12px 20px 12px 20px;
    min-height: 0;
    flex-direction: row;
    background: var(--white);
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.4s ease;
  }


  .header-brand h1, .header-brand .header-brand-name {
    font-size: 12px;
  }

  .header-brand h1 a::before,
  .header-brand h1 a::after,
  .header-brand .header-brand-name a::before,
  .header-brand .header-brand-name a::after {
    content: none;
  }

  .header-brand h1 a, .header-brand .header-brand-name a {
    font-size: inherit;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-direction: row;
    white-space: nowrap;
  }
  .header-brand h1 a span:first-child,
  .header-brand .header-brand-name a span:first-child { font-size: 13px !important; }
  .header-brand h1 a span:last-child,
  .header-brand .header-brand-name a span:last-child  { font-size: 13px !important; white-space: nowrap; }

  /* ===== ハンバーガーメニュー ===== */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #444;
    transition: all .3s;
  }

  nav { width: 100%; }

  #menu-g {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  #menu-g.open { display: flex; }

  #menu-g li { width: 100%; }

  #menu-g li a {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;
    letter-spacing: 0.06em;
  }

  /* ===== ヒーロー ===== */

  .hero-left {
    padding: 60px 32px;
    min-height: 100svh;
    align-items: center;
    text-align: center;
  }

  .hero-left h2 {
    font-size: 16px;
    line-height: 2.2;
    word-break: keep-all;
    white-space: normal;
  }

  /* ===== ごあいさつ ===== */
  .greeting-section {
    padding: 48px 40px 48px 52px;
  }

  .greeting-h2 { font-size: 18px; }

  .greeting-p {
    font-size: 11px;
    text-align: left;
    line-height: 1.9;
  }

  .greeting-p strong {
    font-size: 11px !important;
  }

  .greeting-sign { font-size: 12px; }

  /* ===== 事業内容 ===== */
  .business-section {
    padding: 40px 28px;
  }

  .business-title { font-size: 24px; }

  .business-list { gap: 16px; }

  .business-item {
    flex-direction: column;
    min-height: unset;
  }

  .business-item-img {
    width: 100%;
    height: 180px;
  }

  .business-item-body {
    padding: 20px 28px;
  }

  .business-item-body h3 { font-size: 17px; }
  .business-item-body h3 span { font-size: 17px !important; }
  .business-item-body p { font-size: 11px; }

  /* ===== ホームセクション共通 ===== */
  .home-section { padding: 40px 36px 40px 48px; }
  #page-home .home-section[style*="min-height:580px"] { min-height: unset !important; padding: 40px 36px 40px 48px; }
  #page-home .home-section[style*="min-height:580px"] p[style*="font-size:15px"] { font-size: 12px !important; }

  .kaisha-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-section-title { font-size: 24px; }
  .home-section-title span { font-size: 24px; }
  .home-section-inner { max-width: 100%; }

  .home-table { font-size: 12px; }

  .home-table th {
    width: 80px;
    font-size: 12px;
    white-space: normal;
    padding: 10px 10px;
  }

  .home-table td {
    font-size: 12px;
    padding: 10px 10px;
  }

  .home-more-link { font-size: 12px; }
  .home-news-text { font-size: 12px; }
  .business-btn { font-size: 10px; padding: 5px 14px; }
  .about-btn { font-size: 11px; padding: 8px 16px; }



  /* ===== 沿革テーブル ===== */
  .history-table tr { display: block; margin-bottom: 8px; }
  .history-table th {
    display: block;
    width: 100% !important;
    white-space: normal;
    border-bottom: none !important;
    padding-bottom: 0;
  }
  .history-table td {
    display: block;
    width: 100%;
    padding-top: 0;
  }

  /* ===== お知らせ ===== */
  .info-bar {
    padding: 12px 28px;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
  }

  /* ===== 内部ページ ===== */
  
/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.04em;
  background: transparent;
  padding: 6px 20px;
  text-align: center;
  margin-top: -12px;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #444;
  text-decoration: underline;
}
.page-header-bar {
    padding: 80px 28px 12px 28px;
  }

  .page-header-bar h1 {
    font-size: 24px;
    min-width: unset;
    width: auto;
    display: inline-block;
  }

  .inner-contents {
    padding: 32px 40px;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .left-box h2 {
    font-size: 24px;
    margin: 40px 0 12px;
    padding-left: 14px;
    border-left: none;
    position: relative;
  }

  .left-box h3 {
    font-size: 14px;
  }
  .contact-block h3 { font-size: 14px; }

  .left-box p {
    font-size: 12px;
    line-height: 1.9;
  }

  .left-box ul li { font-size: 12px; }
  .left-box ol li { font-size: 12px; }

  .left-box table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }

  .left-box table th {
    font-size: 12px;
    padding: 10px 10px 3px;
    white-space: nowrap;
    min-width: unset;
    width: 100% !important;
    display: block;
    border-right: none !important;
    border-bottom: none !important;
    box-sizing: border-box;
  }

  .left-box table td {
    font-size: 12px;
    padding: 3px 10px 10px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .left-box table tr {
    display: block;
    border-bottom: 1px solid var(--border);
  }

  /* ===== 地図 ===== */
  iframe { height: 200px; }

  /* ===== フッターナビ ===== */
  .footer-nav { padding: 16px; }

  .footer-nav-main {
    flex-direction: column;
    gap: 0;
  }

  .footer-nav-main a {
    padding: 12px 0;
    font-size: 12px;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
    display: block;
  }

  .footer-nav-main a:first-child {
    border-left: none !important;
  }

  .footer-nav-sub { margin-top: 12px; }
  .footer-nav-sub a { font-size: 10px; }

  /* ===== お問い合わせブロック ===== */
  .contact-block { padding: 16px; }
  .contact-block a[href*="contact"] { font-size: 11px !important; padding: 8px 16px !important; }
  .shodo-contact { font-size: 11px !important; white-space: nowrap; }
  .contact-block p[style*="margin-top:60px"] { text-align: center !important; padding-left: 0 !important; margin-top: 40px !important; }

  /* ===== 未上書き要素 ===== */
  .kaisha-box-title { font-size: 17px; }
  .os-byline { font-size: 12px; }
  /* 野兎考語ブログ説明文 */
  .home-section p[style*="color:#666"] { font-size: 12px !important; }

    /* ===== フッター ===== */
  footer { padding: 8px 20px; }
  footer p { font-size: 10px; }

  /* ===== ページトップ ===== */
  .pagetop-btn {
    bottom: 16px;
    right: 16px;
    font-size: 11px;
    padding: 8px 10px;
  }

  #page-ourstory { position: relative; }

#page-ourstory .inner-contents {
    padding: 0 24px 0;
  }
  #page-ourstory .story-block {
    padding: 56px 0;
  }
  #page-ourstory .ourstory-greeting {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  #page-ourstory .story-bignum {
    font-size: 56px;
  }

  .ourstory-street-wrap img {
    height: 280px;
  }
  .ourstory-street-overlay {
    padding: 24px;
  }

  /* ヒーロー */
  .os-hero {
    flex-direction: column;
    padding: 16px 28px;
    gap: 0;
    margin: 24px auto;
  }
  .os-hero-photo {
    flex: none;
    width: 100%;
    min-height: 260px;
    position: relative;
  }
  .os-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .os-hero-left {
    position: absolute;
    top: 32px;
    right: 12px;
    bottom: auto;
    padding: 12px 6px;
    background: #fff;
  }
  .os-headline {
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: 0.15em;
    line-height: 1.8;
    margin: 0;
  }

  /* テキストセクション */
  .os-section, .os-section.story-block { padding: 28px 40px; }
  #page-ourstory .story-block { padding: 48px 40px; }
  .os-body { padding: 0; font-size: 12px; }

  /* 砂時計写真 */
  .os-photo-full {
    max-width: 100%;
    margin: 0;
  }
  .os-photo-full img {
    width: 100%;
    height: auto;
  }
  #page-ourstory .os-photo-full.story-block {
    padding-bottom: 0;
    padding-top: 0;
  }
  #page-ourstory .story-block:last-child {
    padding-bottom: 120px !important;
    margin-bottom: 0 !important;
  }
  #page-ourstory {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* レプレのこれから */
  .os-future {
    padding: 40px 40px;
    max-width: 100%;
  }
  #page-ourstory .os-future.story-block { padding-top: 40px; }
  .os-future-num { font-size: clamp(100px, 35vw, 160px); }

  /* ご挨拶うさぎ（モバイルで非表示） */
  #page-ourstory .os-section.story-block img[style*="left:-45%"] {
    display: none;
  }



  .os-photo-overlay { padding: 24px; }

  /* 行間調整 */
  #page-ourstory .os-body { line-height: 2.0; }
  #page-ourstory .os-section-title { line-height: 1.4; margin-bottom: 20px; }
  #page-ourstory .os-future-body { line-height: 2.0; }
  .hero {
    margin-top: 46px;
    min-height: 100svh;
  }
  .hero-tagline {
    top: 50% !important;
    padding: 4px 8px !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: auto !important;
    max-width: 94% !important;
  }
  .hero-tagline p {
    font-size: clamp(15px, 4.8vw, 19px) !important;
    letter-spacing: 0.12em !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-style: normal !important;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.9), -1px -1px 0 rgba(255,255,255,0.9), 1px -1px 0 rgba(255,255,255,0.9), -1px 1px 0 rgba(255,255,255,0.9) !important;
  }



  strong.greeting-headline {
    font-size: 20px !important;
    display: inline !important;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {

  /* ===== ヘッダー ===== */
  header {
    padding: 0 32px;
    min-height: 72px;
  }
  .header-brand h1 a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-direction: row;
    white-space: nowrap;
  }
  .header-brand h1 a span:first-child,
  .header-brand .header-brand-name a span:first-child { font-size: 16px !important; }
  .header-brand h1 a span:last-child,
  .header-brand .header-brand-name a span:last-child  { font-size: 16px !important; white-space: nowrap; }

  #menu-g li a {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* ===== ページヘッダーバー ===== */
  
.page-header-bar {
    padding: 32px 32px;
  }

  .page-header-bar h1 {
    font-size: 30px;
  }

  /* ===== トップページ: ヒーロー ===== */
  .hero { padding-left: 32px; padding-right: 32px; }

  .hero-left {
    padding: 60px 32px;
  }

  .hero-left h2 {
    font-size: 18px !important;
  }

  /* ===== トップページ: ごあいさつ ===== */
  .greeting-section {
    padding: 60px 40px;
  }

  /* ===== トップページ: 事業内容 ===== */
  .business-section {
    padding: 48px 32px;
  }

  .business-item {
    flex-direction: column;
    min-height: unset;
  }

  .business-item-img {
    width: 100%;
    height: 320px;
  }

  .business-item-body {
    padding: 24px 28px;
  }

  /* ===== トップページ: ホームセクション共通 ===== */
  .home-section {
    padding: 48px 32px;
  }

  .home-section-inner {
    max-width: 100%;
  }

  /* ===== ごあいさつうさぎ非表示 ===== */
  #page-ourstory img[style*="left:-45%"] { display: none; }

  /* ===== レプレについて: ヒーロー ===== */
  .os-hero {
    margin: 32px auto;
    padding: 0 24px;
  }

  /* ===== レプレについて: テキストセクション ===== */
  .os-section,
  .os-section.story-block {
    padding: 60px 40px;
  }

  #page-ourstory .story-block {
    padding: 60px 40px;
  }

  /* ===== レプレについて: 本文行間 ===== */

  /* ===== レプレについて: 砂時計写真 ===== */
  .os-photo-full {
    max-width: 90%;
  }

  /* ===== レプレについて: レプレのこれから ===== */
  .os-future {
    padding: 0 40px;
    max-width: 680px;
  }

  /* story-blockのpadding上書きを打ち消す */
  #page-ourstory .os-future.story-block {
    padding-bottom: 0;
  }

  .os-future-num {
    font-size: clamp(140px, 18vw, 220px);
  }

  /* ===== 内部ページ共通 ===== */
  .inner-contents {
    padding: 40px 32px;
    max-width: 100%;
  }

  /* ===== 未上書き要素 ===== */
  .kaisha-box-title { font-size: 17px; }
  .os-byline { font-size: 12px; }
  /* 野兎考語ブログ説明文 */
  .home-section p[style*="color:#666"] { font-size: 12px !important; }

    /* ===== フッター ===== */
}
