/*変数*/
:root{
     /* 余白 */
    --space-section: 80px;
    --space-title: 48px;
    --space-text: 24px;

    /* ===== font-size（4段階） ===== */
    --fs-display: 48px;
    --fs-h1: 32px;
    --fs-body: 18px;
    --fs-small: 14px;

    /* ===== font-weight（3段階） ===== */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* 行間 */  
    --lh-tight: 1.2;   /* 見出し */
    --lh-base: 1.7;    /* 本文 */
    --lh-relaxed: 1.9; /* 説明・長文 */

    /* カラー */
    --color-main:#20323f;   /* 濃い紺（ベース） */
    --color-sub:#185f77;    /* 青系（補助） */
    --color-accent:#d79748; /* オレンジ（アクセント） */
    --color-bg:#e5ecde;     /* 薄い背景 */

    --color-border:rgb(32 50 63 / 0.2); /* ← 透過で統一 */
    --color-sub-light: rgb(24 95 119 / 0.8);/* 透過補助　*/
    --color-accent-light: rgb(215 151 72 / 0.7); /* 透過アクセント */
    --color-bg-light: rgb(229 236 237 / 0.85); /* 透過背景 */
}

/*リセット*/
*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family: 'Noto Sans JP', sans-serif;
    font-optical-sizing: auto; 
    font-weight:500;
    font-style: normal;
    font-size:var(--fs-body);
    line-height:var(--lh-base); 
}

h1{
    margin:0;
}

h1,h2{
    font-family: 'Noto Serif JP', serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    line-height: var(--lh-tight);
}

a{
    color:inherit;
    text-decoration:none;
}

.sp-break{
    display:inline;
}

/*統一ルール*/
.container{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:0 24px;
}

.inner{
    max-width:900px;
    margin:0 auto;
    padding:0 20px;
}

.fade-in{
    opacity:0;
    transform:translateY(20px);
    transition:all 0.6s ease;
}

.fade-in.show{
    opacity:1;
    transform:translateY(0);
}

/* 見出し　*/
.about__title,
.service__title,
.info__title,
.contact__title{
    font-size:var(--fs-h1);
    margin-bottom:var(--space-title);
}

.about__text,.service__text{
    font-size:var(--fs-body);
    color:var(--color-sub-light);
    margin-bottom:var(--space-text);
}

.about__text,
.service__text,
.hero__text,
.info__list dd{
    line-height: var(--lh-relaxed);
}

/* 画像　*/
.about__image img,.service__image img{
    width:100%;
    border-radius:8px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
}

/*リスト*/
.info__list dt,.info__list dd{
    border-bottom:1px solid var(--color-border);
    padding-bottom:12px;
}

/*ヘッダー*/
.header{
    position:sticky;
    top:0;
    background-color:var(--color-main);
    color:var(--color-bg);
    height:80px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    z-index:10;
}

.header__logo{
    font-family: 'Noto Serif JP', serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    line-height:1.8;   
}

.header__toggle{
    display:none;
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
}

.header__nav-list{
    list-style:none;
    justify-content:space-between;
    display:flex;
    gap:16px;
    margin:0;
    padding:0;
}

.header__nav-item a{
    color:var(--color-bg);
    transition:0.3s;
}

.header__nav-item a:hover{
    color:var(--color-accent-light);
}

/*セクション*/
section{
    padding:var(--space-section) 0;
}

section:nth-of-type(even){
    background-color:rgb(229 236 237 / 0.25);
}

section:nth-of-type(odd){
    background-color:transparent;
}

/*ヒーロー*/
.hero{
    text-align:center;
    padding:var(--space-section) 0;
    background:url("lightray.jpg") center/cover no-repeat;
    position:relative;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 0.65);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
    max-width: 600px;
    margin: 0 auto;
    padding:48px 32px;
    z-index: 1;
    position:relative;
    background: rgb(255 255 255 / 0.35);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgb(255 255 255 / 0.25);
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.1);
}

