:root{
    --bg: #ffffff;
    --panel: #ffffff;
    --white: #ffffff;
    --text: #303030;
    --muted: #303030;
    --line: rgba(255,255,255,.12);
    --accent: #ffd400;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 18px;
    --container: 100%;
    --hamburger-bg: #990000;
    --hamburger-line: #ffffff;
    --drawer-bg: #000000;
    --story-bg: #EEFFFF;
    --pagetop-bg: #990000;
    --copyright-bg: #990000;
    --filter-color: #000000;
    --border-color: #303030;
    --table-bg: #f1f1f1;
    --h3-color: #990000;
}
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a {
    color:inherit;
    text-decoration:none
}
img {
    max-width:100%;
    height:auto;
    display:block
}
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px
}
/* Header */
.header {
    position: absolute;
    top: 0;
    left:0;
    right:0;
    z-index: 1000;
    background: transparent;
}
.header__inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-left: 2em;
}
.logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,212,0,.95), rgba(255,212,0,.35));
    box-shadow: 0 6px 18px rgba(255,212,0,.18);
    flex: 0 0 auto;
}
.hamburger {
    width: 64px;
    height: 64px;
    background: var(--hamburger-bg);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.hamburger span {
    display: block;
    position: relative;
    width: 80%;
    height: 2px;
    background: var(--hamburger-line);
}
.hamburger span::before,
.hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hamburger-line);
}
.hamburger span::before {
    top: -12px
}
.hamburger span::after {
    top: 12px
}
/* Drawer (fullscreen) */
.drawer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--drawer-bg);
    backdrop-filter: saturate(1.2) blur(16px);
    z-index: 1100;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.drawer.is-open {
    opacity: 1;
    visibility: visible;
}
.drawer__head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 0;
}
.drawer__head .logo {
    color: var(--white);
}
.drawer__close {
    width: 64px;
    height: 64px;
    background: var(--hamburger-bg);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    font-size: 32px;
    color: var(--white);
    line-height: 1;
    border: none;
}
.drawer__close::before {
    content: "";
    display: block;
    width: 80%;
    height: 2px;
    position: absolute;
    background-color: var(--bg);
    transform: rotate(45deg);
}
.drawer__close::after {
    content: "";
    display: block;
    width: 80%;
    height: 2px;
    position: absolute;
    background-color: var(--bg);
    transform: rotate(-45deg);
}
.drawer__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.drawer__nav a {
    display: block;
    padding: 16px 32px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: rgba(232,237,243,.95);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    transition: background .2s ease, border-color .2s ease;
}
.drawer__nav a:hover {
  background:rgba(255,255,255,.06);
  border-color:var(--line);
}
.drawer__cta {
  position:absolute;
  bottom:40px;
  left:50%;
  transform:translateX(-50%);
  display:grid;
  gap:10px;
  text-align:center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    font-weight: 700;
    cursor: pointer;
}
.btn--primary {
    border-color: var(--accent);
    background: var(--accent);
    color:#111;
}
.btn--primary:hover {
    filter:brightness(1.02);
}
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.overlay.is-open {
    opacity: 1;
    pointer-events:auto;
}
/* Sections spacing */
section {
    padding: 64px 0;
}
.section-title {
    text-align: center;
    font-size: 26px;
    margin: 0 0 18px;
    letter-spacing: .02em;
}
.section-lead {
    text-align: center;
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.8;
}
/* HERO */
.hero {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.hero__media {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 0;
    background: #ffffff;
}
/* 画像HEROにする場合は、.hero__media に background-image を入れて使う */
.hero__media.is-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55) 35%, rgba(0,0,0,.78));
}
.hero__inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 110px 20px 110px;
}
.hero__box {
    max-width: 90%;
}
.hero__box a {
    width: 500px;
    max-width: 100%;
    border-radius: 16px;
    transition: all 1s ease;
}
.hero__box a:hover {
    opacity: 0.75;
}
.hero h1 {
  margin:0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.18;
  letter-spacing:.02em;
}
.hero p {
  margin:0 auto 18px;
  color:rgba(232,237,243,.92);
  line-height:1.75;
  max-width:70ch;
}
.hero__meta {
  margin-top:10px;
  font-size:14px;
  color:rgba(232,237,243,.75);
}
.hero .filter {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--filter-color);
    opacity: 0;
}

/* Story alternating (max 3) */
#story {
    background-color: var(--story-bg);
}
.story-list{
  display:grid;
  gap:18px;
}
.story {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    align-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    padding: 18px;
}
.story:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}
.story__media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
    min-height: 180px;
    max-height: 490px;
}
.story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story__body h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.story__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}
.story:nth-child(even) .story__media {
    order: 2;
}
.story:nth-child(even) .story__body {
    order: 1;
}
.inline-link {
    position: relative;
    display: block;
    width: fit-content;
    align-items: center;
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--panel);
    font-weight: 700;
    padding: 16px 64px;
    margin: 18px auto 0;
    transition: all 0.5s ease;
}
.inline-link:hover {
    filter: brightness(1.06);
}
.inline-link .material-symbols-outlined {
    position: absolute;
    right: 15px;
    top: 50%;
    display: block;
    font-size: 1em;
    transform: translateY(-55%);
}

