/* =========================================
   FYC GROUP corporate site - common styles
========================================= */
:root{
  --color-navy: #102a52;
  --color-navy-deep: #0a1c38;
  --color-accent: #c9a96e;
  --color-bg: #f6f7f9;
  --color-bg-soft: #eef1f5;
  --color-text: #232830;
  --color-text-soft: #5b6470;
  --color-border: #e1e5ea;
  --max-width: 1100px;
  --radius: 8px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo{
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-navy);
}
.logo span{
  font-weight: 500;
  color: var(--color-accent);
  margin-left: 4px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav a{
  color: var(--color-text);
  transition: color .2s;
}
.nav a:hover{ color: var(--color-navy); }

.nav-cta{
  background: var(--color-navy);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  transition: background .2s;
}
.nav-cta:hover{ background: var(--color-navy-deep); }

/* mobile nav toggle */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 760px 480px at 88% 10%, rgba(201,169,110,.14), transparent 62%),
    linear-gradient(110deg, rgba(10,28,56,.96) 0%, rgba(16,42,82,.90) 48%, rgba(16,42,82,.58) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 110px 0 120px;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after{
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  border: 1px solid rgba(201,169,110,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(201,169,110,.05), 0 0 0 150px rgba(201,169,110,.03);
  pointer-events: none;
}
.hero .container{
  position: relative;
  z-index: 1;
}

.hero-eyebrow{
  letter-spacing: 0.25em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.hero h1{
  font-size: 40px;
  line-height: 1.6;
  font-weight: 900;
  margin: 0 0 24px;
}

.hero-lead{
  font-size: 16px;
  color: #cfd6e4;
  max-width: 640px;
  margin: 0 0 36px;
}

/* ---------- Page header (sub pages) ---------- */
.page-header{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 620px 360px at 85% 0%, rgba(201,169,110,.14), transparent 60%),
    linear-gradient(120deg, rgba(10,28,56,.94) 0%, rgba(16,42,82,.86) 100%),
    url("../img/hero.jpg") center 35%/cover no-repeat;
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header .container{
  position: relative;
  z-index: 1;
}
.page-header .eyebrow{
  letter-spacing: 0.25em;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 12px;
}
.page-header h1{
  font-size: 32px;
  font-weight: 900;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: all .2s;
  border: 2px solid transparent;
}
.btn-primary{
  background: var(--color-accent);
  color: var(--color-navy-deep) !important;
}
.btn-primary:hover{
  background: #b8965a;
}
.btn-outline{
  border-color: #fff;
  color: #fff !important;
}
.btn-outline:hover{
  background: rgba(255,255,255,.1);
}

/* ---------- Sections ---------- */
.section{
  padding: 80px 0;
}
.section-soft{
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23102a52' fill-opacity='.05'/%3E%3C/svg%3E");
}
.section-title{
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-navy);
}
.section-title::after{
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  margin: 14px auto 0;
}

/* CTA band (navy) */
.section-cta{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 420px at 85% 10%, rgba(201,169,110,.12), transparent 60%),
    linear-gradient(120deg, rgba(10,28,56,.94) 0%, rgba(16,42,82,.84) 100%),
    url("../img/cta.jpg") center/cover no-repeat;
  color: #fff;
}
.section-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.section-cta .container{
  position: relative;
  z-index: 1;
}
.section-cta .section-title{
  color: #fff;
}
.section-cta .section-sub{
  color: #cfd6e4;
}
.section-sub{
  text-align: center;
  color: var(--color-text-soft);
  margin: 0 0 48px;
  font-size: 15px;
}

/* ---------- Grid / Cards ---------- */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card{
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 10px rgba(16,42,82,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16,42,82,.12);
}
.card .num{
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.card h3{
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 12px;
}
.card p{
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0;
}

.category-card{
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16,42,82,.04);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16,42,82,.10);
  border-color: rgba(201,169,110,.6);
}

/* ---------- Stats band ---------- */
.stats-band{
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 36px 0;
}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num{
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.2;
}
.stat-num small{
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 700;
  margin-left: 4px;
}
.stat-label{
  display: block;
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq{
  max-width: 800px;
  margin: 0 auto;
}
.faq-item{
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-navy);
  position: relative;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 700;
}
.faq-item[open] summary::after{ content: "−"; }
.faq-item p{
  margin: 0;
  padding: 0 22px 18px;
  color: var(--color-text-soft);
  font-size: 14px;
}

/* ---------- Greeting (company) ---------- */
.greeting-box{
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 2px 10px rgba(16,42,82,.05);
}
.greeting-box p{
  color: var(--color-text-soft);
  font-size: 15px;
  margin: 0 0 16px;
}
.greeting-sign{
  text-align: right;
  color: var(--color-text) !important;
  margin: 24px 0 0 !important;
}
.greeting-sign strong{
  font-size: 18px;
  color: var(--color-navy);
  margin-left: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; opacity: 1; transform: none; }
}

/* ---------- About split (photo + copy) ---------- */
.about-split .container{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-photo{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16,42,82,.18);
}
.about-photo img{
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}
.section-title.align-left{
  text-align: left;
}
.section-title.align-left::after{
  margin: 14px 0 0;
}
.about-copy p{
  color: var(--color-text-soft);
  font-size: 15px;
}

/* ---------- Sales channel strip ---------- */
.channel-strip{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 600px 300px at 12% 0%, rgba(74,118,190,.20), transparent 60%),
    linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}