.hero__title{
    font-size:var(--fs-display);
    margin-bottom:40px;
    color:var(--color-main);
}

.hero__text{
    font-size:var(--fs-body);
    color:var(--color-sub);
    max-width:520px;
    margin:0 auto;
    text-align:left;
    white-space:pre-line;
    letter-spacing:0.05em;
    line-height:1.8;
}

.hero__btn{
    display:inline-block;
    padding:12px 24px;
    margin-top:24px;
    background-color:var(--color-accent);
    color:var(--color-main);
    border-radius:6px;
    border:1px solid rgb(255 255 255 /0.25);
    box-shadow:0 6px 16px rgb(0 0 0 /0.1);
    backdrop-filter:blur(6px);
    transition:0.3s;
}

.hero__btn:hover{
    background-color:var(--color-sub);
    color:var(--color-bg);
    transform:translateY(-2px);
}

/*会社概要*/
.about__content{
    display:block;
}

.about__title{
    text-align:center;
    color:var(--color-main);
}

.about__text{
    margin:0 auto 32px;
    max-width:500px;
    line-height:2;
    text-align:center;
    color:rgb(24 95 119 / 0.8);
}

.about__image{
    max-width:240px;
    margin:0 auto;
    margin-top:32px;
    transform: translateY(10px);
}

/*事業内容*/
.service{
    text-align:left;
}

.service__title{
    text-align:center;
    color:var(--color-main);
}

.service__content{
    display:flex;
    gap:32px;
    align-items:center;
}

.service__image{
    max-width:320px;
    transform: translateY(10px);
}

.service__text{
    flex:2;
    max-width:500px;
    line-height:1.8;
    color:rgb(24 95 119 / 0.8);
}

.service__lead {
    font-size:var(--fs-body);
    font-weight:inherit; 
    color: var(--color-sub-light);
}

.service__list{
    list-style:none;
    padding:0;
    margin:0;
}

.service__list li{
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    margin-bottom:16px;
}

/*会社情報*/
.info{
    text-align:left;
}

.info__title{
    text-align:center;
    color:var(--color-main);
}

.info__list{
    margin:0;
    display:grid;
    grid-template-columns: 140px 1fr;
    gap: 16px 24px;
}

.info__list dt{
    font-weight:bold;
    font-size:var(--fs-small);
    letter-spacing:0.05em;
    border-bottom:none;
    text-align:left;
    color:var(--color-main);
}

.info__list dd{
    font-size:var(--fs-small);
    margin:0;
    text-align:left;
    color:var(--color-sub);
    line-height:1.6;
}

/*お問い合わせフォーム*/
.contact{
    text-align:center;
    padding:var(--space-section) 0;
}

.contact__field{
    width:100%;
    max-width:400px;
}

.contact__title{
    text-align:center;
    color:var(--color-main);
}

.contact form{
    background:var(--color-bg-light);
    padding:40px;
    border-radius:8px;
    box-shadow:0 10px 30px rgb(0 0 0 /0.06);
    display:flex;
    flex-direction:column;
    gap:24px;
    align-items:center;
}

.contact label{
    display:block;
    margin-bottom:8px;
    color:var(--color-main);
}

.contact input, .contact textarea{
    width:100%;
    max-width:400px;
    padding:12px;
    border:1px solid var(--color-border);
    background:#fff;
    border-radius:4px;
}

.contact textarea{
    min-height:120px;
}

.contact input:focus,.contact textarea:focus {
    outline:none;
    border:1px solid var(--color-accent);
    box-shadow:0 0 2px rgb(0 0 0 / 0.05);
}

.contact button{
    padding:12px 24px;
    background-color:var(--color-accent);
    color:var(--color-main);
    border-radius:4px;
    border:none;
    cursor:pointer;
    transition:0.3s;
    width:200px;
}

.contact button:hover{
    background-color:var(--color-sub);
    color:var(--color-bg);
    transform:translateY(-2px);
}

