@import url("https://fonts.googleapis.com/css2?family=Gothic+A1:wght@400;500;700&display=swap");
:root{
  --font-jp:"Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-ui:Inter, sans-serif;
  --green:#152E1B;
  --green2:#2E5938;
  --orange:#C25E30;
  --border:#D3DFD8;
  --bg:#F4F6F3;
  --text:#1D231E;
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  font-family:var(--font-jp);
  background:var(--bg);
  color:var(--text)
}

/* Shared typography: individual components only set size, weight, and color. */
.header-nav-left,
.header-nav-right,
.card h1,
.card p,
.card .login-info,
.fine-print,
.top-contents h1,
.top-contents p,
.chip,
.chip_cat,
.item h3,
.gallery-tag,
.detail-back-button a,
.detail h2,
.detail h3,
.detail p,
.detail-picture p,
.entry-chip,
.detail-row-cat,
.detail-row-spec,
.download-contents strong,
.download-contents span,
.outline,
.download,
.footer-left h2,
.footer-left p,
.footer-right,
.footer-bottom{
  font-family:var(--font-jp);
}

.site-title,
.login-out-btn,
.gallerybtn{
  font-family:var(--font-ui);
}
.icon {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}
.icon-chevron-left {
  margin-right: 8px;
  width: 7px;
  height: 11px;
  background-image: url(../images/ico-chevron-left.svg);
}
.site-header{
  height:80px;
  border-bottom:1px solid var(--border);
  background:#fff
}
.header-inner{
  height:100%;
  padding:0 80px;
  display:flex;
  justify-content:space-between;
  align-items:center
}
.logo-group{
  display:flex;
  align-items:center;
  gap: 16px;
  transition: all 0.2s ease;
}
.site-logo{
  height: 46px;
}
.site-title{
  color: #333;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.header-nav a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.header-nav,
.header-nav-left,
.header-nav-right {
  display:flex;
  align-items: center;
  gap:32px;
  font-weight:700
}
.header-nav-left {
  border-right: 1px solid #D3DFD8;
  padding-right: 32px;
}
.header-nav-left,
.header-nav-right {
  color: #4A564E;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.login-out-btn {
  display: flex;
  width: 92px;
  padding: 10px 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid #B3B3B3;
  background: #F2F2F2;
  color: #333;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.container{
  max-width:1440px;
  margin:auto;
  padding: 48px 80px;
}
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    padding-top: 120px;
    padding-bottom: 120px;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            rgba(0,0,0,.25),
            rgba(0,0,0,.25)
        ),
        url("../images/login_banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card{
  max-width: 480px;
  background:#fff;
  padding:48px;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,.15);
}
.card h1,
.card p {
  text-align: center;
}
.card h1 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #1D231E;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
.card p {
  margin-top: 12px;
  margin-bottom: 32px;
  color: #4A564E;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 19.5px */
}
.card .login-info {
  color: #4A564E;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
input{
  width:100%;
  height:48px;
  border:1px solid var(--border);
  border-radius:6px;
  padding: 0 60px 0 12px;
  margin: 8px 0 16px;
}
.password-wrapper {
  position: relative;
}
.password-toggle {
  width: 18px;
  height: 18px;
  position: absolute;
  top: calc(50% - 12px);
  right: 14px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-error {
  color: #E53935 !important;
}
.btn-login{
  cursor: pointer;
  display:flex;
  height:48px;
  align-items:center;
  justify-content:center;
  background:var(--green);
  color:#fff;
  border-radius:6px;
  font-weight:700;
  margin-top: 16px;
  appearance: none;
  border: none;
  width: 100%;
}
.fine-print {
    margin-top: 16px;
    color: #2B5135;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
.fine-print a {
  color: inherit;
  text-decoration: underline;
  transition: all 0.2s ease;
}
.fine-print a:hover {
  text-decoration: none;
}
.top{
  display:flex;
  justify-content:space-between;
  align-items: flex-end;
  gap: 16px;
}
.top-contents h1 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1D231E;
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
.top-contents p {
  margin-top: 0;
  margin-bottom: 16px;
  color: #4A564E;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.search-wrapper {
  position: relative;
}
.search-toggle {
  width: 18px;
  height: 18px;
  position: absolute;
  top: calc(50% - 13px);
  left: 14px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search{
  display: flex;
  width: 405px;
  height: 48px;
  margin-bottom: 16px;
  padding: 0 16px 0 42px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid #152E1B;
  background: #FFF;
}
.chips{
  display:flex;
  gap:8px;
  margin: 16px 0 32px;
  align-items: center;
}
.chip{
  cursor: pointer;
  display: flex;
  padding: 8px 16px;
  align-items: flex-start;
  border-radius: 20px;
  border: 1px solid #D3DFD8;
  background: #FFF;
  color: #4A564E;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  transition: all 0.2s ease;
  text-decoration: none;
}
.chip:hover,
.chip.active {
  background: #152E1B;
  color: #fff;
}
.chip_cat {
    color: #4A564E;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap: 32px;
}
.item{
  display: flex;
  flex-direction: column;
  background:#fff;
  overflow:hidden;
  border-radius: 12px;
  border: 1px solid #D3DFD8;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
}
.item h3 { 
  margin-top: 14px;
  margin-bottom: 14px;
  color: #1D231E;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 22.4px */
}
.ph{
  height:220px;
  background:#b7d3c1
}
.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.body{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 100%;
  padding:16px;
}
.gallery-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-tag {
    display: inline-flex;
    padding: 4px 12px;
    align-items: center;
    border-radius: 4px;
    background: rgba(21, 46, 27, 0.07);
    color: #152E1B;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.gallerybtn{
  display:flex;
  justify-content:center;
  padding:10px 0;
  background:var(--green2);
  color:#fff;
  border-radius:8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-arrow {
  margin-left: 8px;
}
.detail-back-button {
  margin-bottom: 32px;
}
.detail-back-button a {
  color: #2B5135;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
}
.detail{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:48px
}
.detail h1 {
  margin-top: 16px;
  margin-bottom: 16px;
}
.detail h2 {
  margin-top: 0;
  margin-bottom: 0;
  align-self: stretch;
  color: #1D231E;
  font-size: 14px;
  font-weight: 800;
  line-height: normal;
}
.detail h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: #1D231E;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
.detail p {
  color: #4A564E;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 22.4px */
}
.detail-picture p {
  margin-top: 16px;
  margin-bottom: 16px;
  color: #819087;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.heroimg {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}
.entry-chips{
  display:flex;
  gap:8px;
  margin: 0 0 16px;
  align-items: center;
}
.entry-chip {
  display: flex;
  padding: 4px 12px;
  align-items: flex-start;
  border-radius: 4px;
  background: rgba(21, 46, 27, 0.07);
  color: #152E1B;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.info,.download-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px
}
.info{
  margin-top: 32px;
  padding:20px
}
.detail-row{
  display:flex;
  justify-content:space-between;
  padding: 6px 0;
  gap: 6px;
}
.detail-row:first-of-type {
  border-top: 1px solid #D3DFD8;
  margin-top: 12px;
  padding-top: 12px;
}
.detail-row:last-of-type {
  padding-bottom: 0;
}
.detail-row-cat {
  color: #819087;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  flex: 0 0 auto;
}
.detail-row-spec {
  color: #1D231E;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.detail-row-spec.references {
  color: #2B5135;
}
.download-card{
  padding:16px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px;
  transition: all 0.2s ease;
}
.download-card:hover{
  border-color:var(--orange);
  background: rgba(194, 94, 48, 0.03);
}
.download-card:hover .download-contents strong{
  color:var(--orange)
}
.download-card:hover{
  border-color:var(--orange)
}
.download-card:hover .download-contents strong{
  color:var(--orange)
}
.download-contents strong {
  color: #1D231E;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
.download-contents span {
  color: #4A564E;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.outline,
.download {
  display: flex;
  height: 48px;
  margin-left: 16px;
  padding: 0 22px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid #152E1B;
  background: #FFF;
  color: #152E1B;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  min-width: 132px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.outline:hover{
  background: var(--orange);
  border-color: var(--orange);
  color: #FFF;
}
.outline:hover,
.download:hover {
  border-color: #C25E30;
  background: #C25E30;
  color: #FFF;
}
/* Pagination (archive-photo_archive.php) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
  font-family: var(--font-ui);
}

.pagination .page-numbers {
  display: flex;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  transition: all 0.2s ease;
  color: inherit;
}

.pagination .prev,
.pagination .next {
  border: 1px solid var(--border);
}

a.page-numbers:hover {
  border-color: var(--green2);
  color: var(--green2);
}

.pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  width: auto;
  padding: 0 4px;
  color: var(--text);
  opacity: .6;
}

/* Swap the default Ã‚Â« / Ã‚Â» glyphs for single chevrons Ã¢â‚¬Â¹ / Ã¢â‚¬Âº without touching the PHP */
.pagination .prev,
.pagination .next {
  font-size: 0;
  position: relative;
}

.pagination .prev::before,
.pagination .next::before {
  font-size: 16px;
  line-height: 1;
}

.pagination .prev::before { content: '‹'; }
.pagination .next::before { content: '›'; }

.site-footer{
  background:#152E1B;
  color:#fff;
  padding:48px 80px;
}
.footer-container{
  max-width:1280px;
  margin:auto
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items: center;
  gap: 48px;
}
.footer-left h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #FFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}
.footer-left p {
  margin: 0;
  color: rgba(255, 255, 255, 0.60);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.footer-right {
    color: rgba(255, 255, 255, 0.80);
    text-align: right;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.footer-divider{
  height:1px;
  background: rgba(255, 255, 255, 0.13);
  margin: 24px 0;
}
.footer-bottom{
  color: rgba(255, 255, 255, 0.40);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align:center;
  opacity:.6
}

/* Tablet and phone layouts */
@media (max-width: 1060px){
  .header-inner,
  .container{
    padding-left:40px;
    padding-right:40px;
  }
  .header-nav,
  .header-nav-left,
  .header-nav-right{
    gap:20px;
  }
  .header-nav-left{
    padding-right:20px;
  }
  .search{
    width:320px;
  }
  .site-footer{
    padding-left:40px;
    padding-right:40px;
  }
}

@media (max-width: 930px){
  .site-header{
    height:auto;
  }
  .header-inner{
    padding:12px 16px;
    flex-wrap:wrap;
    gap: 0;
    display: flex;
    align-items: center;
  }
  .logo-group{
    gap:10px;
  }
  .site-logo{
    height:38px;
  }
  .header-nav{
    width:100%;
    justify-content:space-between;
    gap:12px;
  }
  .header-nav-left{
    border-right:0;
    padding-right:0;
  }
  .detail{
    gap:16px;
  }
}

@media (max-width: 780px){
  .top{
    display:block;
  }
  .search-wrapper{
    margin-top:20px;
  }
  .search{
    width:100%;
    margin-bottom:0;
  }
  .grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:24px;
  }
  .detail{
    grid-template-columns:1fr;
    gap:32px;
  }
}

@media (max-width: 680px){
  .site-title{
    font-size:12px;
  }
  .header-nav-left,
  .header-nav-right{
    gap:12px;
    font-size:12px;
  }
  .login-out-btn{
    width:80px;
    padding:8px 0;
  }
  .container{
    padding:32px 16px;
  }
  .top-contents h1{
    font-size:26px;
    line-height:1.35;
  }
  .top-contents p{
    line-height:1.6;
  }
  .search-toggle {
    top: calc(50% - 10px);
  }
  .chips{
    flex-wrap:wrap;
    margin:24px 0;
  }
  .grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .chip_cat {
    flex: 100%;
  }
  .gallery-image,
  .ph{
    height:clamp(190px, 58vw, 260px);
  }
  .detail-back-button{
    margin-bottom:24px;
  }
  .detail{
    gap:24px;
  }
  .detail h1{
    font-size:24px;
    line-height:1.4;
  }
  .detail p{
    line-height:1.7;
  }
  .detail-row{
    align-items:flex-start;
    gap:16px;
  }
  .detail-row-spec{
    text-align:right;
  }
  .download-card{
    padding:16px;
    align-items:stretch;
    flex-direction:column;
    gap:14px;
  }
  .outline,
  .download{
    margin-left: 0;
    width:100%;
  }
  .hero{
    min-height:calc(100svh - 72px);
    padding:32px 16px;
  }
  .card{
    padding:28px 20px;
    border-radius:12px;
  }
  .card h1{
    font-size:22px;
  }
  .site-footer{
    padding:32px 16px;
  }
  .footer-top{
    align-items:flex-start;
    flex-direction:column;
    gap:20px;
  }
  .footer-right{
    text-align:left;
    line-height:1.6;
  }
}

/* ==========================================================================
   Header hamburger menu
   Paste this whole block at the very END of style.css (after the last @media block).
   It works together with header.php (button #nav-toggle, menu #site-nav, .is-open class).
   Above 930px nothing changes; at 930px and below the menu becomes a button + dropdown panel.
   ========================================================================== */

/* The button itself: hidden on wide screens */
.nav-toggle{
  display:none;
  position:relative;
  flex:0 0 auto;
  width:44px;
  height:44px;
  margin:0;
  padding:0;
  border:1px solid var(--border);
  border-radius:6px;
  background:#fff;
  cursor:pointer;
}
.nav-toggle:focus-visible{
  outline:2px solid var(--green2);
  outline-offset:2px;
}
/* The three lines, which turn into an X while the menu is open */
.nav-toggle-bar{
  position:absolute;
  left:11px;
  width:20px;
  height:2px;
  border-radius:1px;
  background:var(--green);
  transition:transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle-bar:nth-child(1){ top:14px; }
.nav-toggle-bar:nth-child(2){ top:21px; }
.nav-toggle-bar:nth-child(3){ top:28px; }
.site-header.is-open .nav-toggle-bar:nth-child(1){ top:21px; transform:rotate(45deg); }
.site-header.is-open .nav-toggle-bar:nth-child(2){ opacity:0; }
.site-header.is-open .nav-toggle-bar:nth-child(3){ top:21px; transform:rotate(-45deg); }

@media (max-width: 930px){
  /* Header bar: logo + title on the left, button on the right */
  .site-header{
    position:relative;
    height:auto;
    z-index:100;
  }
  .header-inner{
    padding:9px 16px;
    flex-wrap:nowrap;
    gap:12px;
    justify-content:space-between;
    align-items:center;
  }
  .logo-group{
    gap:10px;
    min-width:0;
  }
  .site-logo{
    height:38px;
  }
  .nav-toggle{
    display:block;
  }

  /* The menu becomes a panel under the bar; the button opens and closes it */
  .header-nav{
    display:flex;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:auto;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    padding:4px 16px 20px;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    /* Closed: invisible, not clickable, and skipped by the Tab key and screen readers.
       "visibility" switches off only after the fade-out has finished (0.2s delay). */
    visibility:hidden;
    opacity:0;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-header.is-open .header-nav{
    visibility:visible;
    opacity:1;
    transform:none;
    pointer-events:auto;
    transition:opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .header-nav-left,
  .header-nav-right{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:0;
    border-right:0;
    font-size:15px;
  }
  .header-nav-left a,
  .header-nav-right a:not(.login-out-btn){
    display:block;
    padding:15px 4px;
    border-bottom:1px solid var(--border);
  }
  .login-out-btn{
    width:100%;
    margin-top:16px;
    padding:13px 0;
    font-size:14px;
  }

  /* The header is a little shorter on phones, so the login page fills the screen exactly */
  .hero{
    min-height:calc(100svh - 63px);
  }
}

/* Very narrow phones: keep the logo, title and button on one row */
@media (max-width: 400px){
  .site-logo{
    height:30px;
  }
  .site-title{
    font-size:11px;
  }
}

/* No animation while the layout switches between phone and desktop (e.g. rotating a tablet).
   header.php adds .no-anim for a moment when the window crosses the 930px breakpoint. */
.site-header.no-anim .header-nav,
.site-header.no-anim .nav-toggle-bar{
  transition:none !important;
}

/* Visitors who ask their device for less motion get an instant open/close */
@media (prefers-reduced-motion: reduce){
  .nav-toggle-bar,
  .header-nav,
  .site-header.is-open .header-nav{
    transition:none;
  }
}