.channel-strip::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.channel-strip .container{
  position: relative;
  z-index: 1;
}
.channel-strip .strip-label{
  letter-spacing: .25em;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 22px;
}
.channels{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.channel-chip{
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}
.channel-chip--soon{
  border-style: dashed;
  border-color: rgba(201,169,110,.55);
  background: rgba(201,169,110,.08);
}
.channel-chip--soon small{
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(201,169,110,.15);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .05em;
  vertical-align: middle;
}
.channel-upcoming{
  font-size: 13px;
  color: var(--color-text-soft);
}
.channel-note{
  margin: 22px 0 0;
  font-size: 13px;
  color: #aab6c9;
}
.category-card .icon{
  font-size: 32px;
  margin-bottom: 12px;
}
.category-card h3{
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 8px;
}
.category-card p{
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Flow ---------- */
.flow{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: flow;
}
.flow-step{
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  position: relative;
}
.flow-step::before{
  counter-increment: flow;
  content: counter(flow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 12px;
}
.flow-step h3{
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-navy);
}
.flow-step p{
  font-size: 12px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Table (company info) ---------- */
.info-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.info-table th, .info-table td{
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.info-table th{
  width: 200px;
  background: var(--color-bg);
  color: var(--color-navy);
  font-weight: 700;
  vertical-align: top;
}
.placeholder{
  color: #b6473a;
  font-weight: 700;
}

/* ---------- Contact form ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.form-group{
  margin-bottom: 22px;
}
.form-group label{
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-navy);
}
.form-group .required{
  color: #b6473a;
  font-size: 12px;
  margin-left: 6px;
}
.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.form-group textarea{
  min-height: 140px;
  resize: vertical;
}
.contact-info-box{
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-box h3{
  color: var(--color-navy);
  font-size: 16px;
  margin: 0 0 16px;
}
.contact-info-box dl{
  margin: 0;
}
.contact-info-box dt{
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  margin-top: 16px;
}
.contact-info-box dd{
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--color-navy-deep);
  color: #cfd6e4;
  padding: 56px 0 28px;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}
.footer-logo span{
  color: var(--color-accent);
  font-weight: 500;
  margin-left: 4px;
}
.footer-info{
  font-size: 13px;
  color: #8b97ad;
  margin: 14px 0 0;
  line-height: 2;
}
.footer-nav{
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.footer-nav a:hover{ color: #fff; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  font-size: 12px;
  color: #8b97ad;
  text-align: center;
}

/* ---------- Accessibility ---------- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 4px 0;
}
.skip-link:focus{ left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Nav active state ---------- */
.nav a.is-active{
  color: var(--color-navy);
  font-weight: 700;
  position: relative;
}
.nav a.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb{
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  padding: 10px 0;
  color: var(--color-text-soft);
}
.breadcrumb a{ color: var(--color-text-soft); }
.breadcrumb a:hover{ color: var(--color-navy); }
.breadcrumb .sep{ margin: 0 8px; color: var(--color-border); }

/* ---------- News band ---------- */
.news-band{
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.news-title{
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 12px;
}
.news-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list li{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
}
.news-list li:last-child{ border-bottom: none; }
.news-list time{
  color: var(--color-text-soft);
  font-size: 13px;
  white-space: nowrap;
}
.news-tag{
  background: var(--color-bg);
  color: var(--color-navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.news-text{ color: var(--color-text); }

/* ---------- Form consent ---------- */
.form-consent{
  margin: 4px 0 24px;
  font-size: 13px;
  color: var(--color-text-soft);
}
.form-consent label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-consent input{
  width: auto;
  margin: 0;
}
.form-consent a{
  color: var(--color-navy);
  text-decoration: underline;
}

/* ---------- Back to top ---------- */
#to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background .2s;
  z-index: 90;
  box-shadow: 0 4px 14px rgba(16,42,82,.3);
}
#to-top.is-visible{ opacity: 1; visibility: visible; }
#to-top:hover{ background: var(--color-navy-deep); }

/* ---------- Header scroll shadow ---------- */
.site-header.is-scrolled{ box-shadow: 0 2px 12px rgba(16,42,82,.08); }

/* ---------- Hero entrance ---------- */
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: none; }
}
.hero .hero-eyebrow,
.hero h1,
.hero .hero-lead,
.hero .btn{
  animation: fadeUp .7s ease both;
}
.hero .hero-eyebrow{ animation-delay: 0s; }
.hero h1{ animation-delay: .1s; }
.hero .hero-lead{ animation-delay: .2s; }
.hero .btn{ animation-delay: .3s; }
@media (prefers-reduced-motion: reduce){
  .hero .hero-eyebrow,
  .hero h1,
  .hero .hero-lead,
  .hero .btn{ animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .hero h1{ font-size: 28px; }
  .grid-3{ grid-template-columns: 1fr; }
  .about-split .container{ grid-template-columns: 1fr; gap: 32px; }
  .about-photo img{ max-height: 260px; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-num{ font-size: 26px; }
  .greeting-box{ padding: 24px 20px; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .flow{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .nav{
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav.is-open{ display: flex; }
  .nav-toggle{ display: block; }
  .info-table th{ width: 130px; padding: 14px 12px; font-size: 13px; }
  .info-table td{ padding: 14px 12px; font-size: 13px; }
  .nav a.is-active::after{ display: none; }
  .news-list li{ flex-wrap: wrap; gap: 8px 12px; }
  #to-top{ right: 16px; bottom: 16px; }
}