/*レスポンシブデザイン*/
html{
    scroll-behavior:smooth;
    scroll-padding-top:100px;
}

/*タブレット対応*/
@media (max-width: 768px){
    .service__content{
        flex-direction:column;
        align-items:center;
    }

    .service__item{
        width:100%;
        max-width:400px;
    }

    .info__list{
        grid-template-columns:1fr;
        gap:8px;
    }

    .info__list dt{
        margin-top:18px;
    }

    .header__nav-list{
        display:none;
        flex-direction:column;
        position:absolute;
        top:80px;
        right:0;
        background-color:rgb(32 50 63 / 0.8);
        backdrop-filter:blur(8px);
        padding:16px;
        transition:0.3s;
        box-shadow:0 2px 10px rgb(0 0 0 / 0.1);
        border-left:1px solid var(--color-border);
    }

    .header__nav-list.is-open{
        display:flex;
    }

    .header__toggle{
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        position:relative;
        width:32px;
        height:32px;
        background:none;
        border:none;
    }

    .header__toggle-bar{
        display:block;
        position:absolute;
        left:10%;
        width:80%;
        height:2px;
        background-color:var(--color-bg);
        transition:0.3s;
    }

    /*3本線*/
    .header__toggle-bar:nth-child(1){
        top:8px;
    }

    .header__toggle-bar:nth-child(2){
        top:16px;
    }

    .header__toggle-bar:nth-child(3){
        top:24px;
    }

    /*開いたときのアニメーション*/
    .header__toggle.is-open .header__toggle-bar:nth-child(1){
        transform:rotate(45deg) scale(0.8);
        top:18px;
    }

    .header__toggle.is-open .header__toggle-bar:nth-child(2){
        opacity:0;
    }
    
    .header__toggle.is-open .header__toggle-bar:nth-child(3){
        transform:rotate(-45deg) scale(0.8);
        top:18px;
    }
}

/*スマートフォン対応*/
@media (max-width: 480px){
    .container{
        padding:10px 12px;
    }
    
    .about__title,
    .service__title,
    .info__title,
    .contact__title{
        font-size: var(--fs-h1);
        margin-bottom: var(--space-title);
        line-height:1.4;
    }

    .hero__text,.about__text,.service__text,.info__list dd{
        font-size:var(--fs-small);
    }

    section{
        padding:32px 0;
    }

    body{
        line-height:1.8;
        font-size:var(--fs-small);
    }

    p{
        margin-bottom:16px;
    }

    .header{
        height:56px;
        padding:0 12px;
    }

    .header__logo{
        font-size:var(--fs-body);
        margin-left:4px;
    }

    .header__toggle{
        margin-right:4px;
    }

    .hero__inner{
        max-width:100%;
        padding:24px 16px;
        border-radius:12px;
        box-shadow:0 6px 16px rgb(0 0 0 / 0.08);
        backdrop-filter:blur(8px);
    }

    .hero__title{
        font-size:var(--fs-h1);
        margin-bottom:24px;
    }

    .hero__text{
        line-height:1.8;
    }

    .about__text{
        text-align:left;
        line-height:1.8;
    }

    .about__title{
        line-height:1.4;
    }

    .sp-break{
        display:block;
    }

    .about__image{
        max-width:100%;
    }

    .service__content{
        flex-direction:column;
        gap:24px;
    }

    .info__list{
        grid-template-columns:1fr;
        gap:8px;
    }

    .info__list dt{
        font-size:var(--fs-small);
        margin-top:20px;
    }

    .info__list dd{
        margin:0;
    }

    .footer{
        padding:8px 36px;
        font-size:var(--fs-small);
        line-height:1.5;
    }
}

/*フッター*/
.footer{
    background-color:var(--color-main);
    color:var(--color-bg);
    text-align:center;
    padding:12px 36px;
    font-family: 'Noto Serif JP', serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    line-height:1.7;  
}

.footer p {
    margin: 0;
}