/* Services (max 3) */
.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.service {
  border-radius: var(--radius);
  border: 1px solid var(--text);
  padding: 18px;
}
.service__image {
  max-width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 12px;
}
.service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.service p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

/* CTA with background image */
.cta {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
}
.cta__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0b0d12;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}
.cta__shade {
  position: absolute; inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,.75), rgba(0,0,0,.55));
}
.cta__inner {
  position: relative;
  z-index: 1;
  padding: 128px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--panel);
  margin: 0 0 10px;
}
.cta p {
  margin: 0 auto 18px;
  max-width: 70ch;
  color: rgba(232,237,243,.86);
  line-height: 1.75;
}

/* Footer */
footer {
  padding: 46px 0 0;
}
.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.footer-logo {
  margin:0 0 10px;
}
.footer-logo img {
    max-width: 300px;
}
.footer-title {
  font-size: 24px;
  color: var(--muted);
  margin: 10px 0 5px;
}
.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}
.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--text);
    font-size: 14px;
    color: var(--white);
    padding: 10px 16px;
}
.copyright {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background-color: var(--copyright-bg);
    padding: 20px 0;
    margin: 0;
}

/* Page top button */
.pagetop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}
.pagetop.is-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.pagetop button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--pagetop-bg);
    background: var(--pagetop-bg);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 24px;
    font-weight: 900;
    transition: transform .5s ease;
}
.pagetop button .material-symbols-outlined {
    transform: rotate(-90deg) translateX(-5%);
    font-size: 40px;
}
.pagetop button:hover {
  transform: scale(1.08);
}

.table {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-spacing: 0;
    padding: 0;
}
.table th {
    width: 35%;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.0;
    padding: 24px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--table-bg);
}
.table td {
    width: 65%;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    padding: 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px){
    section {
        padding: 52px 0
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .story {
        grid-template-columns: 1fr;
    }
    .story:nth-child(even){
        grid-template-columns: 1fr;
    }
    .story:nth-child(even) .story__media {
        order: 0;
    }
    .story:nth-child(even) .story__body {
        order:0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero__box {
        border-radius: 22px;
    }
}
/* reduced motion */
@media (prefers-reduced-motion: reduce){
    * {
        scroll-behavior: auto !important;
    }
    .drawer {
        transition: none;
    }
    .overlay {
        transition: none;
    }
    .pagetop {
        transition: none;
    }
}

/* SERVICE */
#service .hero {
    min-height: 200px;
}
#service .hero__inner {
    min-height: 200px;
}
#service .hero__box {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.0;
    color: #fff;
}
#service .hero .filter {
    opacity: 0.4;
}
#servicesNav .service {
    text-align: center;
}
#servicesNav .service h3 {
    text-align: center;
}
#servicesNav .service a span {
    font-size: 32px;
    transition: all 0.5s ease;
}
#servicesNav .service a:hover span {
    transform: translateY(5px);
}
#service #services .service {
    display: flex;
    justify-content: start;
    align-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border: none;
    padding: 0;
    margin-top: 48px;
}
#service #services .service:first-child {
    margin-top: 0;
}
#service #services .service .image {
    flex: 0 0 35%;
    border-radius: 16px;
    overflow: hidden;
}
#service #services .service .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#service #services .service .content {
    flex: 0 0 calc(65% - 16px);
}
#service #services .service .content h2 {
    margin: 0;
}
#service #services .service .content .description {
    margin-top: 16px;
}
@media (max-width: 768px){
    #service .hero {
        min-height: 150px;
    }
    #service .hero__inner {
        min-height: 150px;
        padding: 100px 0 50px;
    }
    #service #services .service .image {
        flex: 0 0 100%;
    }
    #service #services .service .contant {
        flex: 0 0 100%;
    }
}

/* ABOUT */
#about .hero {
    min-height: 200px;
}
#about .hero__inner {
    min-height: 200px;
}
#about .hero__box {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.0;
    color: #fff;
}
#about .hero .filter {
    opacity: 0.4;
}
#about main .container {
    max-width: 1100px;
}
#about #message {
    max-width: 780px;
    margin: 0 auto;
}
#about #message .image {
    max-width: 100%;
    margin: 0 auto 40px;
}
#about #message .image img {
    margin: 0 auto;
}
#about #message .sign {
    text-align: right;
    font-weight: 600;
}
#about #profile {
    max-width: 780px;
    margin: 0 auto;
}
#about #profile .section-sub {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.0;
    color: var(--h3-color);
    margin-top: 40px;
    margin-bottom: 8px;
}
#about #profile p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}
@media (max-width: 768px){
    #about .hero {
        min-height: 150px;
    }
    #about .hero__inner {
        min-height: 150px;
        padding: 100px 0 50px;
    }
}

section:not(.hero) {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}
section.is-show {
    opacity: 1;
    transform: translateY(0);
}
.sp-none {
    display: block;
}
.pc-none {
    display: none;
}
@media (max-width: 768px){
    .sp-none {
        display: none;
    }
    .pc-none {
        display: block;
    }
}
